]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
27cd7601ca191efcdcbdb242c5b40c41f4389348
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497 #define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498 #define SWIGTYPE_p_wxColour swig_types[32]
2499 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500 #define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501 #define SWIGTYPE_p_wxComboBox swig_types[35]
2502 #define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503 #define SWIGTYPE_p_wxContextHelp swig_types[37]
2504 #define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505 #define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506 #define SWIGTYPE_p_wxControl swig_types[40]
2507 #define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508 #define SWIGTYPE_p_wxCursor swig_types[42]
2509 #define SWIGTYPE_p_wxDC swig_types[43]
2510 #define SWIGTYPE_p_wxDateEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDateTime swig_types[46]
2513 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516 #define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517 #define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518 #define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519 #define SWIGTYPE_p_wxEvent swig_types[53]
2520 #define SWIGTYPE_p_wxEventBlocker swig_types[54]
2521 #define SWIGTYPE_p_wxEvtHandler swig_types[55]
2522 #define SWIGTYPE_p_wxFSFile swig_types[56]
2523 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[57]
2524 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[58]
2525 #define SWIGTYPE_p_wxFileSystem swig_types[59]
2526 #define SWIGTYPE_p_wxFlexGridSizer swig_types[60]
2527 #define SWIGTYPE_p_wxFocusEvent swig_types[61]
2528 #define SWIGTYPE_p_wxFont swig_types[62]
2529 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[63]
2530 #define SWIGTYPE_p_wxFontPickerEvent swig_types[64]
2531 #define SWIGTYPE_p_wxGBSizerItem swig_types[65]
2532 #define SWIGTYPE_p_wxGIFHandler swig_types[66]
2533 #define SWIGTYPE_p_wxGauge swig_types[67]
2534 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[68]
2535 #define SWIGTYPE_p_wxGenericDragImage swig_types[69]
2536 #define SWIGTYPE_p_wxGridBagSizer swig_types[70]
2537 #define SWIGTYPE_p_wxGridSizer swig_types[71]
2538 #define SWIGTYPE_p_wxHelpEvent swig_types[72]
2539 #define SWIGTYPE_p_wxHelpProvider swig_types[73]
2540 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[74]
2541 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[75]
2542 #define SWIGTYPE_p_wxICOHandler swig_types[76]
2543 #define SWIGTYPE_p_wxIcon swig_types[77]
2544 #define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545 #define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546 #define SWIGTYPE_p_wxImage swig_types[80]
2547 #define SWIGTYPE_p_wxImageHandler swig_types[81]
2548 #define SWIGTYPE_p_wxImageList swig_types[82]
2549 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550 #define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551 #define SWIGTYPE_p_wxItemContainer swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555 #define SWIGTYPE_p_wxListBox swig_types[89]
2556 #define SWIGTYPE_p_wxListEvent swig_types[90]
2557 #define SWIGTYPE_p_wxListItem swig_types[91]
2558 #define SWIGTYPE_p_wxListItemAttr swig_types[92]
2559 #define SWIGTYPE_p_wxListView swig_types[93]
2560 #define SWIGTYPE_p_wxListbook swig_types[94]
2561 #define SWIGTYPE_p_wxListbookEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMaximizeEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMemoryDC swig_types[97]
2564 #define SWIGTYPE_p_wxMenu swig_types[98]
2565 #define SWIGTYPE_p_wxMenuBar swig_types[99]
2566 #define SWIGTYPE_p_wxMenuEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMenuItem swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMouseEvent swig_types[104]
2571 #define SWIGTYPE_p_wxMoveEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNcPaintEvent swig_types[107]
2574 #define SWIGTYPE_p_wxNotebook swig_types[108]
2575 #define SWIGTYPE_p_wxNotebookEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577 #define SWIGTYPE_p_wxObject swig_types[111]
2578 #define SWIGTYPE_p_wxPCXHandler swig_types[112]
2579 #define SWIGTYPE_p_wxPNGHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPNMHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPaintEvent swig_types[115]
2582 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[116]
2583 #define SWIGTYPE_p_wxPaperSize swig_types[117]
2584 #define SWIGTYPE_p_wxPickerBase swig_types[118]
2585 #define SWIGTYPE_p_wxPoint swig_types[119]
2586 #define SWIGTYPE_p_wxPyApp swig_types[120]
2587 #define SWIGTYPE_p_wxPyCommandEvent swig_types[121]
2588 #define SWIGTYPE_p_wxPyControl swig_types[122]
2589 #define SWIGTYPE_p_wxPyEvent swig_types[123]
2590 #define SWIGTYPE_p_wxPyImageHandler swig_types[124]
2591 #define SWIGTYPE_p_wxPyListCtrl swig_types[125]
2592 #define SWIGTYPE_p_wxPySizer swig_types[126]
2593 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[127]
2594 #define SWIGTYPE_p_wxPyTreeItemData swig_types[128]
2595 #define SWIGTYPE_p_wxPyValidator swig_types[129]
2596 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[130]
2597 #define SWIGTYPE_p_wxRadioBox swig_types[131]
2598 #define SWIGTYPE_p_wxRadioButton swig_types[132]
2599 #define SWIGTYPE_p_wxRect swig_types[133]
2600 #define SWIGTYPE_p_wxScrollBar swig_types[134]
2601 #define SWIGTYPE_p_wxScrollEvent swig_types[135]
2602 #define SWIGTYPE_p_wxScrollWinEvent swig_types[136]
2603 #define SWIGTYPE_p_wxSearchCtrl swig_types[137]
2604 #define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605 #define SWIGTYPE_p_wxShowEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[140]
2607 #define SWIGTYPE_p_wxSize swig_types[141]
2608 #define SWIGTYPE_p_wxSizeEvent swig_types[142]
2609 #define SWIGTYPE_p_wxSizer swig_types[143]
2610 #define SWIGTYPE_p_wxSizerItem swig_types[144]
2611 #define SWIGTYPE_p_wxSlider swig_types[145]
2612 #define SWIGTYPE_p_wxSpinButton swig_types[146]
2613 #define SWIGTYPE_p_wxSpinCtrl swig_types[147]
2614 #define SWIGTYPE_p_wxSpinEvent swig_types[148]
2615 #define SWIGTYPE_p_wxStaticBitmap swig_types[149]
2616 #define SWIGTYPE_p_wxStaticBox swig_types[150]
2617 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[151]
2618 #define SWIGTYPE_p_wxStaticLine swig_types[152]
2619 #define SWIGTYPE_p_wxStaticText swig_types[153]
2620 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[154]
2621 #define SWIGTYPE_p_wxString swig_types[155]
2622 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[156]
2623 #define SWIGTYPE_p_wxTGAHandler swig_types[157]
2624 #define SWIGTYPE_p_wxTIFFHandler swig_types[158]
2625 #define SWIGTYPE_p_wxTextAttr swig_types[159]
2626 #define SWIGTYPE_p_wxTextCtrl swig_types[160]
2627 #define SWIGTYPE_p_wxTextUrlEvent swig_types[161]
2628 #define SWIGTYPE_p_wxToggleButton swig_types[162]
2629 #define SWIGTYPE_p_wxToolBar swig_types[163]
2630 #define SWIGTYPE_p_wxToolBarBase swig_types[164]
2631 #define SWIGTYPE_p_wxToolBarToolBase swig_types[165]
2632 #define SWIGTYPE_p_wxToolbook swig_types[166]
2633 #define SWIGTYPE_p_wxToolbookEvent swig_types[167]
2634 #define SWIGTYPE_p_wxTreeEvent swig_types[168]
2635 #define SWIGTYPE_p_wxTreeItemId swig_types[169]
2636 #define SWIGTYPE_p_wxTreebook swig_types[170]
2637 #define SWIGTYPE_p_wxTreebookEvent swig_types[171]
2638 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[172]
2639 #define SWIGTYPE_p_wxValidator swig_types[173]
2640 #define SWIGTYPE_p_wxVisualAttributes swig_types[174]
2641 #define SWIGTYPE_p_wxWindow swig_types[175]
2642 #define SWIGTYPE_p_wxWindowBase swig_types[176]
2643 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[177]
2644 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[178]
2645 #define SWIGTYPE_p_wxXPMHandler swig_types[179]
2646 static swig_type_info *swig_types[181];
2647 static swig_module_info swig_module = {swig_types, 180, 0, 0, 0, 0};
2648 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2649 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2650
2651 /* -------- TYPES TABLE (END) -------- */
2652
2653 #if (PY_VERSION_HEX <= 0x02000000)
2654 # if !defined(SWIG_PYTHON_CLASSIC)
2655 # error "This python version requires to use swig with the '-classic' option"
2656 # endif
2657 #endif
2658 #if (PY_VERSION_HEX <= 0x02020000)
2659 # error "This python version requires to use swig with the '-nomodern' option"
2660 #endif
2661 #if (PY_VERSION_HEX <= 0x02020000)
2662 # error "This python version requires to use swig with the '-nomodernargs' option"
2663 #endif
2664 #ifndef METH_O
2665 # error "This python version requires to use swig with the '-nofastunpack' option"
2666 #endif
2667
2668 /*-----------------------------------------------
2669 @(target):= _controls_.so
2670 ------------------------------------------------*/
2671 #define SWIG_init init_controls_
2672
2673 #define SWIG_name "_controls_"
2674
2675 #define SWIGVERSION 0x010329
2676
2677
2678 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2679 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2680
2681
2682 #include <stdexcept>
2683
2684
2685 namespace swig {
2686 class PyObject_ptr {
2687 protected:
2688 PyObject *_obj;
2689
2690 public:
2691 PyObject_ptr() :_obj(0)
2692 {
2693 }
2694
2695 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2696 {
2697 Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2701 {
2702 if (initial_ref) Py_XINCREF(_obj);
2703 }
2704
2705 PyObject_ptr & operator=(const PyObject_ptr& item)
2706 {
2707 Py_XINCREF(item._obj);
2708 Py_XDECREF(_obj);
2709 _obj = item._obj;
2710 return *this;
2711 }
2712
2713 ~PyObject_ptr()
2714 {
2715 Py_XDECREF(_obj);
2716 }
2717
2718 operator PyObject *() const
2719 {
2720 return _obj;
2721 }
2722
2723 PyObject *operator->() const
2724 {
2725 return _obj;
2726 }
2727 };
2728 }
2729
2730
2731 namespace swig {
2732 struct PyObject_var : PyObject_ptr {
2733 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2734
2735 PyObject_var & operator = (PyObject* obj)
2736 {
2737 Py_XDECREF(_obj);
2738 _obj = obj;
2739 return *this;
2740 }
2741 };
2742 }
2743
2744
2745 #include "wx/wxPython/wxPython.h"
2746 #include "wx/wxPython/pyclasses.h"
2747
2748 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2749 static const wxString wxPyEmptyString(wxEmptyString);
2750 static const wxString wxPyControlNameStr(wxControlNameStr);
2751
2752 const wxArrayString wxPyEmptyStringArray;
2753
2754 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2755
2756 #define SWIG_From_long PyInt_FromLong
2757
2758
2759 SWIGINTERNINLINE PyObject *
2760 SWIG_From_int (int value)
2761 {
2762 return SWIG_From_long (value);
2763 }
2764
2765
2766 #include <limits.h>
2767 #ifndef LLONG_MIN
2768 # define LLONG_MIN LONG_LONG_MIN
2769 #endif
2770 #ifndef LLONG_MAX
2771 # define LLONG_MAX LONG_LONG_MAX
2772 #endif
2773 #ifndef ULLONG_MAX
2774 # define ULLONG_MAX ULONG_LONG_MAX
2775 #endif
2776
2777
2778 SWIGINTERN int
2779 SWIG_AsVal_long (PyObject* obj, long* val)
2780 {
2781 if (PyNumber_Check(obj)) {
2782 if (val) *val = PyInt_AsLong(obj);
2783 return SWIG_OK;
2784 }
2785 return SWIG_TypeError;
2786 }
2787
2788
2789 SWIGINTERN int
2790 SWIG_AsVal_int (PyObject * obj, int *val)
2791 {
2792 long v;
2793 int res = SWIG_AsVal_long (obj, &v);
2794 if (SWIG_IsOK(res)) {
2795 if ((v < INT_MIN || v > INT_MAX)) {
2796 return SWIG_OverflowError;
2797 } else {
2798 if (val) *val = static_cast< int >(v);
2799 }
2800 }
2801 return res;
2802 }
2803
2804 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2805
2806 SWIGINTERN int
2807 SWIG_AsVal_bool (PyObject *obj, bool *val)
2808 {
2809 if (obj == Py_True) {
2810 if (val) *val = true;
2811 return SWIG_OK;
2812 } else if (obj == Py_False) {
2813 if (val) *val = false;
2814 return SWIG_OK;
2815 } else {
2816 long v = 0;
2817 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2818 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2819 return res;
2820 }
2821 }
2822
2823 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2824 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2825 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2826 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2827 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2828 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2829 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
2830
2831 #include <wx/checklst.h>
2832
2833 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2834 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2835 if (clientData)
2836 {
2837 wxPyClientData* data = new wxPyClientData(clientData);
2838 self->Insert(item, pos, data);
2839 }
2840 else
2841 self->Insert(item, pos);
2842 }
2843
2844 SWIGINTERN int
2845 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2846 {
2847 long v = 0;
2848 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2849 return SWIG_TypeError;
2850 }
2851 else if (val)
2852 *val = (unsigned long)v;
2853 return SWIG_OK;
2854 }
2855
2856
2857 SWIGINTERN int
2858 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2859 {
2860 unsigned long v;
2861 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2862 if (SWIG_IsOK(res)) {
2863 if ((v > UINT_MAX)) {
2864 return SWIG_OverflowError;
2865 } else {
2866 if (val) *val = static_cast< unsigned int >(v);
2867 }
2868 }
2869 return res;
2870 }
2871
2872 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2873 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2874 wxArrayInt lst;
2875 self->GetSelections(lst);
2876 PyObject *tup = PyTuple_New(lst.GetCount());
2877 for (size_t i=0; i<lst.GetCount(); i++)
2878 {
2879 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2880 }
2881 wxPyEndBlockThreads(blocked);
2882 return tup;
2883 }
2884 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetTextColour(c);
2888 #endif
2889 }
2890 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetBackgroundColour(c);
2894 #endif
2895 }
2896 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2897 #ifdef __WXMSW__
2898 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2899 self->GetItem(item)->SetFont(f);
2900 #endif
2901 }
2902 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2903 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2904 self->AppendText(text);
2905 }
2906 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2907 return self->GetValue().Mid(from, to - from);
2908 }
2909 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2910 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2911 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2912 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2913 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2914
2915 SWIGINTERNINLINE PyObject*
2916 SWIG_From_unsigned_SS_long (unsigned long value)
2917 {
2918 return (value > LONG_MAX) ?
2919 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2920 }
2921
2922
2923 SWIGINTERNINLINE PyObject *
2924 SWIG_From_size_t (size_t value)
2925 {
2926 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2927 }
2928
2929
2930 SWIGINTERNINLINE PyObject *
2931 SWIG_From_unsigned_SS_int (unsigned int value)
2932 {
2933 return SWIG_From_unsigned_SS_long (value);
2934 }
2935
2936
2937 #include <wx/slider.h>
2938
2939
2940 static const wxString wxPySliderNameStr(wxSliderNameStr);
2941 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2942
2943 #if !wxUSE_TOGGLEBTN
2944 // implement dummy items for platforms that don't have this class
2945
2946 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2947
2948 class wxToggleButton : public wxControl
2949 {
2950 public:
2951 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2952 const wxPoint&, const wxSize&, long,
2953 const wxValidator&, const wxString&)
2954 { wxPyRaiseNotImplemented(); }
2955
2956 wxToggleButton()
2957 { wxPyRaiseNotImplemented(); }
2958 };
2959 #endif
2960
2961 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2962
2963 SWIGINTERNINLINE int
2964 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2965 {
2966 unsigned long v;
2967 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2968 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2969 return res;
2970 }
2971
2972 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2973 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2974 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2975 if (udata) {
2976 Py_INCREF(udata->m_obj);
2977 return udata->m_obj;
2978 } else {
2979 Py_INCREF(Py_None);
2980 return Py_None;
2981 }
2982 }
2983 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2984 self->SetClientData(new wxPyUserData(clientData));
2985 }
2986 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2987 wxPyUserData* udata = NULL;
2988 if (clientData && clientData != Py_None)
2989 udata = new wxPyUserData(clientData);
2990 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2991 shortHelp, longHelp, udata);
2992 }
2993 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2994 wxPyUserData* udata = NULL;
2995 if (clientData && clientData != Py_None)
2996 udata = new wxPyUserData(clientData);
2997 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2998 shortHelp, longHelp, udata);
2999 }
3000 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
3001 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3002 if (udata) {
3003 Py_INCREF(udata->m_obj);
3004 return udata->m_obj;
3005 } else {
3006 Py_INCREF(Py_None);
3007 return Py_None;
3008 }
3009 }
3010 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3011 self->SetToolClientData(id, new wxPyUserData(clientData));
3012 }
3013
3014 #include <wx/listctrl.h>
3015
3016 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3017 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3018 // Python aware sorting function for wxPyListCtrl
3019 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3020 int retval = 0;
3021 PyObject* func = (PyObject*)funcPtr;
3022 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3023
3024 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3025 PyObject* result = PyEval_CallObject(func, args);
3026 Py_DECREF(args);
3027 if (result) {
3028 retval = PyInt_AsLong(result);
3029 Py_DECREF(result);
3030 }
3031
3032 wxPyEndBlockThreads(blocked);
3033 return retval;
3034 }
3035
3036 // C++ Version of a Python aware class
3037 class wxPyListCtrl : public wxListCtrl {
3038 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3039 public:
3040 wxPyListCtrl() : wxListCtrl() {}
3041 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3042 const wxPoint& pos,
3043 const wxSize& size,
3044 long style,
3045 const wxValidator& validator,
3046 const wxString& name) :
3047 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3048
3049 bool Create(wxWindow* parent, wxWindowID id,
3050 const wxPoint& pos,
3051 const wxSize& size,
3052 long style,
3053 const wxValidator& validator,
3054 const wxString& name) {
3055 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3056 }
3057
3058 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3059 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3060
3061 // use the virtual version to avoid a confusing assert in the base class
3062 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3063 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3064
3065 PYPRIVATE;
3066 };
3067
3068 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3069
3070 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3071 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3072 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3073 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3074
3075
3076 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3077 wxListItem item;
3078 item.SetMask( wxLIST_MASK_STATE |
3079 wxLIST_MASK_TEXT |
3080 wxLIST_MASK_IMAGE |
3081 wxLIST_MASK_DATA |
3082 wxLIST_SET_ITEM |
3083 wxLIST_MASK_WIDTH |
3084 wxLIST_MASK_FORMAT
3085 );
3086 if (self->GetColumn(col, item))
3087 return new wxListItem(item);
3088 else
3089 return NULL;
3090 }
3091 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3092 wxListItem* info = new wxListItem;
3093 info->m_itemId = itemId;
3094 info->m_col = col;
3095 info->m_mask = 0xFFFF;
3096 self->GetItem(*info);
3097 return info;
3098 }
3099 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3100 wxPoint pos;
3101 self->GetItemPosition(item, pos);
3102 return pos;
3103 }
3104 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3105 wxRect rect;
3106 self->GetItemRect(item, rect, code);
3107 return rect;
3108 }
3109 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3110 if (!PyCallable_Check(func))
3111 return false;
3112 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3113 }
3114 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3115
3116 return self;
3117
3118
3119
3120 }
3121
3122 #include <wx/treectrl.h>
3123 #include "wx/wxPython/pytree.h"
3124
3125 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3126 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3127 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3128 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3129
3130 static wxTreeItemId wxNullTreeItemId;
3131
3132 // C++ version of Python aware wxTreeCtrl
3133 class wxPyTreeCtrl : public wxTreeCtrl {
3134 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3135 public:
3136 wxPyTreeCtrl() : wxTreeCtrl() {}
3137 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3138 const wxPoint& pos,
3139 const wxSize& size,
3140 long style,
3141 const wxValidator& validator,
3142 const wxString& name) :
3143 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3144
3145 bool Create(wxWindow *parent, wxWindowID id,
3146 const wxPoint& pos,
3147 const wxSize& size,
3148 long style,
3149 const wxValidator& validator,
3150 const wxString& name) {
3151 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3152 }
3153
3154
3155 int OnCompareItems(const wxTreeItemId& item1,
3156 const wxTreeItemId& item2) {
3157 int rval = 0;
3158 bool found;
3159 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3160 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3161 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3162 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3163 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3164 Py_DECREF(o1);
3165 Py_DECREF(o2);
3166 }
3167 wxPyEndBlockThreads(blocked);
3168 if (! found)
3169 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3170 return rval;
3171 }
3172 PYPRIVATE;
3173 };
3174
3175 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3176
3177
3178 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3179 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3180 if (data == NULL) {
3181 data = new wxPyTreeItemData();
3182 data->SetId(item); // set the id
3183 self->SetItemData(item, data);
3184 }
3185 return data;
3186 }
3187 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3188 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3189 if (data == NULL) {
3190 data = new wxPyTreeItemData();
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
3194 return data->GetData();
3195 }
3196 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3197 data->SetId(item); // set the id
3198 self->SetItemData(item, data);
3199 }
3200 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3201 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3202 if (data == NULL) {
3203 data = new wxPyTreeItemData(obj);
3204 data->SetId(item); // set the id
3205 self->SetItemData(item, data);
3206 } else
3207 data->SetData(obj);
3208 }
3209 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3210 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3211 PyObject* rval = PyList_New(0);
3212 wxArrayTreeItemIds array;
3213 size_t num, x;
3214 num = self->GetSelections(array);
3215 for (x=0; x < num; x++) {
3216 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3217 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3218 PyList_Append(rval, item);
3219 Py_DECREF(item);
3220 }
3221 wxPyEndBlockThreads(blocked);
3222 return rval;
3223 }
3224 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3225 void* cookie = 0;
3226 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3227 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3228 PyObject* tup = PyTuple_New(2);
3229 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3230 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3231 wxPyEndBlockThreads(blocked);
3232 return tup;
3233 }
3234 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3235 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3236 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3237 PyObject* tup = PyTuple_New(2);
3238 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3239 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3240 wxPyEndBlockThreads(blocked);
3241 return tup;
3242 }
3243 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3244 wxRect rect;
3245 if (self->GetBoundingRect(item, rect, textOnly)) {
3246 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3247 wxRect* r = new wxRect(rect);
3248 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3249 wxPyEndBlockThreads(blocked);
3250 return val;
3251 }
3252 else
3253 RETURN_NONE();
3254 }
3255 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3256
3257 SWIGINTERNINLINE PyObject*
3258 SWIG_From_bool (bool value)
3259 {
3260 return PyBool_FromLong(value ? 1 : 0);
3261 }
3262
3263 // C++ version of Python aware wxControl
3264 class wxPyControl : public wxControl
3265 {
3266 DECLARE_DYNAMIC_CLASS(wxPyControl)
3267 public:
3268 wxPyControl() : wxControl() {}
3269 wxPyControl(wxWindow* parent, const wxWindowID id,
3270 const wxPoint& pos = wxDefaultPosition,
3271 const wxSize& size = wxDefaultSize,
3272 long style = 0,
3273 const wxValidator& validator=wxDefaultValidator,
3274 const wxString& name = wxPyControlNameStr)
3275 : wxControl(parent, id, pos, size, style, validator, name) {}
3276
3277
3278 bool DoEraseBackground(wxDC* dc) {
3279 #ifdef __WXMSW__
3280 return wxWindow::DoEraseBackground(dc->GetHDC());
3281 #else
3282 dc->SetBackground(wxBrush(GetBackgroundColour()));
3283 dc->Clear();
3284 return true;
3285 #endif
3286 }
3287
3288 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3289 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3290 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3291 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3292
3293 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3295 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3296
3297 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3298 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3299
3300 DEC_PYCALLBACK__(InitDialog);
3301 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3302 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3303 DEC_PYCALLBACK_BOOL_(Validate);
3304
3305 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3306 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3307 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3308
3309 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3310 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3311
3312 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3313 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3314
3315 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3316
3317 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3318
3319 PYPRIVATE;
3320 };
3321
3322 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3323
3324 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3325 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3326 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3327 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3328
3329 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3330 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3331 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3332
3333 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3334 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3335
3336 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3337 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3338 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3339 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3340
3341 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3342 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3343 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3344
3345 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3346 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3347
3348 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3349 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3350
3351 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3352
3353 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3354
3355
3356
3357 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3358
3359 #include <wx/generic/dragimgg.h>
3360
3361 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3362 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3363 wxDateTime rv;
3364 self->GetRange(&rv, NULL);
3365 return rv;
3366 }
3367 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3368 wxDateTime rv;
3369 self->GetRange(NULL, &rv);
3370 return rv;
3371 }
3372 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3373 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3374 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3375 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3376 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3377 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3378 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3379 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3380 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3381 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
3382
3383 #if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL
3384 // define a dummy class for builds that don't have wxSearchCtrl
3385
3386 enum {
3387 wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
3388 wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
3389 };
3390
3391 class wxSearchCtrl : public wxTextCtrl
3392 {
3393 public:
3394 wxSearchCtrl() { wxPyRaiseNotImplemented(); }
3395 wxSearchCtrl(wxWindow*, wxWindowID,
3396 const wxString&,
3397 const wxPoint&,
3398 const wxSize&,
3399 long style,
3400 const wxValidator&,
3401 const wxString& name)
3402 { wxPyRaiseNotImplemented(); }
3403
3404 bool Create( wxWindow*, wxWindowID,
3405 const wxString&,
3406 const wxPoint&,
3407 const wxSize&,
3408 long style,
3409 const wxValidator&,
3410 const wxString& name) {}
3411
3412 virtual void SetMenu( wxMenu* ) {}
3413 virtual wxMenu* GetMenu() { return NULL; }
3414
3415 // get/set search options
3416 // ----------------------
3417 virtual void ShowSearchButton( bool ) {}
3418 virtual bool IsSearchButtonVisible() const { return false; }
3419
3420 virtual void ShowCancelButton( bool ) {}
3421 virtual bool IsCancelButtonVisible() const { return false; }
3422
3423 virtual void SetDescriptiveText(const wxString& text);
3424 virtual wxString GetDescriptiveText() const;
3425 };
3426 #endif
3427
3428 SWIGINTERN void wxSearchCtrl_SetSearchBitmap(wxSearchCtrl *self,wxBitmap const &){}
3429 SWIGINTERN void wxSearchCtrl_SetSearchMenuBitmap(wxSearchCtrl *self,wxBitmap const &){}
3430 SWIGINTERN void wxSearchCtrl_SetCancelBitmap(wxSearchCtrl *self,wxBitmap const &){}
3431 #ifdef __cplusplus
3432 extern "C" {
3433 #endif
3434 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3435 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3436 return 1;
3437 }
3438
3439
3440 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3441 PyObject *pyobj = 0;
3442
3443 {
3444 #if wxUSE_UNICODE
3445 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3446 #else
3447 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3448 #endif
3449 }
3450 return pyobj;
3451 }
3452
3453
3454 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3455 PyObject *resultobj = 0;
3456 wxWindow *arg1 = (wxWindow *) 0 ;
3457 int arg2 = (int) -1 ;
3458 wxString const &arg3_defvalue = wxPyEmptyString ;
3459 wxString *arg3 = (wxString *) &arg3_defvalue ;
3460 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3461 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3462 wxSize const &arg5_defvalue = wxDefaultSize ;
3463 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3464 long arg6 = (long) 0 ;
3465 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3466 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3467 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3468 wxString *arg8 = (wxString *) &arg8_defvalue ;
3469 wxButton *result = 0 ;
3470 void *argp1 = 0 ;
3471 int res1 = 0 ;
3472 int val2 ;
3473 int ecode2 = 0 ;
3474 bool temp3 = false ;
3475 wxPoint temp4 ;
3476 wxSize temp5 ;
3477 long val6 ;
3478 int ecode6 = 0 ;
3479 void *argp7 = 0 ;
3480 int res7 = 0 ;
3481 bool temp8 = false ;
3482 PyObject * obj0 = 0 ;
3483 PyObject * obj1 = 0 ;
3484 PyObject * obj2 = 0 ;
3485 PyObject * obj3 = 0 ;
3486 PyObject * obj4 = 0 ;
3487 PyObject * obj5 = 0 ;
3488 PyObject * obj6 = 0 ;
3489 PyObject * obj7 = 0 ;
3490 char * kwnames[] = {
3491 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3492 };
3493
3494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3496 if (!SWIG_IsOK(res1)) {
3497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3498 }
3499 arg1 = reinterpret_cast< wxWindow * >(argp1);
3500 if (obj1) {
3501 ecode2 = SWIG_AsVal_int(obj1, &val2);
3502 if (!SWIG_IsOK(ecode2)) {
3503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3504 }
3505 arg2 = static_cast< int >(val2);
3506 }
3507 if (obj2) {
3508 {
3509 arg3 = wxString_in_helper(obj2);
3510 if (arg3 == NULL) SWIG_fail;
3511 temp3 = true;
3512 }
3513 }
3514 if (obj3) {
3515 {
3516 arg4 = &temp4;
3517 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3518 }
3519 }
3520 if (obj4) {
3521 {
3522 arg5 = &temp5;
3523 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3524 }
3525 }
3526 if (obj5) {
3527 ecode6 = SWIG_AsVal_long(obj5, &val6);
3528 if (!SWIG_IsOK(ecode6)) {
3529 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3530 }
3531 arg6 = static_cast< long >(val6);
3532 }
3533 if (obj6) {
3534 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3535 if (!SWIG_IsOK(res7)) {
3536 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3537 }
3538 if (!argp7) {
3539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3540 }
3541 arg7 = reinterpret_cast< wxValidator * >(argp7);
3542 }
3543 if (obj7) {
3544 {
3545 arg8 = wxString_in_helper(obj7);
3546 if (arg8 == NULL) SWIG_fail;
3547 temp8 = true;
3548 }
3549 }
3550 {
3551 if (!wxPyCheckForApp()) SWIG_fail;
3552 PyThreadState* __tstate = wxPyBeginAllowThreads();
3553 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3554 wxPyEndAllowThreads(__tstate);
3555 if (PyErr_Occurred()) SWIG_fail;
3556 }
3557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3558 {
3559 if (temp3)
3560 delete arg3;
3561 }
3562 {
3563 if (temp8)
3564 delete arg8;
3565 }
3566 return resultobj;
3567 fail:
3568 {
3569 if (temp3)
3570 delete arg3;
3571 }
3572 {
3573 if (temp8)
3574 delete arg8;
3575 }
3576 return NULL;
3577 }
3578
3579
3580 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3581 PyObject *resultobj = 0;
3582 wxButton *result = 0 ;
3583
3584 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3585 {
3586 if (!wxPyCheckForApp()) SWIG_fail;
3587 PyThreadState* __tstate = wxPyBeginAllowThreads();
3588 result = (wxButton *)new wxButton();
3589 wxPyEndAllowThreads(__tstate);
3590 if (PyErr_Occurred()) SWIG_fail;
3591 }
3592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3593 return resultobj;
3594 fail:
3595 return NULL;
3596 }
3597
3598
3599 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3600 PyObject *resultobj = 0;
3601 wxButton *arg1 = (wxButton *) 0 ;
3602 wxWindow *arg2 = (wxWindow *) 0 ;
3603 int arg3 = (int) -1 ;
3604 wxString const &arg4_defvalue = wxPyEmptyString ;
3605 wxString *arg4 = (wxString *) &arg4_defvalue ;
3606 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3607 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3608 wxSize const &arg6_defvalue = wxDefaultSize ;
3609 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3610 long arg7 = (long) 0 ;
3611 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3612 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3613 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3614 wxString *arg9 = (wxString *) &arg9_defvalue ;
3615 bool result;
3616 void *argp1 = 0 ;
3617 int res1 = 0 ;
3618 void *argp2 = 0 ;
3619 int res2 = 0 ;
3620 int val3 ;
3621 int ecode3 = 0 ;
3622 bool temp4 = false ;
3623 wxPoint temp5 ;
3624 wxSize temp6 ;
3625 long val7 ;
3626 int ecode7 = 0 ;
3627 void *argp8 = 0 ;
3628 int res8 = 0 ;
3629 bool temp9 = false ;
3630 PyObject * obj0 = 0 ;
3631 PyObject * obj1 = 0 ;
3632 PyObject * obj2 = 0 ;
3633 PyObject * obj3 = 0 ;
3634 PyObject * obj4 = 0 ;
3635 PyObject * obj5 = 0 ;
3636 PyObject * obj6 = 0 ;
3637 PyObject * obj7 = 0 ;
3638 PyObject * obj8 = 0 ;
3639 char * kwnames[] = {
3640 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3641 };
3642
3643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3645 if (!SWIG_IsOK(res1)) {
3646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3647 }
3648 arg1 = reinterpret_cast< wxButton * >(argp1);
3649 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3650 if (!SWIG_IsOK(res2)) {
3651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3652 }
3653 arg2 = reinterpret_cast< wxWindow * >(argp2);
3654 if (obj2) {
3655 ecode3 = SWIG_AsVal_int(obj2, &val3);
3656 if (!SWIG_IsOK(ecode3)) {
3657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3658 }
3659 arg3 = static_cast< int >(val3);
3660 }
3661 if (obj3) {
3662 {
3663 arg4 = wxString_in_helper(obj3);
3664 if (arg4 == NULL) SWIG_fail;
3665 temp4 = true;
3666 }
3667 }
3668 if (obj4) {
3669 {
3670 arg5 = &temp5;
3671 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3672 }
3673 }
3674 if (obj5) {
3675 {
3676 arg6 = &temp6;
3677 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3678 }
3679 }
3680 if (obj6) {
3681 ecode7 = SWIG_AsVal_long(obj6, &val7);
3682 if (!SWIG_IsOK(ecode7)) {
3683 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3684 }
3685 arg7 = static_cast< long >(val7);
3686 }
3687 if (obj7) {
3688 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3689 if (!SWIG_IsOK(res8)) {
3690 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3691 }
3692 if (!argp8) {
3693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3694 }
3695 arg8 = reinterpret_cast< wxValidator * >(argp8);
3696 }
3697 if (obj8) {
3698 {
3699 arg9 = wxString_in_helper(obj8);
3700 if (arg9 == NULL) SWIG_fail;
3701 temp9 = true;
3702 }
3703 }
3704 {
3705 PyThreadState* __tstate = wxPyBeginAllowThreads();
3706 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3707 wxPyEndAllowThreads(__tstate);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 }
3710 {
3711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3712 }
3713 {
3714 if (temp4)
3715 delete arg4;
3716 }
3717 {
3718 if (temp9)
3719 delete arg9;
3720 }
3721 return resultobj;
3722 fail:
3723 {
3724 if (temp4)
3725 delete arg4;
3726 }
3727 {
3728 if (temp9)
3729 delete arg9;
3730 }
3731 return NULL;
3732 }
3733
3734
3735 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3736 PyObject *resultobj = 0;
3737 wxButton *arg1 = (wxButton *) 0 ;
3738 void *argp1 = 0 ;
3739 int res1 = 0 ;
3740 PyObject *swig_obj[1] ;
3741
3742 if (!args) SWIG_fail;
3743 swig_obj[0] = args;
3744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3745 if (!SWIG_IsOK(res1)) {
3746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3747 }
3748 arg1 = reinterpret_cast< wxButton * >(argp1);
3749 {
3750 PyThreadState* __tstate = wxPyBeginAllowThreads();
3751 (arg1)->SetDefault();
3752 wxPyEndAllowThreads(__tstate);
3753 if (PyErr_Occurred()) SWIG_fail;
3754 }
3755 resultobj = SWIG_Py_Void();
3756 return resultobj;
3757 fail:
3758 return NULL;
3759 }
3760
3761
3762 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3763 PyObject *resultobj = 0;
3764 wxSize result;
3765
3766 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3767 {
3768 PyThreadState* __tstate = wxPyBeginAllowThreads();
3769 result = wxButton::GetDefaultSize();
3770 wxPyEndAllowThreads(__tstate);
3771 if (PyErr_Occurred()) SWIG_fail;
3772 }
3773 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3774 return resultobj;
3775 fail:
3776 return NULL;
3777 }
3778
3779
3780 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3781 PyObject *resultobj = 0;
3782 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3783 SwigValueWrapper<wxVisualAttributes > result;
3784 int val1 ;
3785 int ecode1 = 0 ;
3786 PyObject * obj0 = 0 ;
3787 char * kwnames[] = {
3788 (char *) "variant", NULL
3789 };
3790
3791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3792 if (obj0) {
3793 ecode1 = SWIG_AsVal_int(obj0, &val1);
3794 if (!SWIG_IsOK(ecode1)) {
3795 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3796 }
3797 arg1 = static_cast< wxWindowVariant >(val1);
3798 }
3799 {
3800 if (!wxPyCheckForApp()) SWIG_fail;
3801 PyThreadState* __tstate = wxPyBeginAllowThreads();
3802 result = wxButton::GetClassDefaultAttributes(arg1);
3803 wxPyEndAllowThreads(__tstate);
3804 if (PyErr_Occurred()) SWIG_fail;
3805 }
3806 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3807 return resultobj;
3808 fail:
3809 return NULL;
3810 }
3811
3812
3813 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3814 PyObject *obj;
3815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3816 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3817 return SWIG_Py_Void();
3818 }
3819
3820 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3821 return SWIG_Python_InitShadowInstance(args);
3822 }
3823
3824 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3825 PyObject *resultobj = 0;
3826 wxWindow *arg1 = (wxWindow *) 0 ;
3827 int arg2 = (int) -1 ;
3828 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3829 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3830 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3831 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3832 wxSize const &arg5_defvalue = wxDefaultSize ;
3833 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3834 long arg6 = (long) wxBU_AUTODRAW ;
3835 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3836 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3837 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3838 wxString *arg8 = (wxString *) &arg8_defvalue ;
3839 wxBitmapButton *result = 0 ;
3840 void *argp1 = 0 ;
3841 int res1 = 0 ;
3842 int val2 ;
3843 int ecode2 = 0 ;
3844 void *argp3 = 0 ;
3845 int res3 = 0 ;
3846 wxPoint temp4 ;
3847 wxSize temp5 ;
3848 long val6 ;
3849 int ecode6 = 0 ;
3850 void *argp7 = 0 ;
3851 int res7 = 0 ;
3852 bool temp8 = false ;
3853 PyObject * obj0 = 0 ;
3854 PyObject * obj1 = 0 ;
3855 PyObject * obj2 = 0 ;
3856 PyObject * obj3 = 0 ;
3857 PyObject * obj4 = 0 ;
3858 PyObject * obj5 = 0 ;
3859 PyObject * obj6 = 0 ;
3860 PyObject * obj7 = 0 ;
3861 char * kwnames[] = {
3862 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3863 };
3864
3865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3867 if (!SWIG_IsOK(res1)) {
3868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3869 }
3870 arg1 = reinterpret_cast< wxWindow * >(argp1);
3871 if (obj1) {
3872 ecode2 = SWIG_AsVal_int(obj1, &val2);
3873 if (!SWIG_IsOK(ecode2)) {
3874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3875 }
3876 arg2 = static_cast< int >(val2);
3877 }
3878 if (obj2) {
3879 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3880 if (!SWIG_IsOK(res3)) {
3881 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3882 }
3883 if (!argp3) {
3884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3885 }
3886 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3887 }
3888 if (obj3) {
3889 {
3890 arg4 = &temp4;
3891 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3892 }
3893 }
3894 if (obj4) {
3895 {
3896 arg5 = &temp5;
3897 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3898 }
3899 }
3900 if (obj5) {
3901 ecode6 = SWIG_AsVal_long(obj5, &val6);
3902 if (!SWIG_IsOK(ecode6)) {
3903 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3904 }
3905 arg6 = static_cast< long >(val6);
3906 }
3907 if (obj6) {
3908 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3909 if (!SWIG_IsOK(res7)) {
3910 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3911 }
3912 if (!argp7) {
3913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3914 }
3915 arg7 = reinterpret_cast< wxValidator * >(argp7);
3916 }
3917 if (obj7) {
3918 {
3919 arg8 = wxString_in_helper(obj7);
3920 if (arg8 == NULL) SWIG_fail;
3921 temp8 = true;
3922 }
3923 }
3924 {
3925 if (!wxPyCheckForApp()) SWIG_fail;
3926 PyThreadState* __tstate = wxPyBeginAllowThreads();
3927 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3928 wxPyEndAllowThreads(__tstate);
3929 if (PyErr_Occurred()) SWIG_fail;
3930 }
3931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3932 {
3933 if (temp8)
3934 delete arg8;
3935 }
3936 return resultobj;
3937 fail:
3938 {
3939 if (temp8)
3940 delete arg8;
3941 }
3942 return NULL;
3943 }
3944
3945
3946 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3947 PyObject *resultobj = 0;
3948 wxBitmapButton *result = 0 ;
3949
3950 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3951 {
3952 if (!wxPyCheckForApp()) SWIG_fail;
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
3954 result = (wxBitmapButton *)new wxBitmapButton();
3955 wxPyEndAllowThreads(__tstate);
3956 if (PyErr_Occurred()) SWIG_fail;
3957 }
3958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3959 return resultobj;
3960 fail:
3961 return NULL;
3962 }
3963
3964
3965 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3966 PyObject *resultobj = 0;
3967 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3968 wxWindow *arg2 = (wxWindow *) 0 ;
3969 int arg3 = (int) -1 ;
3970 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3971 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3972 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3973 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3974 wxSize const &arg6_defvalue = wxDefaultSize ;
3975 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3976 long arg7 = (long) wxBU_AUTODRAW ;
3977 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3978 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3979 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3980 wxString *arg9 = (wxString *) &arg9_defvalue ;
3981 bool result;
3982 void *argp1 = 0 ;
3983 int res1 = 0 ;
3984 void *argp2 = 0 ;
3985 int res2 = 0 ;
3986 int val3 ;
3987 int ecode3 = 0 ;
3988 void *argp4 = 0 ;
3989 int res4 = 0 ;
3990 wxPoint temp5 ;
3991 wxSize temp6 ;
3992 long val7 ;
3993 int ecode7 = 0 ;
3994 void *argp8 = 0 ;
3995 int res8 = 0 ;
3996 bool temp9 = false ;
3997 PyObject * obj0 = 0 ;
3998 PyObject * obj1 = 0 ;
3999 PyObject * obj2 = 0 ;
4000 PyObject * obj3 = 0 ;
4001 PyObject * obj4 = 0 ;
4002 PyObject * obj5 = 0 ;
4003 PyObject * obj6 = 0 ;
4004 PyObject * obj7 = 0 ;
4005 PyObject * obj8 = 0 ;
4006 char * kwnames[] = {
4007 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4008 };
4009
4010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4012 if (!SWIG_IsOK(res1)) {
4013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4014 }
4015 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4016 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4017 if (!SWIG_IsOK(res2)) {
4018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4019 }
4020 arg2 = reinterpret_cast< wxWindow * >(argp2);
4021 if (obj2) {
4022 ecode3 = SWIG_AsVal_int(obj2, &val3);
4023 if (!SWIG_IsOK(ecode3)) {
4024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
4025 }
4026 arg3 = static_cast< int >(val3);
4027 }
4028 if (obj3) {
4029 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
4030 if (!SWIG_IsOK(res4)) {
4031 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4032 }
4033 if (!argp4) {
4034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4035 }
4036 arg4 = reinterpret_cast< wxBitmap * >(argp4);
4037 }
4038 if (obj4) {
4039 {
4040 arg5 = &temp5;
4041 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4042 }
4043 }
4044 if (obj5) {
4045 {
4046 arg6 = &temp6;
4047 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4048 }
4049 }
4050 if (obj6) {
4051 ecode7 = SWIG_AsVal_long(obj6, &val7);
4052 if (!SWIG_IsOK(ecode7)) {
4053 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4054 }
4055 arg7 = static_cast< long >(val7);
4056 }
4057 if (obj7) {
4058 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4059 if (!SWIG_IsOK(res8)) {
4060 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4061 }
4062 if (!argp8) {
4063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4064 }
4065 arg8 = reinterpret_cast< wxValidator * >(argp8);
4066 }
4067 if (obj8) {
4068 {
4069 arg9 = wxString_in_helper(obj8);
4070 if (arg9 == NULL) SWIG_fail;
4071 temp9 = true;
4072 }
4073 }
4074 {
4075 PyThreadState* __tstate = wxPyBeginAllowThreads();
4076 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4077 wxPyEndAllowThreads(__tstate);
4078 if (PyErr_Occurred()) SWIG_fail;
4079 }
4080 {
4081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4082 }
4083 {
4084 if (temp9)
4085 delete arg9;
4086 }
4087 return resultobj;
4088 fail:
4089 {
4090 if (temp9)
4091 delete arg9;
4092 }
4093 return NULL;
4094 }
4095
4096
4097 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *resultobj = 0;
4099 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4100 wxBitmap result;
4101 void *argp1 = 0 ;
4102 int res1 = 0 ;
4103 PyObject *swig_obj[1] ;
4104
4105 if (!args) SWIG_fail;
4106 swig_obj[0] = args;
4107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4108 if (!SWIG_IsOK(res1)) {
4109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4110 }
4111 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (arg1)->GetBitmapLabel();
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4119 return resultobj;
4120 fail:
4121 return NULL;
4122 }
4123
4124
4125 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4128 wxBitmap result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 PyObject *swig_obj[1] ;
4132
4133 if (!args) SWIG_fail;
4134 swig_obj[0] = args;
4135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4138 }
4139 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 result = (arg1)->GetBitmapDisabled();
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4147 return resultobj;
4148 fail:
4149 return NULL;
4150 }
4151
4152
4153 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4156 wxBitmap result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4166 }
4167 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (arg1)->GetBitmapFocus();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4175 return resultobj;
4176 fail:
4177 return NULL;
4178 }
4179
4180
4181 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4182 PyObject *resultobj = 0;
4183 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4184 wxBitmap result;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 PyObject *swig_obj[1] ;
4188
4189 if (!args) SWIG_fail;
4190 swig_obj[0] = args;
4191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4192 if (!SWIG_IsOK(res1)) {
4193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4194 }
4195 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4196 {
4197 PyThreadState* __tstate = wxPyBeginAllowThreads();
4198 result = (arg1)->GetBitmapSelected();
4199 wxPyEndAllowThreads(__tstate);
4200 if (PyErr_Occurred()) SWIG_fail;
4201 }
4202 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4203 return resultobj;
4204 fail:
4205 return NULL;
4206 }
4207
4208
4209 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4210 PyObject *resultobj = 0;
4211 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4212 wxBitmap result;
4213 void *argp1 = 0 ;
4214 int res1 = 0 ;
4215 PyObject *swig_obj[1] ;
4216
4217 if (!args) SWIG_fail;
4218 swig_obj[0] = args;
4219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4220 if (!SWIG_IsOK(res1)) {
4221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4222 }
4223 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 result = (arg1)->GetBitmapHover();
4227 wxPyEndAllowThreads(__tstate);
4228 if (PyErr_Occurred()) SWIG_fail;
4229 }
4230 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4231 return resultobj;
4232 fail:
4233 return NULL;
4234 }
4235
4236
4237 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4238 PyObject *resultobj = 0;
4239 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4240 wxBitmap *arg2 = 0 ;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
4243 void *argp2 = 0 ;
4244 int res2 = 0 ;
4245 PyObject * obj0 = 0 ;
4246 PyObject * obj1 = 0 ;
4247 char * kwnames[] = {
4248 (char *) "self",(char *) "bitmap", NULL
4249 };
4250
4251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4253 if (!SWIG_IsOK(res1)) {
4254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4255 }
4256 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4258 if (!SWIG_IsOK(res2)) {
4259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4260 }
4261 if (!argp2) {
4262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4263 }
4264 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4265 {
4266 PyThreadState* __tstate = wxPyBeginAllowThreads();
4267 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4268 wxPyEndAllowThreads(__tstate);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 resultobj = SWIG_Py_Void();
4272 return resultobj;
4273 fail:
4274 return NULL;
4275 }
4276
4277
4278 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4279 PyObject *resultobj = 0;
4280 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4281 wxBitmap *arg2 = 0 ;
4282 void *argp1 = 0 ;
4283 int res1 = 0 ;
4284 void *argp2 = 0 ;
4285 int res2 = 0 ;
4286 PyObject * obj0 = 0 ;
4287 PyObject * obj1 = 0 ;
4288 char * kwnames[] = {
4289 (char *) "self",(char *) "bitmap", NULL
4290 };
4291
4292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4294 if (!SWIG_IsOK(res1)) {
4295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4296 }
4297 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4299 if (!SWIG_IsOK(res2)) {
4300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4301 }
4302 if (!argp2) {
4303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4304 }
4305 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4306 {
4307 PyThreadState* __tstate = wxPyBeginAllowThreads();
4308 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 resultobj = SWIG_Py_Void();
4313 return resultobj;
4314 fail:
4315 return NULL;
4316 }
4317
4318
4319 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4320 PyObject *resultobj = 0;
4321 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4322 wxBitmap *arg2 = 0 ;
4323 void *argp1 = 0 ;
4324 int res1 = 0 ;
4325 void *argp2 = 0 ;
4326 int res2 = 0 ;
4327 PyObject * obj0 = 0 ;
4328 PyObject * obj1 = 0 ;
4329 char * kwnames[] = {
4330 (char *) "self",(char *) "bitmap", NULL
4331 };
4332
4333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4335 if (!SWIG_IsOK(res1)) {
4336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4337 }
4338 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4340 if (!SWIG_IsOK(res2)) {
4341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4342 }
4343 if (!argp2) {
4344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4345 }
4346 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_Py_Void();
4354 return resultobj;
4355 fail:
4356 return NULL;
4357 }
4358
4359
4360 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4361 PyObject *resultobj = 0;
4362 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4363 wxBitmap *arg2 = 0 ;
4364 void *argp1 = 0 ;
4365 int res1 = 0 ;
4366 void *argp2 = 0 ;
4367 int res2 = 0 ;
4368 PyObject * obj0 = 0 ;
4369 PyObject * obj1 = 0 ;
4370 char * kwnames[] = {
4371 (char *) "self",(char *) "bitmap", NULL
4372 };
4373
4374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4376 if (!SWIG_IsOK(res1)) {
4377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4378 }
4379 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4381 if (!SWIG_IsOK(res2)) {
4382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4383 }
4384 if (!argp2) {
4385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4386 }
4387 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4388 {
4389 PyThreadState* __tstate = wxPyBeginAllowThreads();
4390 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4391 wxPyEndAllowThreads(__tstate);
4392 if (PyErr_Occurred()) SWIG_fail;
4393 }
4394 resultobj = SWIG_Py_Void();
4395 return resultobj;
4396 fail:
4397 return NULL;
4398 }
4399
4400
4401 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4402 PyObject *resultobj = 0;
4403 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4404 wxBitmap *arg2 = 0 ;
4405 void *argp1 = 0 ;
4406 int res1 = 0 ;
4407 void *argp2 = 0 ;
4408 int res2 = 0 ;
4409 PyObject * obj0 = 0 ;
4410 PyObject * obj1 = 0 ;
4411 char * kwnames[] = {
4412 (char *) "self",(char *) "hover", NULL
4413 };
4414
4415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4417 if (!SWIG_IsOK(res1)) {
4418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4419 }
4420 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4421 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4422 if (!SWIG_IsOK(res2)) {
4423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4424 }
4425 if (!argp2) {
4426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4427 }
4428 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4429 {
4430 PyThreadState* __tstate = wxPyBeginAllowThreads();
4431 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) SWIG_fail;
4434 }
4435 resultobj = SWIG_Py_Void();
4436 return resultobj;
4437 fail:
4438 return NULL;
4439 }
4440
4441
4442 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4443 PyObject *resultobj = 0;
4444 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4445 int arg2 ;
4446 int arg3 ;
4447 void *argp1 = 0 ;
4448 int res1 = 0 ;
4449 int val2 ;
4450 int ecode2 = 0 ;
4451 int val3 ;
4452 int ecode3 = 0 ;
4453 PyObject * obj0 = 0 ;
4454 PyObject * obj1 = 0 ;
4455 PyObject * obj2 = 0 ;
4456 char * kwnames[] = {
4457 (char *) "self",(char *) "x",(char *) "y", NULL
4458 };
4459
4460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4462 if (!SWIG_IsOK(res1)) {
4463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4464 }
4465 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4466 ecode2 = SWIG_AsVal_int(obj1, &val2);
4467 if (!SWIG_IsOK(ecode2)) {
4468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4469 }
4470 arg2 = static_cast< int >(val2);
4471 ecode3 = SWIG_AsVal_int(obj2, &val3);
4472 if (!SWIG_IsOK(ecode3)) {
4473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4474 }
4475 arg3 = static_cast< int >(val3);
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 (arg1)->SetMargins(arg2,arg3);
4479 wxPyEndAllowThreads(__tstate);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 }
4482 resultobj = SWIG_Py_Void();
4483 return resultobj;
4484 fail:
4485 return NULL;
4486 }
4487
4488
4489 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4490 PyObject *resultobj = 0;
4491 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4492 int result;
4493 void *argp1 = 0 ;
4494 int res1 = 0 ;
4495 PyObject *swig_obj[1] ;
4496
4497 if (!args) SWIG_fail;
4498 swig_obj[0] = args;
4499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4500 if (!SWIG_IsOK(res1)) {
4501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4502 }
4503 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 resultobj = SWIG_From_int(static_cast< int >(result));
4511 return resultobj;
4512 fail:
4513 return NULL;
4514 }
4515
4516
4517 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4518 PyObject *resultobj = 0;
4519 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4520 int result;
4521 void *argp1 = 0 ;
4522 int res1 = 0 ;
4523 PyObject *swig_obj[1] ;
4524
4525 if (!args) SWIG_fail;
4526 swig_obj[0] = args;
4527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4528 if (!SWIG_IsOK(res1)) {
4529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4530 }
4531 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4532 {
4533 PyThreadState* __tstate = wxPyBeginAllowThreads();
4534 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4535 wxPyEndAllowThreads(__tstate);
4536 if (PyErr_Occurred()) SWIG_fail;
4537 }
4538 resultobj = SWIG_From_int(static_cast< int >(result));
4539 return resultobj;
4540 fail:
4541 return NULL;
4542 }
4543
4544
4545 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4546 PyObject *obj;
4547 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4548 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4549 return SWIG_Py_Void();
4550 }
4551
4552 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4553 return SWIG_Python_InitShadowInstance(args);
4554 }
4555
4556 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4557 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4558 return 1;
4559 }
4560
4561
4562 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4563 PyObject *pyobj = 0;
4564
4565 {
4566 #if wxUSE_UNICODE
4567 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4568 #else
4569 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4570 #endif
4571 }
4572 return pyobj;
4573 }
4574
4575
4576 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4577 PyObject *resultobj = 0;
4578 wxWindow *arg1 = (wxWindow *) 0 ;
4579 int arg2 = (int) -1 ;
4580 wxString const &arg3_defvalue = wxPyEmptyString ;
4581 wxString *arg3 = (wxString *) &arg3_defvalue ;
4582 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4583 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4584 wxSize const &arg5_defvalue = wxDefaultSize ;
4585 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4586 long arg6 = (long) 0 ;
4587 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4588 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4589 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4590 wxString *arg8 = (wxString *) &arg8_defvalue ;
4591 wxCheckBox *result = 0 ;
4592 void *argp1 = 0 ;
4593 int res1 = 0 ;
4594 int val2 ;
4595 int ecode2 = 0 ;
4596 bool temp3 = false ;
4597 wxPoint temp4 ;
4598 wxSize temp5 ;
4599 long val6 ;
4600 int ecode6 = 0 ;
4601 void *argp7 = 0 ;
4602 int res7 = 0 ;
4603 bool temp8 = false ;
4604 PyObject * obj0 = 0 ;
4605 PyObject * obj1 = 0 ;
4606 PyObject * obj2 = 0 ;
4607 PyObject * obj3 = 0 ;
4608 PyObject * obj4 = 0 ;
4609 PyObject * obj5 = 0 ;
4610 PyObject * obj6 = 0 ;
4611 PyObject * obj7 = 0 ;
4612 char * kwnames[] = {
4613 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4614 };
4615
4616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4618 if (!SWIG_IsOK(res1)) {
4619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4620 }
4621 arg1 = reinterpret_cast< wxWindow * >(argp1);
4622 if (obj1) {
4623 ecode2 = SWIG_AsVal_int(obj1, &val2);
4624 if (!SWIG_IsOK(ecode2)) {
4625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4626 }
4627 arg2 = static_cast< int >(val2);
4628 }
4629 if (obj2) {
4630 {
4631 arg3 = wxString_in_helper(obj2);
4632 if (arg3 == NULL) SWIG_fail;
4633 temp3 = true;
4634 }
4635 }
4636 if (obj3) {
4637 {
4638 arg4 = &temp4;
4639 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4640 }
4641 }
4642 if (obj4) {
4643 {
4644 arg5 = &temp5;
4645 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4646 }
4647 }
4648 if (obj5) {
4649 ecode6 = SWIG_AsVal_long(obj5, &val6);
4650 if (!SWIG_IsOK(ecode6)) {
4651 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4652 }
4653 arg6 = static_cast< long >(val6);
4654 }
4655 if (obj6) {
4656 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4657 if (!SWIG_IsOK(res7)) {
4658 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4659 }
4660 if (!argp7) {
4661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4662 }
4663 arg7 = reinterpret_cast< wxValidator * >(argp7);
4664 }
4665 if (obj7) {
4666 {
4667 arg8 = wxString_in_helper(obj7);
4668 if (arg8 == NULL) SWIG_fail;
4669 temp8 = true;
4670 }
4671 }
4672 {
4673 if (!wxPyCheckForApp()) SWIG_fail;
4674 PyThreadState* __tstate = wxPyBeginAllowThreads();
4675 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4676 wxPyEndAllowThreads(__tstate);
4677 if (PyErr_Occurred()) SWIG_fail;
4678 }
4679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4680 {
4681 if (temp3)
4682 delete arg3;
4683 }
4684 {
4685 if (temp8)
4686 delete arg8;
4687 }
4688 return resultobj;
4689 fail:
4690 {
4691 if (temp3)
4692 delete arg3;
4693 }
4694 {
4695 if (temp8)
4696 delete arg8;
4697 }
4698 return NULL;
4699 }
4700
4701
4702 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4703 PyObject *resultobj = 0;
4704 wxCheckBox *result = 0 ;
4705
4706 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4707 {
4708 if (!wxPyCheckForApp()) SWIG_fail;
4709 PyThreadState* __tstate = wxPyBeginAllowThreads();
4710 result = (wxCheckBox *)new wxCheckBox();
4711 wxPyEndAllowThreads(__tstate);
4712 if (PyErr_Occurred()) SWIG_fail;
4713 }
4714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4715 return resultobj;
4716 fail:
4717 return NULL;
4718 }
4719
4720
4721 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4722 PyObject *resultobj = 0;
4723 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4724 wxWindow *arg2 = (wxWindow *) 0 ;
4725 int arg3 = (int) -1 ;
4726 wxString const &arg4_defvalue = wxPyEmptyString ;
4727 wxString *arg4 = (wxString *) &arg4_defvalue ;
4728 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4729 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4730 wxSize const &arg6_defvalue = wxDefaultSize ;
4731 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4732 long arg7 = (long) 0 ;
4733 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4734 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4735 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4736 wxString *arg9 = (wxString *) &arg9_defvalue ;
4737 bool result;
4738 void *argp1 = 0 ;
4739 int res1 = 0 ;
4740 void *argp2 = 0 ;
4741 int res2 = 0 ;
4742 int val3 ;
4743 int ecode3 = 0 ;
4744 bool temp4 = false ;
4745 wxPoint temp5 ;
4746 wxSize temp6 ;
4747 long val7 ;
4748 int ecode7 = 0 ;
4749 void *argp8 = 0 ;
4750 int res8 = 0 ;
4751 bool temp9 = false ;
4752 PyObject * obj0 = 0 ;
4753 PyObject * obj1 = 0 ;
4754 PyObject * obj2 = 0 ;
4755 PyObject * obj3 = 0 ;
4756 PyObject * obj4 = 0 ;
4757 PyObject * obj5 = 0 ;
4758 PyObject * obj6 = 0 ;
4759 PyObject * obj7 = 0 ;
4760 PyObject * obj8 = 0 ;
4761 char * kwnames[] = {
4762 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4763 };
4764
4765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4767 if (!SWIG_IsOK(res1)) {
4768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4769 }
4770 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4772 if (!SWIG_IsOK(res2)) {
4773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4774 }
4775 arg2 = reinterpret_cast< wxWindow * >(argp2);
4776 if (obj2) {
4777 ecode3 = SWIG_AsVal_int(obj2, &val3);
4778 if (!SWIG_IsOK(ecode3)) {
4779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4780 }
4781 arg3 = static_cast< int >(val3);
4782 }
4783 if (obj3) {
4784 {
4785 arg4 = wxString_in_helper(obj3);
4786 if (arg4 == NULL) SWIG_fail;
4787 temp4 = true;
4788 }
4789 }
4790 if (obj4) {
4791 {
4792 arg5 = &temp5;
4793 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4794 }
4795 }
4796 if (obj5) {
4797 {
4798 arg6 = &temp6;
4799 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4800 }
4801 }
4802 if (obj6) {
4803 ecode7 = SWIG_AsVal_long(obj6, &val7);
4804 if (!SWIG_IsOK(ecode7)) {
4805 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4806 }
4807 arg7 = static_cast< long >(val7);
4808 }
4809 if (obj7) {
4810 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4811 if (!SWIG_IsOK(res8)) {
4812 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4813 }
4814 if (!argp8) {
4815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4816 }
4817 arg8 = reinterpret_cast< wxValidator * >(argp8);
4818 }
4819 if (obj8) {
4820 {
4821 arg9 = wxString_in_helper(obj8);
4822 if (arg9 == NULL) SWIG_fail;
4823 temp9 = true;
4824 }
4825 }
4826 {
4827 PyThreadState* __tstate = wxPyBeginAllowThreads();
4828 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4829 wxPyEndAllowThreads(__tstate);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 {
4833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4834 }
4835 {
4836 if (temp4)
4837 delete arg4;
4838 }
4839 {
4840 if (temp9)
4841 delete arg9;
4842 }
4843 return resultobj;
4844 fail:
4845 {
4846 if (temp4)
4847 delete arg4;
4848 }
4849 {
4850 if (temp9)
4851 delete arg9;
4852 }
4853 return NULL;
4854 }
4855
4856
4857 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4858 PyObject *resultobj = 0;
4859 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4860 bool result;
4861 void *argp1 = 0 ;
4862 int res1 = 0 ;
4863 PyObject *swig_obj[1] ;
4864
4865 if (!args) SWIG_fail;
4866 swig_obj[0] = args;
4867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4868 if (!SWIG_IsOK(res1)) {
4869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4870 }
4871 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4872 {
4873 PyThreadState* __tstate = wxPyBeginAllowThreads();
4874 result = (bool)(arg1)->GetValue();
4875 wxPyEndAllowThreads(__tstate);
4876 if (PyErr_Occurred()) SWIG_fail;
4877 }
4878 {
4879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4880 }
4881 return resultobj;
4882 fail:
4883 return NULL;
4884 }
4885
4886
4887 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4888 PyObject *resultobj = 0;
4889 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4890 bool result;
4891 void *argp1 = 0 ;
4892 int res1 = 0 ;
4893 PyObject *swig_obj[1] ;
4894
4895 if (!args) SWIG_fail;
4896 swig_obj[0] = args;
4897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4898 if (!SWIG_IsOK(res1)) {
4899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4900 }
4901 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4902 {
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 result = (bool)(arg1)->IsChecked();
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 {
4909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4910 }
4911 return resultobj;
4912 fail:
4913 return NULL;
4914 }
4915
4916
4917 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4918 PyObject *resultobj = 0;
4919 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4920 bool arg2 ;
4921 void *argp1 = 0 ;
4922 int res1 = 0 ;
4923 bool val2 ;
4924 int ecode2 = 0 ;
4925 PyObject * obj0 = 0 ;
4926 PyObject * obj1 = 0 ;
4927 char * kwnames[] = {
4928 (char *) "self",(char *) "state", NULL
4929 };
4930
4931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4933 if (!SWIG_IsOK(res1)) {
4934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4935 }
4936 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4937 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4938 if (!SWIG_IsOK(ecode2)) {
4939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4940 }
4941 arg2 = static_cast< bool >(val2);
4942 {
4943 PyThreadState* __tstate = wxPyBeginAllowThreads();
4944 (arg1)->SetValue(arg2);
4945 wxPyEndAllowThreads(__tstate);
4946 if (PyErr_Occurred()) SWIG_fail;
4947 }
4948 resultobj = SWIG_Py_Void();
4949 return resultobj;
4950 fail:
4951 return NULL;
4952 }
4953
4954
4955 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4956 PyObject *resultobj = 0;
4957 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4958 wxCheckBoxState result;
4959 void *argp1 = 0 ;
4960 int res1 = 0 ;
4961 PyObject *swig_obj[1] ;
4962
4963 if (!args) SWIG_fail;
4964 swig_obj[0] = args;
4965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4966 if (!SWIG_IsOK(res1)) {
4967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4968 }
4969 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4970 {
4971 PyThreadState* __tstate = wxPyBeginAllowThreads();
4972 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4973 wxPyEndAllowThreads(__tstate);
4974 if (PyErr_Occurred()) SWIG_fail;
4975 }
4976 resultobj = SWIG_From_int(static_cast< int >(result));
4977 return resultobj;
4978 fail:
4979 return NULL;
4980 }
4981
4982
4983 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4984 PyObject *resultobj = 0;
4985 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4986 wxCheckBoxState arg2 ;
4987 void *argp1 = 0 ;
4988 int res1 = 0 ;
4989 int val2 ;
4990 int ecode2 = 0 ;
4991 PyObject * obj0 = 0 ;
4992 PyObject * obj1 = 0 ;
4993 char * kwnames[] = {
4994 (char *) "self",(char *) "state", NULL
4995 };
4996
4997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4999 if (!SWIG_IsOK(res1)) {
5000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
5001 }
5002 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5003 ecode2 = SWIG_AsVal_int(obj1, &val2);
5004 if (!SWIG_IsOK(ecode2)) {
5005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
5006 }
5007 arg2 = static_cast< wxCheckBoxState >(val2);
5008 {
5009 PyThreadState* __tstate = wxPyBeginAllowThreads();
5010 (arg1)->Set3StateValue(arg2);
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 resultobj = SWIG_Py_Void();
5015 return resultobj;
5016 fail:
5017 return NULL;
5018 }
5019
5020
5021 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5022 PyObject *resultobj = 0;
5023 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5024 bool result;
5025 void *argp1 = 0 ;
5026 int res1 = 0 ;
5027 PyObject *swig_obj[1] ;
5028
5029 if (!args) SWIG_fail;
5030 swig_obj[0] = args;
5031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5032 if (!SWIG_IsOK(res1)) {
5033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5034 }
5035 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5036 {
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
5038 result = (bool)((wxCheckBox const *)arg1)->Is3State();
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 {
5043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5044 }
5045 return resultobj;
5046 fail:
5047 return NULL;
5048 }
5049
5050
5051 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5052 PyObject *resultobj = 0;
5053 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5054 bool result;
5055 void *argp1 = 0 ;
5056 int res1 = 0 ;
5057 PyObject *swig_obj[1] ;
5058
5059 if (!args) SWIG_fail;
5060 swig_obj[0] = args;
5061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5062 if (!SWIG_IsOK(res1)) {
5063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5064 }
5065 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5066 {
5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
5068 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5069 wxPyEndAllowThreads(__tstate);
5070 if (PyErr_Occurred()) SWIG_fail;
5071 }
5072 {
5073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5074 }
5075 return resultobj;
5076 fail:
5077 return NULL;
5078 }
5079
5080
5081 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5082 PyObject *resultobj = 0;
5083 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5084 SwigValueWrapper<wxVisualAttributes > result;
5085 int val1 ;
5086 int ecode1 = 0 ;
5087 PyObject * obj0 = 0 ;
5088 char * kwnames[] = {
5089 (char *) "variant", NULL
5090 };
5091
5092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5093 if (obj0) {
5094 ecode1 = SWIG_AsVal_int(obj0, &val1);
5095 if (!SWIG_IsOK(ecode1)) {
5096 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5097 }
5098 arg1 = static_cast< wxWindowVariant >(val1);
5099 }
5100 {
5101 if (!wxPyCheckForApp()) SWIG_fail;
5102 PyThreadState* __tstate = wxPyBeginAllowThreads();
5103 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5104 wxPyEndAllowThreads(__tstate);
5105 if (PyErr_Occurred()) SWIG_fail;
5106 }
5107 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5108 return resultobj;
5109 fail:
5110 return NULL;
5111 }
5112
5113
5114 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5115 PyObject *obj;
5116 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5117 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5118 return SWIG_Py_Void();
5119 }
5120
5121 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5122 return SWIG_Python_InitShadowInstance(args);
5123 }
5124
5125 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5126 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5127 return 1;
5128 }
5129
5130
5131 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5132 PyObject *pyobj = 0;
5133
5134 {
5135 #if wxUSE_UNICODE
5136 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5137 #else
5138 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5139 #endif
5140 }
5141 return pyobj;
5142 }
5143
5144
5145 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5146 PyObject *resultobj = 0;
5147 wxWindow *arg1 = (wxWindow *) 0 ;
5148 int arg2 = (int) -1 ;
5149 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5150 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5151 wxSize const &arg4_defvalue = wxDefaultSize ;
5152 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5153 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5154 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5155 long arg6 = (long) 0 ;
5156 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5157 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5158 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5159 wxString *arg8 = (wxString *) &arg8_defvalue ;
5160 wxChoice *result = 0 ;
5161 void *argp1 = 0 ;
5162 int res1 = 0 ;
5163 int val2 ;
5164 int ecode2 = 0 ;
5165 wxPoint temp3 ;
5166 wxSize temp4 ;
5167 bool temp5 = false ;
5168 long val6 ;
5169 int ecode6 = 0 ;
5170 void *argp7 = 0 ;
5171 int res7 = 0 ;
5172 bool temp8 = false ;
5173 PyObject * obj0 = 0 ;
5174 PyObject * obj1 = 0 ;
5175 PyObject * obj2 = 0 ;
5176 PyObject * obj3 = 0 ;
5177 PyObject * obj4 = 0 ;
5178 PyObject * obj5 = 0 ;
5179 PyObject * obj6 = 0 ;
5180 PyObject * obj7 = 0 ;
5181 char * kwnames[] = {
5182 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5183 };
5184
5185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5187 if (!SWIG_IsOK(res1)) {
5188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5189 }
5190 arg1 = reinterpret_cast< wxWindow * >(argp1);
5191 if (obj1) {
5192 ecode2 = SWIG_AsVal_int(obj1, &val2);
5193 if (!SWIG_IsOK(ecode2)) {
5194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5195 }
5196 arg2 = static_cast< int >(val2);
5197 }
5198 if (obj2) {
5199 {
5200 arg3 = &temp3;
5201 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5202 }
5203 }
5204 if (obj3) {
5205 {
5206 arg4 = &temp4;
5207 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5208 }
5209 }
5210 if (obj4) {
5211 {
5212 if (! PySequence_Check(obj4)) {
5213 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5214 SWIG_fail;
5215 }
5216 arg5 = new wxArrayString;
5217 temp5 = true;
5218 int i, len=PySequence_Length(obj4);
5219 for (i=0; i<len; i++) {
5220 PyObject* item = PySequence_GetItem(obj4, i);
5221 wxString* s = wxString_in_helper(item);
5222 if (PyErr_Occurred()) SWIG_fail;
5223 arg5->Add(*s);
5224 delete s;
5225 Py_DECREF(item);
5226 }
5227 }
5228 }
5229 if (obj5) {
5230 ecode6 = SWIG_AsVal_long(obj5, &val6);
5231 if (!SWIG_IsOK(ecode6)) {
5232 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5233 }
5234 arg6 = static_cast< long >(val6);
5235 }
5236 if (obj6) {
5237 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5238 if (!SWIG_IsOK(res7)) {
5239 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5240 }
5241 if (!argp7) {
5242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5243 }
5244 arg7 = reinterpret_cast< wxValidator * >(argp7);
5245 }
5246 if (obj7) {
5247 {
5248 arg8 = wxString_in_helper(obj7);
5249 if (arg8 == NULL) SWIG_fail;
5250 temp8 = true;
5251 }
5252 }
5253 {
5254 if (!wxPyCheckForApp()) SWIG_fail;
5255 PyThreadState* __tstate = wxPyBeginAllowThreads();
5256 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5257 wxPyEndAllowThreads(__tstate);
5258 if (PyErr_Occurred()) SWIG_fail;
5259 }
5260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5261 {
5262 if (temp5) delete arg5;
5263 }
5264 {
5265 if (temp8)
5266 delete arg8;
5267 }
5268 return resultobj;
5269 fail:
5270 {
5271 if (temp5) delete arg5;
5272 }
5273 {
5274 if (temp8)
5275 delete arg8;
5276 }
5277 return NULL;
5278 }
5279
5280
5281 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5282 PyObject *resultobj = 0;
5283 wxChoice *result = 0 ;
5284
5285 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5286 {
5287 if (!wxPyCheckForApp()) SWIG_fail;
5288 PyThreadState* __tstate = wxPyBeginAllowThreads();
5289 result = (wxChoice *)new wxChoice();
5290 wxPyEndAllowThreads(__tstate);
5291 if (PyErr_Occurred()) SWIG_fail;
5292 }
5293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5294 return resultobj;
5295 fail:
5296 return NULL;
5297 }
5298
5299
5300 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5301 PyObject *resultobj = 0;
5302 wxChoice *arg1 = (wxChoice *) 0 ;
5303 wxWindow *arg2 = (wxWindow *) 0 ;
5304 int arg3 = (int) -1 ;
5305 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5306 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5307 wxSize const &arg5_defvalue = wxDefaultSize ;
5308 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5309 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5310 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5311 long arg7 = (long) 0 ;
5312 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5313 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5314 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5315 wxString *arg9 = (wxString *) &arg9_defvalue ;
5316 bool result;
5317 void *argp1 = 0 ;
5318 int res1 = 0 ;
5319 void *argp2 = 0 ;
5320 int res2 = 0 ;
5321 int val3 ;
5322 int ecode3 = 0 ;
5323 wxPoint temp4 ;
5324 wxSize temp5 ;
5325 bool temp6 = false ;
5326 long val7 ;
5327 int ecode7 = 0 ;
5328 void *argp8 = 0 ;
5329 int res8 = 0 ;
5330 bool temp9 = false ;
5331 PyObject * obj0 = 0 ;
5332 PyObject * obj1 = 0 ;
5333 PyObject * obj2 = 0 ;
5334 PyObject * obj3 = 0 ;
5335 PyObject * obj4 = 0 ;
5336 PyObject * obj5 = 0 ;
5337 PyObject * obj6 = 0 ;
5338 PyObject * obj7 = 0 ;
5339 PyObject * obj8 = 0 ;
5340 char * kwnames[] = {
5341 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5342 };
5343
5344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5346 if (!SWIG_IsOK(res1)) {
5347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5348 }
5349 arg1 = reinterpret_cast< wxChoice * >(argp1);
5350 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5351 if (!SWIG_IsOK(res2)) {
5352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5353 }
5354 arg2 = reinterpret_cast< wxWindow * >(argp2);
5355 if (obj2) {
5356 ecode3 = SWIG_AsVal_int(obj2, &val3);
5357 if (!SWIG_IsOK(ecode3)) {
5358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5359 }
5360 arg3 = static_cast< int >(val3);
5361 }
5362 if (obj3) {
5363 {
5364 arg4 = &temp4;
5365 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5366 }
5367 }
5368 if (obj4) {
5369 {
5370 arg5 = &temp5;
5371 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5372 }
5373 }
5374 if (obj5) {
5375 {
5376 if (! PySequence_Check(obj5)) {
5377 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5378 SWIG_fail;
5379 }
5380 arg6 = new wxArrayString;
5381 temp6 = true;
5382 int i, len=PySequence_Length(obj5);
5383 for (i=0; i<len; i++) {
5384 PyObject* item = PySequence_GetItem(obj5, i);
5385 wxString* s = wxString_in_helper(item);
5386 if (PyErr_Occurred()) SWIG_fail;
5387 arg6->Add(*s);
5388 delete s;
5389 Py_DECREF(item);
5390 }
5391 }
5392 }
5393 if (obj6) {
5394 ecode7 = SWIG_AsVal_long(obj6, &val7);
5395 if (!SWIG_IsOK(ecode7)) {
5396 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5397 }
5398 arg7 = static_cast< long >(val7);
5399 }
5400 if (obj7) {
5401 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5402 if (!SWIG_IsOK(res8)) {
5403 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5404 }
5405 if (!argp8) {
5406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5407 }
5408 arg8 = reinterpret_cast< wxValidator * >(argp8);
5409 }
5410 if (obj8) {
5411 {
5412 arg9 = wxString_in_helper(obj8);
5413 if (arg9 == NULL) SWIG_fail;
5414 temp9 = true;
5415 }
5416 }
5417 {
5418 PyThreadState* __tstate = wxPyBeginAllowThreads();
5419 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5420 wxPyEndAllowThreads(__tstate);
5421 if (PyErr_Occurred()) SWIG_fail;
5422 }
5423 {
5424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5425 }
5426 {
5427 if (temp6) delete arg6;
5428 }
5429 {
5430 if (temp9)
5431 delete arg9;
5432 }
5433 return resultobj;
5434 fail:
5435 {
5436 if (temp6) delete arg6;
5437 }
5438 {
5439 if (temp9)
5440 delete arg9;
5441 }
5442 return NULL;
5443 }
5444
5445
5446 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5447 PyObject *resultobj = 0;
5448 wxChoice *arg1 = (wxChoice *) 0 ;
5449 int result;
5450 void *argp1 = 0 ;
5451 int res1 = 0 ;
5452 PyObject *swig_obj[1] ;
5453
5454 if (!args) SWIG_fail;
5455 swig_obj[0] = args;
5456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5457 if (!SWIG_IsOK(res1)) {
5458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5459 }
5460 arg1 = reinterpret_cast< wxChoice * >(argp1);
5461 {
5462 PyThreadState* __tstate = wxPyBeginAllowThreads();
5463 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5464 wxPyEndAllowThreads(__tstate);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 }
5467 resultobj = SWIG_From_int(static_cast< int >(result));
5468 return resultobj;
5469 fail:
5470 return NULL;
5471 }
5472
5473
5474 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5475 PyObject *resultobj = 0;
5476 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5477 SwigValueWrapper<wxVisualAttributes > result;
5478 int val1 ;
5479 int ecode1 = 0 ;
5480 PyObject * obj0 = 0 ;
5481 char * kwnames[] = {
5482 (char *) "variant", NULL
5483 };
5484
5485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5486 if (obj0) {
5487 ecode1 = SWIG_AsVal_int(obj0, &val1);
5488 if (!SWIG_IsOK(ecode1)) {
5489 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5490 }
5491 arg1 = static_cast< wxWindowVariant >(val1);
5492 }
5493 {
5494 if (!wxPyCheckForApp()) SWIG_fail;
5495 PyThreadState* __tstate = wxPyBeginAllowThreads();
5496 result = wxChoice::GetClassDefaultAttributes(arg1);
5497 wxPyEndAllowThreads(__tstate);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5501 return resultobj;
5502 fail:
5503 return NULL;
5504 }
5505
5506
5507 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5508 PyObject *obj;
5509 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5510 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5511 return SWIG_Py_Void();
5512 }
5513
5514 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5515 return SWIG_Python_InitShadowInstance(args);
5516 }
5517
5518 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5519 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5520 return 1;
5521 }
5522
5523
5524 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5525 PyObject *pyobj = 0;
5526
5527 {
5528 #if wxUSE_UNICODE
5529 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5530 #else
5531 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5532 #endif
5533 }
5534 return pyobj;
5535 }
5536
5537
5538 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5539 PyObject *resultobj = 0;
5540 wxWindow *arg1 = (wxWindow *) 0 ;
5541 int arg2 = (int) -1 ;
5542 wxString const &arg3_defvalue = wxPyEmptyString ;
5543 wxString *arg3 = (wxString *) &arg3_defvalue ;
5544 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5545 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5546 wxSize const &arg5_defvalue = wxDefaultSize ;
5547 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5548 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5549 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5550 long arg7 = (long) 0 ;
5551 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5552 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5553 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5554 wxString *arg9 = (wxString *) &arg9_defvalue ;
5555 wxComboBox *result = 0 ;
5556 void *argp1 = 0 ;
5557 int res1 = 0 ;
5558 int val2 ;
5559 int ecode2 = 0 ;
5560 bool temp3 = false ;
5561 wxPoint temp4 ;
5562 wxSize temp5 ;
5563 bool temp6 = false ;
5564 long val7 ;
5565 int ecode7 = 0 ;
5566 void *argp8 = 0 ;
5567 int res8 = 0 ;
5568 bool temp9 = false ;
5569 PyObject * obj0 = 0 ;
5570 PyObject * obj1 = 0 ;
5571 PyObject * obj2 = 0 ;
5572 PyObject * obj3 = 0 ;
5573 PyObject * obj4 = 0 ;
5574 PyObject * obj5 = 0 ;
5575 PyObject * obj6 = 0 ;
5576 PyObject * obj7 = 0 ;
5577 PyObject * obj8 = 0 ;
5578 char * kwnames[] = {
5579 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5580 };
5581
5582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5584 if (!SWIG_IsOK(res1)) {
5585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5586 }
5587 arg1 = reinterpret_cast< wxWindow * >(argp1);
5588 if (obj1) {
5589 ecode2 = SWIG_AsVal_int(obj1, &val2);
5590 if (!SWIG_IsOK(ecode2)) {
5591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5592 }
5593 arg2 = static_cast< int >(val2);
5594 }
5595 if (obj2) {
5596 {
5597 arg3 = wxString_in_helper(obj2);
5598 if (arg3 == NULL) SWIG_fail;
5599 temp3 = true;
5600 }
5601 }
5602 if (obj3) {
5603 {
5604 arg4 = &temp4;
5605 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5606 }
5607 }
5608 if (obj4) {
5609 {
5610 arg5 = &temp5;
5611 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5612 }
5613 }
5614 if (obj5) {
5615 {
5616 if (! PySequence_Check(obj5)) {
5617 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5618 SWIG_fail;
5619 }
5620 arg6 = new wxArrayString;
5621 temp6 = true;
5622 int i, len=PySequence_Length(obj5);
5623 for (i=0; i<len; i++) {
5624 PyObject* item = PySequence_GetItem(obj5, i);
5625 wxString* s = wxString_in_helper(item);
5626 if (PyErr_Occurred()) SWIG_fail;
5627 arg6->Add(*s);
5628 delete s;
5629 Py_DECREF(item);
5630 }
5631 }
5632 }
5633 if (obj6) {
5634 ecode7 = SWIG_AsVal_long(obj6, &val7);
5635 if (!SWIG_IsOK(ecode7)) {
5636 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5637 }
5638 arg7 = static_cast< long >(val7);
5639 }
5640 if (obj7) {
5641 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5642 if (!SWIG_IsOK(res8)) {
5643 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5644 }
5645 if (!argp8) {
5646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5647 }
5648 arg8 = reinterpret_cast< wxValidator * >(argp8);
5649 }
5650 if (obj8) {
5651 {
5652 arg9 = wxString_in_helper(obj8);
5653 if (arg9 == NULL) SWIG_fail;
5654 temp9 = true;
5655 }
5656 }
5657 {
5658 if (!wxPyCheckForApp()) SWIG_fail;
5659 PyThreadState* __tstate = wxPyBeginAllowThreads();
5660 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);
5661 wxPyEndAllowThreads(__tstate);
5662 if (PyErr_Occurred()) SWIG_fail;
5663 }
5664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5665 {
5666 if (temp3)
5667 delete arg3;
5668 }
5669 {
5670 if (temp6) delete arg6;
5671 }
5672 {
5673 if (temp9)
5674 delete arg9;
5675 }
5676 return resultobj;
5677 fail:
5678 {
5679 if (temp3)
5680 delete arg3;
5681 }
5682 {
5683 if (temp6) delete arg6;
5684 }
5685 {
5686 if (temp9)
5687 delete arg9;
5688 }
5689 return NULL;
5690 }
5691
5692
5693 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5694 PyObject *resultobj = 0;
5695 wxComboBox *result = 0 ;
5696
5697 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5698 {
5699 if (!wxPyCheckForApp()) SWIG_fail;
5700 PyThreadState* __tstate = wxPyBeginAllowThreads();
5701 result = (wxComboBox *)new wxComboBox();
5702 wxPyEndAllowThreads(__tstate);
5703 if (PyErr_Occurred()) SWIG_fail;
5704 }
5705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5706 return resultobj;
5707 fail:
5708 return NULL;
5709 }
5710
5711
5712 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5713 PyObject *resultobj = 0;
5714 wxComboBox *arg1 = (wxComboBox *) 0 ;
5715 wxWindow *arg2 = (wxWindow *) 0 ;
5716 int arg3 = (int) -1 ;
5717 wxString const &arg4_defvalue = wxPyEmptyString ;
5718 wxString *arg4 = (wxString *) &arg4_defvalue ;
5719 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5720 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5721 wxSize const &arg6_defvalue = wxDefaultSize ;
5722 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5723 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5724 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5725 long arg8 = (long) 0 ;
5726 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5727 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5728 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5729 wxString *arg10 = (wxString *) &arg10_defvalue ;
5730 bool result;
5731 void *argp1 = 0 ;
5732 int res1 = 0 ;
5733 void *argp2 = 0 ;
5734 int res2 = 0 ;
5735 int val3 ;
5736 int ecode3 = 0 ;
5737 bool temp4 = false ;
5738 wxPoint temp5 ;
5739 wxSize temp6 ;
5740 bool temp7 = false ;
5741 long val8 ;
5742 int ecode8 = 0 ;
5743 void *argp9 = 0 ;
5744 int res9 = 0 ;
5745 bool temp10 = false ;
5746 PyObject * obj0 = 0 ;
5747 PyObject * obj1 = 0 ;
5748 PyObject * obj2 = 0 ;
5749 PyObject * obj3 = 0 ;
5750 PyObject * obj4 = 0 ;
5751 PyObject * obj5 = 0 ;
5752 PyObject * obj6 = 0 ;
5753 PyObject * obj7 = 0 ;
5754 PyObject * obj8 = 0 ;
5755 PyObject * obj9 = 0 ;
5756 char * kwnames[] = {
5757 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5758 };
5759
5760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5762 if (!SWIG_IsOK(res1)) {
5763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5764 }
5765 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5766 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5767 if (!SWIG_IsOK(res2)) {
5768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5769 }
5770 arg2 = reinterpret_cast< wxWindow * >(argp2);
5771 if (obj2) {
5772 ecode3 = SWIG_AsVal_int(obj2, &val3);
5773 if (!SWIG_IsOK(ecode3)) {
5774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5775 }
5776 arg3 = static_cast< int >(val3);
5777 }
5778 if (obj3) {
5779 {
5780 arg4 = wxString_in_helper(obj3);
5781 if (arg4 == NULL) SWIG_fail;
5782 temp4 = true;
5783 }
5784 }
5785 if (obj4) {
5786 {
5787 arg5 = &temp5;
5788 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5789 }
5790 }
5791 if (obj5) {
5792 {
5793 arg6 = &temp6;
5794 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5795 }
5796 }
5797 if (obj6) {
5798 {
5799 if (! PySequence_Check(obj6)) {
5800 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5801 SWIG_fail;
5802 }
5803 arg7 = new wxArrayString;
5804 temp7 = true;
5805 int i, len=PySequence_Length(obj6);
5806 for (i=0; i<len; i++) {
5807 PyObject* item = PySequence_GetItem(obj6, i);
5808 wxString* s = wxString_in_helper(item);
5809 if (PyErr_Occurred()) SWIG_fail;
5810 arg7->Add(*s);
5811 delete s;
5812 Py_DECREF(item);
5813 }
5814 }
5815 }
5816 if (obj7) {
5817 ecode8 = SWIG_AsVal_long(obj7, &val8);
5818 if (!SWIG_IsOK(ecode8)) {
5819 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5820 }
5821 arg8 = static_cast< long >(val8);
5822 }
5823 if (obj8) {
5824 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5825 if (!SWIG_IsOK(res9)) {
5826 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5827 }
5828 if (!argp9) {
5829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5830 }
5831 arg9 = reinterpret_cast< wxValidator * >(argp9);
5832 }
5833 if (obj9) {
5834 {
5835 arg10 = wxString_in_helper(obj9);
5836 if (arg10 == NULL) SWIG_fail;
5837 temp10 = true;
5838 }
5839 }
5840 {
5841 PyThreadState* __tstate = wxPyBeginAllowThreads();
5842 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);
5843 wxPyEndAllowThreads(__tstate);
5844 if (PyErr_Occurred()) SWIG_fail;
5845 }
5846 {
5847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5848 }
5849 {
5850 if (temp4)
5851 delete arg4;
5852 }
5853 {
5854 if (temp7) delete arg7;
5855 }
5856 {
5857 if (temp10)
5858 delete arg10;
5859 }
5860 return resultobj;
5861 fail:
5862 {
5863 if (temp4)
5864 delete arg4;
5865 }
5866 {
5867 if (temp7) delete arg7;
5868 }
5869 {
5870 if (temp10)
5871 delete arg10;
5872 }
5873 return NULL;
5874 }
5875
5876
5877 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5878 PyObject *resultobj = 0;
5879 wxComboBox *arg1 = (wxComboBox *) 0 ;
5880 wxString result;
5881 void *argp1 = 0 ;
5882 int res1 = 0 ;
5883 PyObject *swig_obj[1] ;
5884
5885 if (!args) SWIG_fail;
5886 swig_obj[0] = args;
5887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5888 if (!SWIG_IsOK(res1)) {
5889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5890 }
5891 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5892 {
5893 PyThreadState* __tstate = wxPyBeginAllowThreads();
5894 result = ((wxComboBox const *)arg1)->GetValue();
5895 wxPyEndAllowThreads(__tstate);
5896 if (PyErr_Occurred()) SWIG_fail;
5897 }
5898 {
5899 #if wxUSE_UNICODE
5900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5901 #else
5902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5903 #endif
5904 }
5905 return resultobj;
5906 fail:
5907 return NULL;
5908 }
5909
5910
5911 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5912 PyObject *resultobj = 0;
5913 wxComboBox *arg1 = (wxComboBox *) 0 ;
5914 wxString *arg2 = 0 ;
5915 void *argp1 = 0 ;
5916 int res1 = 0 ;
5917 bool temp2 = false ;
5918 PyObject * obj0 = 0 ;
5919 PyObject * obj1 = 0 ;
5920 char * kwnames[] = {
5921 (char *) "self",(char *) "value", NULL
5922 };
5923
5924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5926 if (!SWIG_IsOK(res1)) {
5927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5928 }
5929 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5930 {
5931 arg2 = wxString_in_helper(obj1);
5932 if (arg2 == NULL) SWIG_fail;
5933 temp2 = true;
5934 }
5935 {
5936 PyThreadState* __tstate = wxPyBeginAllowThreads();
5937 (arg1)->SetValue((wxString const &)*arg2);
5938 wxPyEndAllowThreads(__tstate);
5939 if (PyErr_Occurred()) SWIG_fail;
5940 }
5941 resultobj = SWIG_Py_Void();
5942 {
5943 if (temp2)
5944 delete arg2;
5945 }
5946 return resultobj;
5947 fail:
5948 {
5949 if (temp2)
5950 delete arg2;
5951 }
5952 return NULL;
5953 }
5954
5955
5956 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5957 PyObject *resultobj = 0;
5958 wxComboBox *arg1 = (wxComboBox *) 0 ;
5959 void *argp1 = 0 ;
5960 int res1 = 0 ;
5961 PyObject *swig_obj[1] ;
5962
5963 if (!args) SWIG_fail;
5964 swig_obj[0] = args;
5965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5966 if (!SWIG_IsOK(res1)) {
5967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5968 }
5969 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5970 {
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 (arg1)->Copy();
5973 wxPyEndAllowThreads(__tstate);
5974 if (PyErr_Occurred()) SWIG_fail;
5975 }
5976 resultobj = SWIG_Py_Void();
5977 return resultobj;
5978 fail:
5979 return NULL;
5980 }
5981
5982
5983 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5984 PyObject *resultobj = 0;
5985 wxComboBox *arg1 = (wxComboBox *) 0 ;
5986 void *argp1 = 0 ;
5987 int res1 = 0 ;
5988 PyObject *swig_obj[1] ;
5989
5990 if (!args) SWIG_fail;
5991 swig_obj[0] = args;
5992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5993 if (!SWIG_IsOK(res1)) {
5994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5995 }
5996 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5997 {
5998 PyThreadState* __tstate = wxPyBeginAllowThreads();
5999 (arg1)->Cut();
6000 wxPyEndAllowThreads(__tstate);
6001 if (PyErr_Occurred()) SWIG_fail;
6002 }
6003 resultobj = SWIG_Py_Void();
6004 return resultobj;
6005 fail:
6006 return NULL;
6007 }
6008
6009
6010 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6011 PyObject *resultobj = 0;
6012 wxComboBox *arg1 = (wxComboBox *) 0 ;
6013 void *argp1 = 0 ;
6014 int res1 = 0 ;
6015 PyObject *swig_obj[1] ;
6016
6017 if (!args) SWIG_fail;
6018 swig_obj[0] = args;
6019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6020 if (!SWIG_IsOK(res1)) {
6021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
6022 }
6023 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6024 {
6025 PyThreadState* __tstate = wxPyBeginAllowThreads();
6026 (arg1)->Paste();
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 resultobj = SWIG_Py_Void();
6031 return resultobj;
6032 fail:
6033 return NULL;
6034 }
6035
6036
6037 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6038 PyObject *resultobj = 0;
6039 wxComboBox *arg1 = (wxComboBox *) 0 ;
6040 long arg2 ;
6041 void *argp1 = 0 ;
6042 int res1 = 0 ;
6043 long val2 ;
6044 int ecode2 = 0 ;
6045 PyObject * obj0 = 0 ;
6046 PyObject * obj1 = 0 ;
6047 char * kwnames[] = {
6048 (char *) "self",(char *) "pos", NULL
6049 };
6050
6051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6053 if (!SWIG_IsOK(res1)) {
6054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6055 }
6056 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6057 ecode2 = SWIG_AsVal_long(obj1, &val2);
6058 if (!SWIG_IsOK(ecode2)) {
6059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6060 }
6061 arg2 = static_cast< long >(val2);
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 (arg1)->SetInsertionPoint(arg2);
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_Py_Void();
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6076 PyObject *resultobj = 0;
6077 wxComboBox *arg1 = (wxComboBox *) 0 ;
6078 long result;
6079 void *argp1 = 0 ;
6080 int res1 = 0 ;
6081 PyObject *swig_obj[1] ;
6082
6083 if (!args) SWIG_fail;
6084 swig_obj[0] = args;
6085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6086 if (!SWIG_IsOK(res1)) {
6087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6088 }
6089 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6090 {
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6093 wxPyEndAllowThreads(__tstate);
6094 if (PyErr_Occurred()) SWIG_fail;
6095 }
6096 resultobj = SWIG_From_long(static_cast< long >(result));
6097 return resultobj;
6098 fail:
6099 return NULL;
6100 }
6101
6102
6103 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6104 PyObject *resultobj = 0;
6105 wxComboBox *arg1 = (wxComboBox *) 0 ;
6106 long result;
6107 void *argp1 = 0 ;
6108 int res1 = 0 ;
6109 PyObject *swig_obj[1] ;
6110
6111 if (!args) SWIG_fail;
6112 swig_obj[0] = args;
6113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6114 if (!SWIG_IsOK(res1)) {
6115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6116 }
6117 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6118 {
6119 PyThreadState* __tstate = wxPyBeginAllowThreads();
6120 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6121 wxPyEndAllowThreads(__tstate);
6122 if (PyErr_Occurred()) SWIG_fail;
6123 }
6124 resultobj = SWIG_From_long(static_cast< long >(result));
6125 return resultobj;
6126 fail:
6127 return NULL;
6128 }
6129
6130
6131 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6132 PyObject *resultobj = 0;
6133 wxComboBox *arg1 = (wxComboBox *) 0 ;
6134 long arg2 ;
6135 long arg3 ;
6136 wxString *arg4 = 0 ;
6137 void *argp1 = 0 ;
6138 int res1 = 0 ;
6139 long val2 ;
6140 int ecode2 = 0 ;
6141 long val3 ;
6142 int ecode3 = 0 ;
6143 bool temp4 = false ;
6144 PyObject * obj0 = 0 ;
6145 PyObject * obj1 = 0 ;
6146 PyObject * obj2 = 0 ;
6147 PyObject * obj3 = 0 ;
6148 char * kwnames[] = {
6149 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6150 };
6151
6152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6154 if (!SWIG_IsOK(res1)) {
6155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6156 }
6157 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6158 ecode2 = SWIG_AsVal_long(obj1, &val2);
6159 if (!SWIG_IsOK(ecode2)) {
6160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6161 }
6162 arg2 = static_cast< long >(val2);
6163 ecode3 = SWIG_AsVal_long(obj2, &val3);
6164 if (!SWIG_IsOK(ecode3)) {
6165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6166 }
6167 arg3 = static_cast< long >(val3);
6168 {
6169 arg4 = wxString_in_helper(obj3);
6170 if (arg4 == NULL) SWIG_fail;
6171 temp4 = true;
6172 }
6173 {
6174 PyThreadState* __tstate = wxPyBeginAllowThreads();
6175 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6176 wxPyEndAllowThreads(__tstate);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
6179 resultobj = SWIG_Py_Void();
6180 {
6181 if (temp4)
6182 delete arg4;
6183 }
6184 return resultobj;
6185 fail:
6186 {
6187 if (temp4)
6188 delete arg4;
6189 }
6190 return NULL;
6191 }
6192
6193
6194 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6195 PyObject *resultobj = 0;
6196 wxComboBox *arg1 = (wxComboBox *) 0 ;
6197 long arg2 ;
6198 long arg3 ;
6199 void *argp1 = 0 ;
6200 int res1 = 0 ;
6201 long val2 ;
6202 int ecode2 = 0 ;
6203 long val3 ;
6204 int ecode3 = 0 ;
6205 PyObject * obj0 = 0 ;
6206 PyObject * obj1 = 0 ;
6207 PyObject * obj2 = 0 ;
6208 char * kwnames[] = {
6209 (char *) "self",(char *) "from",(char *) "to", NULL
6210 };
6211
6212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6214 if (!SWIG_IsOK(res1)) {
6215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6216 }
6217 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6218 ecode2 = SWIG_AsVal_long(obj1, &val2);
6219 if (!SWIG_IsOK(ecode2)) {
6220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6221 }
6222 arg2 = static_cast< long >(val2);
6223 ecode3 = SWIG_AsVal_long(obj2, &val3);
6224 if (!SWIG_IsOK(ecode3)) {
6225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6226 }
6227 arg3 = static_cast< long >(val3);
6228 {
6229 PyThreadState* __tstate = wxPyBeginAllowThreads();
6230 (arg1)->SetSelection(arg2,arg3);
6231 wxPyEndAllowThreads(__tstate);
6232 if (PyErr_Occurred()) SWIG_fail;
6233 }
6234 resultobj = SWIG_Py_Void();
6235 return resultobj;
6236 fail:
6237 return NULL;
6238 }
6239
6240
6241 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6242 PyObject *resultobj = 0;
6243 wxComboBox *arg1 = (wxComboBox *) 0 ;
6244 int result;
6245 void *argp1 = 0 ;
6246 int res1 = 0 ;
6247 PyObject *swig_obj[1] ;
6248
6249 if (!args) SWIG_fail;
6250 swig_obj[0] = args;
6251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6252 if (!SWIG_IsOK(res1)) {
6253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6254 }
6255 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6256 {
6257 PyThreadState* __tstate = wxPyBeginAllowThreads();
6258 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6259 wxPyEndAllowThreads(__tstate);
6260 if (PyErr_Occurred()) SWIG_fail;
6261 }
6262 resultobj = SWIG_From_int(static_cast< int >(result));
6263 return resultobj;
6264 fail:
6265 return NULL;
6266 }
6267
6268
6269 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6270 PyObject *resultobj = 0;
6271 wxComboBox *arg1 = (wxComboBox *) 0 ;
6272 wxString *arg2 = 0 ;
6273 bool result;
6274 void *argp1 = 0 ;
6275 int res1 = 0 ;
6276 bool temp2 = false ;
6277 PyObject * obj0 = 0 ;
6278 PyObject * obj1 = 0 ;
6279 char * kwnames[] = {
6280 (char *) "self",(char *) "string", NULL
6281 };
6282
6283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6285 if (!SWIG_IsOK(res1)) {
6286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6287 }
6288 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6289 {
6290 arg2 = wxString_in_helper(obj1);
6291 if (arg2 == NULL) SWIG_fail;
6292 temp2 = true;
6293 }
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 {
6301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6302 }
6303 {
6304 if (temp2)
6305 delete arg2;
6306 }
6307 return resultobj;
6308 fail:
6309 {
6310 if (temp2)
6311 delete arg2;
6312 }
6313 return NULL;
6314 }
6315
6316
6317 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6318 PyObject *resultobj = 0;
6319 wxComboBox *arg1 = (wxComboBox *) 0 ;
6320 bool arg2 ;
6321 void *argp1 = 0 ;
6322 int res1 = 0 ;
6323 bool val2 ;
6324 int ecode2 = 0 ;
6325 PyObject * obj0 = 0 ;
6326 PyObject * obj1 = 0 ;
6327 char * kwnames[] = {
6328 (char *) "self",(char *) "editable", NULL
6329 };
6330
6331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) 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_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6335 }
6336 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6337 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6338 if (!SWIG_IsOK(ecode2)) {
6339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6340 }
6341 arg2 = static_cast< bool >(val2);
6342 {
6343 PyThreadState* __tstate = wxPyBeginAllowThreads();
6344 (arg1)->SetEditable(arg2);
6345 wxPyEndAllowThreads(__tstate);
6346 if (PyErr_Occurred()) SWIG_fail;
6347 }
6348 resultobj = SWIG_Py_Void();
6349 return resultobj;
6350 fail:
6351 return NULL;
6352 }
6353
6354
6355 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6356 PyObject *resultobj = 0;
6357 wxComboBox *arg1 = (wxComboBox *) 0 ;
6358 void *argp1 = 0 ;
6359 int res1 = 0 ;
6360 PyObject *swig_obj[1] ;
6361
6362 if (!args) SWIG_fail;
6363 swig_obj[0] = args;
6364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6365 if (!SWIG_IsOK(res1)) {
6366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6367 }
6368 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6369 {
6370 PyThreadState* __tstate = wxPyBeginAllowThreads();
6371 (arg1)->SetInsertionPointEnd();
6372 wxPyEndAllowThreads(__tstate);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 }
6375 resultobj = SWIG_Py_Void();
6376 return resultobj;
6377 fail:
6378 return NULL;
6379 }
6380
6381
6382 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6383 PyObject *resultobj = 0;
6384 wxComboBox *arg1 = (wxComboBox *) 0 ;
6385 long arg2 ;
6386 long arg3 ;
6387 void *argp1 = 0 ;
6388 int res1 = 0 ;
6389 long val2 ;
6390 int ecode2 = 0 ;
6391 long val3 ;
6392 int ecode3 = 0 ;
6393 PyObject * obj0 = 0 ;
6394 PyObject * obj1 = 0 ;
6395 PyObject * obj2 = 0 ;
6396 char * kwnames[] = {
6397 (char *) "self",(char *) "from",(char *) "to", NULL
6398 };
6399
6400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6402 if (!SWIG_IsOK(res1)) {
6403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6404 }
6405 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6406 ecode2 = SWIG_AsVal_long(obj1, &val2);
6407 if (!SWIG_IsOK(ecode2)) {
6408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6409 }
6410 arg2 = static_cast< long >(val2);
6411 ecode3 = SWIG_AsVal_long(obj2, &val3);
6412 if (!SWIG_IsOK(ecode3)) {
6413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6414 }
6415 arg3 = static_cast< long >(val3);
6416 {
6417 PyThreadState* __tstate = wxPyBeginAllowThreads();
6418 (arg1)->Remove(arg2,arg3);
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 resultobj = SWIG_Py_Void();
6423 return resultobj;
6424 fail:
6425 return NULL;
6426 }
6427
6428
6429 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6430 PyObject *resultobj = 0;
6431 wxComboBox *arg1 = (wxComboBox *) 0 ;
6432 bool result;
6433 void *argp1 = 0 ;
6434 int res1 = 0 ;
6435 PyObject *swig_obj[1] ;
6436
6437 if (!args) SWIG_fail;
6438 swig_obj[0] = args;
6439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6440 if (!SWIG_IsOK(res1)) {
6441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6442 }
6443 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6444 {
6445 PyThreadState* __tstate = wxPyBeginAllowThreads();
6446 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6447 wxPyEndAllowThreads(__tstate);
6448 if (PyErr_Occurred()) SWIG_fail;
6449 }
6450 {
6451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6452 }
6453 return resultobj;
6454 fail:
6455 return NULL;
6456 }
6457
6458
6459 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6460 PyObject *resultobj = 0;
6461 wxComboBox *arg1 = (wxComboBox *) 0 ;
6462 void *argp1 = 0 ;
6463 int res1 = 0 ;
6464 PyObject *swig_obj[1] ;
6465
6466 if (!args) SWIG_fail;
6467 swig_obj[0] = args;
6468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6469 if (!SWIG_IsOK(res1)) {
6470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6471 }
6472 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6473 {
6474 PyThreadState* __tstate = wxPyBeginAllowThreads();
6475 (arg1)->Undo();
6476 wxPyEndAllowThreads(__tstate);
6477 if (PyErr_Occurred()) SWIG_fail;
6478 }
6479 resultobj = SWIG_Py_Void();
6480 return resultobj;
6481 fail:
6482 return NULL;
6483 }
6484
6485
6486 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6487 PyObject *resultobj = 0;
6488 wxComboBox *arg1 = (wxComboBox *) 0 ;
6489 void *argp1 = 0 ;
6490 int res1 = 0 ;
6491 PyObject *swig_obj[1] ;
6492
6493 if (!args) SWIG_fail;
6494 swig_obj[0] = args;
6495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6496 if (!SWIG_IsOK(res1)) {
6497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6498 }
6499 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6500 {
6501 PyThreadState* __tstate = wxPyBeginAllowThreads();
6502 (arg1)->Redo();
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 resultobj = SWIG_Py_Void();
6507 return resultobj;
6508 fail:
6509 return NULL;
6510 }
6511
6512
6513 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6514 PyObject *resultobj = 0;
6515 wxComboBox *arg1 = (wxComboBox *) 0 ;
6516 void *argp1 = 0 ;
6517 int res1 = 0 ;
6518 PyObject *swig_obj[1] ;
6519
6520 if (!args) SWIG_fail;
6521 swig_obj[0] = args;
6522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6523 if (!SWIG_IsOK(res1)) {
6524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6525 }
6526 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6527 {
6528 PyThreadState* __tstate = wxPyBeginAllowThreads();
6529 (arg1)->SelectAll();
6530 wxPyEndAllowThreads(__tstate);
6531 if (PyErr_Occurred()) SWIG_fail;
6532 }
6533 resultobj = SWIG_Py_Void();
6534 return resultobj;
6535 fail:
6536 return NULL;
6537 }
6538
6539
6540 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6541 PyObject *resultobj = 0;
6542 wxComboBox *arg1 = (wxComboBox *) 0 ;
6543 bool result;
6544 void *argp1 = 0 ;
6545 int res1 = 0 ;
6546 PyObject *swig_obj[1] ;
6547
6548 if (!args) SWIG_fail;
6549 swig_obj[0] = args;
6550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6551 if (!SWIG_IsOK(res1)) {
6552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6553 }
6554 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6555 {
6556 PyThreadState* __tstate = wxPyBeginAllowThreads();
6557 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6558 wxPyEndAllowThreads(__tstate);
6559 if (PyErr_Occurred()) SWIG_fail;
6560 }
6561 {
6562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6563 }
6564 return resultobj;
6565 fail:
6566 return NULL;
6567 }
6568
6569
6570 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6571 PyObject *resultobj = 0;
6572 wxComboBox *arg1 = (wxComboBox *) 0 ;
6573 bool result;
6574 void *argp1 = 0 ;
6575 int res1 = 0 ;
6576 PyObject *swig_obj[1] ;
6577
6578 if (!args) SWIG_fail;
6579 swig_obj[0] = args;
6580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6581 if (!SWIG_IsOK(res1)) {
6582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6583 }
6584 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6585 {
6586 PyThreadState* __tstate = wxPyBeginAllowThreads();
6587 result = (bool)((wxComboBox const *)arg1)->CanCut();
6588 wxPyEndAllowThreads(__tstate);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 {
6592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6593 }
6594 return resultobj;
6595 fail:
6596 return NULL;
6597 }
6598
6599
6600 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6601 PyObject *resultobj = 0;
6602 wxComboBox *arg1 = (wxComboBox *) 0 ;
6603 bool result;
6604 void *argp1 = 0 ;
6605 int res1 = 0 ;
6606 PyObject *swig_obj[1] ;
6607
6608 if (!args) SWIG_fail;
6609 swig_obj[0] = args;
6610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6611 if (!SWIG_IsOK(res1)) {
6612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6613 }
6614 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6615 {
6616 PyThreadState* __tstate = wxPyBeginAllowThreads();
6617 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6618 wxPyEndAllowThreads(__tstate);
6619 if (PyErr_Occurred()) SWIG_fail;
6620 }
6621 {
6622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6623 }
6624 return resultobj;
6625 fail:
6626 return NULL;
6627 }
6628
6629
6630 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6631 PyObject *resultobj = 0;
6632 wxComboBox *arg1 = (wxComboBox *) 0 ;
6633 bool result;
6634 void *argp1 = 0 ;
6635 int res1 = 0 ;
6636 PyObject *swig_obj[1] ;
6637
6638 if (!args) SWIG_fail;
6639 swig_obj[0] = args;
6640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6641 if (!SWIG_IsOK(res1)) {
6642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6643 }
6644 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6645 {
6646 PyThreadState* __tstate = wxPyBeginAllowThreads();
6647 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6648 wxPyEndAllowThreads(__tstate);
6649 if (PyErr_Occurred()) SWIG_fail;
6650 }
6651 {
6652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6653 }
6654 return resultobj;
6655 fail:
6656 return NULL;
6657 }
6658
6659
6660 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6661 PyObject *resultobj = 0;
6662 wxComboBox *arg1 = (wxComboBox *) 0 ;
6663 bool result;
6664 void *argp1 = 0 ;
6665 int res1 = 0 ;
6666 PyObject *swig_obj[1] ;
6667
6668 if (!args) SWIG_fail;
6669 swig_obj[0] = args;
6670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6671 if (!SWIG_IsOK(res1)) {
6672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6673 }
6674 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6675 {
6676 PyThreadState* __tstate = wxPyBeginAllowThreads();
6677 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6678 wxPyEndAllowThreads(__tstate);
6679 if (PyErr_Occurred()) SWIG_fail;
6680 }
6681 {
6682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6683 }
6684 return resultobj;
6685 fail:
6686 return NULL;
6687 }
6688
6689
6690 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6691 PyObject *resultobj = 0;
6692 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6693 SwigValueWrapper<wxVisualAttributes > result;
6694 int val1 ;
6695 int ecode1 = 0 ;
6696 PyObject * obj0 = 0 ;
6697 char * kwnames[] = {
6698 (char *) "variant", NULL
6699 };
6700
6701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6702 if (obj0) {
6703 ecode1 = SWIG_AsVal_int(obj0, &val1);
6704 if (!SWIG_IsOK(ecode1)) {
6705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6706 }
6707 arg1 = static_cast< wxWindowVariant >(val1);
6708 }
6709 {
6710 if (!wxPyCheckForApp()) SWIG_fail;
6711 PyThreadState* __tstate = wxPyBeginAllowThreads();
6712 result = wxComboBox::GetClassDefaultAttributes(arg1);
6713 wxPyEndAllowThreads(__tstate);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
6716 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6717 return resultobj;
6718 fail:
6719 return NULL;
6720 }
6721
6722
6723 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6724 PyObject *obj;
6725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6726 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6727 return SWIG_Py_Void();
6728 }
6729
6730 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6731 return SWIG_Python_InitShadowInstance(args);
6732 }
6733
6734 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6735 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6736 return 1;
6737 }
6738
6739
6740 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6741 PyObject *pyobj = 0;
6742
6743 {
6744 #if wxUSE_UNICODE
6745 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6746 #else
6747 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6748 #endif
6749 }
6750 return pyobj;
6751 }
6752
6753
6754 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6755 PyObject *resultobj = 0;
6756 wxWindow *arg1 = (wxWindow *) 0 ;
6757 int arg2 = (int) -1 ;
6758 int arg3 = (int) 100 ;
6759 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6760 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6761 wxSize const &arg5_defvalue = wxDefaultSize ;
6762 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6763 long arg6 = (long) wxGA_HORIZONTAL ;
6764 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6765 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6766 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6767 wxString *arg8 = (wxString *) &arg8_defvalue ;
6768 wxGauge *result = 0 ;
6769 void *argp1 = 0 ;
6770 int res1 = 0 ;
6771 int val2 ;
6772 int ecode2 = 0 ;
6773 int val3 ;
6774 int ecode3 = 0 ;
6775 wxPoint temp4 ;
6776 wxSize temp5 ;
6777 long val6 ;
6778 int ecode6 = 0 ;
6779 void *argp7 = 0 ;
6780 int res7 = 0 ;
6781 bool temp8 = false ;
6782 PyObject * obj0 = 0 ;
6783 PyObject * obj1 = 0 ;
6784 PyObject * obj2 = 0 ;
6785 PyObject * obj3 = 0 ;
6786 PyObject * obj4 = 0 ;
6787 PyObject * obj5 = 0 ;
6788 PyObject * obj6 = 0 ;
6789 PyObject * obj7 = 0 ;
6790 char * kwnames[] = {
6791 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6792 };
6793
6794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6796 if (!SWIG_IsOK(res1)) {
6797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6798 }
6799 arg1 = reinterpret_cast< wxWindow * >(argp1);
6800 if (obj1) {
6801 ecode2 = SWIG_AsVal_int(obj1, &val2);
6802 if (!SWIG_IsOK(ecode2)) {
6803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6804 }
6805 arg2 = static_cast< int >(val2);
6806 }
6807 if (obj2) {
6808 ecode3 = SWIG_AsVal_int(obj2, &val3);
6809 if (!SWIG_IsOK(ecode3)) {
6810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6811 }
6812 arg3 = static_cast< int >(val3);
6813 }
6814 if (obj3) {
6815 {
6816 arg4 = &temp4;
6817 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6818 }
6819 }
6820 if (obj4) {
6821 {
6822 arg5 = &temp5;
6823 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6824 }
6825 }
6826 if (obj5) {
6827 ecode6 = SWIG_AsVal_long(obj5, &val6);
6828 if (!SWIG_IsOK(ecode6)) {
6829 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6830 }
6831 arg6 = static_cast< long >(val6);
6832 }
6833 if (obj6) {
6834 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6835 if (!SWIG_IsOK(res7)) {
6836 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6837 }
6838 if (!argp7) {
6839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6840 }
6841 arg7 = reinterpret_cast< wxValidator * >(argp7);
6842 }
6843 if (obj7) {
6844 {
6845 arg8 = wxString_in_helper(obj7);
6846 if (arg8 == NULL) SWIG_fail;
6847 temp8 = true;
6848 }
6849 }
6850 {
6851 if (!wxPyCheckForApp()) SWIG_fail;
6852 PyThreadState* __tstate = wxPyBeginAllowThreads();
6853 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6854 wxPyEndAllowThreads(__tstate);
6855 if (PyErr_Occurred()) SWIG_fail;
6856 }
6857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6858 {
6859 if (temp8)
6860 delete arg8;
6861 }
6862 return resultobj;
6863 fail:
6864 {
6865 if (temp8)
6866 delete arg8;
6867 }
6868 return NULL;
6869 }
6870
6871
6872 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6873 PyObject *resultobj = 0;
6874 wxGauge *result = 0 ;
6875
6876 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6877 {
6878 if (!wxPyCheckForApp()) SWIG_fail;
6879 PyThreadState* __tstate = wxPyBeginAllowThreads();
6880 result = (wxGauge *)new wxGauge();
6881 wxPyEndAllowThreads(__tstate);
6882 if (PyErr_Occurred()) SWIG_fail;
6883 }
6884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6885 return resultobj;
6886 fail:
6887 return NULL;
6888 }
6889
6890
6891 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6892 PyObject *resultobj = 0;
6893 wxGauge *arg1 = (wxGauge *) 0 ;
6894 wxWindow *arg2 = (wxWindow *) 0 ;
6895 int arg3 = (int) -1 ;
6896 int arg4 = (int) 100 ;
6897 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6898 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6899 wxSize const &arg6_defvalue = wxDefaultSize ;
6900 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6901 long arg7 = (long) wxGA_HORIZONTAL ;
6902 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6903 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6904 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6905 wxString *arg9 = (wxString *) &arg9_defvalue ;
6906 bool result;
6907 void *argp1 = 0 ;
6908 int res1 = 0 ;
6909 void *argp2 = 0 ;
6910 int res2 = 0 ;
6911 int val3 ;
6912 int ecode3 = 0 ;
6913 int val4 ;
6914 int ecode4 = 0 ;
6915 wxPoint temp5 ;
6916 wxSize temp6 ;
6917 long val7 ;
6918 int ecode7 = 0 ;
6919 void *argp8 = 0 ;
6920 int res8 = 0 ;
6921 bool temp9 = false ;
6922 PyObject * obj0 = 0 ;
6923 PyObject * obj1 = 0 ;
6924 PyObject * obj2 = 0 ;
6925 PyObject * obj3 = 0 ;
6926 PyObject * obj4 = 0 ;
6927 PyObject * obj5 = 0 ;
6928 PyObject * obj6 = 0 ;
6929 PyObject * obj7 = 0 ;
6930 PyObject * obj8 = 0 ;
6931 char * kwnames[] = {
6932 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6933 };
6934
6935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6937 if (!SWIG_IsOK(res1)) {
6938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6939 }
6940 arg1 = reinterpret_cast< wxGauge * >(argp1);
6941 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6942 if (!SWIG_IsOK(res2)) {
6943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6944 }
6945 arg2 = reinterpret_cast< wxWindow * >(argp2);
6946 if (obj2) {
6947 ecode3 = SWIG_AsVal_int(obj2, &val3);
6948 if (!SWIG_IsOK(ecode3)) {
6949 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6950 }
6951 arg3 = static_cast< int >(val3);
6952 }
6953 if (obj3) {
6954 ecode4 = SWIG_AsVal_int(obj3, &val4);
6955 if (!SWIG_IsOK(ecode4)) {
6956 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6957 }
6958 arg4 = static_cast< int >(val4);
6959 }
6960 if (obj4) {
6961 {
6962 arg5 = &temp5;
6963 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6964 }
6965 }
6966 if (obj5) {
6967 {
6968 arg6 = &temp6;
6969 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6970 }
6971 }
6972 if (obj6) {
6973 ecode7 = SWIG_AsVal_long(obj6, &val7);
6974 if (!SWIG_IsOK(ecode7)) {
6975 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6976 }
6977 arg7 = static_cast< long >(val7);
6978 }
6979 if (obj7) {
6980 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6981 if (!SWIG_IsOK(res8)) {
6982 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6983 }
6984 if (!argp8) {
6985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6986 }
6987 arg8 = reinterpret_cast< wxValidator * >(argp8);
6988 }
6989 if (obj8) {
6990 {
6991 arg9 = wxString_in_helper(obj8);
6992 if (arg9 == NULL) SWIG_fail;
6993 temp9 = true;
6994 }
6995 }
6996 {
6997 PyThreadState* __tstate = wxPyBeginAllowThreads();
6998 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6999 wxPyEndAllowThreads(__tstate);
7000 if (PyErr_Occurred()) SWIG_fail;
7001 }
7002 {
7003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7004 }
7005 {
7006 if (temp9)
7007 delete arg9;
7008 }
7009 return resultobj;
7010 fail:
7011 {
7012 if (temp9)
7013 delete arg9;
7014 }
7015 return NULL;
7016 }
7017
7018
7019 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7020 PyObject *resultobj = 0;
7021 wxGauge *arg1 = (wxGauge *) 0 ;
7022 int arg2 ;
7023 void *argp1 = 0 ;
7024 int res1 = 0 ;
7025 int val2 ;
7026 int ecode2 = 0 ;
7027 PyObject * obj0 = 0 ;
7028 PyObject * obj1 = 0 ;
7029 char * kwnames[] = {
7030 (char *) "self",(char *) "range", NULL
7031 };
7032
7033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7035 if (!SWIG_IsOK(res1)) {
7036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7037 }
7038 arg1 = reinterpret_cast< wxGauge * >(argp1);
7039 ecode2 = SWIG_AsVal_int(obj1, &val2);
7040 if (!SWIG_IsOK(ecode2)) {
7041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7042 }
7043 arg2 = static_cast< int >(val2);
7044 {
7045 PyThreadState* __tstate = wxPyBeginAllowThreads();
7046 (arg1)->SetRange(arg2);
7047 wxPyEndAllowThreads(__tstate);
7048 if (PyErr_Occurred()) SWIG_fail;
7049 }
7050 resultobj = SWIG_Py_Void();
7051 return resultobj;
7052 fail:
7053 return NULL;
7054 }
7055
7056
7057 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7058 PyObject *resultobj = 0;
7059 wxGauge *arg1 = (wxGauge *) 0 ;
7060 int result;
7061 void *argp1 = 0 ;
7062 int res1 = 0 ;
7063 PyObject *swig_obj[1] ;
7064
7065 if (!args) SWIG_fail;
7066 swig_obj[0] = args;
7067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7068 if (!SWIG_IsOK(res1)) {
7069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7070 }
7071 arg1 = reinterpret_cast< wxGauge * >(argp1);
7072 {
7073 PyThreadState* __tstate = wxPyBeginAllowThreads();
7074 result = (int)((wxGauge const *)arg1)->GetRange();
7075 wxPyEndAllowThreads(__tstate);
7076 if (PyErr_Occurred()) SWIG_fail;
7077 }
7078 resultobj = SWIG_From_int(static_cast< int >(result));
7079 return resultobj;
7080 fail:
7081 return NULL;
7082 }
7083
7084
7085 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7086 PyObject *resultobj = 0;
7087 wxGauge *arg1 = (wxGauge *) 0 ;
7088 int arg2 ;
7089 void *argp1 = 0 ;
7090 int res1 = 0 ;
7091 int val2 ;
7092 int ecode2 = 0 ;
7093 PyObject * obj0 = 0 ;
7094 PyObject * obj1 = 0 ;
7095 char * kwnames[] = {
7096 (char *) "self",(char *) "pos", NULL
7097 };
7098
7099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7101 if (!SWIG_IsOK(res1)) {
7102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7103 }
7104 arg1 = reinterpret_cast< wxGauge * >(argp1);
7105 ecode2 = SWIG_AsVal_int(obj1, &val2);
7106 if (!SWIG_IsOK(ecode2)) {
7107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7108 }
7109 arg2 = static_cast< int >(val2);
7110 {
7111 PyThreadState* __tstate = wxPyBeginAllowThreads();
7112 (arg1)->SetValue(arg2);
7113 wxPyEndAllowThreads(__tstate);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 resultobj = SWIG_Py_Void();
7117 return resultobj;
7118 fail:
7119 return NULL;
7120 }
7121
7122
7123 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7124 PyObject *resultobj = 0;
7125 wxGauge *arg1 = (wxGauge *) 0 ;
7126 int result;
7127 void *argp1 = 0 ;
7128 int res1 = 0 ;
7129 PyObject *swig_obj[1] ;
7130
7131 if (!args) SWIG_fail;
7132 swig_obj[0] = args;
7133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7134 if (!SWIG_IsOK(res1)) {
7135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7136 }
7137 arg1 = reinterpret_cast< wxGauge * >(argp1);
7138 {
7139 PyThreadState* __tstate = wxPyBeginAllowThreads();
7140 result = (int)((wxGauge const *)arg1)->GetValue();
7141 wxPyEndAllowThreads(__tstate);
7142 if (PyErr_Occurred()) SWIG_fail;
7143 }
7144 resultobj = SWIG_From_int(static_cast< int >(result));
7145 return resultobj;
7146 fail:
7147 return NULL;
7148 }
7149
7150
7151 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7152 PyObject *resultobj = 0;
7153 wxGauge *arg1 = (wxGauge *) 0 ;
7154 void *argp1 = 0 ;
7155 int res1 = 0 ;
7156 PyObject *swig_obj[1] ;
7157
7158 if (!args) SWIG_fail;
7159 swig_obj[0] = args;
7160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7161 if (!SWIG_IsOK(res1)) {
7162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7163 }
7164 arg1 = reinterpret_cast< wxGauge * >(argp1);
7165 {
7166 PyThreadState* __tstate = wxPyBeginAllowThreads();
7167 (arg1)->Pulse();
7168 wxPyEndAllowThreads(__tstate);
7169 if (PyErr_Occurred()) SWIG_fail;
7170 }
7171 resultobj = SWIG_Py_Void();
7172 return resultobj;
7173 fail:
7174 return NULL;
7175 }
7176
7177
7178 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7179 PyObject *resultobj = 0;
7180 wxGauge *arg1 = (wxGauge *) 0 ;
7181 bool result;
7182 void *argp1 = 0 ;
7183 int res1 = 0 ;
7184 PyObject *swig_obj[1] ;
7185
7186 if (!args) SWIG_fail;
7187 swig_obj[0] = args;
7188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7189 if (!SWIG_IsOK(res1)) {
7190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7191 }
7192 arg1 = reinterpret_cast< wxGauge * >(argp1);
7193 {
7194 PyThreadState* __tstate = wxPyBeginAllowThreads();
7195 result = (bool)((wxGauge const *)arg1)->IsVertical();
7196 wxPyEndAllowThreads(__tstate);
7197 if (PyErr_Occurred()) SWIG_fail;
7198 }
7199 {
7200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7201 }
7202 return resultobj;
7203 fail:
7204 return NULL;
7205 }
7206
7207
7208 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7209 PyObject *resultobj = 0;
7210 wxGauge *arg1 = (wxGauge *) 0 ;
7211 int arg2 ;
7212 void *argp1 = 0 ;
7213 int res1 = 0 ;
7214 int val2 ;
7215 int ecode2 = 0 ;
7216 PyObject * obj0 = 0 ;
7217 PyObject * obj1 = 0 ;
7218 char * kwnames[] = {
7219 (char *) "self",(char *) "w", NULL
7220 };
7221
7222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7224 if (!SWIG_IsOK(res1)) {
7225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7226 }
7227 arg1 = reinterpret_cast< wxGauge * >(argp1);
7228 ecode2 = SWIG_AsVal_int(obj1, &val2);
7229 if (!SWIG_IsOK(ecode2)) {
7230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7231 }
7232 arg2 = static_cast< int >(val2);
7233 {
7234 PyThreadState* __tstate = wxPyBeginAllowThreads();
7235 (arg1)->SetShadowWidth(arg2);
7236 wxPyEndAllowThreads(__tstate);
7237 if (PyErr_Occurred()) SWIG_fail;
7238 }
7239 resultobj = SWIG_Py_Void();
7240 return resultobj;
7241 fail:
7242 return NULL;
7243 }
7244
7245
7246 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7247 PyObject *resultobj = 0;
7248 wxGauge *arg1 = (wxGauge *) 0 ;
7249 int result;
7250 void *argp1 = 0 ;
7251 int res1 = 0 ;
7252 PyObject *swig_obj[1] ;
7253
7254 if (!args) SWIG_fail;
7255 swig_obj[0] = args;
7256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7257 if (!SWIG_IsOK(res1)) {
7258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7259 }
7260 arg1 = reinterpret_cast< wxGauge * >(argp1);
7261 {
7262 PyThreadState* __tstate = wxPyBeginAllowThreads();
7263 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7264 wxPyEndAllowThreads(__tstate);
7265 if (PyErr_Occurred()) SWIG_fail;
7266 }
7267 resultobj = SWIG_From_int(static_cast< int >(result));
7268 return resultobj;
7269 fail:
7270 return NULL;
7271 }
7272
7273
7274 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7275 PyObject *resultobj = 0;
7276 wxGauge *arg1 = (wxGauge *) 0 ;
7277 int arg2 ;
7278 void *argp1 = 0 ;
7279 int res1 = 0 ;
7280 int val2 ;
7281 int ecode2 = 0 ;
7282 PyObject * obj0 = 0 ;
7283 PyObject * obj1 = 0 ;
7284 char * kwnames[] = {
7285 (char *) "self",(char *) "w", NULL
7286 };
7287
7288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7290 if (!SWIG_IsOK(res1)) {
7291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7292 }
7293 arg1 = reinterpret_cast< wxGauge * >(argp1);
7294 ecode2 = SWIG_AsVal_int(obj1, &val2);
7295 if (!SWIG_IsOK(ecode2)) {
7296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7297 }
7298 arg2 = static_cast< int >(val2);
7299 {
7300 PyThreadState* __tstate = wxPyBeginAllowThreads();
7301 (arg1)->SetBezelFace(arg2);
7302 wxPyEndAllowThreads(__tstate);
7303 if (PyErr_Occurred()) SWIG_fail;
7304 }
7305 resultobj = SWIG_Py_Void();
7306 return resultobj;
7307 fail:
7308 return NULL;
7309 }
7310
7311
7312 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7313 PyObject *resultobj = 0;
7314 wxGauge *arg1 = (wxGauge *) 0 ;
7315 int result;
7316 void *argp1 = 0 ;
7317 int res1 = 0 ;
7318 PyObject *swig_obj[1] ;
7319
7320 if (!args) SWIG_fail;
7321 swig_obj[0] = args;
7322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7323 if (!SWIG_IsOK(res1)) {
7324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7325 }
7326 arg1 = reinterpret_cast< wxGauge * >(argp1);
7327 {
7328 PyThreadState* __tstate = wxPyBeginAllowThreads();
7329 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7330 wxPyEndAllowThreads(__tstate);
7331 if (PyErr_Occurred()) SWIG_fail;
7332 }
7333 resultobj = SWIG_From_int(static_cast< int >(result));
7334 return resultobj;
7335 fail:
7336 return NULL;
7337 }
7338
7339
7340 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7341 PyObject *resultobj = 0;
7342 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7343 SwigValueWrapper<wxVisualAttributes > result;
7344 int val1 ;
7345 int ecode1 = 0 ;
7346 PyObject * obj0 = 0 ;
7347 char * kwnames[] = {
7348 (char *) "variant", NULL
7349 };
7350
7351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7352 if (obj0) {
7353 ecode1 = SWIG_AsVal_int(obj0, &val1);
7354 if (!SWIG_IsOK(ecode1)) {
7355 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7356 }
7357 arg1 = static_cast< wxWindowVariant >(val1);
7358 }
7359 {
7360 if (!wxPyCheckForApp()) SWIG_fail;
7361 PyThreadState* __tstate = wxPyBeginAllowThreads();
7362 result = wxGauge::GetClassDefaultAttributes(arg1);
7363 wxPyEndAllowThreads(__tstate);
7364 if (PyErr_Occurred()) SWIG_fail;
7365 }
7366 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7367 return resultobj;
7368 fail:
7369 return NULL;
7370 }
7371
7372
7373 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7374 PyObject *obj;
7375 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7376 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7377 return SWIG_Py_Void();
7378 }
7379
7380 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7381 return SWIG_Python_InitShadowInstance(args);
7382 }
7383
7384 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7385 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7386 return 1;
7387 }
7388
7389
7390 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7391 PyObject *pyobj = 0;
7392
7393 {
7394 #if wxUSE_UNICODE
7395 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7396 #else
7397 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7398 #endif
7399 }
7400 return pyobj;
7401 }
7402
7403
7404 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7405 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7406 return 1;
7407 }
7408
7409
7410 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7411 PyObject *pyobj = 0;
7412
7413 {
7414 #if wxUSE_UNICODE
7415 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7416 #else
7417 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7418 #endif
7419 }
7420 return pyobj;
7421 }
7422
7423
7424 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7425 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7426 return 1;
7427 }
7428
7429
7430 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7431 PyObject *pyobj = 0;
7432
7433 {
7434 #if wxUSE_UNICODE
7435 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7436 #else
7437 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7438 #endif
7439 }
7440 return pyobj;
7441 }
7442
7443
7444 SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7445 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7446 return 1;
7447 }
7448
7449
7450 SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7451 PyObject *pyobj = 0;
7452
7453 {
7454 #if wxUSE_UNICODE
7455 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7456 #else
7457 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7458 #endif
7459 }
7460 return pyobj;
7461 }
7462
7463
7464 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7465 PyObject *resultobj = 0;
7466 wxWindow *arg1 = (wxWindow *) 0 ;
7467 int arg2 = (int) -1 ;
7468 wxString const &arg3_defvalue = wxPyEmptyString ;
7469 wxString *arg3 = (wxString *) &arg3_defvalue ;
7470 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7471 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7472 wxSize const &arg5_defvalue = wxDefaultSize ;
7473 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7474 long arg6 = (long) 0 ;
7475 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7476 wxString *arg7 = (wxString *) &arg7_defvalue ;
7477 wxStaticBox *result = 0 ;
7478 void *argp1 = 0 ;
7479 int res1 = 0 ;
7480 int val2 ;
7481 int ecode2 = 0 ;
7482 bool temp3 = false ;
7483 wxPoint temp4 ;
7484 wxSize temp5 ;
7485 long val6 ;
7486 int ecode6 = 0 ;
7487 bool temp7 = false ;
7488 PyObject * obj0 = 0 ;
7489 PyObject * obj1 = 0 ;
7490 PyObject * obj2 = 0 ;
7491 PyObject * obj3 = 0 ;
7492 PyObject * obj4 = 0 ;
7493 PyObject * obj5 = 0 ;
7494 PyObject * obj6 = 0 ;
7495 char * kwnames[] = {
7496 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7497 };
7498
7499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7501 if (!SWIG_IsOK(res1)) {
7502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7503 }
7504 arg1 = reinterpret_cast< wxWindow * >(argp1);
7505 if (obj1) {
7506 ecode2 = SWIG_AsVal_int(obj1, &val2);
7507 if (!SWIG_IsOK(ecode2)) {
7508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7509 }
7510 arg2 = static_cast< int >(val2);
7511 }
7512 if (obj2) {
7513 {
7514 arg3 = wxString_in_helper(obj2);
7515 if (arg3 == NULL) SWIG_fail;
7516 temp3 = true;
7517 }
7518 }
7519 if (obj3) {
7520 {
7521 arg4 = &temp4;
7522 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7523 }
7524 }
7525 if (obj4) {
7526 {
7527 arg5 = &temp5;
7528 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7529 }
7530 }
7531 if (obj5) {
7532 ecode6 = SWIG_AsVal_long(obj5, &val6);
7533 if (!SWIG_IsOK(ecode6)) {
7534 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7535 }
7536 arg6 = static_cast< long >(val6);
7537 }
7538 if (obj6) {
7539 {
7540 arg7 = wxString_in_helper(obj6);
7541 if (arg7 == NULL) SWIG_fail;
7542 temp7 = true;
7543 }
7544 }
7545 {
7546 if (!wxPyCheckForApp()) SWIG_fail;
7547 PyThreadState* __tstate = wxPyBeginAllowThreads();
7548 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7549 wxPyEndAllowThreads(__tstate);
7550 if (PyErr_Occurred()) SWIG_fail;
7551 }
7552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7553 {
7554 if (temp3)
7555 delete arg3;
7556 }
7557 {
7558 if (temp7)
7559 delete arg7;
7560 }
7561 return resultobj;
7562 fail:
7563 {
7564 if (temp3)
7565 delete arg3;
7566 }
7567 {
7568 if (temp7)
7569 delete arg7;
7570 }
7571 return NULL;
7572 }
7573
7574
7575 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7576 PyObject *resultobj = 0;
7577 wxStaticBox *result = 0 ;
7578
7579 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7580 {
7581 if (!wxPyCheckForApp()) SWIG_fail;
7582 PyThreadState* __tstate = wxPyBeginAllowThreads();
7583 result = (wxStaticBox *)new wxStaticBox();
7584 wxPyEndAllowThreads(__tstate);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7588 return resultobj;
7589 fail:
7590 return NULL;
7591 }
7592
7593
7594 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7595 PyObject *resultobj = 0;
7596 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7597 wxWindow *arg2 = (wxWindow *) 0 ;
7598 int arg3 = (int) -1 ;
7599 wxString const &arg4_defvalue = wxPyEmptyString ;
7600 wxString *arg4 = (wxString *) &arg4_defvalue ;
7601 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7602 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7603 wxSize const &arg6_defvalue = wxDefaultSize ;
7604 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7605 long arg7 = (long) 0 ;
7606 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7607 wxString *arg8 = (wxString *) &arg8_defvalue ;
7608 bool result;
7609 void *argp1 = 0 ;
7610 int res1 = 0 ;
7611 void *argp2 = 0 ;
7612 int res2 = 0 ;
7613 int val3 ;
7614 int ecode3 = 0 ;
7615 bool temp4 = false ;
7616 wxPoint temp5 ;
7617 wxSize temp6 ;
7618 long val7 ;
7619 int ecode7 = 0 ;
7620 bool temp8 = false ;
7621 PyObject * obj0 = 0 ;
7622 PyObject * obj1 = 0 ;
7623 PyObject * obj2 = 0 ;
7624 PyObject * obj3 = 0 ;
7625 PyObject * obj4 = 0 ;
7626 PyObject * obj5 = 0 ;
7627 PyObject * obj6 = 0 ;
7628 PyObject * obj7 = 0 ;
7629 char * kwnames[] = {
7630 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7631 };
7632
7633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7635 if (!SWIG_IsOK(res1)) {
7636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7637 }
7638 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7639 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7640 if (!SWIG_IsOK(res2)) {
7641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7642 }
7643 arg2 = reinterpret_cast< wxWindow * >(argp2);
7644 if (obj2) {
7645 ecode3 = SWIG_AsVal_int(obj2, &val3);
7646 if (!SWIG_IsOK(ecode3)) {
7647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7648 }
7649 arg3 = static_cast< int >(val3);
7650 }
7651 if (obj3) {
7652 {
7653 arg4 = wxString_in_helper(obj3);
7654 if (arg4 == NULL) SWIG_fail;
7655 temp4 = true;
7656 }
7657 }
7658 if (obj4) {
7659 {
7660 arg5 = &temp5;
7661 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7662 }
7663 }
7664 if (obj5) {
7665 {
7666 arg6 = &temp6;
7667 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7668 }
7669 }
7670 if (obj6) {
7671 ecode7 = SWIG_AsVal_long(obj6, &val7);
7672 if (!SWIG_IsOK(ecode7)) {
7673 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7674 }
7675 arg7 = static_cast< long >(val7);
7676 }
7677 if (obj7) {
7678 {
7679 arg8 = wxString_in_helper(obj7);
7680 if (arg8 == NULL) SWIG_fail;
7681 temp8 = true;
7682 }
7683 }
7684 {
7685 PyThreadState* __tstate = wxPyBeginAllowThreads();
7686 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7687 wxPyEndAllowThreads(__tstate);
7688 if (PyErr_Occurred()) SWIG_fail;
7689 }
7690 {
7691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7692 }
7693 {
7694 if (temp4)
7695 delete arg4;
7696 }
7697 {
7698 if (temp8)
7699 delete arg8;
7700 }
7701 return resultobj;
7702 fail:
7703 {
7704 if (temp4)
7705 delete arg4;
7706 }
7707 {
7708 if (temp8)
7709 delete arg8;
7710 }
7711 return NULL;
7712 }
7713
7714
7715 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7716 PyObject *resultobj = 0;
7717 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7718 SwigValueWrapper<wxVisualAttributes > result;
7719 int val1 ;
7720 int ecode1 = 0 ;
7721 PyObject * obj0 = 0 ;
7722 char * kwnames[] = {
7723 (char *) "variant", NULL
7724 };
7725
7726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7727 if (obj0) {
7728 ecode1 = SWIG_AsVal_int(obj0, &val1);
7729 if (!SWIG_IsOK(ecode1)) {
7730 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7731 }
7732 arg1 = static_cast< wxWindowVariant >(val1);
7733 }
7734 {
7735 if (!wxPyCheckForApp()) SWIG_fail;
7736 PyThreadState* __tstate = wxPyBeginAllowThreads();
7737 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7738 wxPyEndAllowThreads(__tstate);
7739 if (PyErr_Occurred()) SWIG_fail;
7740 }
7741 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7742 return resultobj;
7743 fail:
7744 return NULL;
7745 }
7746
7747
7748 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7749 PyObject *obj;
7750 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7751 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7752 return SWIG_Py_Void();
7753 }
7754
7755 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7756 return SWIG_Python_InitShadowInstance(args);
7757 }
7758
7759 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7760 PyObject *resultobj = 0;
7761 wxWindow *arg1 = (wxWindow *) 0 ;
7762 int arg2 = (int) -1 ;
7763 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7764 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7765 wxSize const &arg4_defvalue = wxDefaultSize ;
7766 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7767 long arg5 = (long) wxLI_HORIZONTAL ;
7768 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
7769 wxString *arg6 = (wxString *) &arg6_defvalue ;
7770 wxStaticLine *result = 0 ;
7771 void *argp1 = 0 ;
7772 int res1 = 0 ;
7773 int val2 ;
7774 int ecode2 = 0 ;
7775 wxPoint temp3 ;
7776 wxSize temp4 ;
7777 long val5 ;
7778 int ecode5 = 0 ;
7779 bool temp6 = false ;
7780 PyObject * obj0 = 0 ;
7781 PyObject * obj1 = 0 ;
7782 PyObject * obj2 = 0 ;
7783 PyObject * obj3 = 0 ;
7784 PyObject * obj4 = 0 ;
7785 PyObject * obj5 = 0 ;
7786 char * kwnames[] = {
7787 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7788 };
7789
7790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7792 if (!SWIG_IsOK(res1)) {
7793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7794 }
7795 arg1 = reinterpret_cast< wxWindow * >(argp1);
7796 if (obj1) {
7797 ecode2 = SWIG_AsVal_int(obj1, &val2);
7798 if (!SWIG_IsOK(ecode2)) {
7799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7800 }
7801 arg2 = static_cast< int >(val2);
7802 }
7803 if (obj2) {
7804 {
7805 arg3 = &temp3;
7806 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7807 }
7808 }
7809 if (obj3) {
7810 {
7811 arg4 = &temp4;
7812 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7813 }
7814 }
7815 if (obj4) {
7816 ecode5 = SWIG_AsVal_long(obj4, &val5);
7817 if (!SWIG_IsOK(ecode5)) {
7818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7819 }
7820 arg5 = static_cast< long >(val5);
7821 }
7822 if (obj5) {
7823 {
7824 arg6 = wxString_in_helper(obj5);
7825 if (arg6 == NULL) SWIG_fail;
7826 temp6 = true;
7827 }
7828 }
7829 {
7830 if (!wxPyCheckForApp()) SWIG_fail;
7831 PyThreadState* __tstate = wxPyBeginAllowThreads();
7832 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7833 wxPyEndAllowThreads(__tstate);
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7837 {
7838 if (temp6)
7839 delete arg6;
7840 }
7841 return resultobj;
7842 fail:
7843 {
7844 if (temp6)
7845 delete arg6;
7846 }
7847 return NULL;
7848 }
7849
7850
7851 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7852 PyObject *resultobj = 0;
7853 wxStaticLine *result = 0 ;
7854
7855 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7856 {
7857 if (!wxPyCheckForApp()) SWIG_fail;
7858 PyThreadState* __tstate = wxPyBeginAllowThreads();
7859 result = (wxStaticLine *)new wxStaticLine();
7860 wxPyEndAllowThreads(__tstate);
7861 if (PyErr_Occurred()) SWIG_fail;
7862 }
7863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7864 return resultobj;
7865 fail:
7866 return NULL;
7867 }
7868
7869
7870 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7871 PyObject *resultobj = 0;
7872 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7873 wxWindow *arg2 = (wxWindow *) 0 ;
7874 int arg3 = (int) -1 ;
7875 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7876 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7877 wxSize const &arg5_defvalue = wxDefaultSize ;
7878 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7879 long arg6 = (long) wxLI_HORIZONTAL ;
7880 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
7881 wxString *arg7 = (wxString *) &arg7_defvalue ;
7882 bool result;
7883 void *argp1 = 0 ;
7884 int res1 = 0 ;
7885 void *argp2 = 0 ;
7886 int res2 = 0 ;
7887 int val3 ;
7888 int ecode3 = 0 ;
7889 wxPoint temp4 ;
7890 wxSize temp5 ;
7891 long val6 ;
7892 int ecode6 = 0 ;
7893 bool temp7 = false ;
7894 PyObject * obj0 = 0 ;
7895 PyObject * obj1 = 0 ;
7896 PyObject * obj2 = 0 ;
7897 PyObject * obj3 = 0 ;
7898 PyObject * obj4 = 0 ;
7899 PyObject * obj5 = 0 ;
7900 PyObject * obj6 = 0 ;
7901 char * kwnames[] = {
7902 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7903 };
7904
7905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7907 if (!SWIG_IsOK(res1)) {
7908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7909 }
7910 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7911 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7912 if (!SWIG_IsOK(res2)) {
7913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7914 }
7915 arg2 = reinterpret_cast< wxWindow * >(argp2);
7916 if (obj2) {
7917 ecode3 = SWIG_AsVal_int(obj2, &val3);
7918 if (!SWIG_IsOK(ecode3)) {
7919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7920 }
7921 arg3 = static_cast< int >(val3);
7922 }
7923 if (obj3) {
7924 {
7925 arg4 = &temp4;
7926 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7927 }
7928 }
7929 if (obj4) {
7930 {
7931 arg5 = &temp5;
7932 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7933 }
7934 }
7935 if (obj5) {
7936 ecode6 = SWIG_AsVal_long(obj5, &val6);
7937 if (!SWIG_IsOK(ecode6)) {
7938 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7939 }
7940 arg6 = static_cast< long >(val6);
7941 }
7942 if (obj6) {
7943 {
7944 arg7 = wxString_in_helper(obj6);
7945 if (arg7 == NULL) SWIG_fail;
7946 temp7 = true;
7947 }
7948 }
7949 {
7950 PyThreadState* __tstate = wxPyBeginAllowThreads();
7951 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7952 wxPyEndAllowThreads(__tstate);
7953 if (PyErr_Occurred()) SWIG_fail;
7954 }
7955 {
7956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7957 }
7958 {
7959 if (temp7)
7960 delete arg7;
7961 }
7962 return resultobj;
7963 fail:
7964 {
7965 if (temp7)
7966 delete arg7;
7967 }
7968 return NULL;
7969 }
7970
7971
7972 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7973 PyObject *resultobj = 0;
7974 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7975 bool result;
7976 void *argp1 = 0 ;
7977 int res1 = 0 ;
7978 PyObject *swig_obj[1] ;
7979
7980 if (!args) SWIG_fail;
7981 swig_obj[0] = args;
7982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7983 if (!SWIG_IsOK(res1)) {
7984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7985 }
7986 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7987 {
7988 PyThreadState* __tstate = wxPyBeginAllowThreads();
7989 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7990 wxPyEndAllowThreads(__tstate);
7991 if (PyErr_Occurred()) SWIG_fail;
7992 }
7993 {
7994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7995 }
7996 return resultobj;
7997 fail:
7998 return NULL;
7999 }
8000
8001
8002 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8003 PyObject *resultobj = 0;
8004 int result;
8005
8006 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8007 {
8008 PyThreadState* __tstate = wxPyBeginAllowThreads();
8009 result = (int)wxStaticLine::GetDefaultSize();
8010 wxPyEndAllowThreads(__tstate);
8011 if (PyErr_Occurred()) SWIG_fail;
8012 }
8013 resultobj = SWIG_From_int(static_cast< int >(result));
8014 return resultobj;
8015 fail:
8016 return NULL;
8017 }
8018
8019
8020 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8021 PyObject *resultobj = 0;
8022 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8023 SwigValueWrapper<wxVisualAttributes > result;
8024 int val1 ;
8025 int ecode1 = 0 ;
8026 PyObject * obj0 = 0 ;
8027 char * kwnames[] = {
8028 (char *) "variant", NULL
8029 };
8030
8031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8032 if (obj0) {
8033 ecode1 = SWIG_AsVal_int(obj0, &val1);
8034 if (!SWIG_IsOK(ecode1)) {
8035 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8036 }
8037 arg1 = static_cast< wxWindowVariant >(val1);
8038 }
8039 {
8040 if (!wxPyCheckForApp()) SWIG_fail;
8041 PyThreadState* __tstate = wxPyBeginAllowThreads();
8042 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8043 wxPyEndAllowThreads(__tstate);
8044 if (PyErr_Occurred()) SWIG_fail;
8045 }
8046 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8047 return resultobj;
8048 fail:
8049 return NULL;
8050 }
8051
8052
8053 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8054 PyObject *obj;
8055 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8056 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8057 return SWIG_Py_Void();
8058 }
8059
8060 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8061 return SWIG_Python_InitShadowInstance(args);
8062 }
8063
8064 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8065 PyObject *resultobj = 0;
8066 wxWindow *arg1 = (wxWindow *) 0 ;
8067 int arg2 = (int) -1 ;
8068 wxString const &arg3_defvalue = wxPyEmptyString ;
8069 wxString *arg3 = (wxString *) &arg3_defvalue ;
8070 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8071 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8072 wxSize const &arg5_defvalue = wxDefaultSize ;
8073 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8074 long arg6 = (long) 0 ;
8075 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8076 wxString *arg7 = (wxString *) &arg7_defvalue ;
8077 wxStaticText *result = 0 ;
8078 void *argp1 = 0 ;
8079 int res1 = 0 ;
8080 int val2 ;
8081 int ecode2 = 0 ;
8082 bool temp3 = false ;
8083 wxPoint temp4 ;
8084 wxSize temp5 ;
8085 long val6 ;
8086 int ecode6 = 0 ;
8087 bool temp7 = false ;
8088 PyObject * obj0 = 0 ;
8089 PyObject * obj1 = 0 ;
8090 PyObject * obj2 = 0 ;
8091 PyObject * obj3 = 0 ;
8092 PyObject * obj4 = 0 ;
8093 PyObject * obj5 = 0 ;
8094 PyObject * obj6 = 0 ;
8095 char * kwnames[] = {
8096 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8097 };
8098
8099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8101 if (!SWIG_IsOK(res1)) {
8102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8103 }
8104 arg1 = reinterpret_cast< wxWindow * >(argp1);
8105 if (obj1) {
8106 ecode2 = SWIG_AsVal_int(obj1, &val2);
8107 if (!SWIG_IsOK(ecode2)) {
8108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8109 }
8110 arg2 = static_cast< int >(val2);
8111 }
8112 if (obj2) {
8113 {
8114 arg3 = wxString_in_helper(obj2);
8115 if (arg3 == NULL) SWIG_fail;
8116 temp3 = true;
8117 }
8118 }
8119 if (obj3) {
8120 {
8121 arg4 = &temp4;
8122 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8123 }
8124 }
8125 if (obj4) {
8126 {
8127 arg5 = &temp5;
8128 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8129 }
8130 }
8131 if (obj5) {
8132 ecode6 = SWIG_AsVal_long(obj5, &val6);
8133 if (!SWIG_IsOK(ecode6)) {
8134 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8135 }
8136 arg6 = static_cast< long >(val6);
8137 }
8138 if (obj6) {
8139 {
8140 arg7 = wxString_in_helper(obj6);
8141 if (arg7 == NULL) SWIG_fail;
8142 temp7 = true;
8143 }
8144 }
8145 {
8146 if (!wxPyCheckForApp()) SWIG_fail;
8147 PyThreadState* __tstate = wxPyBeginAllowThreads();
8148 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8149 wxPyEndAllowThreads(__tstate);
8150 if (PyErr_Occurred()) SWIG_fail;
8151 }
8152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8153 {
8154 if (temp3)
8155 delete arg3;
8156 }
8157 {
8158 if (temp7)
8159 delete arg7;
8160 }
8161 return resultobj;
8162 fail:
8163 {
8164 if (temp3)
8165 delete arg3;
8166 }
8167 {
8168 if (temp7)
8169 delete arg7;
8170 }
8171 return NULL;
8172 }
8173
8174
8175 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8176 PyObject *resultobj = 0;
8177 wxStaticText *result = 0 ;
8178
8179 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8180 {
8181 if (!wxPyCheckForApp()) SWIG_fail;
8182 PyThreadState* __tstate = wxPyBeginAllowThreads();
8183 result = (wxStaticText *)new wxStaticText();
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8188 return resultobj;
8189 fail:
8190 return NULL;
8191 }
8192
8193
8194 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8195 PyObject *resultobj = 0;
8196 wxStaticText *arg1 = (wxStaticText *) 0 ;
8197 wxWindow *arg2 = (wxWindow *) 0 ;
8198 int arg3 = (int) -1 ;
8199 wxString const &arg4_defvalue = wxPyEmptyString ;
8200 wxString *arg4 = (wxString *) &arg4_defvalue ;
8201 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8202 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8203 wxSize const &arg6_defvalue = wxDefaultSize ;
8204 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8205 long arg7 = (long) 0 ;
8206 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8207 wxString *arg8 = (wxString *) &arg8_defvalue ;
8208 bool result;
8209 void *argp1 = 0 ;
8210 int res1 = 0 ;
8211 void *argp2 = 0 ;
8212 int res2 = 0 ;
8213 int val3 ;
8214 int ecode3 = 0 ;
8215 bool temp4 = false ;
8216 wxPoint temp5 ;
8217 wxSize temp6 ;
8218 long val7 ;
8219 int ecode7 = 0 ;
8220 bool temp8 = false ;
8221 PyObject * obj0 = 0 ;
8222 PyObject * obj1 = 0 ;
8223 PyObject * obj2 = 0 ;
8224 PyObject * obj3 = 0 ;
8225 PyObject * obj4 = 0 ;
8226 PyObject * obj5 = 0 ;
8227 PyObject * obj6 = 0 ;
8228 PyObject * obj7 = 0 ;
8229 char * kwnames[] = {
8230 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8231 };
8232
8233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8235 if (!SWIG_IsOK(res1)) {
8236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8237 }
8238 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8239 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8240 if (!SWIG_IsOK(res2)) {
8241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8242 }
8243 arg2 = reinterpret_cast< wxWindow * >(argp2);
8244 if (obj2) {
8245 ecode3 = SWIG_AsVal_int(obj2, &val3);
8246 if (!SWIG_IsOK(ecode3)) {
8247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8248 }
8249 arg3 = static_cast< int >(val3);
8250 }
8251 if (obj3) {
8252 {
8253 arg4 = wxString_in_helper(obj3);
8254 if (arg4 == NULL) SWIG_fail;
8255 temp4 = true;
8256 }
8257 }
8258 if (obj4) {
8259 {
8260 arg5 = &temp5;
8261 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8262 }
8263 }
8264 if (obj5) {
8265 {
8266 arg6 = &temp6;
8267 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8268 }
8269 }
8270 if (obj6) {
8271 ecode7 = SWIG_AsVal_long(obj6, &val7);
8272 if (!SWIG_IsOK(ecode7)) {
8273 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8274 }
8275 arg7 = static_cast< long >(val7);
8276 }
8277 if (obj7) {
8278 {
8279 arg8 = wxString_in_helper(obj7);
8280 if (arg8 == NULL) SWIG_fail;
8281 temp8 = true;
8282 }
8283 }
8284 {
8285 PyThreadState* __tstate = wxPyBeginAllowThreads();
8286 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8287 wxPyEndAllowThreads(__tstate);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
8290 {
8291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8292 }
8293 {
8294 if (temp4)
8295 delete arg4;
8296 }
8297 {
8298 if (temp8)
8299 delete arg8;
8300 }
8301 return resultobj;
8302 fail:
8303 {
8304 if (temp4)
8305 delete arg4;
8306 }
8307 {
8308 if (temp8)
8309 delete arg8;
8310 }
8311 return NULL;
8312 }
8313
8314
8315 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8316 PyObject *resultobj = 0;
8317 wxStaticText *arg1 = (wxStaticText *) 0 ;
8318 int arg2 ;
8319 void *argp1 = 0 ;
8320 int res1 = 0 ;
8321 int val2 ;
8322 int ecode2 = 0 ;
8323 PyObject * obj0 = 0 ;
8324 PyObject * obj1 = 0 ;
8325 char * kwnames[] = {
8326 (char *) "self",(char *) "width", NULL
8327 };
8328
8329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8331 if (!SWIG_IsOK(res1)) {
8332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8333 }
8334 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8335 ecode2 = SWIG_AsVal_int(obj1, &val2);
8336 if (!SWIG_IsOK(ecode2)) {
8337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8338 }
8339 arg2 = static_cast< int >(val2);
8340 {
8341 PyThreadState* __tstate = wxPyBeginAllowThreads();
8342 (arg1)->Wrap(arg2);
8343 wxPyEndAllowThreads(__tstate);
8344 if (PyErr_Occurred()) SWIG_fail;
8345 }
8346 resultobj = SWIG_Py_Void();
8347 return resultobj;
8348 fail:
8349 return NULL;
8350 }
8351
8352
8353 SWIGINTERN PyObject *_wrap_StaticText_IsEllipsized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8354 PyObject *resultobj = 0;
8355 wxStaticText *arg1 = (wxStaticText *) 0 ;
8356 bool result;
8357 void *argp1 = 0 ;
8358 int res1 = 0 ;
8359 PyObject *swig_obj[1] ;
8360
8361 if (!args) SWIG_fail;
8362 swig_obj[0] = args;
8363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8364 if (!SWIG_IsOK(res1)) {
8365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_IsEllipsized" "', expected argument " "1"" of type '" "wxStaticText const *""'");
8366 }
8367 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8368 {
8369 PyThreadState* __tstate = wxPyBeginAllowThreads();
8370 result = (bool)((wxStaticText const *)arg1)->IsEllipsized();
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 {
8375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8376 }
8377 return resultobj;
8378 fail:
8379 return NULL;
8380 }
8381
8382
8383 SWIGINTERN PyObject *_wrap_StaticText_RemoveMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8384 PyObject *resultobj = 0;
8385 wxString *arg1 = 0 ;
8386 wxString result;
8387 bool temp1 = false ;
8388 PyObject * obj0 = 0 ;
8389 char * kwnames[] = {
8390 (char *) "str", NULL
8391 };
8392
8393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_RemoveMarkup",kwnames,&obj0)) SWIG_fail;
8394 {
8395 arg1 = wxString_in_helper(obj0);
8396 if (arg1 == NULL) SWIG_fail;
8397 temp1 = true;
8398 }
8399 {
8400 PyThreadState* __tstate = wxPyBeginAllowThreads();
8401 result = wxStaticText::RemoveMarkup((wxString const &)*arg1);
8402 wxPyEndAllowThreads(__tstate);
8403 if (PyErr_Occurred()) SWIG_fail;
8404 }
8405 {
8406 #if wxUSE_UNICODE
8407 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8408 #else
8409 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8410 #endif
8411 }
8412 {
8413 if (temp1)
8414 delete arg1;
8415 }
8416 return resultobj;
8417 fail:
8418 {
8419 if (temp1)
8420 delete arg1;
8421 }
8422 return NULL;
8423 }
8424
8425
8426 SWIGINTERN PyObject *_wrap_StaticText_EscapeMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8427 PyObject *resultobj = 0;
8428 wxString *arg1 = 0 ;
8429 wxString result;
8430 bool temp1 = false ;
8431 PyObject * obj0 = 0 ;
8432 char * kwnames[] = {
8433 (char *) "str", NULL
8434 };
8435
8436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_EscapeMarkup",kwnames,&obj0)) SWIG_fail;
8437 {
8438 arg1 = wxString_in_helper(obj0);
8439 if (arg1 == NULL) SWIG_fail;
8440 temp1 = true;
8441 }
8442 {
8443 PyThreadState* __tstate = wxPyBeginAllowThreads();
8444 result = wxStaticText::EscapeMarkup((wxString const &)*arg1);
8445 wxPyEndAllowThreads(__tstate);
8446 if (PyErr_Occurred()) SWIG_fail;
8447 }
8448 {
8449 #if wxUSE_UNICODE
8450 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8451 #else
8452 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8453 #endif
8454 }
8455 {
8456 if (temp1)
8457 delete arg1;
8458 }
8459 return resultobj;
8460 fail:
8461 {
8462 if (temp1)
8463 delete arg1;
8464 }
8465 return NULL;
8466 }
8467
8468
8469 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8470 PyObject *resultobj = 0;
8471 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8472 SwigValueWrapper<wxVisualAttributes > result;
8473 int val1 ;
8474 int ecode1 = 0 ;
8475 PyObject * obj0 = 0 ;
8476 char * kwnames[] = {
8477 (char *) "variant", NULL
8478 };
8479
8480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8481 if (obj0) {
8482 ecode1 = SWIG_AsVal_int(obj0, &val1);
8483 if (!SWIG_IsOK(ecode1)) {
8484 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8485 }
8486 arg1 = static_cast< wxWindowVariant >(val1);
8487 }
8488 {
8489 if (!wxPyCheckForApp()) SWIG_fail;
8490 PyThreadState* __tstate = wxPyBeginAllowThreads();
8491 result = wxStaticText::GetClassDefaultAttributes(arg1);
8492 wxPyEndAllowThreads(__tstate);
8493 if (PyErr_Occurred()) SWIG_fail;
8494 }
8495 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8496 return resultobj;
8497 fail:
8498 return NULL;
8499 }
8500
8501
8502 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8503 PyObject *obj;
8504 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8505 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8506 return SWIG_Py_Void();
8507 }
8508
8509 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8510 return SWIG_Python_InitShadowInstance(args);
8511 }
8512
8513 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8514 PyObject *resultobj = 0;
8515 wxWindow *arg1 = (wxWindow *) 0 ;
8516 int arg2 = (int) -1 ;
8517 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8518 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8519 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8520 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8521 wxSize const &arg5_defvalue = wxDefaultSize ;
8522 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8523 long arg6 = (long) 0 ;
8524 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8525 wxString *arg7 = (wxString *) &arg7_defvalue ;
8526 wxStaticBitmap *result = 0 ;
8527 void *argp1 = 0 ;
8528 int res1 = 0 ;
8529 int val2 ;
8530 int ecode2 = 0 ;
8531 void *argp3 = 0 ;
8532 int res3 = 0 ;
8533 wxPoint temp4 ;
8534 wxSize temp5 ;
8535 long val6 ;
8536 int ecode6 = 0 ;
8537 bool temp7 = false ;
8538 PyObject * obj0 = 0 ;
8539 PyObject * obj1 = 0 ;
8540 PyObject * obj2 = 0 ;
8541 PyObject * obj3 = 0 ;
8542 PyObject * obj4 = 0 ;
8543 PyObject * obj5 = 0 ;
8544 PyObject * obj6 = 0 ;
8545 char * kwnames[] = {
8546 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8547 };
8548
8549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8551 if (!SWIG_IsOK(res1)) {
8552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8553 }
8554 arg1 = reinterpret_cast< wxWindow * >(argp1);
8555 if (obj1) {
8556 ecode2 = SWIG_AsVal_int(obj1, &val2);
8557 if (!SWIG_IsOK(ecode2)) {
8558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8559 }
8560 arg2 = static_cast< int >(val2);
8561 }
8562 if (obj2) {
8563 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8564 if (!SWIG_IsOK(res3)) {
8565 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8566 }
8567 if (!argp3) {
8568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8569 }
8570 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8571 }
8572 if (obj3) {
8573 {
8574 arg4 = &temp4;
8575 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8576 }
8577 }
8578 if (obj4) {
8579 {
8580 arg5 = &temp5;
8581 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8582 }
8583 }
8584 if (obj5) {
8585 ecode6 = SWIG_AsVal_long(obj5, &val6);
8586 if (!SWIG_IsOK(ecode6)) {
8587 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8588 }
8589 arg6 = static_cast< long >(val6);
8590 }
8591 if (obj6) {
8592 {
8593 arg7 = wxString_in_helper(obj6);
8594 if (arg7 == NULL) SWIG_fail;
8595 temp7 = true;
8596 }
8597 }
8598 {
8599 if (!wxPyCheckForApp()) SWIG_fail;
8600 PyThreadState* __tstate = wxPyBeginAllowThreads();
8601 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8602 wxPyEndAllowThreads(__tstate);
8603 if (PyErr_Occurred()) SWIG_fail;
8604 }
8605 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8606 {
8607 if (temp7)
8608 delete arg7;
8609 }
8610 return resultobj;
8611 fail:
8612 {
8613 if (temp7)
8614 delete arg7;
8615 }
8616 return NULL;
8617 }
8618
8619
8620 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8621 PyObject *resultobj = 0;
8622 wxStaticBitmap *result = 0 ;
8623
8624 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8625 {
8626 if (!wxPyCheckForApp()) SWIG_fail;
8627 PyThreadState* __tstate = wxPyBeginAllowThreads();
8628 result = (wxStaticBitmap *)new wxStaticBitmap();
8629 wxPyEndAllowThreads(__tstate);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8633 return resultobj;
8634 fail:
8635 return NULL;
8636 }
8637
8638
8639 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8640 PyObject *resultobj = 0;
8641 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8642 wxWindow *arg2 = (wxWindow *) 0 ;
8643 int arg3 = (int) -1 ;
8644 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8645 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8646 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8647 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8648 wxSize const &arg6_defvalue = wxDefaultSize ;
8649 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8650 long arg7 = (long) 0 ;
8651 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8652 wxString *arg8 = (wxString *) &arg8_defvalue ;
8653 bool result;
8654 void *argp1 = 0 ;
8655 int res1 = 0 ;
8656 void *argp2 = 0 ;
8657 int res2 = 0 ;
8658 int val3 ;
8659 int ecode3 = 0 ;
8660 void *argp4 = 0 ;
8661 int res4 = 0 ;
8662 wxPoint temp5 ;
8663 wxSize temp6 ;
8664 long val7 ;
8665 int ecode7 = 0 ;
8666 bool temp8 = false ;
8667 PyObject * obj0 = 0 ;
8668 PyObject * obj1 = 0 ;
8669 PyObject * obj2 = 0 ;
8670 PyObject * obj3 = 0 ;
8671 PyObject * obj4 = 0 ;
8672 PyObject * obj5 = 0 ;
8673 PyObject * obj6 = 0 ;
8674 PyObject * obj7 = 0 ;
8675 char * kwnames[] = {
8676 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8677 };
8678
8679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8681 if (!SWIG_IsOK(res1)) {
8682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8683 }
8684 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8686 if (!SWIG_IsOK(res2)) {
8687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8688 }
8689 arg2 = reinterpret_cast< wxWindow * >(argp2);
8690 if (obj2) {
8691 ecode3 = SWIG_AsVal_int(obj2, &val3);
8692 if (!SWIG_IsOK(ecode3)) {
8693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8694 }
8695 arg3 = static_cast< int >(val3);
8696 }
8697 if (obj3) {
8698 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8699 if (!SWIG_IsOK(res4)) {
8700 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8701 }
8702 if (!argp4) {
8703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8704 }
8705 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8706 }
8707 if (obj4) {
8708 {
8709 arg5 = &temp5;
8710 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8711 }
8712 }
8713 if (obj5) {
8714 {
8715 arg6 = &temp6;
8716 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8717 }
8718 }
8719 if (obj6) {
8720 ecode7 = SWIG_AsVal_long(obj6, &val7);
8721 if (!SWIG_IsOK(ecode7)) {
8722 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8723 }
8724 arg7 = static_cast< long >(val7);
8725 }
8726 if (obj7) {
8727 {
8728 arg8 = wxString_in_helper(obj7);
8729 if (arg8 == NULL) SWIG_fail;
8730 temp8 = true;
8731 }
8732 }
8733 {
8734 PyThreadState* __tstate = wxPyBeginAllowThreads();
8735 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 {
8740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8741 }
8742 {
8743 if (temp8)
8744 delete arg8;
8745 }
8746 return resultobj;
8747 fail:
8748 {
8749 if (temp8)
8750 delete arg8;
8751 }
8752 return NULL;
8753 }
8754
8755
8756 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8757 PyObject *resultobj = 0;
8758 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8759 wxBitmap result;
8760 void *argp1 = 0 ;
8761 int res1 = 0 ;
8762 PyObject *swig_obj[1] ;
8763
8764 if (!args) SWIG_fail;
8765 swig_obj[0] = args;
8766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8767 if (!SWIG_IsOK(res1)) {
8768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8769 }
8770 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8771 {
8772 PyThreadState* __tstate = wxPyBeginAllowThreads();
8773 result = (arg1)->GetBitmap();
8774 wxPyEndAllowThreads(__tstate);
8775 if (PyErr_Occurred()) SWIG_fail;
8776 }
8777 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8778 return resultobj;
8779 fail:
8780 return NULL;
8781 }
8782
8783
8784 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8785 PyObject *resultobj = 0;
8786 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8787 wxBitmap *arg2 = 0 ;
8788 void *argp1 = 0 ;
8789 int res1 = 0 ;
8790 void *argp2 = 0 ;
8791 int res2 = 0 ;
8792 PyObject * obj0 = 0 ;
8793 PyObject * obj1 = 0 ;
8794 char * kwnames[] = {
8795 (char *) "self",(char *) "bitmap", NULL
8796 };
8797
8798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8800 if (!SWIG_IsOK(res1)) {
8801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8802 }
8803 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8805 if (!SWIG_IsOK(res2)) {
8806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8807 }
8808 if (!argp2) {
8809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8810 }
8811 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8812 {
8813 PyThreadState* __tstate = wxPyBeginAllowThreads();
8814 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8815 wxPyEndAllowThreads(__tstate);
8816 if (PyErr_Occurred()) SWIG_fail;
8817 }
8818 resultobj = SWIG_Py_Void();
8819 return resultobj;
8820 fail:
8821 return NULL;
8822 }
8823
8824
8825 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8826 PyObject *resultobj = 0;
8827 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8828 wxIcon *arg2 = 0 ;
8829 void *argp1 = 0 ;
8830 int res1 = 0 ;
8831 void *argp2 = 0 ;
8832 int res2 = 0 ;
8833 PyObject * obj0 = 0 ;
8834 PyObject * obj1 = 0 ;
8835 char * kwnames[] = {
8836 (char *) "self",(char *) "icon", NULL
8837 };
8838
8839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8841 if (!SWIG_IsOK(res1)) {
8842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8843 }
8844 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8846 if (!SWIG_IsOK(res2)) {
8847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8848 }
8849 if (!argp2) {
8850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8851 }
8852 arg2 = reinterpret_cast< wxIcon * >(argp2);
8853 {
8854 PyThreadState* __tstate = wxPyBeginAllowThreads();
8855 (arg1)->SetIcon((wxIcon const &)*arg2);
8856 wxPyEndAllowThreads(__tstate);
8857 if (PyErr_Occurred()) SWIG_fail;
8858 }
8859 resultobj = SWIG_Py_Void();
8860 return resultobj;
8861 fail:
8862 return NULL;
8863 }
8864
8865
8866 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8867 PyObject *resultobj = 0;
8868 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8869 SwigValueWrapper<wxVisualAttributes > result;
8870 int val1 ;
8871 int ecode1 = 0 ;
8872 PyObject * obj0 = 0 ;
8873 char * kwnames[] = {
8874 (char *) "variant", NULL
8875 };
8876
8877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8878 if (obj0) {
8879 ecode1 = SWIG_AsVal_int(obj0, &val1);
8880 if (!SWIG_IsOK(ecode1)) {
8881 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8882 }
8883 arg1 = static_cast< wxWindowVariant >(val1);
8884 }
8885 {
8886 if (!wxPyCheckForApp()) SWIG_fail;
8887 PyThreadState* __tstate = wxPyBeginAllowThreads();
8888 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8889 wxPyEndAllowThreads(__tstate);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
8892 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8893 return resultobj;
8894 fail:
8895 return NULL;
8896 }
8897
8898
8899 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8900 PyObject *obj;
8901 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8902 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8903 return SWIG_Py_Void();
8904 }
8905
8906 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8907 return SWIG_Python_InitShadowInstance(args);
8908 }
8909
8910 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8911 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8912 return 1;
8913 }
8914
8915
8916 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8917 PyObject *pyobj = 0;
8918
8919 {
8920 #if wxUSE_UNICODE
8921 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8922 #else
8923 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8924 #endif
8925 }
8926 return pyobj;
8927 }
8928
8929
8930 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8931 PyObject *resultobj = 0;
8932 wxWindow *arg1 = (wxWindow *) 0 ;
8933 int arg2 = (int) -1 ;
8934 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8935 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8936 wxSize const &arg4_defvalue = wxDefaultSize ;
8937 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8938 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8939 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8940 long arg6 = (long) 0 ;
8941 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8942 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8943 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8944 wxString *arg8 = (wxString *) &arg8_defvalue ;
8945 wxListBox *result = 0 ;
8946 void *argp1 = 0 ;
8947 int res1 = 0 ;
8948 int val2 ;
8949 int ecode2 = 0 ;
8950 wxPoint temp3 ;
8951 wxSize temp4 ;
8952 bool temp5 = false ;
8953 long val6 ;
8954 int ecode6 = 0 ;
8955 void *argp7 = 0 ;
8956 int res7 = 0 ;
8957 bool temp8 = false ;
8958 PyObject * obj0 = 0 ;
8959 PyObject * obj1 = 0 ;
8960 PyObject * obj2 = 0 ;
8961 PyObject * obj3 = 0 ;
8962 PyObject * obj4 = 0 ;
8963 PyObject * obj5 = 0 ;
8964 PyObject * obj6 = 0 ;
8965 PyObject * obj7 = 0 ;
8966 char * kwnames[] = {
8967 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8968 };
8969
8970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8972 if (!SWIG_IsOK(res1)) {
8973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8974 }
8975 arg1 = reinterpret_cast< wxWindow * >(argp1);
8976 if (obj1) {
8977 ecode2 = SWIG_AsVal_int(obj1, &val2);
8978 if (!SWIG_IsOK(ecode2)) {
8979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8980 }
8981 arg2 = static_cast< int >(val2);
8982 }
8983 if (obj2) {
8984 {
8985 arg3 = &temp3;
8986 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8987 }
8988 }
8989 if (obj3) {
8990 {
8991 arg4 = &temp4;
8992 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8993 }
8994 }
8995 if (obj4) {
8996 {
8997 if (! PySequence_Check(obj4)) {
8998 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8999 SWIG_fail;
9000 }
9001 arg5 = new wxArrayString;
9002 temp5 = true;
9003 int i, len=PySequence_Length(obj4);
9004 for (i=0; i<len; i++) {
9005 PyObject* item = PySequence_GetItem(obj4, i);
9006 wxString* s = wxString_in_helper(item);
9007 if (PyErr_Occurred()) SWIG_fail;
9008 arg5->Add(*s);
9009 delete s;
9010 Py_DECREF(item);
9011 }
9012 }
9013 }
9014 if (obj5) {
9015 ecode6 = SWIG_AsVal_long(obj5, &val6);
9016 if (!SWIG_IsOK(ecode6)) {
9017 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
9018 }
9019 arg6 = static_cast< long >(val6);
9020 }
9021 if (obj6) {
9022 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
9023 if (!SWIG_IsOK(res7)) {
9024 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
9025 }
9026 if (!argp7) {
9027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
9028 }
9029 arg7 = reinterpret_cast< wxValidator * >(argp7);
9030 }
9031 if (obj7) {
9032 {
9033 arg8 = wxString_in_helper(obj7);
9034 if (arg8 == NULL) SWIG_fail;
9035 temp8 = true;
9036 }
9037 }
9038 {
9039 if (!wxPyCheckForApp()) SWIG_fail;
9040 PyThreadState* __tstate = wxPyBeginAllowThreads();
9041 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
9042 wxPyEndAllowThreads(__tstate);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
9046 {
9047 if (temp5) delete arg5;
9048 }
9049 {
9050 if (temp8)
9051 delete arg8;
9052 }
9053 return resultobj;
9054 fail:
9055 {
9056 if (temp5) delete arg5;
9057 }
9058 {
9059 if (temp8)
9060 delete arg8;
9061 }
9062 return NULL;
9063 }
9064
9065
9066 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9067 PyObject *resultobj = 0;
9068 wxListBox *result = 0 ;
9069
9070 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
9071 {
9072 if (!wxPyCheckForApp()) SWIG_fail;
9073 PyThreadState* __tstate = wxPyBeginAllowThreads();
9074 result = (wxListBox *)new wxListBox();
9075 wxPyEndAllowThreads(__tstate);
9076 if (PyErr_Occurred()) SWIG_fail;
9077 }
9078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
9079 return resultobj;
9080 fail:
9081 return NULL;
9082 }
9083
9084
9085 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9086 PyObject *resultobj = 0;
9087 wxListBox *arg1 = (wxListBox *) 0 ;
9088 wxWindow *arg2 = (wxWindow *) 0 ;
9089 int arg3 = (int) -1 ;
9090 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9091 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9092 wxSize const &arg5_defvalue = wxDefaultSize ;
9093 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9094 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9095 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9096 long arg7 = (long) 0 ;
9097 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9098 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9099 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9100 wxString *arg9 = (wxString *) &arg9_defvalue ;
9101 bool result;
9102 void *argp1 = 0 ;
9103 int res1 = 0 ;
9104 void *argp2 = 0 ;
9105 int res2 = 0 ;
9106 int val3 ;
9107 int ecode3 = 0 ;
9108 wxPoint temp4 ;
9109 wxSize temp5 ;
9110 bool temp6 = false ;
9111 long val7 ;
9112 int ecode7 = 0 ;
9113 void *argp8 = 0 ;
9114 int res8 = 0 ;
9115 bool temp9 = false ;
9116 PyObject * obj0 = 0 ;
9117 PyObject * obj1 = 0 ;
9118 PyObject * obj2 = 0 ;
9119 PyObject * obj3 = 0 ;
9120 PyObject * obj4 = 0 ;
9121 PyObject * obj5 = 0 ;
9122 PyObject * obj6 = 0 ;
9123 PyObject * obj7 = 0 ;
9124 PyObject * obj8 = 0 ;
9125 char * kwnames[] = {
9126 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9127 };
9128
9129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9131 if (!SWIG_IsOK(res1)) {
9132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9133 }
9134 arg1 = reinterpret_cast< wxListBox * >(argp1);
9135 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9136 if (!SWIG_IsOK(res2)) {
9137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9138 }
9139 arg2 = reinterpret_cast< wxWindow * >(argp2);
9140 if (obj2) {
9141 ecode3 = SWIG_AsVal_int(obj2, &val3);
9142 if (!SWIG_IsOK(ecode3)) {
9143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9144 }
9145 arg3 = static_cast< int >(val3);
9146 }
9147 if (obj3) {
9148 {
9149 arg4 = &temp4;
9150 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9151 }
9152 }
9153 if (obj4) {
9154 {
9155 arg5 = &temp5;
9156 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9157 }
9158 }
9159 if (obj5) {
9160 {
9161 if (! PySequence_Check(obj5)) {
9162 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9163 SWIG_fail;
9164 }
9165 arg6 = new wxArrayString;
9166 temp6 = true;
9167 int i, len=PySequence_Length(obj5);
9168 for (i=0; i<len; i++) {
9169 PyObject* item = PySequence_GetItem(obj5, i);
9170 wxString* s = wxString_in_helper(item);
9171 if (PyErr_Occurred()) SWIG_fail;
9172 arg6->Add(*s);
9173 delete s;
9174 Py_DECREF(item);
9175 }
9176 }
9177 }
9178 if (obj6) {
9179 ecode7 = SWIG_AsVal_long(obj6, &val7);
9180 if (!SWIG_IsOK(ecode7)) {
9181 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9182 }
9183 arg7 = static_cast< long >(val7);
9184 }
9185 if (obj7) {
9186 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9187 if (!SWIG_IsOK(res8)) {
9188 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9189 }
9190 if (!argp8) {
9191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9192 }
9193 arg8 = reinterpret_cast< wxValidator * >(argp8);
9194 }
9195 if (obj8) {
9196 {
9197 arg9 = wxString_in_helper(obj8);
9198 if (arg9 == NULL) SWIG_fail;
9199 temp9 = true;
9200 }
9201 }
9202 {
9203 PyThreadState* __tstate = wxPyBeginAllowThreads();
9204 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9205 wxPyEndAllowThreads(__tstate);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 }
9208 {
9209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9210 }
9211 {
9212 if (temp6) delete arg6;
9213 }
9214 {
9215 if (temp9)
9216 delete arg9;
9217 }
9218 return resultobj;
9219 fail:
9220 {
9221 if (temp6) delete arg6;
9222 }
9223 {
9224 if (temp9)
9225 delete arg9;
9226 }
9227 return NULL;
9228 }
9229
9230
9231 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9232 PyObject *resultobj = 0;
9233 wxListBox *arg1 = (wxListBox *) 0 ;
9234 wxString *arg2 = 0 ;
9235 int arg3 ;
9236 PyObject *arg4 = (PyObject *) NULL ;
9237 void *argp1 = 0 ;
9238 int res1 = 0 ;
9239 bool temp2 = false ;
9240 int val3 ;
9241 int ecode3 = 0 ;
9242 PyObject * obj0 = 0 ;
9243 PyObject * obj1 = 0 ;
9244 PyObject * obj2 = 0 ;
9245 PyObject * obj3 = 0 ;
9246 char * kwnames[] = {
9247 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9248 };
9249
9250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9252 if (!SWIG_IsOK(res1)) {
9253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9254 }
9255 arg1 = reinterpret_cast< wxListBox * >(argp1);
9256 {
9257 arg2 = wxString_in_helper(obj1);
9258 if (arg2 == NULL) SWIG_fail;
9259 temp2 = true;
9260 }
9261 ecode3 = SWIG_AsVal_int(obj2, &val3);
9262 if (!SWIG_IsOK(ecode3)) {
9263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9264 }
9265 arg3 = static_cast< int >(val3);
9266 if (obj3) {
9267 arg4 = obj3;
9268 }
9269 {
9270 PyThreadState* __tstate = wxPyBeginAllowThreads();
9271 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9272 wxPyEndAllowThreads(__tstate);
9273 if (PyErr_Occurred()) SWIG_fail;
9274 }
9275 resultobj = SWIG_Py_Void();
9276 {
9277 if (temp2)
9278 delete arg2;
9279 }
9280 return resultobj;
9281 fail:
9282 {
9283 if (temp2)
9284 delete arg2;
9285 }
9286 return NULL;
9287 }
9288
9289
9290 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9291 PyObject *resultobj = 0;
9292 wxListBox *arg1 = (wxListBox *) 0 ;
9293 wxArrayString *arg2 = 0 ;
9294 unsigned int arg3 ;
9295 void *argp1 = 0 ;
9296 int res1 = 0 ;
9297 bool temp2 = false ;
9298 unsigned int val3 ;
9299 int ecode3 = 0 ;
9300 PyObject * obj0 = 0 ;
9301 PyObject * obj1 = 0 ;
9302 PyObject * obj2 = 0 ;
9303 char * kwnames[] = {
9304 (char *) "self",(char *) "items",(char *) "pos", NULL
9305 };
9306
9307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9309 if (!SWIG_IsOK(res1)) {
9310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9311 }
9312 arg1 = reinterpret_cast< wxListBox * >(argp1);
9313 {
9314 if (! PySequence_Check(obj1)) {
9315 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9316 SWIG_fail;
9317 }
9318 arg2 = new wxArrayString;
9319 temp2 = true;
9320 int i, len=PySequence_Length(obj1);
9321 for (i=0; i<len; i++) {
9322 PyObject* item = PySequence_GetItem(obj1, i);
9323 wxString* s = wxString_in_helper(item);
9324 if (PyErr_Occurred()) SWIG_fail;
9325 arg2->Add(*s);
9326 delete s;
9327 Py_DECREF(item);
9328 }
9329 }
9330 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9331 if (!SWIG_IsOK(ecode3)) {
9332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9333 }
9334 arg3 = static_cast< unsigned int >(val3);
9335 {
9336 PyThreadState* __tstate = wxPyBeginAllowThreads();
9337 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9338 wxPyEndAllowThreads(__tstate);
9339 if (PyErr_Occurred()) SWIG_fail;
9340 }
9341 resultobj = SWIG_Py_Void();
9342 {
9343 if (temp2) delete arg2;
9344 }
9345 return resultobj;
9346 fail:
9347 {
9348 if (temp2) delete arg2;
9349 }
9350 return NULL;
9351 }
9352
9353
9354 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9355 PyObject *resultobj = 0;
9356 wxListBox *arg1 = (wxListBox *) 0 ;
9357 wxArrayString *arg2 = 0 ;
9358 void *argp1 = 0 ;
9359 int res1 = 0 ;
9360 bool temp2 = false ;
9361 PyObject * obj0 = 0 ;
9362 PyObject * obj1 = 0 ;
9363 char * kwnames[] = {
9364 (char *) "self",(char *) "items", NULL
9365 };
9366
9367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9369 if (!SWIG_IsOK(res1)) {
9370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9371 }
9372 arg1 = reinterpret_cast< wxListBox * >(argp1);
9373 {
9374 if (! PySequence_Check(obj1)) {
9375 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9376 SWIG_fail;
9377 }
9378 arg2 = new wxArrayString;
9379 temp2 = true;
9380 int i, len=PySequence_Length(obj1);
9381 for (i=0; i<len; i++) {
9382 PyObject* item = PySequence_GetItem(obj1, i);
9383 wxString* s = wxString_in_helper(item);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 arg2->Add(*s);
9386 delete s;
9387 Py_DECREF(item);
9388 }
9389 }
9390 {
9391 PyThreadState* __tstate = wxPyBeginAllowThreads();
9392 (arg1)->Set((wxArrayString const &)*arg2);
9393 wxPyEndAllowThreads(__tstate);
9394 if (PyErr_Occurred()) SWIG_fail;
9395 }
9396 resultobj = SWIG_Py_Void();
9397 {
9398 if (temp2) delete arg2;
9399 }
9400 return resultobj;
9401 fail:
9402 {
9403 if (temp2) delete arg2;
9404 }
9405 return NULL;
9406 }
9407
9408
9409 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9410 PyObject *resultobj = 0;
9411 wxListBox *arg1 = (wxListBox *) 0 ;
9412 int arg2 ;
9413 bool result;
9414 void *argp1 = 0 ;
9415 int res1 = 0 ;
9416 int val2 ;
9417 int ecode2 = 0 ;
9418 PyObject * obj0 = 0 ;
9419 PyObject * obj1 = 0 ;
9420 char * kwnames[] = {
9421 (char *) "self",(char *) "n", NULL
9422 };
9423
9424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9426 if (!SWIG_IsOK(res1)) {
9427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9428 }
9429 arg1 = reinterpret_cast< wxListBox * >(argp1);
9430 ecode2 = SWIG_AsVal_int(obj1, &val2);
9431 if (!SWIG_IsOK(ecode2)) {
9432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9433 }
9434 arg2 = static_cast< int >(val2);
9435 {
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9438 wxPyEndAllowThreads(__tstate);
9439 if (PyErr_Occurred()) SWIG_fail;
9440 }
9441 {
9442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9443 }
9444 return resultobj;
9445 fail:
9446 return NULL;
9447 }
9448
9449
9450 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9451 PyObject *resultobj = 0;
9452 wxListBox *arg1 = (wxListBox *) 0 ;
9453 int arg2 ;
9454 bool arg3 = (bool) true ;
9455 void *argp1 = 0 ;
9456 int res1 = 0 ;
9457 int val2 ;
9458 int ecode2 = 0 ;
9459 bool val3 ;
9460 int ecode3 = 0 ;
9461 PyObject * obj0 = 0 ;
9462 PyObject * obj1 = 0 ;
9463 PyObject * obj2 = 0 ;
9464 char * kwnames[] = {
9465 (char *) "self",(char *) "n",(char *) "select", NULL
9466 };
9467
9468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9470 if (!SWIG_IsOK(res1)) {
9471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9472 }
9473 arg1 = reinterpret_cast< wxListBox * >(argp1);
9474 ecode2 = SWIG_AsVal_int(obj1, &val2);
9475 if (!SWIG_IsOK(ecode2)) {
9476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9477 }
9478 arg2 = static_cast< int >(val2);
9479 if (obj2) {
9480 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9481 if (!SWIG_IsOK(ecode3)) {
9482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9483 }
9484 arg3 = static_cast< bool >(val3);
9485 }
9486 {
9487 PyThreadState* __tstate = wxPyBeginAllowThreads();
9488 (arg1)->SetSelection(arg2,arg3);
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 resultobj = SWIG_Py_Void();
9493 return resultobj;
9494 fail:
9495 return NULL;
9496 }
9497
9498
9499 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9500 PyObject *resultobj = 0;
9501 wxListBox *arg1 = (wxListBox *) 0 ;
9502 int arg2 ;
9503 void *argp1 = 0 ;
9504 int res1 = 0 ;
9505 int val2 ;
9506 int ecode2 = 0 ;
9507 PyObject * obj0 = 0 ;
9508 PyObject * obj1 = 0 ;
9509 char * kwnames[] = {
9510 (char *) "self",(char *) "n", NULL
9511 };
9512
9513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9515 if (!SWIG_IsOK(res1)) {
9516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9517 }
9518 arg1 = reinterpret_cast< wxListBox * >(argp1);
9519 ecode2 = SWIG_AsVal_int(obj1, &val2);
9520 if (!SWIG_IsOK(ecode2)) {
9521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9522 }
9523 arg2 = static_cast< int >(val2);
9524 {
9525 PyThreadState* __tstate = wxPyBeginAllowThreads();
9526 (arg1)->Select(arg2);
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 resultobj = SWIG_Py_Void();
9531 return resultobj;
9532 fail:
9533 return NULL;
9534 }
9535
9536
9537 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9538 PyObject *resultobj = 0;
9539 wxListBox *arg1 = (wxListBox *) 0 ;
9540 int arg2 ;
9541 void *argp1 = 0 ;
9542 int res1 = 0 ;
9543 int val2 ;
9544 int ecode2 = 0 ;
9545 PyObject * obj0 = 0 ;
9546 PyObject * obj1 = 0 ;
9547 char * kwnames[] = {
9548 (char *) "self",(char *) "n", NULL
9549 };
9550
9551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9553 if (!SWIG_IsOK(res1)) {
9554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9555 }
9556 arg1 = reinterpret_cast< wxListBox * >(argp1);
9557 ecode2 = SWIG_AsVal_int(obj1, &val2);
9558 if (!SWIG_IsOK(ecode2)) {
9559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9560 }
9561 arg2 = static_cast< int >(val2);
9562 {
9563 PyThreadState* __tstate = wxPyBeginAllowThreads();
9564 (arg1)->Deselect(arg2);
9565 wxPyEndAllowThreads(__tstate);
9566 if (PyErr_Occurred()) SWIG_fail;
9567 }
9568 resultobj = SWIG_Py_Void();
9569 return resultobj;
9570 fail:
9571 return NULL;
9572 }
9573
9574
9575 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9576 PyObject *resultobj = 0;
9577 wxListBox *arg1 = (wxListBox *) 0 ;
9578 int arg2 = (int) -1 ;
9579 void *argp1 = 0 ;
9580 int res1 = 0 ;
9581 int val2 ;
9582 int ecode2 = 0 ;
9583 PyObject * obj0 = 0 ;
9584 PyObject * obj1 = 0 ;
9585 char * kwnames[] = {
9586 (char *) "self",(char *) "itemToLeaveSelected", NULL
9587 };
9588
9589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9591 if (!SWIG_IsOK(res1)) {
9592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9593 }
9594 arg1 = reinterpret_cast< wxListBox * >(argp1);
9595 if (obj1) {
9596 ecode2 = SWIG_AsVal_int(obj1, &val2);
9597 if (!SWIG_IsOK(ecode2)) {
9598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9599 }
9600 arg2 = static_cast< int >(val2);
9601 }
9602 {
9603 PyThreadState* __tstate = wxPyBeginAllowThreads();
9604 (arg1)->DeselectAll(arg2);
9605 wxPyEndAllowThreads(__tstate);
9606 if (PyErr_Occurred()) SWIG_fail;
9607 }
9608 resultobj = SWIG_Py_Void();
9609 return resultobj;
9610 fail:
9611 return NULL;
9612 }
9613
9614
9615 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9616 PyObject *resultobj = 0;
9617 wxListBox *arg1 = (wxListBox *) 0 ;
9618 wxString *arg2 = 0 ;
9619 bool arg3 = (bool) true ;
9620 bool result;
9621 void *argp1 = 0 ;
9622 int res1 = 0 ;
9623 bool temp2 = false ;
9624 bool val3 ;
9625 int ecode3 = 0 ;
9626 PyObject * obj0 = 0 ;
9627 PyObject * obj1 = 0 ;
9628 PyObject * obj2 = 0 ;
9629 char * kwnames[] = {
9630 (char *) "self",(char *) "s",(char *) "select", NULL
9631 };
9632
9633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9635 if (!SWIG_IsOK(res1)) {
9636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9637 }
9638 arg1 = reinterpret_cast< wxListBox * >(argp1);
9639 {
9640 arg2 = wxString_in_helper(obj1);
9641 if (arg2 == NULL) SWIG_fail;
9642 temp2 = true;
9643 }
9644 if (obj2) {
9645 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9646 if (!SWIG_IsOK(ecode3)) {
9647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9648 }
9649 arg3 = static_cast< bool >(val3);
9650 }
9651 {
9652 PyThreadState* __tstate = wxPyBeginAllowThreads();
9653 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9654 wxPyEndAllowThreads(__tstate);
9655 if (PyErr_Occurred()) SWIG_fail;
9656 }
9657 {
9658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9659 }
9660 {
9661 if (temp2)
9662 delete arg2;
9663 }
9664 return resultobj;
9665 fail:
9666 {
9667 if (temp2)
9668 delete arg2;
9669 }
9670 return NULL;
9671 }
9672
9673
9674 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9675 PyObject *resultobj = 0;
9676 wxListBox *arg1 = (wxListBox *) 0 ;
9677 PyObject *result = 0 ;
9678 void *argp1 = 0 ;
9679 int res1 = 0 ;
9680 PyObject *swig_obj[1] ;
9681
9682 if (!args) SWIG_fail;
9683 swig_obj[0] = args;
9684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9685 if (!SWIG_IsOK(res1)) {
9686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9687 }
9688 arg1 = reinterpret_cast< wxListBox * >(argp1);
9689 {
9690 PyThreadState* __tstate = wxPyBeginAllowThreads();
9691 result = (PyObject *)wxListBox_GetSelections(arg1);
9692 wxPyEndAllowThreads(__tstate);
9693 if (PyErr_Occurred()) SWIG_fail;
9694 }
9695 resultobj = result;
9696 return resultobj;
9697 fail:
9698 return NULL;
9699 }
9700
9701
9702 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9703 PyObject *resultobj = 0;
9704 wxListBox *arg1 = (wxListBox *) 0 ;
9705 int arg2 ;
9706 void *argp1 = 0 ;
9707 int res1 = 0 ;
9708 int val2 ;
9709 int ecode2 = 0 ;
9710 PyObject * obj0 = 0 ;
9711 PyObject * obj1 = 0 ;
9712 char * kwnames[] = {
9713 (char *) "self",(char *) "n", NULL
9714 };
9715
9716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9718 if (!SWIG_IsOK(res1)) {
9719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9720 }
9721 arg1 = reinterpret_cast< wxListBox * >(argp1);
9722 ecode2 = SWIG_AsVal_int(obj1, &val2);
9723 if (!SWIG_IsOK(ecode2)) {
9724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9725 }
9726 arg2 = static_cast< int >(val2);
9727 {
9728 PyThreadState* __tstate = wxPyBeginAllowThreads();
9729 (arg1)->SetFirstItem(arg2);
9730 wxPyEndAllowThreads(__tstate);
9731 if (PyErr_Occurred()) SWIG_fail;
9732 }
9733 resultobj = SWIG_Py_Void();
9734 return resultobj;
9735 fail:
9736 return NULL;
9737 }
9738
9739
9740 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9741 PyObject *resultobj = 0;
9742 wxListBox *arg1 = (wxListBox *) 0 ;
9743 wxString *arg2 = 0 ;
9744 void *argp1 = 0 ;
9745 int res1 = 0 ;
9746 bool temp2 = false ;
9747 PyObject * obj0 = 0 ;
9748 PyObject * obj1 = 0 ;
9749 char * kwnames[] = {
9750 (char *) "self",(char *) "s", NULL
9751 };
9752
9753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9755 if (!SWIG_IsOK(res1)) {
9756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9757 }
9758 arg1 = reinterpret_cast< wxListBox * >(argp1);
9759 {
9760 arg2 = wxString_in_helper(obj1);
9761 if (arg2 == NULL) SWIG_fail;
9762 temp2 = true;
9763 }
9764 {
9765 PyThreadState* __tstate = wxPyBeginAllowThreads();
9766 (arg1)->SetFirstItem((wxString const &)*arg2);
9767 wxPyEndAllowThreads(__tstate);
9768 if (PyErr_Occurred()) SWIG_fail;
9769 }
9770 resultobj = SWIG_Py_Void();
9771 {
9772 if (temp2)
9773 delete arg2;
9774 }
9775 return resultobj;
9776 fail:
9777 {
9778 if (temp2)
9779 delete arg2;
9780 }
9781 return NULL;
9782 }
9783
9784
9785 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9786 PyObject *resultobj = 0;
9787 wxListBox *arg1 = (wxListBox *) 0 ;
9788 int arg2 ;
9789 void *argp1 = 0 ;
9790 int res1 = 0 ;
9791 int val2 ;
9792 int ecode2 = 0 ;
9793 PyObject * obj0 = 0 ;
9794 PyObject * obj1 = 0 ;
9795 char * kwnames[] = {
9796 (char *) "self",(char *) "n", NULL
9797 };
9798
9799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9801 if (!SWIG_IsOK(res1)) {
9802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9803 }
9804 arg1 = reinterpret_cast< wxListBox * >(argp1);
9805 ecode2 = SWIG_AsVal_int(obj1, &val2);
9806 if (!SWIG_IsOK(ecode2)) {
9807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9808 }
9809 arg2 = static_cast< int >(val2);
9810 {
9811 PyThreadState* __tstate = wxPyBeginAllowThreads();
9812 (arg1)->EnsureVisible(arg2);
9813 wxPyEndAllowThreads(__tstate);
9814 if (PyErr_Occurred()) SWIG_fail;
9815 }
9816 resultobj = SWIG_Py_Void();
9817 return resultobj;
9818 fail:
9819 return NULL;
9820 }
9821
9822
9823 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9824 PyObject *resultobj = 0;
9825 wxListBox *arg1 = (wxListBox *) 0 ;
9826 wxString *arg2 = 0 ;
9827 void *argp1 = 0 ;
9828 int res1 = 0 ;
9829 bool temp2 = false ;
9830 PyObject * obj0 = 0 ;
9831 PyObject * obj1 = 0 ;
9832 char * kwnames[] = {
9833 (char *) "self",(char *) "s", NULL
9834 };
9835
9836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9838 if (!SWIG_IsOK(res1)) {
9839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9840 }
9841 arg1 = reinterpret_cast< wxListBox * >(argp1);
9842 {
9843 arg2 = wxString_in_helper(obj1);
9844 if (arg2 == NULL) SWIG_fail;
9845 temp2 = true;
9846 }
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 resultobj = SWIG_Py_Void();
9854 {
9855 if (temp2)
9856 delete arg2;
9857 }
9858 return resultobj;
9859 fail:
9860 {
9861 if (temp2)
9862 delete arg2;
9863 }
9864 return NULL;
9865 }
9866
9867
9868 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9869 PyObject *resultobj = 0;
9870 wxListBox *arg1 = (wxListBox *) 0 ;
9871 bool result;
9872 void *argp1 = 0 ;
9873 int res1 = 0 ;
9874 PyObject *swig_obj[1] ;
9875
9876 if (!args) SWIG_fail;
9877 swig_obj[0] = args;
9878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9879 if (!SWIG_IsOK(res1)) {
9880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9881 }
9882 arg1 = reinterpret_cast< wxListBox * >(argp1);
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 result = (bool)((wxListBox const *)arg1)->IsSorted();
9886 wxPyEndAllowThreads(__tstate);
9887 if (PyErr_Occurred()) SWIG_fail;
9888 }
9889 {
9890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9891 }
9892 return resultobj;
9893 fail:
9894 return NULL;
9895 }
9896
9897
9898 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9899 PyObject *resultobj = 0;
9900 wxListBox *arg1 = (wxListBox *) 0 ;
9901 wxPoint *arg2 = 0 ;
9902 int result;
9903 void *argp1 = 0 ;
9904 int res1 = 0 ;
9905 wxPoint temp2 ;
9906 PyObject * obj0 = 0 ;
9907 PyObject * obj1 = 0 ;
9908 char * kwnames[] = {
9909 (char *) "self",(char *) "pt", NULL
9910 };
9911
9912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) 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_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9916 }
9917 arg1 = reinterpret_cast< wxListBox * >(argp1);
9918 {
9919 arg2 = &temp2;
9920 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9921 }
9922 {
9923 PyThreadState* __tstate = wxPyBeginAllowThreads();
9924 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9925 wxPyEndAllowThreads(__tstate);
9926 if (PyErr_Occurred()) SWIG_fail;
9927 }
9928 resultobj = SWIG_From_int(static_cast< int >(result));
9929 return resultobj;
9930 fail:
9931 return NULL;
9932 }
9933
9934
9935 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9936 PyObject *resultobj = 0;
9937 wxListBox *arg1 = (wxListBox *) 0 ;
9938 int arg2 ;
9939 wxColour *arg3 = 0 ;
9940 void *argp1 = 0 ;
9941 int res1 = 0 ;
9942 int val2 ;
9943 int ecode2 = 0 ;
9944 wxColour temp3 ;
9945 PyObject * obj0 = 0 ;
9946 PyObject * obj1 = 0 ;
9947 PyObject * obj2 = 0 ;
9948 char * kwnames[] = {
9949 (char *) "self",(char *) "item",(char *) "c", NULL
9950 };
9951
9952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9954 if (!SWIG_IsOK(res1)) {
9955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9956 }
9957 arg1 = reinterpret_cast< wxListBox * >(argp1);
9958 ecode2 = SWIG_AsVal_int(obj1, &val2);
9959 if (!SWIG_IsOK(ecode2)) {
9960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9961 }
9962 arg2 = static_cast< int >(val2);
9963 {
9964 arg3 = &temp3;
9965 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9966 }
9967 {
9968 PyThreadState* __tstate = wxPyBeginAllowThreads();
9969 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9970 wxPyEndAllowThreads(__tstate);
9971 if (PyErr_Occurred()) SWIG_fail;
9972 }
9973 resultobj = SWIG_Py_Void();
9974 return resultobj;
9975 fail:
9976 return NULL;
9977 }
9978
9979
9980 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9981 PyObject *resultobj = 0;
9982 wxListBox *arg1 = (wxListBox *) 0 ;
9983 int arg2 ;
9984 wxColour *arg3 = 0 ;
9985 void *argp1 = 0 ;
9986 int res1 = 0 ;
9987 int val2 ;
9988 int ecode2 = 0 ;
9989 wxColour temp3 ;
9990 PyObject * obj0 = 0 ;
9991 PyObject * obj1 = 0 ;
9992 PyObject * obj2 = 0 ;
9993 char * kwnames[] = {
9994 (char *) "self",(char *) "item",(char *) "c", NULL
9995 };
9996
9997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9999 if (!SWIG_IsOK(res1)) {
10000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
10001 }
10002 arg1 = reinterpret_cast< wxListBox * >(argp1);
10003 ecode2 = SWIG_AsVal_int(obj1, &val2);
10004 if (!SWIG_IsOK(ecode2)) {
10005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
10006 }
10007 arg2 = static_cast< int >(val2);
10008 {
10009 arg3 = &temp3;
10010 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10011 }
10012 {
10013 PyThreadState* __tstate = wxPyBeginAllowThreads();
10014 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
10015 wxPyEndAllowThreads(__tstate);
10016 if (PyErr_Occurred()) SWIG_fail;
10017 }
10018 resultobj = SWIG_Py_Void();
10019 return resultobj;
10020 fail:
10021 return NULL;
10022 }
10023
10024
10025 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10026 PyObject *resultobj = 0;
10027 wxListBox *arg1 = (wxListBox *) 0 ;
10028 int arg2 ;
10029 wxFont *arg3 = 0 ;
10030 void *argp1 = 0 ;
10031 int res1 = 0 ;
10032 int val2 ;
10033 int ecode2 = 0 ;
10034 void *argp3 = 0 ;
10035 int res3 = 0 ;
10036 PyObject * obj0 = 0 ;
10037 PyObject * obj1 = 0 ;
10038 PyObject * obj2 = 0 ;
10039 char * kwnames[] = {
10040 (char *) "self",(char *) "item",(char *) "f", NULL
10041 };
10042
10043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
10045 if (!SWIG_IsOK(res1)) {
10046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
10047 }
10048 arg1 = reinterpret_cast< wxListBox * >(argp1);
10049 ecode2 = SWIG_AsVal_int(obj1, &val2);
10050 if (!SWIG_IsOK(ecode2)) {
10051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
10052 }
10053 arg2 = static_cast< int >(val2);
10054 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10055 if (!SWIG_IsOK(res3)) {
10056 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
10057 }
10058 if (!argp3) {
10059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
10060 }
10061 arg3 = reinterpret_cast< wxFont * >(argp3);
10062 {
10063 PyThreadState* __tstate = wxPyBeginAllowThreads();
10064 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
10065 wxPyEndAllowThreads(__tstate);
10066 if (PyErr_Occurred()) SWIG_fail;
10067 }
10068 resultobj = SWIG_Py_Void();
10069 return resultobj;
10070 fail:
10071 return NULL;
10072 }
10073
10074
10075 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10076 PyObject *resultobj = 0;
10077 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
10078 SwigValueWrapper<wxVisualAttributes > result;
10079 int val1 ;
10080 int ecode1 = 0 ;
10081 PyObject * obj0 = 0 ;
10082 char * kwnames[] = {
10083 (char *) "variant", NULL
10084 };
10085
10086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
10087 if (obj0) {
10088 ecode1 = SWIG_AsVal_int(obj0, &val1);
10089 if (!SWIG_IsOK(ecode1)) {
10090 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10091 }
10092 arg1 = static_cast< wxWindowVariant >(val1);
10093 }
10094 {
10095 if (!wxPyCheckForApp()) SWIG_fail;
10096 PyThreadState* __tstate = wxPyBeginAllowThreads();
10097 result = wxListBox::GetClassDefaultAttributes(arg1);
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 }
10101 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10102 return resultobj;
10103 fail:
10104 return NULL;
10105 }
10106
10107
10108 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10109 PyObject *obj;
10110 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10111 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10112 return SWIG_Py_Void();
10113 }
10114
10115 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10116 return SWIG_Python_InitShadowInstance(args);
10117 }
10118
10119 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10120 PyObject *resultobj = 0;
10121 wxWindow *arg1 = (wxWindow *) 0 ;
10122 int arg2 = (int) -1 ;
10123 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10124 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10125 wxSize const &arg4_defvalue = wxDefaultSize ;
10126 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10127 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10128 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10129 long arg6 = (long) 0 ;
10130 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10131 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10132 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10133 wxString *arg8 = (wxString *) &arg8_defvalue ;
10134 wxCheckListBox *result = 0 ;
10135 void *argp1 = 0 ;
10136 int res1 = 0 ;
10137 int val2 ;
10138 int ecode2 = 0 ;
10139 wxPoint temp3 ;
10140 wxSize temp4 ;
10141 bool temp5 = false ;
10142 long val6 ;
10143 int ecode6 = 0 ;
10144 void *argp7 = 0 ;
10145 int res7 = 0 ;
10146 bool temp8 = false ;
10147 PyObject * obj0 = 0 ;
10148 PyObject * obj1 = 0 ;
10149 PyObject * obj2 = 0 ;
10150 PyObject * obj3 = 0 ;
10151 PyObject * obj4 = 0 ;
10152 PyObject * obj5 = 0 ;
10153 PyObject * obj6 = 0 ;
10154 PyObject * obj7 = 0 ;
10155 char * kwnames[] = {
10156 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10157 };
10158
10159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10161 if (!SWIG_IsOK(res1)) {
10162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10163 }
10164 arg1 = reinterpret_cast< wxWindow * >(argp1);
10165 if (obj1) {
10166 ecode2 = SWIG_AsVal_int(obj1, &val2);
10167 if (!SWIG_IsOK(ecode2)) {
10168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10169 }
10170 arg2 = static_cast< int >(val2);
10171 }
10172 if (obj2) {
10173 {
10174 arg3 = &temp3;
10175 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10176 }
10177 }
10178 if (obj3) {
10179 {
10180 arg4 = &temp4;
10181 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10182 }
10183 }
10184 if (obj4) {
10185 {
10186 if (! PySequence_Check(obj4)) {
10187 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10188 SWIG_fail;
10189 }
10190 arg5 = new wxArrayString;
10191 temp5 = true;
10192 int i, len=PySequence_Length(obj4);
10193 for (i=0; i<len; i++) {
10194 PyObject* item = PySequence_GetItem(obj4, i);
10195 wxString* s = wxString_in_helper(item);
10196 if (PyErr_Occurred()) SWIG_fail;
10197 arg5->Add(*s);
10198 delete s;
10199 Py_DECREF(item);
10200 }
10201 }
10202 }
10203 if (obj5) {
10204 ecode6 = SWIG_AsVal_long(obj5, &val6);
10205 if (!SWIG_IsOK(ecode6)) {
10206 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10207 }
10208 arg6 = static_cast< long >(val6);
10209 }
10210 if (obj6) {
10211 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10212 if (!SWIG_IsOK(res7)) {
10213 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10214 }
10215 if (!argp7) {
10216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10217 }
10218 arg7 = reinterpret_cast< wxValidator * >(argp7);
10219 }
10220 if (obj7) {
10221 {
10222 arg8 = wxString_in_helper(obj7);
10223 if (arg8 == NULL) SWIG_fail;
10224 temp8 = true;
10225 }
10226 }
10227 {
10228 if (!wxPyCheckForApp()) SWIG_fail;
10229 PyThreadState* __tstate = wxPyBeginAllowThreads();
10230 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10231 wxPyEndAllowThreads(__tstate);
10232 if (PyErr_Occurred()) SWIG_fail;
10233 }
10234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10235 {
10236 if (temp5) delete arg5;
10237 }
10238 {
10239 if (temp8)
10240 delete arg8;
10241 }
10242 return resultobj;
10243 fail:
10244 {
10245 if (temp5) delete arg5;
10246 }
10247 {
10248 if (temp8)
10249 delete arg8;
10250 }
10251 return NULL;
10252 }
10253
10254
10255 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10256 PyObject *resultobj = 0;
10257 wxCheckListBox *result = 0 ;
10258
10259 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10260 {
10261 if (!wxPyCheckForApp()) SWIG_fail;
10262 PyThreadState* __tstate = wxPyBeginAllowThreads();
10263 result = (wxCheckListBox *)new wxCheckListBox();
10264 wxPyEndAllowThreads(__tstate);
10265 if (PyErr_Occurred()) SWIG_fail;
10266 }
10267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10268 return resultobj;
10269 fail:
10270 return NULL;
10271 }
10272
10273
10274 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10275 PyObject *resultobj = 0;
10276 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10277 wxWindow *arg2 = (wxWindow *) 0 ;
10278 int arg3 = (int) -1 ;
10279 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10280 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10281 wxSize const &arg5_defvalue = wxDefaultSize ;
10282 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10283 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10284 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10285 long arg7 = (long) 0 ;
10286 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10287 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10288 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10289 wxString *arg9 = (wxString *) &arg9_defvalue ;
10290 bool result;
10291 void *argp1 = 0 ;
10292 int res1 = 0 ;
10293 void *argp2 = 0 ;
10294 int res2 = 0 ;
10295 int val3 ;
10296 int ecode3 = 0 ;
10297 wxPoint temp4 ;
10298 wxSize temp5 ;
10299 bool temp6 = false ;
10300 long val7 ;
10301 int ecode7 = 0 ;
10302 void *argp8 = 0 ;
10303 int res8 = 0 ;
10304 bool temp9 = false ;
10305 PyObject * obj0 = 0 ;
10306 PyObject * obj1 = 0 ;
10307 PyObject * obj2 = 0 ;
10308 PyObject * obj3 = 0 ;
10309 PyObject * obj4 = 0 ;
10310 PyObject * obj5 = 0 ;
10311 PyObject * obj6 = 0 ;
10312 PyObject * obj7 = 0 ;
10313 PyObject * obj8 = 0 ;
10314 char * kwnames[] = {
10315 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10316 };
10317
10318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10320 if (!SWIG_IsOK(res1)) {
10321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10322 }
10323 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10324 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10325 if (!SWIG_IsOK(res2)) {
10326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10327 }
10328 arg2 = reinterpret_cast< wxWindow * >(argp2);
10329 if (obj2) {
10330 ecode3 = SWIG_AsVal_int(obj2, &val3);
10331 if (!SWIG_IsOK(ecode3)) {
10332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10333 }
10334 arg3 = static_cast< int >(val3);
10335 }
10336 if (obj3) {
10337 {
10338 arg4 = &temp4;
10339 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10340 }
10341 }
10342 if (obj4) {
10343 {
10344 arg5 = &temp5;
10345 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10346 }
10347 }
10348 if (obj5) {
10349 {
10350 if (! PySequence_Check(obj5)) {
10351 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10352 SWIG_fail;
10353 }
10354 arg6 = new wxArrayString;
10355 temp6 = true;
10356 int i, len=PySequence_Length(obj5);
10357 for (i=0; i<len; i++) {
10358 PyObject* item = PySequence_GetItem(obj5, i);
10359 wxString* s = wxString_in_helper(item);
10360 if (PyErr_Occurred()) SWIG_fail;
10361 arg6->Add(*s);
10362 delete s;
10363 Py_DECREF(item);
10364 }
10365 }
10366 }
10367 if (obj6) {
10368 ecode7 = SWIG_AsVal_long(obj6, &val7);
10369 if (!SWIG_IsOK(ecode7)) {
10370 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10371 }
10372 arg7 = static_cast< long >(val7);
10373 }
10374 if (obj7) {
10375 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10376 if (!SWIG_IsOK(res8)) {
10377 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10378 }
10379 if (!argp8) {
10380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10381 }
10382 arg8 = reinterpret_cast< wxValidator * >(argp8);
10383 }
10384 if (obj8) {
10385 {
10386 arg9 = wxString_in_helper(obj8);
10387 if (arg9 == NULL) SWIG_fail;
10388 temp9 = true;
10389 }
10390 }
10391 {
10392 PyThreadState* __tstate = wxPyBeginAllowThreads();
10393 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10394 wxPyEndAllowThreads(__tstate);
10395 if (PyErr_Occurred()) SWIG_fail;
10396 }
10397 {
10398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10399 }
10400 {
10401 if (temp6) delete arg6;
10402 }
10403 {
10404 if (temp9)
10405 delete arg9;
10406 }
10407 return resultobj;
10408 fail:
10409 {
10410 if (temp6) delete arg6;
10411 }
10412 {
10413 if (temp9)
10414 delete arg9;
10415 }
10416 return NULL;
10417 }
10418
10419
10420 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj = 0;
10422 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10423 unsigned int arg2 ;
10424 bool result;
10425 void *argp1 = 0 ;
10426 int res1 = 0 ;
10427 unsigned int val2 ;
10428 int ecode2 = 0 ;
10429 PyObject * obj0 = 0 ;
10430 PyObject * obj1 = 0 ;
10431 char * kwnames[] = {
10432 (char *) "self",(char *) "index", NULL
10433 };
10434
10435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10437 if (!SWIG_IsOK(res1)) {
10438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10439 }
10440 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10441 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10442 if (!SWIG_IsOK(ecode2)) {
10443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10444 }
10445 arg2 = static_cast< unsigned int >(val2);
10446 {
10447 PyThreadState* __tstate = wxPyBeginAllowThreads();
10448 result = (bool)(arg1)->IsChecked(arg2);
10449 wxPyEndAllowThreads(__tstate);
10450 if (PyErr_Occurred()) SWIG_fail;
10451 }
10452 {
10453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10454 }
10455 return resultobj;
10456 fail:
10457 return NULL;
10458 }
10459
10460
10461 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10462 PyObject *resultobj = 0;
10463 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10464 unsigned int arg2 ;
10465 int arg3 = (int) true ;
10466 void *argp1 = 0 ;
10467 int res1 = 0 ;
10468 unsigned int val2 ;
10469 int ecode2 = 0 ;
10470 int val3 ;
10471 int ecode3 = 0 ;
10472 PyObject * obj0 = 0 ;
10473 PyObject * obj1 = 0 ;
10474 PyObject * obj2 = 0 ;
10475 char * kwnames[] = {
10476 (char *) "self",(char *) "index",(char *) "check", NULL
10477 };
10478
10479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10481 if (!SWIG_IsOK(res1)) {
10482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10483 }
10484 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10485 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10486 if (!SWIG_IsOK(ecode2)) {
10487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10488 }
10489 arg2 = static_cast< unsigned int >(val2);
10490 if (obj2) {
10491 ecode3 = SWIG_AsVal_int(obj2, &val3);
10492 if (!SWIG_IsOK(ecode3)) {
10493 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10494 }
10495 arg3 = static_cast< int >(val3);
10496 }
10497 {
10498 PyThreadState* __tstate = wxPyBeginAllowThreads();
10499 (arg1)->Check(arg2,arg3);
10500 wxPyEndAllowThreads(__tstate);
10501 if (PyErr_Occurred()) SWIG_fail;
10502 }
10503 resultobj = SWIG_Py_Void();
10504 return resultobj;
10505 fail:
10506 return NULL;
10507 }
10508
10509
10510 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10511 PyObject *obj;
10512 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10513 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10514 return SWIG_Py_Void();
10515 }
10516
10517 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10518 return SWIG_Python_InitShadowInstance(args);
10519 }
10520
10521 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10522 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10523 return 1;
10524 }
10525
10526
10527 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10528 PyObject *pyobj = 0;
10529
10530 {
10531 #if wxUSE_UNICODE
10532 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10533 #else
10534 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10535 #endif
10536 }
10537 return pyobj;
10538 }
10539
10540
10541 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10542 PyObject *resultobj = 0;
10543 wxColour const &arg1_defvalue = wxNullColour ;
10544 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10545 wxColour const &arg2_defvalue = wxNullColour ;
10546 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10547 wxFont const &arg3_defvalue = wxNullFont ;
10548 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10549 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10550 wxTextAttr *result = 0 ;
10551 wxColour temp1 ;
10552 wxColour temp2 ;
10553 void *argp3 = 0 ;
10554 int res3 = 0 ;
10555 int val4 ;
10556 int ecode4 = 0 ;
10557 PyObject * obj0 = 0 ;
10558 PyObject * obj1 = 0 ;
10559 PyObject * obj2 = 0 ;
10560 PyObject * obj3 = 0 ;
10561 char * kwnames[] = {
10562 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10563 };
10564
10565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10566 if (obj0) {
10567 {
10568 arg1 = &temp1;
10569 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10570 }
10571 }
10572 if (obj1) {
10573 {
10574 arg2 = &temp2;
10575 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10576 }
10577 }
10578 if (obj2) {
10579 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10580 if (!SWIG_IsOK(res3)) {
10581 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10582 }
10583 if (!argp3) {
10584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10585 }
10586 arg3 = reinterpret_cast< wxFont * >(argp3);
10587 }
10588 if (obj3) {
10589 ecode4 = SWIG_AsVal_int(obj3, &val4);
10590 if (!SWIG_IsOK(ecode4)) {
10591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10592 }
10593 arg4 = static_cast< wxTextAttrAlignment >(val4);
10594 }
10595 {
10596 PyThreadState* __tstate = wxPyBeginAllowThreads();
10597 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10598 wxPyEndAllowThreads(__tstate);
10599 if (PyErr_Occurred()) SWIG_fail;
10600 }
10601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10602 return resultobj;
10603 fail:
10604 return NULL;
10605 }
10606
10607
10608 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10609 PyObject *resultobj = 0;
10610 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10611 void *argp1 = 0 ;
10612 int res1 = 0 ;
10613 PyObject *swig_obj[1] ;
10614
10615 if (!args) SWIG_fail;
10616 swig_obj[0] = args;
10617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10618 if (!SWIG_IsOK(res1)) {
10619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10620 }
10621 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10622 {
10623 PyThreadState* __tstate = wxPyBeginAllowThreads();
10624 delete arg1;
10625
10626 wxPyEndAllowThreads(__tstate);
10627 if (PyErr_Occurred()) SWIG_fail;
10628 }
10629 resultobj = SWIG_Py_Void();
10630 return resultobj;
10631 fail:
10632 return NULL;
10633 }
10634
10635
10636 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10637 PyObject *resultobj = 0;
10638 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10639 void *argp1 = 0 ;
10640 int res1 = 0 ;
10641 PyObject *swig_obj[1] ;
10642
10643 if (!args) SWIG_fail;
10644 swig_obj[0] = args;
10645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10646 if (!SWIG_IsOK(res1)) {
10647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10648 }
10649 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 (arg1)->Init();
10653 wxPyEndAllowThreads(__tstate);
10654 if (PyErr_Occurred()) SWIG_fail;
10655 }
10656 resultobj = SWIG_Py_Void();
10657 return resultobj;
10658 fail:
10659 return NULL;
10660 }
10661
10662
10663 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10664 PyObject *resultobj = 0;
10665 wxTextAttr *arg1 = 0 ;
10666 wxTextAttr *arg2 = 0 ;
10667 wxTextAttr result;
10668 void *argp1 = 0 ;
10669 int res1 = 0 ;
10670 void *argp2 = 0 ;
10671 int res2 = 0 ;
10672 PyObject * obj0 = 0 ;
10673 PyObject * obj1 = 0 ;
10674 char * kwnames[] = {
10675 (char *) "base",(char *) "overlay", NULL
10676 };
10677
10678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10679 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10680 if (!SWIG_IsOK(res1)) {
10681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10682 }
10683 if (!argp1) {
10684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10685 }
10686 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10687 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10688 if (!SWIG_IsOK(res2)) {
10689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10690 }
10691 if (!argp2) {
10692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10693 }
10694 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10695 {
10696 PyThreadState* __tstate = wxPyBeginAllowThreads();
10697 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
10701 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10702 return resultobj;
10703 fail:
10704 return NULL;
10705 }
10706
10707
10708 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10709 PyObject *resultobj = 0;
10710 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10711 wxColour *arg2 = 0 ;
10712 void *argp1 = 0 ;
10713 int res1 = 0 ;
10714 wxColour temp2 ;
10715 PyObject * obj0 = 0 ;
10716 PyObject * obj1 = 0 ;
10717 char * kwnames[] = {
10718 (char *) "self",(char *) "colText", NULL
10719 };
10720
10721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10723 if (!SWIG_IsOK(res1)) {
10724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10725 }
10726 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10727 {
10728 arg2 = &temp2;
10729 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10730 }
10731 {
10732 PyThreadState* __tstate = wxPyBeginAllowThreads();
10733 (arg1)->SetTextColour((wxColour const &)*arg2);
10734 wxPyEndAllowThreads(__tstate);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 }
10737 resultobj = SWIG_Py_Void();
10738 return resultobj;
10739 fail:
10740 return NULL;
10741 }
10742
10743
10744 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10745 PyObject *resultobj = 0;
10746 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10747 wxColour *arg2 = 0 ;
10748 void *argp1 = 0 ;
10749 int res1 = 0 ;
10750 wxColour temp2 ;
10751 PyObject * obj0 = 0 ;
10752 PyObject * obj1 = 0 ;
10753 char * kwnames[] = {
10754 (char *) "self",(char *) "colBack", NULL
10755 };
10756
10757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10759 if (!SWIG_IsOK(res1)) {
10760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10761 }
10762 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10763 {
10764 arg2 = &temp2;
10765 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10766 }
10767 {
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 resultobj = SWIG_Py_Void();
10774 return resultobj;
10775 fail:
10776 return NULL;
10777 }
10778
10779
10780 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10781 PyObject *resultobj = 0;
10782 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10783 wxFont *arg2 = 0 ;
10784 long arg3 = (long) wxTEXT_ATTR_FONT ;
10785 void *argp1 = 0 ;
10786 int res1 = 0 ;
10787 void *argp2 = 0 ;
10788 int res2 = 0 ;
10789 long val3 ;
10790 int ecode3 = 0 ;
10791 PyObject * obj0 = 0 ;
10792 PyObject * obj1 = 0 ;
10793 PyObject * obj2 = 0 ;
10794 char * kwnames[] = {
10795 (char *) "self",(char *) "font",(char *) "flags", NULL
10796 };
10797
10798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10800 if (!SWIG_IsOK(res1)) {
10801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10802 }
10803 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10805 if (!SWIG_IsOK(res2)) {
10806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10807 }
10808 if (!argp2) {
10809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10810 }
10811 arg2 = reinterpret_cast< wxFont * >(argp2);
10812 if (obj2) {
10813 ecode3 = SWIG_AsVal_long(obj2, &val3);
10814 if (!SWIG_IsOK(ecode3)) {
10815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10816 }
10817 arg3 = static_cast< long >(val3);
10818 }
10819 {
10820 PyThreadState* __tstate = wxPyBeginAllowThreads();
10821 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10822 wxPyEndAllowThreads(__tstate);
10823 if (PyErr_Occurred()) SWIG_fail;
10824 }
10825 resultobj = SWIG_Py_Void();
10826 return resultobj;
10827 fail:
10828 return NULL;
10829 }
10830
10831
10832 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10833 PyObject *resultobj = 0;
10834 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10835 wxTextAttrAlignment arg2 ;
10836 void *argp1 = 0 ;
10837 int res1 = 0 ;
10838 int val2 ;
10839 int ecode2 = 0 ;
10840 PyObject * obj0 = 0 ;
10841 PyObject * obj1 = 0 ;
10842 char * kwnames[] = {
10843 (char *) "self",(char *) "alignment", NULL
10844 };
10845
10846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10848 if (!SWIG_IsOK(res1)) {
10849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10850 }
10851 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10852 ecode2 = SWIG_AsVal_int(obj1, &val2);
10853 if (!SWIG_IsOK(ecode2)) {
10854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10855 }
10856 arg2 = static_cast< wxTextAttrAlignment >(val2);
10857 {
10858 PyThreadState* __tstate = wxPyBeginAllowThreads();
10859 (arg1)->SetAlignment(arg2);
10860 wxPyEndAllowThreads(__tstate);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 }
10863 resultobj = SWIG_Py_Void();
10864 return resultobj;
10865 fail:
10866 return NULL;
10867 }
10868
10869
10870 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10871 PyObject *resultobj = 0;
10872 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10873 wxArrayInt *arg2 = 0 ;
10874 void *argp1 = 0 ;
10875 int res1 = 0 ;
10876 bool temp2 = false ;
10877 PyObject * obj0 = 0 ;
10878 PyObject * obj1 = 0 ;
10879 char * kwnames[] = {
10880 (char *) "self",(char *) "tabs", NULL
10881 };
10882
10883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10885 if (!SWIG_IsOK(res1)) {
10886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10887 }
10888 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10889 {
10890 if (! PySequence_Check(obj1)) {
10891 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10892 SWIG_fail;
10893 }
10894 arg2 = new wxArrayInt;
10895 temp2 = true;
10896 int i, len=PySequence_Length(obj1);
10897 for (i=0; i<len; i++) {
10898 PyObject* item = PySequence_GetItem(obj1, i);
10899 PyObject* number = PyNumber_Int(item);
10900 if (!number) {
10901 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10902 SWIG_fail;
10903 }
10904 arg2->Add(PyInt_AS_LONG(number));
10905 Py_DECREF(item);
10906 Py_DECREF(number);
10907 }
10908 }
10909 {
10910 PyThreadState* __tstate = wxPyBeginAllowThreads();
10911 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10912 wxPyEndAllowThreads(__tstate);
10913 if (PyErr_Occurred()) SWIG_fail;
10914 }
10915 resultobj = SWIG_Py_Void();
10916 {
10917 if (temp2) delete arg2;
10918 }
10919 return resultobj;
10920 fail:
10921 {
10922 if (temp2) delete arg2;
10923 }
10924 return NULL;
10925 }
10926
10927
10928 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10929 PyObject *resultobj = 0;
10930 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10931 int arg2 ;
10932 int arg3 = (int) 0 ;
10933 void *argp1 = 0 ;
10934 int res1 = 0 ;
10935 int val2 ;
10936 int ecode2 = 0 ;
10937 int val3 ;
10938 int ecode3 = 0 ;
10939 PyObject * obj0 = 0 ;
10940 PyObject * obj1 = 0 ;
10941 PyObject * obj2 = 0 ;
10942 char * kwnames[] = {
10943 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10944 };
10945
10946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10948 if (!SWIG_IsOK(res1)) {
10949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10950 }
10951 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10952 ecode2 = SWIG_AsVal_int(obj1, &val2);
10953 if (!SWIG_IsOK(ecode2)) {
10954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10955 }
10956 arg2 = static_cast< int >(val2);
10957 if (obj2) {
10958 ecode3 = SWIG_AsVal_int(obj2, &val3);
10959 if (!SWIG_IsOK(ecode3)) {
10960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10961 }
10962 arg3 = static_cast< int >(val3);
10963 }
10964 {
10965 PyThreadState* __tstate = wxPyBeginAllowThreads();
10966 (arg1)->SetLeftIndent(arg2,arg3);
10967 wxPyEndAllowThreads(__tstate);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 }
10970 resultobj = SWIG_Py_Void();
10971 return resultobj;
10972 fail:
10973 return NULL;
10974 }
10975
10976
10977 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10978 PyObject *resultobj = 0;
10979 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10980 int arg2 ;
10981 void *argp1 = 0 ;
10982 int res1 = 0 ;
10983 int val2 ;
10984 int ecode2 = 0 ;
10985 PyObject * obj0 = 0 ;
10986 PyObject * obj1 = 0 ;
10987 char * kwnames[] = {
10988 (char *) "self",(char *) "indent", NULL
10989 };
10990
10991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10993 if (!SWIG_IsOK(res1)) {
10994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10995 }
10996 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10997 ecode2 = SWIG_AsVal_int(obj1, &val2);
10998 if (!SWIG_IsOK(ecode2)) {
10999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
11000 }
11001 arg2 = static_cast< int >(val2);
11002 {
11003 PyThreadState* __tstate = wxPyBeginAllowThreads();
11004 (arg1)->SetRightIndent(arg2);
11005 wxPyEndAllowThreads(__tstate);
11006 if (PyErr_Occurred()) SWIG_fail;
11007 }
11008 resultobj = SWIG_Py_Void();
11009 return resultobj;
11010 fail:
11011 return NULL;
11012 }
11013
11014
11015 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11016 PyObject *resultobj = 0;
11017 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11018 long arg2 ;
11019 void *argp1 = 0 ;
11020 int res1 = 0 ;
11021 long val2 ;
11022 int ecode2 = 0 ;
11023 PyObject * obj0 = 0 ;
11024 PyObject * obj1 = 0 ;
11025 char * kwnames[] = {
11026 (char *) "self",(char *) "flags", NULL
11027 };
11028
11029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
11030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11031 if (!SWIG_IsOK(res1)) {
11032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
11033 }
11034 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11035 ecode2 = SWIG_AsVal_long(obj1, &val2);
11036 if (!SWIG_IsOK(ecode2)) {
11037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
11038 }
11039 arg2 = static_cast< long >(val2);
11040 {
11041 PyThreadState* __tstate = wxPyBeginAllowThreads();
11042 (arg1)->SetFlags(arg2);
11043 wxPyEndAllowThreads(__tstate);
11044 if (PyErr_Occurred()) SWIG_fail;
11045 }
11046 resultobj = SWIG_Py_Void();
11047 return resultobj;
11048 fail:
11049 return NULL;
11050 }
11051
11052
11053 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11054 PyObject *resultobj = 0;
11055 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11056 bool result;
11057 void *argp1 = 0 ;
11058 int res1 = 0 ;
11059 PyObject *swig_obj[1] ;
11060
11061 if (!args) SWIG_fail;
11062 swig_obj[0] = args;
11063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11064 if (!SWIG_IsOK(res1)) {
11065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11066 }
11067 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11071 wxPyEndAllowThreads(__tstate);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 }
11074 {
11075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11076 }
11077 return resultobj;
11078 fail:
11079 return NULL;
11080 }
11081
11082
11083 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11084 PyObject *resultobj = 0;
11085 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11086 bool result;
11087 void *argp1 = 0 ;
11088 int res1 = 0 ;
11089 PyObject *swig_obj[1] ;
11090
11091 if (!args) SWIG_fail;
11092 swig_obj[0] = args;
11093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11094 if (!SWIG_IsOK(res1)) {
11095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11096 }
11097 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 {
11105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11106 }
11107 return resultobj;
11108 fail:
11109 return NULL;
11110 }
11111
11112
11113 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11114 PyObject *resultobj = 0;
11115 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11116 bool result;
11117 void *argp1 = 0 ;
11118 int res1 = 0 ;
11119 PyObject *swig_obj[1] ;
11120
11121 if (!args) SWIG_fail;
11122 swig_obj[0] = args;
11123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11124 if (!SWIG_IsOK(res1)) {
11125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11126 }
11127 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 {
11135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11136 }
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11144 PyObject *resultobj = 0;
11145 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11146 bool result;
11147 void *argp1 = 0 ;
11148 int res1 = 0 ;
11149 PyObject *swig_obj[1] ;
11150
11151 if (!args) SWIG_fail;
11152 swig_obj[0] = args;
11153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11154 if (!SWIG_IsOK(res1)) {
11155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11156 }
11157 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11161 wxPyEndAllowThreads(__tstate);
11162 if (PyErr_Occurred()) SWIG_fail;
11163 }
11164 {
11165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11166 }
11167 return resultobj;
11168 fail:
11169 return NULL;
11170 }
11171
11172
11173 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11174 PyObject *resultobj = 0;
11175 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11176 bool result;
11177 void *argp1 = 0 ;
11178 int res1 = 0 ;
11179 PyObject *swig_obj[1] ;
11180
11181 if (!args) SWIG_fail;
11182 swig_obj[0] = args;
11183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11184 if (!SWIG_IsOK(res1)) {
11185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11186 }
11187 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11188 {
11189 PyThreadState* __tstate = wxPyBeginAllowThreads();
11190 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11191 wxPyEndAllowThreads(__tstate);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 }
11194 {
11195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11196 }
11197 return resultobj;
11198 fail:
11199 return NULL;
11200 }
11201
11202
11203 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11204 PyObject *resultobj = 0;
11205 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11206 bool result;
11207 void *argp1 = 0 ;
11208 int res1 = 0 ;
11209 PyObject *swig_obj[1] ;
11210
11211 if (!args) SWIG_fail;
11212 swig_obj[0] = args;
11213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11214 if (!SWIG_IsOK(res1)) {
11215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11216 }
11217 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11218 {
11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
11220 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11221 wxPyEndAllowThreads(__tstate);
11222 if (PyErr_Occurred()) SWIG_fail;
11223 }
11224 {
11225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11226 }
11227 return resultobj;
11228 fail:
11229 return NULL;
11230 }
11231
11232
11233 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11234 PyObject *resultobj = 0;
11235 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11236 bool result;
11237 void *argp1 = 0 ;
11238 int res1 = 0 ;
11239 PyObject *swig_obj[1] ;
11240
11241 if (!args) SWIG_fail;
11242 swig_obj[0] = args;
11243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11244 if (!SWIG_IsOK(res1)) {
11245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11246 }
11247 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11248 {
11249 PyThreadState* __tstate = wxPyBeginAllowThreads();
11250 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11251 wxPyEndAllowThreads(__tstate);
11252 if (PyErr_Occurred()) SWIG_fail;
11253 }
11254 {
11255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11256 }
11257 return resultobj;
11258 fail:
11259 return NULL;
11260 }
11261
11262
11263 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11264 PyObject *resultobj = 0;
11265 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11266 long arg2 ;
11267 bool result;
11268 void *argp1 = 0 ;
11269 int res1 = 0 ;
11270 long val2 ;
11271 int ecode2 = 0 ;
11272 PyObject * obj0 = 0 ;
11273 PyObject * obj1 = 0 ;
11274 char * kwnames[] = {
11275 (char *) "self",(char *) "flag", NULL
11276 };
11277
11278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11280 if (!SWIG_IsOK(res1)) {
11281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11282 }
11283 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11284 ecode2 = SWIG_AsVal_long(obj1, &val2);
11285 if (!SWIG_IsOK(ecode2)) {
11286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11287 }
11288 arg2 = static_cast< long >(val2);
11289 {
11290 PyThreadState* __tstate = wxPyBeginAllowThreads();
11291 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11292 wxPyEndAllowThreads(__tstate);
11293 if (PyErr_Occurred()) SWIG_fail;
11294 }
11295 {
11296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11297 }
11298 return resultobj;
11299 fail:
11300 return NULL;
11301 }
11302
11303
11304 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11305 PyObject *resultobj = 0;
11306 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11307 wxColour *result = 0 ;
11308 void *argp1 = 0 ;
11309 int res1 = 0 ;
11310 PyObject *swig_obj[1] ;
11311
11312 if (!args) SWIG_fail;
11313 swig_obj[0] = args;
11314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11315 if (!SWIG_IsOK(res1)) {
11316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11317 }
11318 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11319 {
11320 PyThreadState* __tstate = wxPyBeginAllowThreads();
11321 {
11322 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11323 result = (wxColour *) &_result_ref;
11324 }
11325 wxPyEndAllowThreads(__tstate);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11329 return resultobj;
11330 fail:
11331 return NULL;
11332 }
11333
11334
11335 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11336 PyObject *resultobj = 0;
11337 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11338 wxColour *result = 0 ;
11339 void *argp1 = 0 ;
11340 int res1 = 0 ;
11341 PyObject *swig_obj[1] ;
11342
11343 if (!args) SWIG_fail;
11344 swig_obj[0] = args;
11345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11346 if (!SWIG_IsOK(res1)) {
11347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11348 }
11349 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11350 {
11351 PyThreadState* __tstate = wxPyBeginAllowThreads();
11352 {
11353 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11354 result = (wxColour *) &_result_ref;
11355 }
11356 wxPyEndAllowThreads(__tstate);
11357 if (PyErr_Occurred()) SWIG_fail;
11358 }
11359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11360 return resultobj;
11361 fail:
11362 return NULL;
11363 }
11364
11365
11366 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11367 PyObject *resultobj = 0;
11368 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11369 wxFont *result = 0 ;
11370 void *argp1 = 0 ;
11371 int res1 = 0 ;
11372 PyObject *swig_obj[1] ;
11373
11374 if (!args) SWIG_fail;
11375 swig_obj[0] = args;
11376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11377 if (!SWIG_IsOK(res1)) {
11378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11379 }
11380 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11381 {
11382 PyThreadState* __tstate = wxPyBeginAllowThreads();
11383 {
11384 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11385 result = (wxFont *) &_result_ref;
11386 }
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 {
11391 wxFont* resultptr = new wxFont(*result);
11392 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11393 }
11394 return resultobj;
11395 fail:
11396 return NULL;
11397 }
11398
11399
11400 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11401 PyObject *resultobj = 0;
11402 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11403 wxTextAttrAlignment result;
11404 void *argp1 = 0 ;
11405 int res1 = 0 ;
11406 PyObject *swig_obj[1] ;
11407
11408 if (!args) SWIG_fail;
11409 swig_obj[0] = args;
11410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11411 if (!SWIG_IsOK(res1)) {
11412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11413 }
11414 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11415 {
11416 PyThreadState* __tstate = wxPyBeginAllowThreads();
11417 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11418 wxPyEndAllowThreads(__tstate);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 resultobj = SWIG_From_int(static_cast< int >(result));
11422 return resultobj;
11423 fail:
11424 return NULL;
11425 }
11426
11427
11428 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11429 PyObject *resultobj = 0;
11430 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11431 wxArrayInt *result = 0 ;
11432 void *argp1 = 0 ;
11433 int res1 = 0 ;
11434 PyObject *swig_obj[1] ;
11435
11436 if (!args) SWIG_fail;
11437 swig_obj[0] = args;
11438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11439 if (!SWIG_IsOK(res1)) {
11440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11441 }
11442 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11443 {
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 {
11446 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11447 result = (wxArrayInt *) &_result_ref;
11448 }
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
11452 {
11453 resultobj = wxArrayInt2PyList_helper(*result);
11454 }
11455 return resultobj;
11456 fail:
11457 return NULL;
11458 }
11459
11460
11461 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11462 PyObject *resultobj = 0;
11463 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11464 long result;
11465 void *argp1 = 0 ;
11466 int res1 = 0 ;
11467 PyObject *swig_obj[1] ;
11468
11469 if (!args) SWIG_fail;
11470 swig_obj[0] = args;
11471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11472 if (!SWIG_IsOK(res1)) {
11473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11474 }
11475 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11476 {
11477 PyThreadState* __tstate = wxPyBeginAllowThreads();
11478 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11479 wxPyEndAllowThreads(__tstate);
11480 if (PyErr_Occurred()) SWIG_fail;
11481 }
11482 resultobj = SWIG_From_long(static_cast< long >(result));
11483 return resultobj;
11484 fail:
11485 return NULL;
11486 }
11487
11488
11489 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11490 PyObject *resultobj = 0;
11491 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11492 long result;
11493 void *argp1 = 0 ;
11494 int res1 = 0 ;
11495 PyObject *swig_obj[1] ;
11496
11497 if (!args) SWIG_fail;
11498 swig_obj[0] = args;
11499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11500 if (!SWIG_IsOK(res1)) {
11501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11502 }
11503 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11504 {
11505 PyThreadState* __tstate = wxPyBeginAllowThreads();
11506 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11507 wxPyEndAllowThreads(__tstate);
11508 if (PyErr_Occurred()) SWIG_fail;
11509 }
11510 resultobj = SWIG_From_long(static_cast< long >(result));
11511 return resultobj;
11512 fail:
11513 return NULL;
11514 }
11515
11516
11517 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11518 PyObject *resultobj = 0;
11519 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11520 long result;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 PyObject *swig_obj[1] ;
11524
11525 if (!args) SWIG_fail;
11526 swig_obj[0] = args;
11527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11528 if (!SWIG_IsOK(res1)) {
11529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11530 }
11531 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11532 {
11533 PyThreadState* __tstate = wxPyBeginAllowThreads();
11534 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
11538 resultobj = SWIG_From_long(static_cast< long >(result));
11539 return resultobj;
11540 fail:
11541 return NULL;
11542 }
11543
11544
11545 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11546 PyObject *resultobj = 0;
11547 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11548 long result;
11549 void *argp1 = 0 ;
11550 int res1 = 0 ;
11551 PyObject *swig_obj[1] ;
11552
11553 if (!args) SWIG_fail;
11554 swig_obj[0] = args;
11555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11556 if (!SWIG_IsOK(res1)) {
11557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11558 }
11559 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
11562 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11563 wxPyEndAllowThreads(__tstate);
11564 if (PyErr_Occurred()) SWIG_fail;
11565 }
11566 resultobj = SWIG_From_long(static_cast< long >(result));
11567 return resultobj;
11568 fail:
11569 return NULL;
11570 }
11571
11572
11573 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11574 PyObject *resultobj = 0;
11575 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11576 bool result;
11577 void *argp1 = 0 ;
11578 int res1 = 0 ;
11579 PyObject *swig_obj[1] ;
11580
11581 if (!args) SWIG_fail;
11582 swig_obj[0] = args;
11583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11584 if (!SWIG_IsOK(res1)) {
11585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11586 }
11587 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11591 wxPyEndAllowThreads(__tstate);
11592 if (PyErr_Occurred()) SWIG_fail;
11593 }
11594 {
11595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11596 }
11597 return resultobj;
11598 fail:
11599 return NULL;
11600 }
11601
11602
11603 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11604 PyObject *resultobj = 0;
11605 wxTextAttr *arg1 = 0 ;
11606 wxTextAttr *arg2 = 0 ;
11607 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11608 wxTextAttr result;
11609 void *argp1 = 0 ;
11610 int res1 = 0 ;
11611 void *argp2 = 0 ;
11612 int res2 = 0 ;
11613 void *argp3 = 0 ;
11614 int res3 = 0 ;
11615 PyObject * obj0 = 0 ;
11616 PyObject * obj1 = 0 ;
11617 PyObject * obj2 = 0 ;
11618 char * kwnames[] = {
11619 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11620 };
11621
11622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11623 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11624 if (!SWIG_IsOK(res1)) {
11625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11626 }
11627 if (!argp1) {
11628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11629 }
11630 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11632 if (!SWIG_IsOK(res2)) {
11633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11634 }
11635 if (!argp2) {
11636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11637 }
11638 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11639 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11640 if (!SWIG_IsOK(res3)) {
11641 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11642 }
11643 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11644 {
11645 PyThreadState* __tstate = wxPyBeginAllowThreads();
11646 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11647 wxPyEndAllowThreads(__tstate);
11648 if (PyErr_Occurred()) SWIG_fail;
11649 }
11650 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11651 return resultobj;
11652 fail:
11653 return NULL;
11654 }
11655
11656
11657 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11658 PyObject *obj;
11659 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11660 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11661 return SWIG_Py_Void();
11662 }
11663
11664 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11665 return SWIG_Python_InitShadowInstance(args);
11666 }
11667
11668 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11669 PyObject *resultobj = 0;
11670 wxWindow *arg1 = (wxWindow *) 0 ;
11671 int arg2 = (int) -1 ;
11672 wxString const &arg3_defvalue = wxPyEmptyString ;
11673 wxString *arg3 = (wxString *) &arg3_defvalue ;
11674 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11675 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11676 wxSize const &arg5_defvalue = wxDefaultSize ;
11677 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11678 long arg6 = (long) 0 ;
11679 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11680 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11681 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11682 wxString *arg8 = (wxString *) &arg8_defvalue ;
11683 wxTextCtrl *result = 0 ;
11684 void *argp1 = 0 ;
11685 int res1 = 0 ;
11686 int val2 ;
11687 int ecode2 = 0 ;
11688 bool temp3 = false ;
11689 wxPoint temp4 ;
11690 wxSize temp5 ;
11691 long val6 ;
11692 int ecode6 = 0 ;
11693 void *argp7 = 0 ;
11694 int res7 = 0 ;
11695 bool temp8 = false ;
11696 PyObject * obj0 = 0 ;
11697 PyObject * obj1 = 0 ;
11698 PyObject * obj2 = 0 ;
11699 PyObject * obj3 = 0 ;
11700 PyObject * obj4 = 0 ;
11701 PyObject * obj5 = 0 ;
11702 PyObject * obj6 = 0 ;
11703 PyObject * obj7 = 0 ;
11704 char * kwnames[] = {
11705 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11706 };
11707
11708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11710 if (!SWIG_IsOK(res1)) {
11711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11712 }
11713 arg1 = reinterpret_cast< wxWindow * >(argp1);
11714 if (obj1) {
11715 ecode2 = SWIG_AsVal_int(obj1, &val2);
11716 if (!SWIG_IsOK(ecode2)) {
11717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11718 }
11719 arg2 = static_cast< int >(val2);
11720 }
11721 if (obj2) {
11722 {
11723 arg3 = wxString_in_helper(obj2);
11724 if (arg3 == NULL) SWIG_fail;
11725 temp3 = true;
11726 }
11727 }
11728 if (obj3) {
11729 {
11730 arg4 = &temp4;
11731 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11732 }
11733 }
11734 if (obj4) {
11735 {
11736 arg5 = &temp5;
11737 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11738 }
11739 }
11740 if (obj5) {
11741 ecode6 = SWIG_AsVal_long(obj5, &val6);
11742 if (!SWIG_IsOK(ecode6)) {
11743 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11744 }
11745 arg6 = static_cast< long >(val6);
11746 }
11747 if (obj6) {
11748 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11749 if (!SWIG_IsOK(res7)) {
11750 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11751 }
11752 if (!argp7) {
11753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11754 }
11755 arg7 = reinterpret_cast< wxValidator * >(argp7);
11756 }
11757 if (obj7) {
11758 {
11759 arg8 = wxString_in_helper(obj7);
11760 if (arg8 == NULL) SWIG_fail;
11761 temp8 = true;
11762 }
11763 }
11764 {
11765 if (!wxPyCheckForApp()) SWIG_fail;
11766 PyThreadState* __tstate = wxPyBeginAllowThreads();
11767 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11768 wxPyEndAllowThreads(__tstate);
11769 if (PyErr_Occurred()) SWIG_fail;
11770 }
11771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11772 {
11773 if (temp3)
11774 delete arg3;
11775 }
11776 {
11777 if (temp8)
11778 delete arg8;
11779 }
11780 return resultobj;
11781 fail:
11782 {
11783 if (temp3)
11784 delete arg3;
11785 }
11786 {
11787 if (temp8)
11788 delete arg8;
11789 }
11790 return NULL;
11791 }
11792
11793
11794 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11795 PyObject *resultobj = 0;
11796 wxTextCtrl *result = 0 ;
11797
11798 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11799 {
11800 if (!wxPyCheckForApp()) SWIG_fail;
11801 PyThreadState* __tstate = wxPyBeginAllowThreads();
11802 result = (wxTextCtrl *)new wxTextCtrl();
11803 wxPyEndAllowThreads(__tstate);
11804 if (PyErr_Occurred()) SWIG_fail;
11805 }
11806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11807 return resultobj;
11808 fail:
11809 return NULL;
11810 }
11811
11812
11813 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11814 PyObject *resultobj = 0;
11815 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11816 wxWindow *arg2 = (wxWindow *) 0 ;
11817 int arg3 = (int) -1 ;
11818 wxString const &arg4_defvalue = wxPyEmptyString ;
11819 wxString *arg4 = (wxString *) &arg4_defvalue ;
11820 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11821 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11822 wxSize const &arg6_defvalue = wxDefaultSize ;
11823 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11824 long arg7 = (long) 0 ;
11825 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11826 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11827 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11828 wxString *arg9 = (wxString *) &arg9_defvalue ;
11829 bool result;
11830 void *argp1 = 0 ;
11831 int res1 = 0 ;
11832 void *argp2 = 0 ;
11833 int res2 = 0 ;
11834 int val3 ;
11835 int ecode3 = 0 ;
11836 bool temp4 = false ;
11837 wxPoint temp5 ;
11838 wxSize temp6 ;
11839 long val7 ;
11840 int ecode7 = 0 ;
11841 void *argp8 = 0 ;
11842 int res8 = 0 ;
11843 bool temp9 = false ;
11844 PyObject * obj0 = 0 ;
11845 PyObject * obj1 = 0 ;
11846 PyObject * obj2 = 0 ;
11847 PyObject * obj3 = 0 ;
11848 PyObject * obj4 = 0 ;
11849 PyObject * obj5 = 0 ;
11850 PyObject * obj6 = 0 ;
11851 PyObject * obj7 = 0 ;
11852 PyObject * obj8 = 0 ;
11853 char * kwnames[] = {
11854 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11855 };
11856
11857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11859 if (!SWIG_IsOK(res1)) {
11860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11861 }
11862 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11863 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11864 if (!SWIG_IsOK(res2)) {
11865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11866 }
11867 arg2 = reinterpret_cast< wxWindow * >(argp2);
11868 if (obj2) {
11869 ecode3 = SWIG_AsVal_int(obj2, &val3);
11870 if (!SWIG_IsOK(ecode3)) {
11871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11872 }
11873 arg3 = static_cast< int >(val3);
11874 }
11875 if (obj3) {
11876 {
11877 arg4 = wxString_in_helper(obj3);
11878 if (arg4 == NULL) SWIG_fail;
11879 temp4 = true;
11880 }
11881 }
11882 if (obj4) {
11883 {
11884 arg5 = &temp5;
11885 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11886 }
11887 }
11888 if (obj5) {
11889 {
11890 arg6 = &temp6;
11891 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11892 }
11893 }
11894 if (obj6) {
11895 ecode7 = SWIG_AsVal_long(obj6, &val7);
11896 if (!SWIG_IsOK(ecode7)) {
11897 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11898 }
11899 arg7 = static_cast< long >(val7);
11900 }
11901 if (obj7) {
11902 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11903 if (!SWIG_IsOK(res8)) {
11904 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11905 }
11906 if (!argp8) {
11907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11908 }
11909 arg8 = reinterpret_cast< wxValidator * >(argp8);
11910 }
11911 if (obj8) {
11912 {
11913 arg9 = wxString_in_helper(obj8);
11914 if (arg9 == NULL) SWIG_fail;
11915 temp9 = true;
11916 }
11917 }
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 {
11925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11926 }
11927 {
11928 if (temp4)
11929 delete arg4;
11930 }
11931 {
11932 if (temp9)
11933 delete arg9;
11934 }
11935 return resultobj;
11936 fail:
11937 {
11938 if (temp4)
11939 delete arg4;
11940 }
11941 {
11942 if (temp9)
11943 delete arg9;
11944 }
11945 return NULL;
11946 }
11947
11948
11949 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11950 PyObject *resultobj = 0;
11951 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11952 wxString result;
11953 void *argp1 = 0 ;
11954 int res1 = 0 ;
11955 PyObject *swig_obj[1] ;
11956
11957 if (!args) SWIG_fail;
11958 swig_obj[0] = args;
11959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11960 if (!SWIG_IsOK(res1)) {
11961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11962 }
11963 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11964 {
11965 PyThreadState* __tstate = wxPyBeginAllowThreads();
11966 result = ((wxTextCtrl const *)arg1)->GetValue();
11967 wxPyEndAllowThreads(__tstate);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
11970 {
11971 #if wxUSE_UNICODE
11972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11973 #else
11974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11975 #endif
11976 }
11977 return resultobj;
11978 fail:
11979 return NULL;
11980 }
11981
11982
11983 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11984 PyObject *resultobj = 0;
11985 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11986 wxString *arg2 = 0 ;
11987 void *argp1 = 0 ;
11988 int res1 = 0 ;
11989 bool temp2 = false ;
11990 PyObject * obj0 = 0 ;
11991 PyObject * obj1 = 0 ;
11992 char * kwnames[] = {
11993 (char *) "self",(char *) "value", NULL
11994 };
11995
11996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11998 if (!SWIG_IsOK(res1)) {
11999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12000 }
12001 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12002 {
12003 arg2 = wxString_in_helper(obj1);
12004 if (arg2 == NULL) SWIG_fail;
12005 temp2 = true;
12006 }
12007 {
12008 PyThreadState* __tstate = wxPyBeginAllowThreads();
12009 (arg1)->SetValue((wxString const &)*arg2);
12010 wxPyEndAllowThreads(__tstate);
12011 if (PyErr_Occurred()) SWIG_fail;
12012 }
12013 resultobj = SWIG_Py_Void();
12014 {
12015 if (temp2)
12016 delete arg2;
12017 }
12018 return resultobj;
12019 fail:
12020 {
12021 if (temp2)
12022 delete arg2;
12023 }
12024 return NULL;
12025 }
12026
12027
12028 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12029 PyObject *resultobj = 0;
12030 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12031 bool result;
12032 void *argp1 = 0 ;
12033 int res1 = 0 ;
12034 PyObject *swig_obj[1] ;
12035
12036 if (!args) SWIG_fail;
12037 swig_obj[0] = args;
12038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12039 if (!SWIG_IsOK(res1)) {
12040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12041 }
12042 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12043 {
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
12046 wxPyEndAllowThreads(__tstate);
12047 if (PyErr_Occurred()) SWIG_fail;
12048 }
12049 {
12050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12051 }
12052 return resultobj;
12053 fail:
12054 return NULL;
12055 }
12056
12057
12058 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12059 PyObject *resultobj = 0;
12060 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12061 wxString *arg2 = 0 ;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 bool temp2 = false ;
12065 PyObject * obj0 = 0 ;
12066 PyObject * obj1 = 0 ;
12067 char * kwnames[] = {
12068 (char *) "self",(char *) "value", NULL
12069 };
12070
12071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12073 if (!SWIG_IsOK(res1)) {
12074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12075 }
12076 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12077 {
12078 arg2 = wxString_in_helper(obj1);
12079 if (arg2 == NULL) SWIG_fail;
12080 temp2 = true;
12081 }
12082 {
12083 PyThreadState* __tstate = wxPyBeginAllowThreads();
12084 (arg1)->ChangeValue((wxString const &)*arg2);
12085 wxPyEndAllowThreads(__tstate);
12086 if (PyErr_Occurred()) SWIG_fail;
12087 }
12088 resultobj = SWIG_Py_Void();
12089 {
12090 if (temp2)
12091 delete arg2;
12092 }
12093 return resultobj;
12094 fail:
12095 {
12096 if (temp2)
12097 delete arg2;
12098 }
12099 return NULL;
12100 }
12101
12102
12103 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12104 PyObject *resultobj = 0;
12105 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12106 long arg2 ;
12107 long arg3 ;
12108 wxString result;
12109 void *argp1 = 0 ;
12110 int res1 = 0 ;
12111 long val2 ;
12112 int ecode2 = 0 ;
12113 long val3 ;
12114 int ecode3 = 0 ;
12115 PyObject * obj0 = 0 ;
12116 PyObject * obj1 = 0 ;
12117 PyObject * obj2 = 0 ;
12118 char * kwnames[] = {
12119 (char *) "self",(char *) "from",(char *) "to", NULL
12120 };
12121
12122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12124 if (!SWIG_IsOK(res1)) {
12125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12126 }
12127 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12128 ecode2 = SWIG_AsVal_long(obj1, &val2);
12129 if (!SWIG_IsOK(ecode2)) {
12130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12131 }
12132 arg2 = static_cast< long >(val2);
12133 ecode3 = SWIG_AsVal_long(obj2, &val3);
12134 if (!SWIG_IsOK(ecode3)) {
12135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12136 }
12137 arg3 = static_cast< long >(val3);
12138 {
12139 PyThreadState* __tstate = wxPyBeginAllowThreads();
12140 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12141 wxPyEndAllowThreads(__tstate);
12142 if (PyErr_Occurred()) SWIG_fail;
12143 }
12144 {
12145 #if wxUSE_UNICODE
12146 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12147 #else
12148 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12149 #endif
12150 }
12151 return resultobj;
12152 fail:
12153 return NULL;
12154 }
12155
12156
12157 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12158 PyObject *resultobj = 0;
12159 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12160 long arg2 ;
12161 int result;
12162 void *argp1 = 0 ;
12163 int res1 = 0 ;
12164 long val2 ;
12165 int ecode2 = 0 ;
12166 PyObject * obj0 = 0 ;
12167 PyObject * obj1 = 0 ;
12168 char * kwnames[] = {
12169 (char *) "self",(char *) "lineNo", NULL
12170 };
12171
12172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12174 if (!SWIG_IsOK(res1)) {
12175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12176 }
12177 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12178 ecode2 = SWIG_AsVal_long(obj1, &val2);
12179 if (!SWIG_IsOK(ecode2)) {
12180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12181 }
12182 arg2 = static_cast< long >(val2);
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12186 wxPyEndAllowThreads(__tstate);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 resultobj = SWIG_From_int(static_cast< int >(result));
12190 return resultobj;
12191 fail:
12192 return NULL;
12193 }
12194
12195
12196 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12197 PyObject *resultobj = 0;
12198 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12199 long arg2 ;
12200 wxString result;
12201 void *argp1 = 0 ;
12202 int res1 = 0 ;
12203 long val2 ;
12204 int ecode2 = 0 ;
12205 PyObject * obj0 = 0 ;
12206 PyObject * obj1 = 0 ;
12207 char * kwnames[] = {
12208 (char *) "self",(char *) "lineNo", NULL
12209 };
12210
12211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12213 if (!SWIG_IsOK(res1)) {
12214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12215 }
12216 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12217 ecode2 = SWIG_AsVal_long(obj1, &val2);
12218 if (!SWIG_IsOK(ecode2)) {
12219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12220 }
12221 arg2 = static_cast< long >(val2);
12222 {
12223 PyThreadState* __tstate = wxPyBeginAllowThreads();
12224 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 {
12229 #if wxUSE_UNICODE
12230 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12231 #else
12232 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12233 #endif
12234 }
12235 return resultobj;
12236 fail:
12237 return NULL;
12238 }
12239
12240
12241 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12242 PyObject *resultobj = 0;
12243 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12244 int result;
12245 void *argp1 = 0 ;
12246 int res1 = 0 ;
12247 PyObject *swig_obj[1] ;
12248
12249 if (!args) SWIG_fail;
12250 swig_obj[0] = args;
12251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12252 if (!SWIG_IsOK(res1)) {
12253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12254 }
12255 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12259 wxPyEndAllowThreads(__tstate);
12260 if (PyErr_Occurred()) SWIG_fail;
12261 }
12262 resultobj = SWIG_From_int(static_cast< int >(result));
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12272 bool result;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject *swig_obj[1] ;
12276
12277 if (!args) SWIG_fail;
12278 swig_obj[0] = args;
12279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12282 }
12283 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 {
12291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12292 }
12293 return resultobj;
12294 fail:
12295 return NULL;
12296 }
12297
12298
12299 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12300 PyObject *resultobj = 0;
12301 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12302 bool result;
12303 void *argp1 = 0 ;
12304 int res1 = 0 ;
12305 PyObject *swig_obj[1] ;
12306
12307 if (!args) SWIG_fail;
12308 swig_obj[0] = args;
12309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12310 if (!SWIG_IsOK(res1)) {
12311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12312 }
12313 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12314 {
12315 PyThreadState* __tstate = wxPyBeginAllowThreads();
12316 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12317 wxPyEndAllowThreads(__tstate);
12318 if (PyErr_Occurred()) SWIG_fail;
12319 }
12320 {
12321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12322 }
12323 return resultobj;
12324 fail:
12325 return NULL;
12326 }
12327
12328
12329 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12330 PyObject *resultobj = 0;
12331 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12332 bool result;
12333 void *argp1 = 0 ;
12334 int res1 = 0 ;
12335 PyObject *swig_obj[1] ;
12336
12337 if (!args) SWIG_fail;
12338 swig_obj[0] = args;
12339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12340 if (!SWIG_IsOK(res1)) {
12341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12342 }
12343 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12344 {
12345 PyThreadState* __tstate = wxPyBeginAllowThreads();
12346 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12347 wxPyEndAllowThreads(__tstate);
12348 if (PyErr_Occurred()) SWIG_fail;
12349 }
12350 {
12351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12352 }
12353 return resultobj;
12354 fail:
12355 return NULL;
12356 }
12357
12358
12359 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12360 PyObject *resultobj = 0;
12361 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12362 bool result;
12363 void *argp1 = 0 ;
12364 int res1 = 0 ;
12365 PyObject *swig_obj[1] ;
12366
12367 if (!args) SWIG_fail;
12368 swig_obj[0] = args;
12369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12370 if (!SWIG_IsOK(res1)) {
12371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12372 }
12373 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12374 {
12375 PyThreadState* __tstate = wxPyBeginAllowThreads();
12376 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12377 wxPyEndAllowThreads(__tstate);
12378 if (PyErr_Occurred()) SWIG_fail;
12379 }
12380 {
12381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12382 }
12383 return resultobj;
12384 fail:
12385 return NULL;
12386 }
12387
12388
12389 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12390 PyObject *resultobj = 0;
12391 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12392 long *arg2 = (long *) 0 ;
12393 long *arg3 = (long *) 0 ;
12394 void *argp1 = 0 ;
12395 int res1 = 0 ;
12396 long temp2 ;
12397 int res2 = SWIG_TMPOBJ ;
12398 long temp3 ;
12399 int res3 = SWIG_TMPOBJ ;
12400 PyObject *swig_obj[1] ;
12401
12402 arg2 = &temp2;
12403 arg3 = &temp3;
12404 if (!args) SWIG_fail;
12405 swig_obj[0] = args;
12406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12407 if (!SWIG_IsOK(res1)) {
12408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12409 }
12410 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12411 {
12412 PyThreadState* __tstate = wxPyBeginAllowThreads();
12413 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12414 wxPyEndAllowThreads(__tstate);
12415 if (PyErr_Occurred()) SWIG_fail;
12416 }
12417 resultobj = SWIG_Py_Void();
12418 if (SWIG_IsTmpObj(res2)) {
12419 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12420 } else {
12421 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12422 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12423 }
12424 if (SWIG_IsTmpObj(res3)) {
12425 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12426 } else {
12427 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12428 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12429 }
12430 return resultobj;
12431 fail:
12432 return NULL;
12433 }
12434
12435
12436 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12437 PyObject *resultobj = 0;
12438 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12439 wxString result;
12440 void *argp1 = 0 ;
12441 int res1 = 0 ;
12442 PyObject *swig_obj[1] ;
12443
12444 if (!args) SWIG_fail;
12445 swig_obj[0] = args;
12446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12447 if (!SWIG_IsOK(res1)) {
12448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12449 }
12450 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12451 {
12452 PyThreadState* __tstate = wxPyBeginAllowThreads();
12453 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12454 wxPyEndAllowThreads(__tstate);
12455 if (PyErr_Occurred()) SWIG_fail;
12456 }
12457 {
12458 #if wxUSE_UNICODE
12459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12460 #else
12461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12462 #endif
12463 }
12464 return resultobj;
12465 fail:
12466 return NULL;
12467 }
12468
12469
12470 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12471 PyObject *resultobj = 0;
12472 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12473 void *argp1 = 0 ;
12474 int res1 = 0 ;
12475 PyObject *swig_obj[1] ;
12476
12477 if (!args) SWIG_fail;
12478 swig_obj[0] = args;
12479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12480 if (!SWIG_IsOK(res1)) {
12481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12482 }
12483 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12484 {
12485 PyThreadState* __tstate = wxPyBeginAllowThreads();
12486 (arg1)->Clear();
12487 wxPyEndAllowThreads(__tstate);
12488 if (PyErr_Occurred()) SWIG_fail;
12489 }
12490 resultobj = SWIG_Py_Void();
12491 return resultobj;
12492 fail:
12493 return NULL;
12494 }
12495
12496
12497 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12498 PyObject *resultobj = 0;
12499 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12500 long arg2 ;
12501 long arg3 ;
12502 wxString *arg4 = 0 ;
12503 void *argp1 = 0 ;
12504 int res1 = 0 ;
12505 long val2 ;
12506 int ecode2 = 0 ;
12507 long val3 ;
12508 int ecode3 = 0 ;
12509 bool temp4 = false ;
12510 PyObject * obj0 = 0 ;
12511 PyObject * obj1 = 0 ;
12512 PyObject * obj2 = 0 ;
12513 PyObject * obj3 = 0 ;
12514 char * kwnames[] = {
12515 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12516 };
12517
12518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12520 if (!SWIG_IsOK(res1)) {
12521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12522 }
12523 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12524 ecode2 = SWIG_AsVal_long(obj1, &val2);
12525 if (!SWIG_IsOK(ecode2)) {
12526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12527 }
12528 arg2 = static_cast< long >(val2);
12529 ecode3 = SWIG_AsVal_long(obj2, &val3);
12530 if (!SWIG_IsOK(ecode3)) {
12531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12532 }
12533 arg3 = static_cast< long >(val3);
12534 {
12535 arg4 = wxString_in_helper(obj3);
12536 if (arg4 == NULL) SWIG_fail;
12537 temp4 = true;
12538 }
12539 {
12540 PyThreadState* __tstate = wxPyBeginAllowThreads();
12541 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12542 wxPyEndAllowThreads(__tstate);
12543 if (PyErr_Occurred()) SWIG_fail;
12544 }
12545 resultobj = SWIG_Py_Void();
12546 {
12547 if (temp4)
12548 delete arg4;
12549 }
12550 return resultobj;
12551 fail:
12552 {
12553 if (temp4)
12554 delete arg4;
12555 }
12556 return NULL;
12557 }
12558
12559
12560 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj = 0;
12562 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12563 long arg2 ;
12564 long arg3 ;
12565 void *argp1 = 0 ;
12566 int res1 = 0 ;
12567 long val2 ;
12568 int ecode2 = 0 ;
12569 long val3 ;
12570 int ecode3 = 0 ;
12571 PyObject * obj0 = 0 ;
12572 PyObject * obj1 = 0 ;
12573 PyObject * obj2 = 0 ;
12574 char * kwnames[] = {
12575 (char *) "self",(char *) "from",(char *) "to", NULL
12576 };
12577
12578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12580 if (!SWIG_IsOK(res1)) {
12581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12582 }
12583 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12584 ecode2 = SWIG_AsVal_long(obj1, &val2);
12585 if (!SWIG_IsOK(ecode2)) {
12586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12587 }
12588 arg2 = static_cast< long >(val2);
12589 ecode3 = SWIG_AsVal_long(obj2, &val3);
12590 if (!SWIG_IsOK(ecode3)) {
12591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12592 }
12593 arg3 = static_cast< long >(val3);
12594 {
12595 PyThreadState* __tstate = wxPyBeginAllowThreads();
12596 (arg1)->Remove(arg2,arg3);
12597 wxPyEndAllowThreads(__tstate);
12598 if (PyErr_Occurred()) SWIG_fail;
12599 }
12600 resultobj = SWIG_Py_Void();
12601 return resultobj;
12602 fail:
12603 return NULL;
12604 }
12605
12606
12607 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12608 PyObject *resultobj = 0;
12609 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12610 wxString *arg2 = 0 ;
12611 int arg3 = (int) wxTEXT_TYPE_ANY ;
12612 bool result;
12613 void *argp1 = 0 ;
12614 int res1 = 0 ;
12615 bool temp2 = false ;
12616 int val3 ;
12617 int ecode3 = 0 ;
12618 PyObject * obj0 = 0 ;
12619 PyObject * obj1 = 0 ;
12620 PyObject * obj2 = 0 ;
12621 char * kwnames[] = {
12622 (char *) "self",(char *) "file",(char *) "fileType", NULL
12623 };
12624
12625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12627 if (!SWIG_IsOK(res1)) {
12628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12629 }
12630 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12631 {
12632 arg2 = wxString_in_helper(obj1);
12633 if (arg2 == NULL) SWIG_fail;
12634 temp2 = true;
12635 }
12636 if (obj2) {
12637 ecode3 = SWIG_AsVal_int(obj2, &val3);
12638 if (!SWIG_IsOK(ecode3)) {
12639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12640 }
12641 arg3 = static_cast< int >(val3);
12642 }
12643 {
12644 PyThreadState* __tstate = wxPyBeginAllowThreads();
12645 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12646 wxPyEndAllowThreads(__tstate);
12647 if (PyErr_Occurred()) SWIG_fail;
12648 }
12649 {
12650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12651 }
12652 {
12653 if (temp2)
12654 delete arg2;
12655 }
12656 return resultobj;
12657 fail:
12658 {
12659 if (temp2)
12660 delete arg2;
12661 }
12662 return NULL;
12663 }
12664
12665
12666 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12667 PyObject *resultobj = 0;
12668 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12669 wxString const &arg2_defvalue = wxPyEmptyString ;
12670 wxString *arg2 = (wxString *) &arg2_defvalue ;
12671 int arg3 = (int) wxTEXT_TYPE_ANY ;
12672 bool result;
12673 void *argp1 = 0 ;
12674 int res1 = 0 ;
12675 bool temp2 = false ;
12676 int val3 ;
12677 int ecode3 = 0 ;
12678 PyObject * obj0 = 0 ;
12679 PyObject * obj1 = 0 ;
12680 PyObject * obj2 = 0 ;
12681 char * kwnames[] = {
12682 (char *) "self",(char *) "file",(char *) "fileType", NULL
12683 };
12684
12685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12687 if (!SWIG_IsOK(res1)) {
12688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12689 }
12690 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12691 if (obj1) {
12692 {
12693 arg2 = wxString_in_helper(obj1);
12694 if (arg2 == NULL) SWIG_fail;
12695 temp2 = true;
12696 }
12697 }
12698 if (obj2) {
12699 ecode3 = SWIG_AsVal_int(obj2, &val3);
12700 if (!SWIG_IsOK(ecode3)) {
12701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12702 }
12703 arg3 = static_cast< int >(val3);
12704 }
12705 {
12706 PyThreadState* __tstate = wxPyBeginAllowThreads();
12707 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12708 wxPyEndAllowThreads(__tstate);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 }
12711 {
12712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12713 }
12714 {
12715 if (temp2)
12716 delete arg2;
12717 }
12718 return resultobj;
12719 fail:
12720 {
12721 if (temp2)
12722 delete arg2;
12723 }
12724 return NULL;
12725 }
12726
12727
12728 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12729 PyObject *resultobj = 0;
12730 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12731 void *argp1 = 0 ;
12732 int res1 = 0 ;
12733 PyObject *swig_obj[1] ;
12734
12735 if (!args) SWIG_fail;
12736 swig_obj[0] = args;
12737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12738 if (!SWIG_IsOK(res1)) {
12739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12740 }
12741 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12742 {
12743 PyThreadState* __tstate = wxPyBeginAllowThreads();
12744 (arg1)->MarkDirty();
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 resultobj = SWIG_Py_Void();
12749 return resultobj;
12750 fail:
12751 return NULL;
12752 }
12753
12754
12755 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12756 PyObject *resultobj = 0;
12757 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12758 void *argp1 = 0 ;
12759 int res1 = 0 ;
12760 PyObject *swig_obj[1] ;
12761
12762 if (!args) SWIG_fail;
12763 swig_obj[0] = args;
12764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12765 if (!SWIG_IsOK(res1)) {
12766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12767 }
12768 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 (arg1)->DiscardEdits();
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 resultobj = SWIG_Py_Void();
12776 return resultobj;
12777 fail:
12778 return NULL;
12779 }
12780
12781
12782 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12783 PyObject *resultobj = 0;
12784 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12785 bool arg2 ;
12786 void *argp1 = 0 ;
12787 int res1 = 0 ;
12788 bool val2 ;
12789 int ecode2 = 0 ;
12790 PyObject * obj0 = 0 ;
12791 PyObject * obj1 = 0 ;
12792 char * kwnames[] = {
12793 (char *) "self",(char *) "modified", NULL
12794 };
12795
12796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12798 if (!SWIG_IsOK(res1)) {
12799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12800 }
12801 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12802 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12803 if (!SWIG_IsOK(ecode2)) {
12804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12805 }
12806 arg2 = static_cast< bool >(val2);
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 (arg1)->SetModified(arg2);
12810 wxPyEndAllowThreads(__tstate);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 resultobj = SWIG_Py_Void();
12814 return resultobj;
12815 fail:
12816 return NULL;
12817 }
12818
12819
12820 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12821 PyObject *resultobj = 0;
12822 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12823 unsigned long arg2 ;
12824 void *argp1 = 0 ;
12825 int res1 = 0 ;
12826 unsigned long val2 ;
12827 int ecode2 = 0 ;
12828 PyObject * obj0 = 0 ;
12829 PyObject * obj1 = 0 ;
12830 char * kwnames[] = {
12831 (char *) "self",(char *) "len", NULL
12832 };
12833
12834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12836 if (!SWIG_IsOK(res1)) {
12837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12838 }
12839 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12840 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12841 if (!SWIG_IsOK(ecode2)) {
12842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12843 }
12844 arg2 = static_cast< unsigned long >(val2);
12845 {
12846 PyThreadState* __tstate = wxPyBeginAllowThreads();
12847 (arg1)->SetMaxLength(arg2);
12848 wxPyEndAllowThreads(__tstate);
12849 if (PyErr_Occurred()) SWIG_fail;
12850 }
12851 resultobj = SWIG_Py_Void();
12852 return resultobj;
12853 fail:
12854 return NULL;
12855 }
12856
12857
12858 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12859 PyObject *resultobj = 0;
12860 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12861 wxString *arg2 = 0 ;
12862 void *argp1 = 0 ;
12863 int res1 = 0 ;
12864 bool temp2 = false ;
12865 PyObject * obj0 = 0 ;
12866 PyObject * obj1 = 0 ;
12867 char * kwnames[] = {
12868 (char *) "self",(char *) "text", NULL
12869 };
12870
12871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12873 if (!SWIG_IsOK(res1)) {
12874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12875 }
12876 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12877 {
12878 arg2 = wxString_in_helper(obj1);
12879 if (arg2 == NULL) SWIG_fail;
12880 temp2 = true;
12881 }
12882 {
12883 PyThreadState* __tstate = wxPyBeginAllowThreads();
12884 (arg1)->WriteText((wxString const &)*arg2);
12885 wxPyEndAllowThreads(__tstate);
12886 if (PyErr_Occurred()) SWIG_fail;
12887 }
12888 resultobj = SWIG_Py_Void();
12889 {
12890 if (temp2)
12891 delete arg2;
12892 }
12893 return resultobj;
12894 fail:
12895 {
12896 if (temp2)
12897 delete arg2;
12898 }
12899 return NULL;
12900 }
12901
12902
12903 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12904 PyObject *resultobj = 0;
12905 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12906 wxString *arg2 = 0 ;
12907 void *argp1 = 0 ;
12908 int res1 = 0 ;
12909 bool temp2 = false ;
12910 PyObject * obj0 = 0 ;
12911 PyObject * obj1 = 0 ;
12912 char * kwnames[] = {
12913 (char *) "self",(char *) "text", NULL
12914 };
12915
12916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12918 if (!SWIG_IsOK(res1)) {
12919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12920 }
12921 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12922 {
12923 arg2 = wxString_in_helper(obj1);
12924 if (arg2 == NULL) SWIG_fail;
12925 temp2 = true;
12926 }
12927 {
12928 PyThreadState* __tstate = wxPyBeginAllowThreads();
12929 (arg1)->AppendText((wxString const &)*arg2);
12930 wxPyEndAllowThreads(__tstate);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 }
12933 resultobj = SWIG_Py_Void();
12934 {
12935 if (temp2)
12936 delete arg2;
12937 }
12938 return resultobj;
12939 fail:
12940 {
12941 if (temp2)
12942 delete arg2;
12943 }
12944 return NULL;
12945 }
12946
12947
12948 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12949 PyObject *resultobj = 0;
12950 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12951 wxKeyEvent *arg2 = 0 ;
12952 bool result;
12953 void *argp1 = 0 ;
12954 int res1 = 0 ;
12955 void *argp2 = 0 ;
12956 int res2 = 0 ;
12957 PyObject * obj0 = 0 ;
12958 PyObject * obj1 = 0 ;
12959 char * kwnames[] = {
12960 (char *) "self",(char *) "event", NULL
12961 };
12962
12963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12965 if (!SWIG_IsOK(res1)) {
12966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12967 }
12968 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12969 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12970 if (!SWIG_IsOK(res2)) {
12971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12972 }
12973 if (!argp2) {
12974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12975 }
12976 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12977 {
12978 PyThreadState* __tstate = wxPyBeginAllowThreads();
12979 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12980 wxPyEndAllowThreads(__tstate);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 }
12983 {
12984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12985 }
12986 return resultobj;
12987 fail:
12988 return NULL;
12989 }
12990
12991
12992 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12993 PyObject *resultobj = 0;
12994 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12995 long arg2 ;
12996 long arg3 ;
12997 wxTextAttr *arg4 = 0 ;
12998 bool result;
12999 void *argp1 = 0 ;
13000 int res1 = 0 ;
13001 long val2 ;
13002 int ecode2 = 0 ;
13003 long val3 ;
13004 int ecode3 = 0 ;
13005 void *argp4 = 0 ;
13006 int res4 = 0 ;
13007 PyObject * obj0 = 0 ;
13008 PyObject * obj1 = 0 ;
13009 PyObject * obj2 = 0 ;
13010 PyObject * obj3 = 0 ;
13011 char * kwnames[] = {
13012 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
13013 };
13014
13015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13017 if (!SWIG_IsOK(res1)) {
13018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13019 }
13020 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13021 ecode2 = SWIG_AsVal_long(obj1, &val2);
13022 if (!SWIG_IsOK(ecode2)) {
13023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
13024 }
13025 arg2 = static_cast< long >(val2);
13026 ecode3 = SWIG_AsVal_long(obj2, &val3);
13027 if (!SWIG_IsOK(ecode3)) {
13028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
13029 }
13030 arg3 = static_cast< long >(val3);
13031 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
13032 if (!SWIG_IsOK(res4)) {
13033 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
13034 }
13035 if (!argp4) {
13036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
13037 }
13038 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
13039 {
13040 PyThreadState* __tstate = wxPyBeginAllowThreads();
13041 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
13042 wxPyEndAllowThreads(__tstate);
13043 if (PyErr_Occurred()) SWIG_fail;
13044 }
13045 {
13046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13047 }
13048 return resultobj;
13049 fail:
13050 return NULL;
13051 }
13052
13053
13054 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13055 PyObject *resultobj = 0;
13056 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13057 long arg2 ;
13058 wxTextAttr *arg3 = 0 ;
13059 bool result;
13060 void *argp1 = 0 ;
13061 int res1 = 0 ;
13062 long val2 ;
13063 int ecode2 = 0 ;
13064 void *argp3 = 0 ;
13065 int res3 = 0 ;
13066 PyObject * obj0 = 0 ;
13067 PyObject * obj1 = 0 ;
13068 PyObject * obj2 = 0 ;
13069 char * kwnames[] = {
13070 (char *) "self",(char *) "position",(char *) "style", NULL
13071 };
13072
13073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13075 if (!SWIG_IsOK(res1)) {
13076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13077 }
13078 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13079 ecode2 = SWIG_AsVal_long(obj1, &val2);
13080 if (!SWIG_IsOK(ecode2)) {
13081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13082 }
13083 arg2 = static_cast< long >(val2);
13084 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13085 if (!SWIG_IsOK(res3)) {
13086 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13087 }
13088 if (!argp3) {
13089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13090 }
13091 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13092 {
13093 PyThreadState* __tstate = wxPyBeginAllowThreads();
13094 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13095 wxPyEndAllowThreads(__tstate);
13096 if (PyErr_Occurred()) SWIG_fail;
13097 }
13098 {
13099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13100 }
13101 return resultobj;
13102 fail:
13103 return NULL;
13104 }
13105
13106
13107 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13108 PyObject *resultobj = 0;
13109 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13110 wxTextAttr *arg2 = 0 ;
13111 bool result;
13112 void *argp1 = 0 ;
13113 int res1 = 0 ;
13114 void *argp2 = 0 ;
13115 int res2 = 0 ;
13116 PyObject * obj0 = 0 ;
13117 PyObject * obj1 = 0 ;
13118 char * kwnames[] = {
13119 (char *) "self",(char *) "style", NULL
13120 };
13121
13122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13124 if (!SWIG_IsOK(res1)) {
13125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13126 }
13127 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13128 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13129 if (!SWIG_IsOK(res2)) {
13130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13131 }
13132 if (!argp2) {
13133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13134 }
13135 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13136 {
13137 PyThreadState* __tstate = wxPyBeginAllowThreads();
13138 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13139 wxPyEndAllowThreads(__tstate);
13140 if (PyErr_Occurred()) SWIG_fail;
13141 }
13142 {
13143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13144 }
13145 return resultobj;
13146 fail:
13147 return NULL;
13148 }
13149
13150
13151 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13152 PyObject *resultobj = 0;
13153 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13154 wxTextAttr *result = 0 ;
13155 void *argp1 = 0 ;
13156 int res1 = 0 ;
13157 PyObject *swig_obj[1] ;
13158
13159 if (!args) SWIG_fail;
13160 swig_obj[0] = args;
13161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13162 if (!SWIG_IsOK(res1)) {
13163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13164 }
13165 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13166 {
13167 PyThreadState* __tstate = wxPyBeginAllowThreads();
13168 {
13169 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13170 result = (wxTextAttr *) &_result_ref;
13171 }
13172 wxPyEndAllowThreads(__tstate);
13173 if (PyErr_Occurred()) SWIG_fail;
13174 }
13175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13176 return resultobj;
13177 fail:
13178 return NULL;
13179 }
13180
13181
13182 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13183 PyObject *resultobj = 0;
13184 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13185 long arg2 ;
13186 long arg3 ;
13187 long result;
13188 void *argp1 = 0 ;
13189 int res1 = 0 ;
13190 long val2 ;
13191 int ecode2 = 0 ;
13192 long val3 ;
13193 int ecode3 = 0 ;
13194 PyObject * obj0 = 0 ;
13195 PyObject * obj1 = 0 ;
13196 PyObject * obj2 = 0 ;
13197 char * kwnames[] = {
13198 (char *) "self",(char *) "x",(char *) "y", NULL
13199 };
13200
13201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13203 if (!SWIG_IsOK(res1)) {
13204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13205 }
13206 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13207 ecode2 = SWIG_AsVal_long(obj1, &val2);
13208 if (!SWIG_IsOK(ecode2)) {
13209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13210 }
13211 arg2 = static_cast< long >(val2);
13212 ecode3 = SWIG_AsVal_long(obj2, &val3);
13213 if (!SWIG_IsOK(ecode3)) {
13214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13215 }
13216 arg3 = static_cast< long >(val3);
13217 {
13218 PyThreadState* __tstate = wxPyBeginAllowThreads();
13219 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13220 wxPyEndAllowThreads(__tstate);
13221 if (PyErr_Occurred()) SWIG_fail;
13222 }
13223 resultobj = SWIG_From_long(static_cast< long >(result));
13224 return resultobj;
13225 fail:
13226 return NULL;
13227 }
13228
13229
13230 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13231 PyObject *resultobj = 0;
13232 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13233 long arg2 ;
13234 long *arg3 = (long *) 0 ;
13235 long *arg4 = (long *) 0 ;
13236 void *argp1 = 0 ;
13237 int res1 = 0 ;
13238 long val2 ;
13239 int ecode2 = 0 ;
13240 long temp3 ;
13241 int res3 = SWIG_TMPOBJ ;
13242 long temp4 ;
13243 int res4 = SWIG_TMPOBJ ;
13244 PyObject * obj0 = 0 ;
13245 PyObject * obj1 = 0 ;
13246 char * kwnames[] = {
13247 (char *) "self",(char *) "pos", NULL
13248 };
13249
13250 arg3 = &temp3;
13251 arg4 = &temp4;
13252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13254 if (!SWIG_IsOK(res1)) {
13255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13256 }
13257 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13258 ecode2 = SWIG_AsVal_long(obj1, &val2);
13259 if (!SWIG_IsOK(ecode2)) {
13260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13261 }
13262 arg2 = static_cast< long >(val2);
13263 {
13264 PyThreadState* __tstate = wxPyBeginAllowThreads();
13265 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13266 wxPyEndAllowThreads(__tstate);
13267 if (PyErr_Occurred()) SWIG_fail;
13268 }
13269 resultobj = SWIG_Py_Void();
13270 if (SWIG_IsTmpObj(res3)) {
13271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13272 } else {
13273 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13275 }
13276 if (SWIG_IsTmpObj(res4)) {
13277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13278 } else {
13279 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13281 }
13282 return resultobj;
13283 fail:
13284 return NULL;
13285 }
13286
13287
13288 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13289 PyObject *resultobj = 0;
13290 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13291 long arg2 ;
13292 void *argp1 = 0 ;
13293 int res1 = 0 ;
13294 long val2 ;
13295 int ecode2 = 0 ;
13296 PyObject * obj0 = 0 ;
13297 PyObject * obj1 = 0 ;
13298 char * kwnames[] = {
13299 (char *) "self",(char *) "pos", NULL
13300 };
13301
13302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13304 if (!SWIG_IsOK(res1)) {
13305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13306 }
13307 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13308 ecode2 = SWIG_AsVal_long(obj1, &val2);
13309 if (!SWIG_IsOK(ecode2)) {
13310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13311 }
13312 arg2 = static_cast< long >(val2);
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 (arg1)->ShowPosition(arg2);
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 resultobj = SWIG_Py_Void();
13320 return resultobj;
13321 fail:
13322 return NULL;
13323 }
13324
13325
13326 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(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 long *arg4 = (long *) 0 ;
13332 wxTextCtrlHitTestResult result;
13333 void *argp1 = 0 ;
13334 int res1 = 0 ;
13335 wxPoint temp2 ;
13336 long temp3 ;
13337 int res3 = SWIG_TMPOBJ ;
13338 long temp4 ;
13339 int res4 = SWIG_TMPOBJ ;
13340 PyObject * obj0 = 0 ;
13341 PyObject * obj1 = 0 ;
13342 char * kwnames[] = {
13343 (char *) "self",(char *) "pt", NULL
13344 };
13345
13346 arg3 = &temp3;
13347 arg4 = &temp4;
13348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13350 if (!SWIG_IsOK(res1)) {
13351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13352 }
13353 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13354 {
13355 arg2 = &temp2;
13356 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13357 }
13358 {
13359 PyThreadState* __tstate = wxPyBeginAllowThreads();
13360 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13361 wxPyEndAllowThreads(__tstate);
13362 if (PyErr_Occurred()) SWIG_fail;
13363 }
13364 resultobj = SWIG_From_int(static_cast< int >(result));
13365 if (SWIG_IsTmpObj(res3)) {
13366 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13367 } else {
13368 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13369 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13370 }
13371 if (SWIG_IsTmpObj(res4)) {
13372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13373 } else {
13374 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13376 }
13377 return resultobj;
13378 fail:
13379 return NULL;
13380 }
13381
13382
13383 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13384 PyObject *resultobj = 0;
13385 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13386 wxPoint *arg2 = 0 ;
13387 long *arg3 = (long *) 0 ;
13388 wxTextCtrlHitTestResult result;
13389 void *argp1 = 0 ;
13390 int res1 = 0 ;
13391 wxPoint temp2 ;
13392 long temp3 ;
13393 int res3 = SWIG_TMPOBJ ;
13394 PyObject * obj0 = 0 ;
13395 PyObject * obj1 = 0 ;
13396 char * kwnames[] = {
13397 (char *) "self",(char *) "pt", NULL
13398 };
13399
13400 arg3 = &temp3;
13401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13403 if (!SWIG_IsOK(res1)) {
13404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13405 }
13406 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13407 {
13408 arg2 = &temp2;
13409 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13410 }
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13414 wxPyEndAllowThreads(__tstate);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 }
13417 resultobj = SWIG_From_int(static_cast< int >(result));
13418 if (SWIG_IsTmpObj(res3)) {
13419 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13420 } else {
13421 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13422 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13423 }
13424 return resultobj;
13425 fail:
13426 return NULL;
13427 }
13428
13429
13430 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13431 PyObject *resultobj = 0;
13432 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13433 void *argp1 = 0 ;
13434 int res1 = 0 ;
13435 PyObject *swig_obj[1] ;
13436
13437 if (!args) SWIG_fail;
13438 swig_obj[0] = args;
13439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13440 if (!SWIG_IsOK(res1)) {
13441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13442 }
13443 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13444 {
13445 PyThreadState* __tstate = wxPyBeginAllowThreads();
13446 (arg1)->Copy();
13447 wxPyEndAllowThreads(__tstate);
13448 if (PyErr_Occurred()) SWIG_fail;
13449 }
13450 resultobj = SWIG_Py_Void();
13451 return resultobj;
13452 fail:
13453 return NULL;
13454 }
13455
13456
13457 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13458 PyObject *resultobj = 0;
13459 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13460 void *argp1 = 0 ;
13461 int res1 = 0 ;
13462 PyObject *swig_obj[1] ;
13463
13464 if (!args) SWIG_fail;
13465 swig_obj[0] = args;
13466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13467 if (!SWIG_IsOK(res1)) {
13468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13469 }
13470 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13471 {
13472 PyThreadState* __tstate = wxPyBeginAllowThreads();
13473 (arg1)->Cut();
13474 wxPyEndAllowThreads(__tstate);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 }
13477 resultobj = SWIG_Py_Void();
13478 return resultobj;
13479 fail:
13480 return NULL;
13481 }
13482
13483
13484 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13485 PyObject *resultobj = 0;
13486 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13487 void *argp1 = 0 ;
13488 int res1 = 0 ;
13489 PyObject *swig_obj[1] ;
13490
13491 if (!args) SWIG_fail;
13492 swig_obj[0] = args;
13493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13494 if (!SWIG_IsOK(res1)) {
13495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13496 }
13497 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13498 {
13499 PyThreadState* __tstate = wxPyBeginAllowThreads();
13500 (arg1)->Paste();
13501 wxPyEndAllowThreads(__tstate);
13502 if (PyErr_Occurred()) SWIG_fail;
13503 }
13504 resultobj = SWIG_Py_Void();
13505 return resultobj;
13506 fail:
13507 return NULL;
13508 }
13509
13510
13511 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13512 PyObject *resultobj = 0;
13513 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13514 bool result;
13515 void *argp1 = 0 ;
13516 int res1 = 0 ;
13517 PyObject *swig_obj[1] ;
13518
13519 if (!args) SWIG_fail;
13520 swig_obj[0] = args;
13521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13522 if (!SWIG_IsOK(res1)) {
13523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13524 }
13525 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13529 wxPyEndAllowThreads(__tstate);
13530 if (PyErr_Occurred()) SWIG_fail;
13531 }
13532 {
13533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13534 }
13535 return resultobj;
13536 fail:
13537 return NULL;
13538 }
13539
13540
13541 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13542 PyObject *resultobj = 0;
13543 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13544 bool result;
13545 void *argp1 = 0 ;
13546 int res1 = 0 ;
13547 PyObject *swig_obj[1] ;
13548
13549 if (!args) SWIG_fail;
13550 swig_obj[0] = args;
13551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13552 if (!SWIG_IsOK(res1)) {
13553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13554 }
13555 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
13558 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13559 wxPyEndAllowThreads(__tstate);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 {
13563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13564 }
13565 return resultobj;
13566 fail:
13567 return NULL;
13568 }
13569
13570
13571 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13572 PyObject *resultobj = 0;
13573 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13574 bool result;
13575 void *argp1 = 0 ;
13576 int res1 = 0 ;
13577 PyObject *swig_obj[1] ;
13578
13579 if (!args) SWIG_fail;
13580 swig_obj[0] = args;
13581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13582 if (!SWIG_IsOK(res1)) {
13583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13584 }
13585 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13586 {
13587 PyThreadState* __tstate = wxPyBeginAllowThreads();
13588 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13589 wxPyEndAllowThreads(__tstate);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 {
13593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13594 }
13595 return resultobj;
13596 fail:
13597 return NULL;
13598 }
13599
13600
13601 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13602 PyObject *resultobj = 0;
13603 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13604 void *argp1 = 0 ;
13605 int res1 = 0 ;
13606 PyObject *swig_obj[1] ;
13607
13608 if (!args) SWIG_fail;
13609 swig_obj[0] = args;
13610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13611 if (!SWIG_IsOK(res1)) {
13612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13613 }
13614 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13615 {
13616 PyThreadState* __tstate = wxPyBeginAllowThreads();
13617 (arg1)->Undo();
13618 wxPyEndAllowThreads(__tstate);
13619 if (PyErr_Occurred()) SWIG_fail;
13620 }
13621 resultobj = SWIG_Py_Void();
13622 return resultobj;
13623 fail:
13624 return NULL;
13625 }
13626
13627
13628 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13629 PyObject *resultobj = 0;
13630 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13631 void *argp1 = 0 ;
13632 int res1 = 0 ;
13633 PyObject *swig_obj[1] ;
13634
13635 if (!args) SWIG_fail;
13636 swig_obj[0] = args;
13637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13638 if (!SWIG_IsOK(res1)) {
13639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13640 }
13641 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13642 {
13643 PyThreadState* __tstate = wxPyBeginAllowThreads();
13644 (arg1)->Redo();
13645 wxPyEndAllowThreads(__tstate);
13646 if (PyErr_Occurred()) SWIG_fail;
13647 }
13648 resultobj = SWIG_Py_Void();
13649 return resultobj;
13650 fail:
13651 return NULL;
13652 }
13653
13654
13655 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13656 PyObject *resultobj = 0;
13657 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13658 bool result;
13659 void *argp1 = 0 ;
13660 int res1 = 0 ;
13661 PyObject *swig_obj[1] ;
13662
13663 if (!args) SWIG_fail;
13664 swig_obj[0] = args;
13665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13666 if (!SWIG_IsOK(res1)) {
13667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13668 }
13669 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13670 {
13671 PyThreadState* __tstate = wxPyBeginAllowThreads();
13672 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13673 wxPyEndAllowThreads(__tstate);
13674 if (PyErr_Occurred()) SWIG_fail;
13675 }
13676 {
13677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13678 }
13679 return resultobj;
13680 fail:
13681 return NULL;
13682 }
13683
13684
13685 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13686 PyObject *resultobj = 0;
13687 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13688 bool result;
13689 void *argp1 = 0 ;
13690 int res1 = 0 ;
13691 PyObject *swig_obj[1] ;
13692
13693 if (!args) SWIG_fail;
13694 swig_obj[0] = args;
13695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13696 if (!SWIG_IsOK(res1)) {
13697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13698 }
13699 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13700 {
13701 PyThreadState* __tstate = wxPyBeginAllowThreads();
13702 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13703 wxPyEndAllowThreads(__tstate);
13704 if (PyErr_Occurred()) SWIG_fail;
13705 }
13706 {
13707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13708 }
13709 return resultobj;
13710 fail:
13711 return NULL;
13712 }
13713
13714
13715 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13716 PyObject *resultobj = 0;
13717 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13718 long arg2 ;
13719 void *argp1 = 0 ;
13720 int res1 = 0 ;
13721 long val2 ;
13722 int ecode2 = 0 ;
13723 PyObject * obj0 = 0 ;
13724 PyObject * obj1 = 0 ;
13725 char * kwnames[] = {
13726 (char *) "self",(char *) "pos", NULL
13727 };
13728
13729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13731 if (!SWIG_IsOK(res1)) {
13732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13733 }
13734 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13735 ecode2 = SWIG_AsVal_long(obj1, &val2);
13736 if (!SWIG_IsOK(ecode2)) {
13737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13738 }
13739 arg2 = static_cast< long >(val2);
13740 {
13741 PyThreadState* __tstate = wxPyBeginAllowThreads();
13742 (arg1)->SetInsertionPoint(arg2);
13743 wxPyEndAllowThreads(__tstate);
13744 if (PyErr_Occurred()) SWIG_fail;
13745 }
13746 resultobj = SWIG_Py_Void();
13747 return resultobj;
13748 fail:
13749 return NULL;
13750 }
13751
13752
13753 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13754 PyObject *resultobj = 0;
13755 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13756 void *argp1 = 0 ;
13757 int res1 = 0 ;
13758 PyObject *swig_obj[1] ;
13759
13760 if (!args) SWIG_fail;
13761 swig_obj[0] = args;
13762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13763 if (!SWIG_IsOK(res1)) {
13764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13765 }
13766 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13767 {
13768 PyThreadState* __tstate = wxPyBeginAllowThreads();
13769 (arg1)->SetInsertionPointEnd();
13770 wxPyEndAllowThreads(__tstate);
13771 if (PyErr_Occurred()) SWIG_fail;
13772 }
13773 resultobj = SWIG_Py_Void();
13774 return resultobj;
13775 fail:
13776 return NULL;
13777 }
13778
13779
13780 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13781 PyObject *resultobj = 0;
13782 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13783 long result;
13784 void *argp1 = 0 ;
13785 int res1 = 0 ;
13786 PyObject *swig_obj[1] ;
13787
13788 if (!args) SWIG_fail;
13789 swig_obj[0] = args;
13790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13791 if (!SWIG_IsOK(res1)) {
13792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13793 }
13794 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13795 {
13796 PyThreadState* __tstate = wxPyBeginAllowThreads();
13797 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13798 wxPyEndAllowThreads(__tstate);
13799 if (PyErr_Occurred()) SWIG_fail;
13800 }
13801 resultobj = SWIG_From_long(static_cast< long >(result));
13802 return resultobj;
13803 fail:
13804 return NULL;
13805 }
13806
13807
13808 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13809 PyObject *resultobj = 0;
13810 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13811 long result;
13812 void *argp1 = 0 ;
13813 int res1 = 0 ;
13814 PyObject *swig_obj[1] ;
13815
13816 if (!args) SWIG_fail;
13817 swig_obj[0] = args;
13818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13819 if (!SWIG_IsOK(res1)) {
13820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13821 }
13822 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13823 {
13824 PyThreadState* __tstate = wxPyBeginAllowThreads();
13825 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 resultobj = SWIG_From_long(static_cast< long >(result));
13830 return resultobj;
13831 fail:
13832 return NULL;
13833 }
13834
13835
13836 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj = 0;
13838 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13839 long arg2 ;
13840 long arg3 ;
13841 void *argp1 = 0 ;
13842 int res1 = 0 ;
13843 long val2 ;
13844 int ecode2 = 0 ;
13845 long val3 ;
13846 int ecode3 = 0 ;
13847 PyObject * obj0 = 0 ;
13848 PyObject * obj1 = 0 ;
13849 PyObject * obj2 = 0 ;
13850 char * kwnames[] = {
13851 (char *) "self",(char *) "from",(char *) "to", NULL
13852 };
13853
13854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13856 if (!SWIG_IsOK(res1)) {
13857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13858 }
13859 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13860 ecode2 = SWIG_AsVal_long(obj1, &val2);
13861 if (!SWIG_IsOK(ecode2)) {
13862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13863 }
13864 arg2 = static_cast< long >(val2);
13865 ecode3 = SWIG_AsVal_long(obj2, &val3);
13866 if (!SWIG_IsOK(ecode3)) {
13867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13868 }
13869 arg3 = static_cast< long >(val3);
13870 {
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 (arg1)->SetSelection(arg2,arg3);
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 resultobj = SWIG_Py_Void();
13877 return resultobj;
13878 fail:
13879 return NULL;
13880 }
13881
13882
13883 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13884 PyObject *resultobj = 0;
13885 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13886 void *argp1 = 0 ;
13887 int res1 = 0 ;
13888 PyObject *swig_obj[1] ;
13889
13890 if (!args) SWIG_fail;
13891 swig_obj[0] = args;
13892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13893 if (!SWIG_IsOK(res1)) {
13894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13895 }
13896 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13897 {
13898 PyThreadState* __tstate = wxPyBeginAllowThreads();
13899 (arg1)->SelectAll();
13900 wxPyEndAllowThreads(__tstate);
13901 if (PyErr_Occurred()) SWIG_fail;
13902 }
13903 resultobj = SWIG_Py_Void();
13904 return resultobj;
13905 fail:
13906 return NULL;
13907 }
13908
13909
13910 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13911 PyObject *resultobj = 0;
13912 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13913 bool arg2 ;
13914 void *argp1 = 0 ;
13915 int res1 = 0 ;
13916 bool val2 ;
13917 int ecode2 = 0 ;
13918 PyObject * obj0 = 0 ;
13919 PyObject * obj1 = 0 ;
13920 char * kwnames[] = {
13921 (char *) "self",(char *) "editable", NULL
13922 };
13923
13924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13926 if (!SWIG_IsOK(res1)) {
13927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13928 }
13929 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13930 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13931 if (!SWIG_IsOK(ecode2)) {
13932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13933 }
13934 arg2 = static_cast< bool >(val2);
13935 {
13936 PyThreadState* __tstate = wxPyBeginAllowThreads();
13937 (arg1)->SetEditable(arg2);
13938 wxPyEndAllowThreads(__tstate);
13939 if (PyErr_Occurred()) SWIG_fail;
13940 }
13941 resultobj = SWIG_Py_Void();
13942 return resultobj;
13943 fail:
13944 return NULL;
13945 }
13946
13947
13948 SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13949 PyObject *resultobj = 0;
13950 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13951 bool arg2 ;
13952 void *argp1 = 0 ;
13953 int res1 = 0 ;
13954 bool val2 ;
13955 int ecode2 = 0 ;
13956 PyObject * obj0 = 0 ;
13957 PyObject * obj1 = 0 ;
13958 char * kwnames[] = {
13959 (char *) "self",(char *) "check", NULL
13960 };
13961
13962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13964 if (!SWIG_IsOK(res1)) {
13965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13966 }
13967 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13968 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13969 if (!SWIG_IsOK(ecode2)) {
13970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13971 }
13972 arg2 = static_cast< bool >(val2);
13973 {
13974 PyThreadState* __tstate = wxPyBeginAllowThreads();
13975 (arg1)->MacCheckSpelling(arg2);
13976 wxPyEndAllowThreads(__tstate);
13977 if (PyErr_Occurred()) SWIG_fail;
13978 }
13979 resultobj = SWIG_Py_Void();
13980 return resultobj;
13981 fail:
13982 return NULL;
13983 }
13984
13985
13986 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13987 PyObject *resultobj = 0;
13988 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13989 void *argp1 = 0 ;
13990 int res1 = 0 ;
13991 PyObject *swig_obj[1] ;
13992
13993 if (!args) SWIG_fail;
13994 swig_obj[0] = args;
13995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13996 if (!SWIG_IsOK(res1)) {
13997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13998 }
13999 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14000 {
14001 PyThreadState* __tstate = wxPyBeginAllowThreads();
14002 (arg1)->SendTextUpdatedEvent();
14003 wxPyEndAllowThreads(__tstate);
14004 if (PyErr_Occurred()) SWIG_fail;
14005 }
14006 resultobj = SWIG_Py_Void();
14007 return resultobj;
14008 fail:
14009 return NULL;
14010 }
14011
14012
14013 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14014 PyObject *resultobj = 0;
14015 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14016 wxString *arg2 = 0 ;
14017 void *argp1 = 0 ;
14018 int res1 = 0 ;
14019 bool temp2 = false ;
14020 PyObject * obj0 = 0 ;
14021 PyObject * obj1 = 0 ;
14022 char * kwnames[] = {
14023 (char *) "self",(char *) "text", NULL
14024 };
14025
14026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
14027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14028 if (!SWIG_IsOK(res1)) {
14029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14030 }
14031 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14032 {
14033 arg2 = wxString_in_helper(obj1);
14034 if (arg2 == NULL) SWIG_fail;
14035 temp2 = true;
14036 }
14037 {
14038 PyThreadState* __tstate = wxPyBeginAllowThreads();
14039 wxTextCtrl_write(arg1,(wxString const &)*arg2);
14040 wxPyEndAllowThreads(__tstate);
14041 if (PyErr_Occurred()) SWIG_fail;
14042 }
14043 resultobj = SWIG_Py_Void();
14044 {
14045 if (temp2)
14046 delete arg2;
14047 }
14048 return resultobj;
14049 fail:
14050 {
14051 if (temp2)
14052 delete arg2;
14053 }
14054 return NULL;
14055 }
14056
14057
14058 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14059 PyObject *resultobj = 0;
14060 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14061 long arg2 ;
14062 long arg3 ;
14063 wxString result;
14064 void *argp1 = 0 ;
14065 int res1 = 0 ;
14066 long val2 ;
14067 int ecode2 = 0 ;
14068 long val3 ;
14069 int ecode3 = 0 ;
14070 PyObject * obj0 = 0 ;
14071 PyObject * obj1 = 0 ;
14072 PyObject * obj2 = 0 ;
14073 char * kwnames[] = {
14074 (char *) "self",(char *) "from",(char *) "to", NULL
14075 };
14076
14077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14079 if (!SWIG_IsOK(res1)) {
14080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14081 }
14082 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14083 ecode2 = SWIG_AsVal_long(obj1, &val2);
14084 if (!SWIG_IsOK(ecode2)) {
14085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
14086 }
14087 arg2 = static_cast< long >(val2);
14088 ecode3 = SWIG_AsVal_long(obj2, &val3);
14089 if (!SWIG_IsOK(ecode3)) {
14090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14091 }
14092 arg3 = static_cast< long >(val3);
14093 {
14094 PyThreadState* __tstate = wxPyBeginAllowThreads();
14095 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14096 wxPyEndAllowThreads(__tstate);
14097 if (PyErr_Occurred()) SWIG_fail;
14098 }
14099 {
14100 #if wxUSE_UNICODE
14101 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14102 #else
14103 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14104 #endif
14105 }
14106 return resultobj;
14107 fail:
14108 return NULL;
14109 }
14110
14111
14112 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14113 PyObject *resultobj = 0;
14114 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14115 SwigValueWrapper<wxVisualAttributes > result;
14116 int val1 ;
14117 int ecode1 = 0 ;
14118 PyObject * obj0 = 0 ;
14119 char * kwnames[] = {
14120 (char *) "variant", NULL
14121 };
14122
14123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14124 if (obj0) {
14125 ecode1 = SWIG_AsVal_int(obj0, &val1);
14126 if (!SWIG_IsOK(ecode1)) {
14127 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14128 }
14129 arg1 = static_cast< wxWindowVariant >(val1);
14130 }
14131 {
14132 if (!wxPyCheckForApp()) SWIG_fail;
14133 PyThreadState* __tstate = wxPyBeginAllowThreads();
14134 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14135 wxPyEndAllowThreads(__tstate);
14136 if (PyErr_Occurred()) SWIG_fail;
14137 }
14138 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14139 return resultobj;
14140 fail:
14141 return NULL;
14142 }
14143
14144
14145 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14146 PyObject *obj;
14147 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14148 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14149 return SWIG_Py_Void();
14150 }
14151
14152 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14153 return SWIG_Python_InitShadowInstance(args);
14154 }
14155
14156 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14157 PyObject *resultobj = 0;
14158 int arg1 ;
14159 wxMouseEvent *arg2 = 0 ;
14160 long arg3 ;
14161 long arg4 ;
14162 wxTextUrlEvent *result = 0 ;
14163 int val1 ;
14164 int ecode1 = 0 ;
14165 void *argp2 = 0 ;
14166 int res2 = 0 ;
14167 long val3 ;
14168 int ecode3 = 0 ;
14169 long val4 ;
14170 int ecode4 = 0 ;
14171 PyObject * obj0 = 0 ;
14172 PyObject * obj1 = 0 ;
14173 PyObject * obj2 = 0 ;
14174 PyObject * obj3 = 0 ;
14175 char * kwnames[] = {
14176 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14177 };
14178
14179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14180 ecode1 = SWIG_AsVal_int(obj0, &val1);
14181 if (!SWIG_IsOK(ecode1)) {
14182 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14183 }
14184 arg1 = static_cast< int >(val1);
14185 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14186 if (!SWIG_IsOK(res2)) {
14187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14188 }
14189 if (!argp2) {
14190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14191 }
14192 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14193 ecode3 = SWIG_AsVal_long(obj2, &val3);
14194 if (!SWIG_IsOK(ecode3)) {
14195 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14196 }
14197 arg3 = static_cast< long >(val3);
14198 ecode4 = SWIG_AsVal_long(obj3, &val4);
14199 if (!SWIG_IsOK(ecode4)) {
14200 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14201 }
14202 arg4 = static_cast< long >(val4);
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14206 wxPyEndAllowThreads(__tstate);
14207 if (PyErr_Occurred()) SWIG_fail;
14208 }
14209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14210 return resultobj;
14211 fail:
14212 return NULL;
14213 }
14214
14215
14216 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14217 PyObject *resultobj = 0;
14218 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14219 wxMouseEvent *result = 0 ;
14220 void *argp1 = 0 ;
14221 int res1 = 0 ;
14222 PyObject *swig_obj[1] ;
14223
14224 if (!args) SWIG_fail;
14225 swig_obj[0] = args;
14226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14227 if (!SWIG_IsOK(res1)) {
14228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14229 }
14230 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14231 {
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
14233 {
14234 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14235 result = (wxMouseEvent *) &_result_ref;
14236 }
14237 wxPyEndAllowThreads(__tstate);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14241 return resultobj;
14242 fail:
14243 return NULL;
14244 }
14245
14246
14247 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14248 PyObject *resultobj = 0;
14249 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14250 long result;
14251 void *argp1 = 0 ;
14252 int res1 = 0 ;
14253 PyObject *swig_obj[1] ;
14254
14255 if (!args) SWIG_fail;
14256 swig_obj[0] = args;
14257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14258 if (!SWIG_IsOK(res1)) {
14259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14260 }
14261 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14262 {
14263 PyThreadState* __tstate = wxPyBeginAllowThreads();
14264 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14265 wxPyEndAllowThreads(__tstate);
14266 if (PyErr_Occurred()) SWIG_fail;
14267 }
14268 resultobj = SWIG_From_long(static_cast< long >(result));
14269 return resultobj;
14270 fail:
14271 return NULL;
14272 }
14273
14274
14275 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14276 PyObject *resultobj = 0;
14277 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14278 long result;
14279 void *argp1 = 0 ;
14280 int res1 = 0 ;
14281 PyObject *swig_obj[1] ;
14282
14283 if (!args) SWIG_fail;
14284 swig_obj[0] = args;
14285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14286 if (!SWIG_IsOK(res1)) {
14287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14288 }
14289 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14290 {
14291 PyThreadState* __tstate = wxPyBeginAllowThreads();
14292 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 resultobj = SWIG_From_long(static_cast< long >(result));
14297 return resultobj;
14298 fail:
14299 return NULL;
14300 }
14301
14302
14303 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14304 PyObject *obj;
14305 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14306 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14307 return SWIG_Py_Void();
14308 }
14309
14310 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14311 return SWIG_Python_InitShadowInstance(args);
14312 }
14313
14314 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14315 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14316 return 1;
14317 }
14318
14319
14320 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14321 PyObject *pyobj = 0;
14322
14323 {
14324 #if wxUSE_UNICODE
14325 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14326 #else
14327 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14328 #endif
14329 }
14330 return pyobj;
14331 }
14332
14333
14334 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14335 PyObject *resultobj = 0;
14336 wxWindow *arg1 = (wxWindow *) 0 ;
14337 int arg2 = (int) -1 ;
14338 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14339 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14340 wxSize const &arg4_defvalue = wxDefaultSize ;
14341 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14342 long arg5 = (long) wxSB_HORIZONTAL ;
14343 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14344 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14345 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14346 wxString *arg7 = (wxString *) &arg7_defvalue ;
14347 wxScrollBar *result = 0 ;
14348 void *argp1 = 0 ;
14349 int res1 = 0 ;
14350 int val2 ;
14351 int ecode2 = 0 ;
14352 wxPoint temp3 ;
14353 wxSize temp4 ;
14354 long val5 ;
14355 int ecode5 = 0 ;
14356 void *argp6 = 0 ;
14357 int res6 = 0 ;
14358 bool temp7 = false ;
14359 PyObject * obj0 = 0 ;
14360 PyObject * obj1 = 0 ;
14361 PyObject * obj2 = 0 ;
14362 PyObject * obj3 = 0 ;
14363 PyObject * obj4 = 0 ;
14364 PyObject * obj5 = 0 ;
14365 PyObject * obj6 = 0 ;
14366 char * kwnames[] = {
14367 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14368 };
14369
14370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14372 if (!SWIG_IsOK(res1)) {
14373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14374 }
14375 arg1 = reinterpret_cast< wxWindow * >(argp1);
14376 if (obj1) {
14377 ecode2 = SWIG_AsVal_int(obj1, &val2);
14378 if (!SWIG_IsOK(ecode2)) {
14379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14380 }
14381 arg2 = static_cast< int >(val2);
14382 }
14383 if (obj2) {
14384 {
14385 arg3 = &temp3;
14386 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14387 }
14388 }
14389 if (obj3) {
14390 {
14391 arg4 = &temp4;
14392 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14393 }
14394 }
14395 if (obj4) {
14396 ecode5 = SWIG_AsVal_long(obj4, &val5);
14397 if (!SWIG_IsOK(ecode5)) {
14398 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14399 }
14400 arg5 = static_cast< long >(val5);
14401 }
14402 if (obj5) {
14403 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14404 if (!SWIG_IsOK(res6)) {
14405 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14406 }
14407 if (!argp6) {
14408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14409 }
14410 arg6 = reinterpret_cast< wxValidator * >(argp6);
14411 }
14412 if (obj6) {
14413 {
14414 arg7 = wxString_in_helper(obj6);
14415 if (arg7 == NULL) SWIG_fail;
14416 temp7 = true;
14417 }
14418 }
14419 {
14420 if (!wxPyCheckForApp()) SWIG_fail;
14421 PyThreadState* __tstate = wxPyBeginAllowThreads();
14422 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14423 wxPyEndAllowThreads(__tstate);
14424 if (PyErr_Occurred()) SWIG_fail;
14425 }
14426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14427 {
14428 if (temp7)
14429 delete arg7;
14430 }
14431 return resultobj;
14432 fail:
14433 {
14434 if (temp7)
14435 delete arg7;
14436 }
14437 return NULL;
14438 }
14439
14440
14441 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14442 PyObject *resultobj = 0;
14443 wxScrollBar *result = 0 ;
14444
14445 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14446 {
14447 if (!wxPyCheckForApp()) SWIG_fail;
14448 PyThreadState* __tstate = wxPyBeginAllowThreads();
14449 result = (wxScrollBar *)new wxScrollBar();
14450 wxPyEndAllowThreads(__tstate);
14451 if (PyErr_Occurred()) SWIG_fail;
14452 }
14453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14454 return resultobj;
14455 fail:
14456 return NULL;
14457 }
14458
14459
14460 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14461 PyObject *resultobj = 0;
14462 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14463 wxWindow *arg2 = (wxWindow *) 0 ;
14464 int arg3 = (int) -1 ;
14465 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14466 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14467 wxSize const &arg5_defvalue = wxDefaultSize ;
14468 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14469 long arg6 = (long) wxSB_HORIZONTAL ;
14470 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14471 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14472 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14473 wxString *arg8 = (wxString *) &arg8_defvalue ;
14474 bool result;
14475 void *argp1 = 0 ;
14476 int res1 = 0 ;
14477 void *argp2 = 0 ;
14478 int res2 = 0 ;
14479 int val3 ;
14480 int ecode3 = 0 ;
14481 wxPoint temp4 ;
14482 wxSize temp5 ;
14483 long val6 ;
14484 int ecode6 = 0 ;
14485 void *argp7 = 0 ;
14486 int res7 = 0 ;
14487 bool temp8 = false ;
14488 PyObject * obj0 = 0 ;
14489 PyObject * obj1 = 0 ;
14490 PyObject * obj2 = 0 ;
14491 PyObject * obj3 = 0 ;
14492 PyObject * obj4 = 0 ;
14493 PyObject * obj5 = 0 ;
14494 PyObject * obj6 = 0 ;
14495 PyObject * obj7 = 0 ;
14496 char * kwnames[] = {
14497 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14498 };
14499
14500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14502 if (!SWIG_IsOK(res1)) {
14503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14504 }
14505 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14506 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14507 if (!SWIG_IsOK(res2)) {
14508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14509 }
14510 arg2 = reinterpret_cast< wxWindow * >(argp2);
14511 if (obj2) {
14512 ecode3 = SWIG_AsVal_int(obj2, &val3);
14513 if (!SWIG_IsOK(ecode3)) {
14514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14515 }
14516 arg3 = static_cast< int >(val3);
14517 }
14518 if (obj3) {
14519 {
14520 arg4 = &temp4;
14521 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14522 }
14523 }
14524 if (obj4) {
14525 {
14526 arg5 = &temp5;
14527 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14528 }
14529 }
14530 if (obj5) {
14531 ecode6 = SWIG_AsVal_long(obj5, &val6);
14532 if (!SWIG_IsOK(ecode6)) {
14533 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14534 }
14535 arg6 = static_cast< long >(val6);
14536 }
14537 if (obj6) {
14538 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14539 if (!SWIG_IsOK(res7)) {
14540 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14541 }
14542 if (!argp7) {
14543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14544 }
14545 arg7 = reinterpret_cast< wxValidator * >(argp7);
14546 }
14547 if (obj7) {
14548 {
14549 arg8 = wxString_in_helper(obj7);
14550 if (arg8 == NULL) SWIG_fail;
14551 temp8 = true;
14552 }
14553 }
14554 {
14555 PyThreadState* __tstate = wxPyBeginAllowThreads();
14556 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14557 wxPyEndAllowThreads(__tstate);
14558 if (PyErr_Occurred()) SWIG_fail;
14559 }
14560 {
14561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14562 }
14563 {
14564 if (temp8)
14565 delete arg8;
14566 }
14567 return resultobj;
14568 fail:
14569 {
14570 if (temp8)
14571 delete arg8;
14572 }
14573 return NULL;
14574 }
14575
14576
14577 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14578 PyObject *resultobj = 0;
14579 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14580 int result;
14581 void *argp1 = 0 ;
14582 int res1 = 0 ;
14583 PyObject *swig_obj[1] ;
14584
14585 if (!args) SWIG_fail;
14586 swig_obj[0] = args;
14587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14588 if (!SWIG_IsOK(res1)) {
14589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14590 }
14591 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
14598 resultobj = SWIG_From_int(static_cast< int >(result));
14599 return resultobj;
14600 fail:
14601 return NULL;
14602 }
14603
14604
14605 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14606 PyObject *resultobj = 0;
14607 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14608 int result;
14609 void *argp1 = 0 ;
14610 int res1 = 0 ;
14611 PyObject *swig_obj[1] ;
14612
14613 if (!args) SWIG_fail;
14614 swig_obj[0] = args;
14615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14616 if (!SWIG_IsOK(res1)) {
14617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14618 }
14619 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14620 {
14621 PyThreadState* __tstate = wxPyBeginAllowThreads();
14622 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14623 wxPyEndAllowThreads(__tstate);
14624 if (PyErr_Occurred()) SWIG_fail;
14625 }
14626 resultobj = SWIG_From_int(static_cast< int >(result));
14627 return resultobj;
14628 fail:
14629 return NULL;
14630 }
14631
14632
14633 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14634 PyObject *resultobj = 0;
14635 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14636 int result;
14637 void *argp1 = 0 ;
14638 int res1 = 0 ;
14639 PyObject *swig_obj[1] ;
14640
14641 if (!args) SWIG_fail;
14642 swig_obj[0] = args;
14643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14644 if (!SWIG_IsOK(res1)) {
14645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14646 }
14647 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14648 {
14649 PyThreadState* __tstate = wxPyBeginAllowThreads();
14650 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14651 wxPyEndAllowThreads(__tstate);
14652 if (PyErr_Occurred()) SWIG_fail;
14653 }
14654 resultobj = SWIG_From_int(static_cast< int >(result));
14655 return resultobj;
14656 fail:
14657 return NULL;
14658 }
14659
14660
14661 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14662 PyObject *resultobj = 0;
14663 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14664 int result;
14665 void *argp1 = 0 ;
14666 int res1 = 0 ;
14667 PyObject *swig_obj[1] ;
14668
14669 if (!args) SWIG_fail;
14670 swig_obj[0] = args;
14671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14672 if (!SWIG_IsOK(res1)) {
14673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14674 }
14675 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14676 {
14677 PyThreadState* __tstate = wxPyBeginAllowThreads();
14678 result = (int)((wxScrollBar const *)arg1)->GetRange();
14679 wxPyEndAllowThreads(__tstate);
14680 if (PyErr_Occurred()) SWIG_fail;
14681 }
14682 resultobj = SWIG_From_int(static_cast< int >(result));
14683 return resultobj;
14684 fail:
14685 return NULL;
14686 }
14687
14688
14689 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14690 PyObject *resultobj = 0;
14691 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14692 bool result;
14693 void *argp1 = 0 ;
14694 int res1 = 0 ;
14695 PyObject *swig_obj[1] ;
14696
14697 if (!args) SWIG_fail;
14698 swig_obj[0] = args;
14699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14700 if (!SWIG_IsOK(res1)) {
14701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14702 }
14703 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14704 {
14705 PyThreadState* __tstate = wxPyBeginAllowThreads();
14706 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14707 wxPyEndAllowThreads(__tstate);
14708 if (PyErr_Occurred()) SWIG_fail;
14709 }
14710 {
14711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14712 }
14713 return resultobj;
14714 fail:
14715 return NULL;
14716 }
14717
14718
14719 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14720 PyObject *resultobj = 0;
14721 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14722 int arg2 ;
14723 void *argp1 = 0 ;
14724 int res1 = 0 ;
14725 int val2 ;
14726 int ecode2 = 0 ;
14727 PyObject * obj0 = 0 ;
14728 PyObject * obj1 = 0 ;
14729 char * kwnames[] = {
14730 (char *) "self",(char *) "viewStart", NULL
14731 };
14732
14733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14735 if (!SWIG_IsOK(res1)) {
14736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14737 }
14738 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14739 ecode2 = SWIG_AsVal_int(obj1, &val2);
14740 if (!SWIG_IsOK(ecode2)) {
14741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14742 }
14743 arg2 = static_cast< int >(val2);
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 (arg1)->SetThumbPosition(arg2);
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 resultobj = SWIG_Py_Void();
14751 return resultobj;
14752 fail:
14753 return NULL;
14754 }
14755
14756
14757 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14758 PyObject *resultobj = 0;
14759 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14760 SwigValueWrapper<wxVisualAttributes > result;
14761 int val1 ;
14762 int ecode1 = 0 ;
14763 PyObject * obj0 = 0 ;
14764 char * kwnames[] = {
14765 (char *) "variant", NULL
14766 };
14767
14768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14769 if (obj0) {
14770 ecode1 = SWIG_AsVal_int(obj0, &val1);
14771 if (!SWIG_IsOK(ecode1)) {
14772 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14773 }
14774 arg1 = static_cast< wxWindowVariant >(val1);
14775 }
14776 {
14777 if (!wxPyCheckForApp()) SWIG_fail;
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14780 wxPyEndAllowThreads(__tstate);
14781 if (PyErr_Occurred()) SWIG_fail;
14782 }
14783 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14784 return resultobj;
14785 fail:
14786 return NULL;
14787 }
14788
14789
14790 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14791 PyObject *obj;
14792 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14793 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14794 return SWIG_Py_Void();
14795 }
14796
14797 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14798 return SWIG_Python_InitShadowInstance(args);
14799 }
14800
14801 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14802 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14803 return 1;
14804 }
14805
14806
14807 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14808 PyObject *pyobj = 0;
14809
14810 {
14811 #if wxUSE_UNICODE
14812 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14813 #else
14814 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14815 #endif
14816 }
14817 return pyobj;
14818 }
14819
14820
14821 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14822 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14823 return 1;
14824 }
14825
14826
14827 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14828 PyObject *pyobj = 0;
14829
14830 {
14831 #if wxUSE_UNICODE
14832 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14833 #else
14834 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14835 #endif
14836 }
14837 return pyobj;
14838 }
14839
14840
14841 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14842 PyObject *resultobj = 0;
14843 wxWindow *arg1 = (wxWindow *) 0 ;
14844 int arg2 = (int) -1 ;
14845 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14846 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14847 wxSize const &arg4_defvalue = wxDefaultSize ;
14848 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14849 long arg5 = (long) wxSP_HORIZONTAL ;
14850 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14851 wxString *arg6 = (wxString *) &arg6_defvalue ;
14852 wxSpinButton *result = 0 ;
14853 void *argp1 = 0 ;
14854 int res1 = 0 ;
14855 int val2 ;
14856 int ecode2 = 0 ;
14857 wxPoint temp3 ;
14858 wxSize temp4 ;
14859 long val5 ;
14860 int ecode5 = 0 ;
14861 bool temp6 = false ;
14862 PyObject * obj0 = 0 ;
14863 PyObject * obj1 = 0 ;
14864 PyObject * obj2 = 0 ;
14865 PyObject * obj3 = 0 ;
14866 PyObject * obj4 = 0 ;
14867 PyObject * obj5 = 0 ;
14868 char * kwnames[] = {
14869 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14870 };
14871
14872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14874 if (!SWIG_IsOK(res1)) {
14875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14876 }
14877 arg1 = reinterpret_cast< wxWindow * >(argp1);
14878 if (obj1) {
14879 ecode2 = SWIG_AsVal_int(obj1, &val2);
14880 if (!SWIG_IsOK(ecode2)) {
14881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14882 }
14883 arg2 = static_cast< int >(val2);
14884 }
14885 if (obj2) {
14886 {
14887 arg3 = &temp3;
14888 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14889 }
14890 }
14891 if (obj3) {
14892 {
14893 arg4 = &temp4;
14894 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14895 }
14896 }
14897 if (obj4) {
14898 ecode5 = SWIG_AsVal_long(obj4, &val5);
14899 if (!SWIG_IsOK(ecode5)) {
14900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14901 }
14902 arg5 = static_cast< long >(val5);
14903 }
14904 if (obj5) {
14905 {
14906 arg6 = wxString_in_helper(obj5);
14907 if (arg6 == NULL) SWIG_fail;
14908 temp6 = true;
14909 }
14910 }
14911 {
14912 if (!wxPyCheckForApp()) SWIG_fail;
14913 PyThreadState* __tstate = wxPyBeginAllowThreads();
14914 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14915 wxPyEndAllowThreads(__tstate);
14916 if (PyErr_Occurred()) SWIG_fail;
14917 }
14918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14919 {
14920 if (temp6)
14921 delete arg6;
14922 }
14923 return resultobj;
14924 fail:
14925 {
14926 if (temp6)
14927 delete arg6;
14928 }
14929 return NULL;
14930 }
14931
14932
14933 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14934 PyObject *resultobj = 0;
14935 wxSpinButton *result = 0 ;
14936
14937 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14938 {
14939 if (!wxPyCheckForApp()) SWIG_fail;
14940 PyThreadState* __tstate = wxPyBeginAllowThreads();
14941 result = (wxSpinButton *)new wxSpinButton();
14942 wxPyEndAllowThreads(__tstate);
14943 if (PyErr_Occurred()) SWIG_fail;
14944 }
14945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14946 return resultobj;
14947 fail:
14948 return NULL;
14949 }
14950
14951
14952 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14953 PyObject *resultobj = 0;
14954 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14955 wxWindow *arg2 = (wxWindow *) 0 ;
14956 int arg3 = (int) -1 ;
14957 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14958 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14959 wxSize const &arg5_defvalue = wxDefaultSize ;
14960 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14961 long arg6 = (long) wxSP_HORIZONTAL ;
14962 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14963 wxString *arg7 = (wxString *) &arg7_defvalue ;
14964 bool result;
14965 void *argp1 = 0 ;
14966 int res1 = 0 ;
14967 void *argp2 = 0 ;
14968 int res2 = 0 ;
14969 int val3 ;
14970 int ecode3 = 0 ;
14971 wxPoint temp4 ;
14972 wxSize temp5 ;
14973 long val6 ;
14974 int ecode6 = 0 ;
14975 bool temp7 = false ;
14976 PyObject * obj0 = 0 ;
14977 PyObject * obj1 = 0 ;
14978 PyObject * obj2 = 0 ;
14979 PyObject * obj3 = 0 ;
14980 PyObject * obj4 = 0 ;
14981 PyObject * obj5 = 0 ;
14982 PyObject * obj6 = 0 ;
14983 char * kwnames[] = {
14984 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14985 };
14986
14987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14989 if (!SWIG_IsOK(res1)) {
14990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14991 }
14992 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14994 if (!SWIG_IsOK(res2)) {
14995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14996 }
14997 arg2 = reinterpret_cast< wxWindow * >(argp2);
14998 if (obj2) {
14999 ecode3 = SWIG_AsVal_int(obj2, &val3);
15000 if (!SWIG_IsOK(ecode3)) {
15001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
15002 }
15003 arg3 = static_cast< int >(val3);
15004 }
15005 if (obj3) {
15006 {
15007 arg4 = &temp4;
15008 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15009 }
15010 }
15011 if (obj4) {
15012 {
15013 arg5 = &temp5;
15014 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15015 }
15016 }
15017 if (obj5) {
15018 ecode6 = SWIG_AsVal_long(obj5, &val6);
15019 if (!SWIG_IsOK(ecode6)) {
15020 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
15021 }
15022 arg6 = static_cast< long >(val6);
15023 }
15024 if (obj6) {
15025 {
15026 arg7 = wxString_in_helper(obj6);
15027 if (arg7 == NULL) SWIG_fail;
15028 temp7 = true;
15029 }
15030 }
15031 {
15032 PyThreadState* __tstate = wxPyBeginAllowThreads();
15033 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15034 wxPyEndAllowThreads(__tstate);
15035 if (PyErr_Occurred()) SWIG_fail;
15036 }
15037 {
15038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15039 }
15040 {
15041 if (temp7)
15042 delete arg7;
15043 }
15044 return resultobj;
15045 fail:
15046 {
15047 if (temp7)
15048 delete arg7;
15049 }
15050 return NULL;
15051 }
15052
15053
15054 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15055 PyObject *resultobj = 0;
15056 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15057 int result;
15058 void *argp1 = 0 ;
15059 int res1 = 0 ;
15060 PyObject *swig_obj[1] ;
15061
15062 if (!args) SWIG_fail;
15063 swig_obj[0] = args;
15064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15065 if (!SWIG_IsOK(res1)) {
15066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15067 }
15068 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15069 {
15070 PyThreadState* __tstate = wxPyBeginAllowThreads();
15071 result = (int)((wxSpinButton const *)arg1)->GetValue();
15072 wxPyEndAllowThreads(__tstate);
15073 if (PyErr_Occurred()) SWIG_fail;
15074 }
15075 resultobj = SWIG_From_int(static_cast< int >(result));
15076 return resultobj;
15077 fail:
15078 return NULL;
15079 }
15080
15081
15082 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15083 PyObject *resultobj = 0;
15084 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15085 int result;
15086 void *argp1 = 0 ;
15087 int res1 = 0 ;
15088 PyObject *swig_obj[1] ;
15089
15090 if (!args) SWIG_fail;
15091 swig_obj[0] = args;
15092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15093 if (!SWIG_IsOK(res1)) {
15094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15095 }
15096 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15097 {
15098 PyThreadState* __tstate = wxPyBeginAllowThreads();
15099 result = (int)((wxSpinButton const *)arg1)->GetMin();
15100 wxPyEndAllowThreads(__tstate);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
15103 resultobj = SWIG_From_int(static_cast< int >(result));
15104 return resultobj;
15105 fail:
15106 return NULL;
15107 }
15108
15109
15110 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15111 PyObject *resultobj = 0;
15112 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15113 int result;
15114 void *argp1 = 0 ;
15115 int res1 = 0 ;
15116 PyObject *swig_obj[1] ;
15117
15118 if (!args) SWIG_fail;
15119 swig_obj[0] = args;
15120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15121 if (!SWIG_IsOK(res1)) {
15122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15123 }
15124 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15125 {
15126 PyThreadState* __tstate = wxPyBeginAllowThreads();
15127 result = (int)((wxSpinButton const *)arg1)->GetMax();
15128 wxPyEndAllowThreads(__tstate);
15129 if (PyErr_Occurred()) SWIG_fail;
15130 }
15131 resultobj = SWIG_From_int(static_cast< int >(result));
15132 return resultobj;
15133 fail:
15134 return NULL;
15135 }
15136
15137
15138 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15139 PyObject *resultobj = 0;
15140 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15141 int arg2 ;
15142 void *argp1 = 0 ;
15143 int res1 = 0 ;
15144 int val2 ;
15145 int ecode2 = 0 ;
15146 PyObject * obj0 = 0 ;
15147 PyObject * obj1 = 0 ;
15148 char * kwnames[] = {
15149 (char *) "self",(char *) "val", NULL
15150 };
15151
15152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15154 if (!SWIG_IsOK(res1)) {
15155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15156 }
15157 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15158 ecode2 = SWIG_AsVal_int(obj1, &val2);
15159 if (!SWIG_IsOK(ecode2)) {
15160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15161 }
15162 arg2 = static_cast< int >(val2);
15163 {
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 (arg1)->SetValue(arg2);
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
15169 resultobj = SWIG_Py_Void();
15170 return resultobj;
15171 fail:
15172 return NULL;
15173 }
15174
15175
15176 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15177 PyObject *resultobj = 0;
15178 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15179 int arg2 ;
15180 void *argp1 = 0 ;
15181 int res1 = 0 ;
15182 int val2 ;
15183 int ecode2 = 0 ;
15184 PyObject * obj0 = 0 ;
15185 PyObject * obj1 = 0 ;
15186 char * kwnames[] = {
15187 (char *) "self",(char *) "minVal", NULL
15188 };
15189
15190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15192 if (!SWIG_IsOK(res1)) {
15193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15194 }
15195 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15196 ecode2 = SWIG_AsVal_int(obj1, &val2);
15197 if (!SWIG_IsOK(ecode2)) {
15198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15199 }
15200 arg2 = static_cast< int >(val2);
15201 {
15202 PyThreadState* __tstate = wxPyBeginAllowThreads();
15203 (arg1)->SetMin(arg2);
15204 wxPyEndAllowThreads(__tstate);
15205 if (PyErr_Occurred()) SWIG_fail;
15206 }
15207 resultobj = SWIG_Py_Void();
15208 return resultobj;
15209 fail:
15210 return NULL;
15211 }
15212
15213
15214 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15215 PyObject *resultobj = 0;
15216 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15217 int arg2 ;
15218 void *argp1 = 0 ;
15219 int res1 = 0 ;
15220 int val2 ;
15221 int ecode2 = 0 ;
15222 PyObject * obj0 = 0 ;
15223 PyObject * obj1 = 0 ;
15224 char * kwnames[] = {
15225 (char *) "self",(char *) "maxVal", NULL
15226 };
15227
15228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15230 if (!SWIG_IsOK(res1)) {
15231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15232 }
15233 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15234 ecode2 = SWIG_AsVal_int(obj1, &val2);
15235 if (!SWIG_IsOK(ecode2)) {
15236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15237 }
15238 arg2 = static_cast< int >(val2);
15239 {
15240 PyThreadState* __tstate = wxPyBeginAllowThreads();
15241 (arg1)->SetMax(arg2);
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 resultobj = SWIG_Py_Void();
15246 return resultobj;
15247 fail:
15248 return NULL;
15249 }
15250
15251
15252 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15253 PyObject *resultobj = 0;
15254 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15255 int arg2 ;
15256 int arg3 ;
15257 void *argp1 = 0 ;
15258 int res1 = 0 ;
15259 int val2 ;
15260 int ecode2 = 0 ;
15261 int val3 ;
15262 int ecode3 = 0 ;
15263 PyObject * obj0 = 0 ;
15264 PyObject * obj1 = 0 ;
15265 PyObject * obj2 = 0 ;
15266 char * kwnames[] = {
15267 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15268 };
15269
15270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15272 if (!SWIG_IsOK(res1)) {
15273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15274 }
15275 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15276 ecode2 = SWIG_AsVal_int(obj1, &val2);
15277 if (!SWIG_IsOK(ecode2)) {
15278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15279 }
15280 arg2 = static_cast< int >(val2);
15281 ecode3 = SWIG_AsVal_int(obj2, &val3);
15282 if (!SWIG_IsOK(ecode3)) {
15283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15284 }
15285 arg3 = static_cast< int >(val3);
15286 {
15287 PyThreadState* __tstate = wxPyBeginAllowThreads();
15288 (arg1)->SetRange(arg2,arg3);
15289 wxPyEndAllowThreads(__tstate);
15290 if (PyErr_Occurred()) SWIG_fail;
15291 }
15292 resultobj = SWIG_Py_Void();
15293 return resultobj;
15294 fail:
15295 return NULL;
15296 }
15297
15298
15299 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15300 PyObject *resultobj = 0;
15301 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15302 bool result;
15303 void *argp1 = 0 ;
15304 int res1 = 0 ;
15305 PyObject *swig_obj[1] ;
15306
15307 if (!args) SWIG_fail;
15308 swig_obj[0] = args;
15309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15310 if (!SWIG_IsOK(res1)) {
15311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15312 }
15313 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15314 {
15315 PyThreadState* __tstate = wxPyBeginAllowThreads();
15316 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15317 wxPyEndAllowThreads(__tstate);
15318 if (PyErr_Occurred()) SWIG_fail;
15319 }
15320 {
15321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15322 }
15323 return resultobj;
15324 fail:
15325 return NULL;
15326 }
15327
15328
15329 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15330 PyObject *resultobj = 0;
15331 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15332 SwigValueWrapper<wxVisualAttributes > result;
15333 int val1 ;
15334 int ecode1 = 0 ;
15335 PyObject * obj0 = 0 ;
15336 char * kwnames[] = {
15337 (char *) "variant", NULL
15338 };
15339
15340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15341 if (obj0) {
15342 ecode1 = SWIG_AsVal_int(obj0, &val1);
15343 if (!SWIG_IsOK(ecode1)) {
15344 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15345 }
15346 arg1 = static_cast< wxWindowVariant >(val1);
15347 }
15348 {
15349 if (!wxPyCheckForApp()) SWIG_fail;
15350 PyThreadState* __tstate = wxPyBeginAllowThreads();
15351 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15352 wxPyEndAllowThreads(__tstate);
15353 if (PyErr_Occurred()) SWIG_fail;
15354 }
15355 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15356 return resultobj;
15357 fail:
15358 return NULL;
15359 }
15360
15361
15362 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15363 PyObject *obj;
15364 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15365 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15366 return SWIG_Py_Void();
15367 }
15368
15369 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15370 return SWIG_Python_InitShadowInstance(args);
15371 }
15372
15373 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15374 PyObject *resultobj = 0;
15375 wxWindow *arg1 = (wxWindow *) 0 ;
15376 int arg2 = (int) -1 ;
15377 wxString const &arg3_defvalue = wxPyEmptyString ;
15378 wxString *arg3 = (wxString *) &arg3_defvalue ;
15379 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15380 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15381 wxSize const &arg5_defvalue = wxDefaultSize ;
15382 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15383 long arg6 = (long) wxSP_ARROW_KEYS ;
15384 int arg7 = (int) 0 ;
15385 int arg8 = (int) 100 ;
15386 int arg9 = (int) 0 ;
15387 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15388 wxString *arg10 = (wxString *) &arg10_defvalue ;
15389 wxSpinCtrl *result = 0 ;
15390 void *argp1 = 0 ;
15391 int res1 = 0 ;
15392 int val2 ;
15393 int ecode2 = 0 ;
15394 bool temp3 = false ;
15395 wxPoint temp4 ;
15396 wxSize temp5 ;
15397 long val6 ;
15398 int ecode6 = 0 ;
15399 int val7 ;
15400 int ecode7 = 0 ;
15401 int val8 ;
15402 int ecode8 = 0 ;
15403 int val9 ;
15404 int ecode9 = 0 ;
15405 bool temp10 = false ;
15406 PyObject * obj0 = 0 ;
15407 PyObject * obj1 = 0 ;
15408 PyObject * obj2 = 0 ;
15409 PyObject * obj3 = 0 ;
15410 PyObject * obj4 = 0 ;
15411 PyObject * obj5 = 0 ;
15412 PyObject * obj6 = 0 ;
15413 PyObject * obj7 = 0 ;
15414 PyObject * obj8 = 0 ;
15415 PyObject * obj9 = 0 ;
15416 char * kwnames[] = {
15417 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15418 };
15419
15420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15422 if (!SWIG_IsOK(res1)) {
15423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15424 }
15425 arg1 = reinterpret_cast< wxWindow * >(argp1);
15426 if (obj1) {
15427 ecode2 = SWIG_AsVal_int(obj1, &val2);
15428 if (!SWIG_IsOK(ecode2)) {
15429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15430 }
15431 arg2 = static_cast< int >(val2);
15432 }
15433 if (obj2) {
15434 {
15435 arg3 = wxString_in_helper(obj2);
15436 if (arg3 == NULL) SWIG_fail;
15437 temp3 = true;
15438 }
15439 }
15440 if (obj3) {
15441 {
15442 arg4 = &temp4;
15443 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15444 }
15445 }
15446 if (obj4) {
15447 {
15448 arg5 = &temp5;
15449 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15450 }
15451 }
15452 if (obj5) {
15453 ecode6 = SWIG_AsVal_long(obj5, &val6);
15454 if (!SWIG_IsOK(ecode6)) {
15455 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15456 }
15457 arg6 = static_cast< long >(val6);
15458 }
15459 if (obj6) {
15460 ecode7 = SWIG_AsVal_int(obj6, &val7);
15461 if (!SWIG_IsOK(ecode7)) {
15462 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15463 }
15464 arg7 = static_cast< int >(val7);
15465 }
15466 if (obj7) {
15467 ecode8 = SWIG_AsVal_int(obj7, &val8);
15468 if (!SWIG_IsOK(ecode8)) {
15469 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15470 }
15471 arg8 = static_cast< int >(val8);
15472 }
15473 if (obj8) {
15474 ecode9 = SWIG_AsVal_int(obj8, &val9);
15475 if (!SWIG_IsOK(ecode9)) {
15476 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15477 }
15478 arg9 = static_cast< int >(val9);
15479 }
15480 if (obj9) {
15481 {
15482 arg10 = wxString_in_helper(obj9);
15483 if (arg10 == NULL) SWIG_fail;
15484 temp10 = true;
15485 }
15486 }
15487 {
15488 if (!wxPyCheckForApp()) SWIG_fail;
15489 PyThreadState* __tstate = wxPyBeginAllowThreads();
15490 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15491 wxPyEndAllowThreads(__tstate);
15492 if (PyErr_Occurred()) SWIG_fail;
15493 }
15494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15495 {
15496 if (temp3)
15497 delete arg3;
15498 }
15499 {
15500 if (temp10)
15501 delete arg10;
15502 }
15503 return resultobj;
15504 fail:
15505 {
15506 if (temp3)
15507 delete arg3;
15508 }
15509 {
15510 if (temp10)
15511 delete arg10;
15512 }
15513 return NULL;
15514 }
15515
15516
15517 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15518 PyObject *resultobj = 0;
15519 wxSpinCtrl *result = 0 ;
15520
15521 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15522 {
15523 if (!wxPyCheckForApp()) SWIG_fail;
15524 PyThreadState* __tstate = wxPyBeginAllowThreads();
15525 result = (wxSpinCtrl *)new wxSpinCtrl();
15526 wxPyEndAllowThreads(__tstate);
15527 if (PyErr_Occurred()) SWIG_fail;
15528 }
15529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15530 return resultobj;
15531 fail:
15532 return NULL;
15533 }
15534
15535
15536 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15537 PyObject *resultobj = 0;
15538 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15539 wxWindow *arg2 = (wxWindow *) 0 ;
15540 int arg3 = (int) -1 ;
15541 wxString const &arg4_defvalue = wxPyEmptyString ;
15542 wxString *arg4 = (wxString *) &arg4_defvalue ;
15543 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15544 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15545 wxSize const &arg6_defvalue = wxDefaultSize ;
15546 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15547 long arg7 = (long) wxSP_ARROW_KEYS ;
15548 int arg8 = (int) 0 ;
15549 int arg9 = (int) 100 ;
15550 int arg10 = (int) 0 ;
15551 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15552 wxString *arg11 = (wxString *) &arg11_defvalue ;
15553 bool result;
15554 void *argp1 = 0 ;
15555 int res1 = 0 ;
15556 void *argp2 = 0 ;
15557 int res2 = 0 ;
15558 int val3 ;
15559 int ecode3 = 0 ;
15560 bool temp4 = false ;
15561 wxPoint temp5 ;
15562 wxSize temp6 ;
15563 long val7 ;
15564 int ecode7 = 0 ;
15565 int val8 ;
15566 int ecode8 = 0 ;
15567 int val9 ;
15568 int ecode9 = 0 ;
15569 int val10 ;
15570 int ecode10 = 0 ;
15571 bool temp11 = false ;
15572 PyObject * obj0 = 0 ;
15573 PyObject * obj1 = 0 ;
15574 PyObject * obj2 = 0 ;
15575 PyObject * obj3 = 0 ;
15576 PyObject * obj4 = 0 ;
15577 PyObject * obj5 = 0 ;
15578 PyObject * obj6 = 0 ;
15579 PyObject * obj7 = 0 ;
15580 PyObject * obj8 = 0 ;
15581 PyObject * obj9 = 0 ;
15582 PyObject * obj10 = 0 ;
15583 char * kwnames[] = {
15584 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15585 };
15586
15587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15589 if (!SWIG_IsOK(res1)) {
15590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15591 }
15592 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15594 if (!SWIG_IsOK(res2)) {
15595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15596 }
15597 arg2 = reinterpret_cast< wxWindow * >(argp2);
15598 if (obj2) {
15599 ecode3 = SWIG_AsVal_int(obj2, &val3);
15600 if (!SWIG_IsOK(ecode3)) {
15601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15602 }
15603 arg3 = static_cast< int >(val3);
15604 }
15605 if (obj3) {
15606 {
15607 arg4 = wxString_in_helper(obj3);
15608 if (arg4 == NULL) SWIG_fail;
15609 temp4 = true;
15610 }
15611 }
15612 if (obj4) {
15613 {
15614 arg5 = &temp5;
15615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15616 }
15617 }
15618 if (obj5) {
15619 {
15620 arg6 = &temp6;
15621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15622 }
15623 }
15624 if (obj6) {
15625 ecode7 = SWIG_AsVal_long(obj6, &val7);
15626 if (!SWIG_IsOK(ecode7)) {
15627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15628 }
15629 arg7 = static_cast< long >(val7);
15630 }
15631 if (obj7) {
15632 ecode8 = SWIG_AsVal_int(obj7, &val8);
15633 if (!SWIG_IsOK(ecode8)) {
15634 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15635 }
15636 arg8 = static_cast< int >(val8);
15637 }
15638 if (obj8) {
15639 ecode9 = SWIG_AsVal_int(obj8, &val9);
15640 if (!SWIG_IsOK(ecode9)) {
15641 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15642 }
15643 arg9 = static_cast< int >(val9);
15644 }
15645 if (obj9) {
15646 ecode10 = SWIG_AsVal_int(obj9, &val10);
15647 if (!SWIG_IsOK(ecode10)) {
15648 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15649 }
15650 arg10 = static_cast< int >(val10);
15651 }
15652 if (obj10) {
15653 {
15654 arg11 = wxString_in_helper(obj10);
15655 if (arg11 == NULL) SWIG_fail;
15656 temp11 = true;
15657 }
15658 }
15659 {
15660 PyThreadState* __tstate = wxPyBeginAllowThreads();
15661 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15662 wxPyEndAllowThreads(__tstate);
15663 if (PyErr_Occurred()) SWIG_fail;
15664 }
15665 {
15666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15667 }
15668 {
15669 if (temp4)
15670 delete arg4;
15671 }
15672 {
15673 if (temp11)
15674 delete arg11;
15675 }
15676 return resultobj;
15677 fail:
15678 {
15679 if (temp4)
15680 delete arg4;
15681 }
15682 {
15683 if (temp11)
15684 delete arg11;
15685 }
15686 return NULL;
15687 }
15688
15689
15690 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15691 PyObject *resultobj = 0;
15692 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15693 int result;
15694 void *argp1 = 0 ;
15695 int res1 = 0 ;
15696 PyObject *swig_obj[1] ;
15697
15698 if (!args) SWIG_fail;
15699 swig_obj[0] = args;
15700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15701 if (!SWIG_IsOK(res1)) {
15702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15703 }
15704 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15705 {
15706 PyThreadState* __tstate = wxPyBeginAllowThreads();
15707 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15708 wxPyEndAllowThreads(__tstate);
15709 if (PyErr_Occurred()) SWIG_fail;
15710 }
15711 resultobj = SWIG_From_int(static_cast< int >(result));
15712 return resultobj;
15713 fail:
15714 return NULL;
15715 }
15716
15717
15718 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15719 PyObject *resultobj = 0;
15720 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15721 int arg2 ;
15722 void *argp1 = 0 ;
15723 int res1 = 0 ;
15724 int val2 ;
15725 int ecode2 = 0 ;
15726 PyObject * obj0 = 0 ;
15727 PyObject * obj1 = 0 ;
15728 char * kwnames[] = {
15729 (char *) "self",(char *) "value", NULL
15730 };
15731
15732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15734 if (!SWIG_IsOK(res1)) {
15735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15736 }
15737 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15738 ecode2 = SWIG_AsVal_int(obj1, &val2);
15739 if (!SWIG_IsOK(ecode2)) {
15740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15741 }
15742 arg2 = static_cast< int >(val2);
15743 {
15744 PyThreadState* __tstate = wxPyBeginAllowThreads();
15745 (arg1)->SetValue(arg2);
15746 wxPyEndAllowThreads(__tstate);
15747 if (PyErr_Occurred()) SWIG_fail;
15748 }
15749 resultobj = SWIG_Py_Void();
15750 return resultobj;
15751 fail:
15752 return NULL;
15753 }
15754
15755
15756 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15757 PyObject *resultobj = 0;
15758 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15759 wxString *arg2 = 0 ;
15760 void *argp1 = 0 ;
15761 int res1 = 0 ;
15762 bool temp2 = false ;
15763 PyObject * obj0 = 0 ;
15764 PyObject * obj1 = 0 ;
15765 char * kwnames[] = {
15766 (char *) "self",(char *) "text", NULL
15767 };
15768
15769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15771 if (!SWIG_IsOK(res1)) {
15772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15773 }
15774 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15775 {
15776 arg2 = wxString_in_helper(obj1);
15777 if (arg2 == NULL) SWIG_fail;
15778 temp2 = true;
15779 }
15780 {
15781 PyThreadState* __tstate = wxPyBeginAllowThreads();
15782 (arg1)->SetValue((wxString const &)*arg2);
15783 wxPyEndAllowThreads(__tstate);
15784 if (PyErr_Occurred()) SWIG_fail;
15785 }
15786 resultobj = SWIG_Py_Void();
15787 {
15788 if (temp2)
15789 delete arg2;
15790 }
15791 return resultobj;
15792 fail:
15793 {
15794 if (temp2)
15795 delete arg2;
15796 }
15797 return NULL;
15798 }
15799
15800
15801 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15802 PyObject *resultobj = 0;
15803 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15804 int arg2 ;
15805 int arg3 ;
15806 void *argp1 = 0 ;
15807 int res1 = 0 ;
15808 int val2 ;
15809 int ecode2 = 0 ;
15810 int val3 ;
15811 int ecode3 = 0 ;
15812 PyObject * obj0 = 0 ;
15813 PyObject * obj1 = 0 ;
15814 PyObject * obj2 = 0 ;
15815 char * kwnames[] = {
15816 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15817 };
15818
15819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15821 if (!SWIG_IsOK(res1)) {
15822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15823 }
15824 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15825 ecode2 = SWIG_AsVal_int(obj1, &val2);
15826 if (!SWIG_IsOK(ecode2)) {
15827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15828 }
15829 arg2 = static_cast< int >(val2);
15830 ecode3 = SWIG_AsVal_int(obj2, &val3);
15831 if (!SWIG_IsOK(ecode3)) {
15832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15833 }
15834 arg3 = static_cast< int >(val3);
15835 {
15836 PyThreadState* __tstate = wxPyBeginAllowThreads();
15837 (arg1)->SetRange(arg2,arg3);
15838 wxPyEndAllowThreads(__tstate);
15839 if (PyErr_Occurred()) SWIG_fail;
15840 }
15841 resultobj = SWIG_Py_Void();
15842 return resultobj;
15843 fail:
15844 return NULL;
15845 }
15846
15847
15848 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15849 PyObject *resultobj = 0;
15850 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15851 int result;
15852 void *argp1 = 0 ;
15853 int res1 = 0 ;
15854 PyObject *swig_obj[1] ;
15855
15856 if (!args) SWIG_fail;
15857 swig_obj[0] = args;
15858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15859 if (!SWIG_IsOK(res1)) {
15860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15861 }
15862 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15863 {
15864 PyThreadState* __tstate = wxPyBeginAllowThreads();
15865 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15866 wxPyEndAllowThreads(__tstate);
15867 if (PyErr_Occurred()) SWIG_fail;
15868 }
15869 resultobj = SWIG_From_int(static_cast< int >(result));
15870 return resultobj;
15871 fail:
15872 return NULL;
15873 }
15874
15875
15876 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15877 PyObject *resultobj = 0;
15878 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15879 int result;
15880 void *argp1 = 0 ;
15881 int res1 = 0 ;
15882 PyObject *swig_obj[1] ;
15883
15884 if (!args) SWIG_fail;
15885 swig_obj[0] = args;
15886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15887 if (!SWIG_IsOK(res1)) {
15888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15889 }
15890 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15891 {
15892 PyThreadState* __tstate = wxPyBeginAllowThreads();
15893 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15894 wxPyEndAllowThreads(__tstate);
15895 if (PyErr_Occurred()) SWIG_fail;
15896 }
15897 resultobj = SWIG_From_int(static_cast< int >(result));
15898 return resultobj;
15899 fail:
15900 return NULL;
15901 }
15902
15903
15904 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15905 PyObject *resultobj = 0;
15906 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15907 long arg2 ;
15908 long arg3 ;
15909 void *argp1 = 0 ;
15910 int res1 = 0 ;
15911 long val2 ;
15912 int ecode2 = 0 ;
15913 long val3 ;
15914 int ecode3 = 0 ;
15915 PyObject * obj0 = 0 ;
15916 PyObject * obj1 = 0 ;
15917 PyObject * obj2 = 0 ;
15918 char * kwnames[] = {
15919 (char *) "self",(char *) "from",(char *) "to", NULL
15920 };
15921
15922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15924 if (!SWIG_IsOK(res1)) {
15925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15926 }
15927 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15928 ecode2 = SWIG_AsVal_long(obj1, &val2);
15929 if (!SWIG_IsOK(ecode2)) {
15930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15931 }
15932 arg2 = static_cast< long >(val2);
15933 ecode3 = SWIG_AsVal_long(obj2, &val3);
15934 if (!SWIG_IsOK(ecode3)) {
15935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15936 }
15937 arg3 = static_cast< long >(val3);
15938 {
15939 PyThreadState* __tstate = wxPyBeginAllowThreads();
15940 (arg1)->SetSelection(arg2,arg3);
15941 wxPyEndAllowThreads(__tstate);
15942 if (PyErr_Occurred()) SWIG_fail;
15943 }
15944 resultobj = SWIG_Py_Void();
15945 return resultobj;
15946 fail:
15947 return NULL;
15948 }
15949
15950
15951 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15952 PyObject *resultobj = 0;
15953 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15954 SwigValueWrapper<wxVisualAttributes > result;
15955 int val1 ;
15956 int ecode1 = 0 ;
15957 PyObject * obj0 = 0 ;
15958 char * kwnames[] = {
15959 (char *) "variant", NULL
15960 };
15961
15962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15963 if (obj0) {
15964 ecode1 = SWIG_AsVal_int(obj0, &val1);
15965 if (!SWIG_IsOK(ecode1)) {
15966 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15967 }
15968 arg1 = static_cast< wxWindowVariant >(val1);
15969 }
15970 {
15971 if (!wxPyCheckForApp()) SWIG_fail;
15972 PyThreadState* __tstate = wxPyBeginAllowThreads();
15973 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15974 wxPyEndAllowThreads(__tstate);
15975 if (PyErr_Occurred()) SWIG_fail;
15976 }
15977 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15978 return resultobj;
15979 fail:
15980 return NULL;
15981 }
15982
15983
15984 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15985 PyObject *obj;
15986 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15987 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15988 return SWIG_Py_Void();
15989 }
15990
15991 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15992 return SWIG_Python_InitShadowInstance(args);
15993 }
15994
15995 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15996 PyObject *resultobj = 0;
15997 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15998 int arg2 = (int) 0 ;
15999 wxSpinEvent *result = 0 ;
16000 int val1 ;
16001 int ecode1 = 0 ;
16002 int val2 ;
16003 int ecode2 = 0 ;
16004 PyObject * obj0 = 0 ;
16005 PyObject * obj1 = 0 ;
16006 char * kwnames[] = {
16007 (char *) "commandType",(char *) "winid", NULL
16008 };
16009
16010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
16011 if (obj0) {
16012 ecode1 = SWIG_AsVal_int(obj0, &val1);
16013 if (!SWIG_IsOK(ecode1)) {
16014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
16015 }
16016 arg1 = static_cast< wxEventType >(val1);
16017 }
16018 if (obj1) {
16019 ecode2 = SWIG_AsVal_int(obj1, &val2);
16020 if (!SWIG_IsOK(ecode2)) {
16021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
16022 }
16023 arg2 = static_cast< int >(val2);
16024 }
16025 {
16026 PyThreadState* __tstate = wxPyBeginAllowThreads();
16027 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
16028 wxPyEndAllowThreads(__tstate);
16029 if (PyErr_Occurred()) SWIG_fail;
16030 }
16031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
16032 return resultobj;
16033 fail:
16034 return NULL;
16035 }
16036
16037
16038 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16039 PyObject *resultobj = 0;
16040 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16041 int result;
16042 void *argp1 = 0 ;
16043 int res1 = 0 ;
16044 PyObject *swig_obj[1] ;
16045
16046 if (!args) SWIG_fail;
16047 swig_obj[0] = args;
16048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16049 if (!SWIG_IsOK(res1)) {
16050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
16051 }
16052 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16053 {
16054 PyThreadState* __tstate = wxPyBeginAllowThreads();
16055 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
16056 wxPyEndAllowThreads(__tstate);
16057 if (PyErr_Occurred()) SWIG_fail;
16058 }
16059 resultobj = SWIG_From_int(static_cast< int >(result));
16060 return resultobj;
16061 fail:
16062 return NULL;
16063 }
16064
16065
16066 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16067 PyObject *resultobj = 0;
16068 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16069 int arg2 ;
16070 void *argp1 = 0 ;
16071 int res1 = 0 ;
16072 int val2 ;
16073 int ecode2 = 0 ;
16074 PyObject * obj0 = 0 ;
16075 PyObject * obj1 = 0 ;
16076 char * kwnames[] = {
16077 (char *) "self",(char *) "pos", NULL
16078 };
16079
16080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16082 if (!SWIG_IsOK(res1)) {
16083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
16084 }
16085 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16086 ecode2 = SWIG_AsVal_int(obj1, &val2);
16087 if (!SWIG_IsOK(ecode2)) {
16088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16089 }
16090 arg2 = static_cast< int >(val2);
16091 {
16092 PyThreadState* __tstate = wxPyBeginAllowThreads();
16093 (arg1)->SetPosition(arg2);
16094 wxPyEndAllowThreads(__tstate);
16095 if (PyErr_Occurred()) SWIG_fail;
16096 }
16097 resultobj = SWIG_Py_Void();
16098 return resultobj;
16099 fail:
16100 return NULL;
16101 }
16102
16103
16104 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16105 PyObject *obj;
16106 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16107 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16108 return SWIG_Py_Void();
16109 }
16110
16111 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16112 return SWIG_Python_InitShadowInstance(args);
16113 }
16114
16115 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16116 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16117 return 1;
16118 }
16119
16120
16121 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16122 PyObject *pyobj = 0;
16123
16124 {
16125 #if wxUSE_UNICODE
16126 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16127 #else
16128 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16129 #endif
16130 }
16131 return pyobj;
16132 }
16133
16134
16135 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16136 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16137 return 1;
16138 }
16139
16140
16141 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16142 PyObject *pyobj = 0;
16143
16144 {
16145 #if wxUSE_UNICODE
16146 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16147 #else
16148 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16149 #endif
16150 }
16151 return pyobj;
16152 }
16153
16154
16155 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16156 PyObject *resultobj = 0;
16157 wxWindow *arg1 = (wxWindow *) 0 ;
16158 int arg2 = (int) -1 ;
16159 wxString const &arg3_defvalue = wxPyEmptyString ;
16160 wxString *arg3 = (wxString *) &arg3_defvalue ;
16161 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16162 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16163 wxSize const &arg5_defvalue = wxDefaultSize ;
16164 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16165 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16166 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16167 int arg7 = (int) 0 ;
16168 long arg8 = (long) wxRA_HORIZONTAL ;
16169 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16170 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16171 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16172 wxString *arg10 = (wxString *) &arg10_defvalue ;
16173 wxRadioBox *result = 0 ;
16174 void *argp1 = 0 ;
16175 int res1 = 0 ;
16176 int val2 ;
16177 int ecode2 = 0 ;
16178 bool temp3 = false ;
16179 wxPoint temp4 ;
16180 wxSize temp5 ;
16181 bool temp6 = false ;
16182 int val7 ;
16183 int ecode7 = 0 ;
16184 long val8 ;
16185 int ecode8 = 0 ;
16186 void *argp9 = 0 ;
16187 int res9 = 0 ;
16188 bool temp10 = false ;
16189 PyObject * obj0 = 0 ;
16190 PyObject * obj1 = 0 ;
16191 PyObject * obj2 = 0 ;
16192 PyObject * obj3 = 0 ;
16193 PyObject * obj4 = 0 ;
16194 PyObject * obj5 = 0 ;
16195 PyObject * obj6 = 0 ;
16196 PyObject * obj7 = 0 ;
16197 PyObject * obj8 = 0 ;
16198 PyObject * obj9 = 0 ;
16199 char * kwnames[] = {
16200 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16201 };
16202
16203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16205 if (!SWIG_IsOK(res1)) {
16206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16207 }
16208 arg1 = reinterpret_cast< wxWindow * >(argp1);
16209 if (obj1) {
16210 ecode2 = SWIG_AsVal_int(obj1, &val2);
16211 if (!SWIG_IsOK(ecode2)) {
16212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16213 }
16214 arg2 = static_cast< int >(val2);
16215 }
16216 if (obj2) {
16217 {
16218 arg3 = wxString_in_helper(obj2);
16219 if (arg3 == NULL) SWIG_fail;
16220 temp3 = true;
16221 }
16222 }
16223 if (obj3) {
16224 {
16225 arg4 = &temp4;
16226 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16227 }
16228 }
16229 if (obj4) {
16230 {
16231 arg5 = &temp5;
16232 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16233 }
16234 }
16235 if (obj5) {
16236 {
16237 if (! PySequence_Check(obj5)) {
16238 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16239 SWIG_fail;
16240 }
16241 arg6 = new wxArrayString;
16242 temp6 = true;
16243 int i, len=PySequence_Length(obj5);
16244 for (i=0; i<len; i++) {
16245 PyObject* item = PySequence_GetItem(obj5, i);
16246 wxString* s = wxString_in_helper(item);
16247 if (PyErr_Occurred()) SWIG_fail;
16248 arg6->Add(*s);
16249 delete s;
16250 Py_DECREF(item);
16251 }
16252 }
16253 }
16254 if (obj6) {
16255 ecode7 = SWIG_AsVal_int(obj6, &val7);
16256 if (!SWIG_IsOK(ecode7)) {
16257 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16258 }
16259 arg7 = static_cast< int >(val7);
16260 }
16261 if (obj7) {
16262 ecode8 = SWIG_AsVal_long(obj7, &val8);
16263 if (!SWIG_IsOK(ecode8)) {
16264 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16265 }
16266 arg8 = static_cast< long >(val8);
16267 }
16268 if (obj8) {
16269 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16270 if (!SWIG_IsOK(res9)) {
16271 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16272 }
16273 if (!argp9) {
16274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16275 }
16276 arg9 = reinterpret_cast< wxValidator * >(argp9);
16277 }
16278 if (obj9) {
16279 {
16280 arg10 = wxString_in_helper(obj9);
16281 if (arg10 == NULL) SWIG_fail;
16282 temp10 = true;
16283 }
16284 }
16285 {
16286 if (!wxPyCheckForApp()) SWIG_fail;
16287 PyThreadState* __tstate = wxPyBeginAllowThreads();
16288 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);
16289 wxPyEndAllowThreads(__tstate);
16290 if (PyErr_Occurred()) SWIG_fail;
16291 }
16292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16293 {
16294 if (temp3)
16295 delete arg3;
16296 }
16297 {
16298 if (temp6) delete arg6;
16299 }
16300 {
16301 if (temp10)
16302 delete arg10;
16303 }
16304 return resultobj;
16305 fail:
16306 {
16307 if (temp3)
16308 delete arg3;
16309 }
16310 {
16311 if (temp6) delete arg6;
16312 }
16313 {
16314 if (temp10)
16315 delete arg10;
16316 }
16317 return NULL;
16318 }
16319
16320
16321 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16322 PyObject *resultobj = 0;
16323 wxRadioBox *result = 0 ;
16324
16325 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16326 {
16327 if (!wxPyCheckForApp()) SWIG_fail;
16328 PyThreadState* __tstate = wxPyBeginAllowThreads();
16329 result = (wxRadioBox *)new wxRadioBox();
16330 wxPyEndAllowThreads(__tstate);
16331 if (PyErr_Occurred()) SWIG_fail;
16332 }
16333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16334 return resultobj;
16335 fail:
16336 return NULL;
16337 }
16338
16339
16340 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16341 PyObject *resultobj = 0;
16342 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16343 wxWindow *arg2 = (wxWindow *) 0 ;
16344 int arg3 = (int) -1 ;
16345 wxString const &arg4_defvalue = wxPyEmptyString ;
16346 wxString *arg4 = (wxString *) &arg4_defvalue ;
16347 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16348 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16349 wxSize const &arg6_defvalue = wxDefaultSize ;
16350 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16351 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16352 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16353 int arg8 = (int) 0 ;
16354 long arg9 = (long) wxRA_HORIZONTAL ;
16355 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16356 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16357 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16358 wxString *arg11 = (wxString *) &arg11_defvalue ;
16359 bool result;
16360 void *argp1 = 0 ;
16361 int res1 = 0 ;
16362 void *argp2 = 0 ;
16363 int res2 = 0 ;
16364 int val3 ;
16365 int ecode3 = 0 ;
16366 bool temp4 = false ;
16367 wxPoint temp5 ;
16368 wxSize temp6 ;
16369 bool temp7 = false ;
16370 int val8 ;
16371 int ecode8 = 0 ;
16372 long val9 ;
16373 int ecode9 = 0 ;
16374 void *argp10 = 0 ;
16375 int res10 = 0 ;
16376 bool temp11 = false ;
16377 PyObject * obj0 = 0 ;
16378 PyObject * obj1 = 0 ;
16379 PyObject * obj2 = 0 ;
16380 PyObject * obj3 = 0 ;
16381 PyObject * obj4 = 0 ;
16382 PyObject * obj5 = 0 ;
16383 PyObject * obj6 = 0 ;
16384 PyObject * obj7 = 0 ;
16385 PyObject * obj8 = 0 ;
16386 PyObject * obj9 = 0 ;
16387 PyObject * obj10 = 0 ;
16388 char * kwnames[] = {
16389 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16390 };
16391
16392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16394 if (!SWIG_IsOK(res1)) {
16395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16396 }
16397 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16398 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16399 if (!SWIG_IsOK(res2)) {
16400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16401 }
16402 arg2 = reinterpret_cast< wxWindow * >(argp2);
16403 if (obj2) {
16404 ecode3 = SWIG_AsVal_int(obj2, &val3);
16405 if (!SWIG_IsOK(ecode3)) {
16406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16407 }
16408 arg3 = static_cast< int >(val3);
16409 }
16410 if (obj3) {
16411 {
16412 arg4 = wxString_in_helper(obj3);
16413 if (arg4 == NULL) SWIG_fail;
16414 temp4 = true;
16415 }
16416 }
16417 if (obj4) {
16418 {
16419 arg5 = &temp5;
16420 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16421 }
16422 }
16423 if (obj5) {
16424 {
16425 arg6 = &temp6;
16426 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16427 }
16428 }
16429 if (obj6) {
16430 {
16431 if (! PySequence_Check(obj6)) {
16432 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16433 SWIG_fail;
16434 }
16435 arg7 = new wxArrayString;
16436 temp7 = true;
16437 int i, len=PySequence_Length(obj6);
16438 for (i=0; i<len; i++) {
16439 PyObject* item = PySequence_GetItem(obj6, i);
16440 wxString* s = wxString_in_helper(item);
16441 if (PyErr_Occurred()) SWIG_fail;
16442 arg7->Add(*s);
16443 delete s;
16444 Py_DECREF(item);
16445 }
16446 }
16447 }
16448 if (obj7) {
16449 ecode8 = SWIG_AsVal_int(obj7, &val8);
16450 if (!SWIG_IsOK(ecode8)) {
16451 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16452 }
16453 arg8 = static_cast< int >(val8);
16454 }
16455 if (obj8) {
16456 ecode9 = SWIG_AsVal_long(obj8, &val9);
16457 if (!SWIG_IsOK(ecode9)) {
16458 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16459 }
16460 arg9 = static_cast< long >(val9);
16461 }
16462 if (obj9) {
16463 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16464 if (!SWIG_IsOK(res10)) {
16465 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16466 }
16467 if (!argp10) {
16468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16469 }
16470 arg10 = reinterpret_cast< wxValidator * >(argp10);
16471 }
16472 if (obj10) {
16473 {
16474 arg11 = wxString_in_helper(obj10);
16475 if (arg11 == NULL) SWIG_fail;
16476 temp11 = true;
16477 }
16478 }
16479 {
16480 PyThreadState* __tstate = wxPyBeginAllowThreads();
16481 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);
16482 wxPyEndAllowThreads(__tstate);
16483 if (PyErr_Occurred()) SWIG_fail;
16484 }
16485 {
16486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16487 }
16488 {
16489 if (temp4)
16490 delete arg4;
16491 }
16492 {
16493 if (temp7) delete arg7;
16494 }
16495 {
16496 if (temp11)
16497 delete arg11;
16498 }
16499 return resultobj;
16500 fail:
16501 {
16502 if (temp4)
16503 delete arg4;
16504 }
16505 {
16506 if (temp7) delete arg7;
16507 }
16508 {
16509 if (temp11)
16510 delete arg11;
16511 }
16512 return NULL;
16513 }
16514
16515
16516 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16517 PyObject *resultobj = 0;
16518 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16519 int arg2 ;
16520 void *argp1 = 0 ;
16521 int res1 = 0 ;
16522 int val2 ;
16523 int ecode2 = 0 ;
16524 PyObject * obj0 = 0 ;
16525 PyObject * obj1 = 0 ;
16526 char * kwnames[] = {
16527 (char *) "self",(char *) "n", NULL
16528 };
16529
16530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16532 if (!SWIG_IsOK(res1)) {
16533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16534 }
16535 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16536 ecode2 = SWIG_AsVal_int(obj1, &val2);
16537 if (!SWIG_IsOK(ecode2)) {
16538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16539 }
16540 arg2 = static_cast< int >(val2);
16541 {
16542 PyThreadState* __tstate = wxPyBeginAllowThreads();
16543 (arg1)->SetSelection(arg2);
16544 wxPyEndAllowThreads(__tstate);
16545 if (PyErr_Occurred()) SWIG_fail;
16546 }
16547 resultobj = SWIG_Py_Void();
16548 return resultobj;
16549 fail:
16550 return NULL;
16551 }
16552
16553
16554 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16555 PyObject *resultobj = 0;
16556 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16557 int result;
16558 void *argp1 = 0 ;
16559 int res1 = 0 ;
16560 PyObject *swig_obj[1] ;
16561
16562 if (!args) SWIG_fail;
16563 swig_obj[0] = args;
16564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16565 if (!SWIG_IsOK(res1)) {
16566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16567 }
16568 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16569 {
16570 PyThreadState* __tstate = wxPyBeginAllowThreads();
16571 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16572 wxPyEndAllowThreads(__tstate);
16573 if (PyErr_Occurred()) SWIG_fail;
16574 }
16575 resultobj = SWIG_From_int(static_cast< int >(result));
16576 return resultobj;
16577 fail:
16578 return NULL;
16579 }
16580
16581
16582 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16583 PyObject *resultobj = 0;
16584 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16585 wxString result;
16586 void *argp1 = 0 ;
16587 int res1 = 0 ;
16588 PyObject *swig_obj[1] ;
16589
16590 if (!args) SWIG_fail;
16591 swig_obj[0] = args;
16592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16593 if (!SWIG_IsOK(res1)) {
16594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16595 }
16596 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
16599 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
16603 {
16604 #if wxUSE_UNICODE
16605 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16606 #else
16607 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16608 #endif
16609 }
16610 return resultobj;
16611 fail:
16612 return NULL;
16613 }
16614
16615
16616 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16617 PyObject *resultobj = 0;
16618 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16619 wxString *arg2 = 0 ;
16620 bool result;
16621 void *argp1 = 0 ;
16622 int res1 = 0 ;
16623 bool temp2 = false ;
16624 PyObject * obj0 = 0 ;
16625 PyObject * obj1 = 0 ;
16626 char * kwnames[] = {
16627 (char *) "self",(char *) "s", NULL
16628 };
16629
16630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16632 if (!SWIG_IsOK(res1)) {
16633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16634 }
16635 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16636 {
16637 arg2 = wxString_in_helper(obj1);
16638 if (arg2 == NULL) SWIG_fail;
16639 temp2 = true;
16640 }
16641 {
16642 PyThreadState* __tstate = wxPyBeginAllowThreads();
16643 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16644 wxPyEndAllowThreads(__tstate);
16645 if (PyErr_Occurred()) SWIG_fail;
16646 }
16647 {
16648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16649 }
16650 {
16651 if (temp2)
16652 delete arg2;
16653 }
16654 return resultobj;
16655 fail:
16656 {
16657 if (temp2)
16658 delete arg2;
16659 }
16660 return NULL;
16661 }
16662
16663
16664 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16665 PyObject *resultobj = 0;
16666 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16667 size_t result;
16668 void *argp1 = 0 ;
16669 int res1 = 0 ;
16670 PyObject *swig_obj[1] ;
16671
16672 if (!args) SWIG_fail;
16673 swig_obj[0] = args;
16674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16675 if (!SWIG_IsOK(res1)) {
16676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16677 }
16678 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16679 {
16680 PyThreadState* __tstate = wxPyBeginAllowThreads();
16681 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16682 wxPyEndAllowThreads(__tstate);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 }
16685 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16686 return resultobj;
16687 fail:
16688 return NULL;
16689 }
16690
16691
16692 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16693 PyObject *resultobj = 0;
16694 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16695 wxString *arg2 = 0 ;
16696 int result;
16697 void *argp1 = 0 ;
16698 int res1 = 0 ;
16699 bool temp2 = false ;
16700 PyObject * obj0 = 0 ;
16701 PyObject * obj1 = 0 ;
16702 char * kwnames[] = {
16703 (char *) "self",(char *) "s", NULL
16704 };
16705
16706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16708 if (!SWIG_IsOK(res1)) {
16709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16710 }
16711 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16712 {
16713 arg2 = wxString_in_helper(obj1);
16714 if (arg2 == NULL) SWIG_fail;
16715 temp2 = true;
16716 }
16717 {
16718 PyThreadState* __tstate = wxPyBeginAllowThreads();
16719 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
16723 resultobj = SWIG_From_int(static_cast< int >(result));
16724 {
16725 if (temp2)
16726 delete arg2;
16727 }
16728 return resultobj;
16729 fail:
16730 {
16731 if (temp2)
16732 delete arg2;
16733 }
16734 return NULL;
16735 }
16736
16737
16738 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16739 PyObject *resultobj = 0;
16740 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16741 int arg2 ;
16742 wxString result;
16743 void *argp1 = 0 ;
16744 int res1 = 0 ;
16745 int val2 ;
16746 int ecode2 = 0 ;
16747 PyObject * obj0 = 0 ;
16748 PyObject * obj1 = 0 ;
16749 char * kwnames[] = {
16750 (char *) "self",(char *) "n", NULL
16751 };
16752
16753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16755 if (!SWIG_IsOK(res1)) {
16756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16757 }
16758 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16759 ecode2 = SWIG_AsVal_int(obj1, &val2);
16760 if (!SWIG_IsOK(ecode2)) {
16761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16762 }
16763 arg2 = static_cast< int >(val2);
16764 {
16765 PyThreadState* __tstate = wxPyBeginAllowThreads();
16766 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16767 wxPyEndAllowThreads(__tstate);
16768 if (PyErr_Occurred()) SWIG_fail;
16769 }
16770 {
16771 #if wxUSE_UNICODE
16772 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16773 #else
16774 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16775 #endif
16776 }
16777 return resultobj;
16778 fail:
16779 return NULL;
16780 }
16781
16782
16783 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16784 PyObject *resultobj = 0;
16785 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16786 int arg2 ;
16787 wxString *arg3 = 0 ;
16788 void *argp1 = 0 ;
16789 int res1 = 0 ;
16790 int val2 ;
16791 int ecode2 = 0 ;
16792 bool temp3 = false ;
16793 PyObject * obj0 = 0 ;
16794 PyObject * obj1 = 0 ;
16795 PyObject * obj2 = 0 ;
16796 char * kwnames[] = {
16797 (char *) "self",(char *) "n",(char *) "label", NULL
16798 };
16799
16800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16802 if (!SWIG_IsOK(res1)) {
16803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16804 }
16805 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16806 ecode2 = SWIG_AsVal_int(obj1, &val2);
16807 if (!SWIG_IsOK(ecode2)) {
16808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16809 }
16810 arg2 = static_cast< int >(val2);
16811 {
16812 arg3 = wxString_in_helper(obj2);
16813 if (arg3 == NULL) SWIG_fail;
16814 temp3 = true;
16815 }
16816 {
16817 PyThreadState* __tstate = wxPyBeginAllowThreads();
16818 (arg1)->SetString(arg2,(wxString const &)*arg3);
16819 wxPyEndAllowThreads(__tstate);
16820 if (PyErr_Occurred()) SWIG_fail;
16821 }
16822 resultobj = SWIG_Py_Void();
16823 {
16824 if (temp3)
16825 delete arg3;
16826 }
16827 return resultobj;
16828 fail:
16829 {
16830 if (temp3)
16831 delete arg3;
16832 }
16833 return NULL;
16834 }
16835
16836
16837 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16838 PyObject *resultobj = 0;
16839 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16840 unsigned int arg2 ;
16841 bool arg3 = (bool) true ;
16842 void *argp1 = 0 ;
16843 int res1 = 0 ;
16844 unsigned int val2 ;
16845 int ecode2 = 0 ;
16846 bool val3 ;
16847 int ecode3 = 0 ;
16848 PyObject * obj0 = 0 ;
16849 PyObject * obj1 = 0 ;
16850 PyObject * obj2 = 0 ;
16851 char * kwnames[] = {
16852 (char *) "self",(char *) "n",(char *) "enable", NULL
16853 };
16854
16855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16857 if (!SWIG_IsOK(res1)) {
16858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16859 }
16860 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16861 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16862 if (!SWIG_IsOK(ecode2)) {
16863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16864 }
16865 arg2 = static_cast< unsigned int >(val2);
16866 if (obj2) {
16867 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16868 if (!SWIG_IsOK(ecode3)) {
16869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16870 }
16871 arg3 = static_cast< bool >(val3);
16872 }
16873 {
16874 PyThreadState* __tstate = wxPyBeginAllowThreads();
16875 (arg1)->Enable(arg2,arg3);
16876 wxPyEndAllowThreads(__tstate);
16877 if (PyErr_Occurred()) SWIG_fail;
16878 }
16879 resultobj = SWIG_Py_Void();
16880 return resultobj;
16881 fail:
16882 return NULL;
16883 }
16884
16885
16886 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16887 PyObject *resultobj = 0;
16888 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16889 unsigned int arg2 ;
16890 bool arg3 = (bool) true ;
16891 void *argp1 = 0 ;
16892 int res1 = 0 ;
16893 unsigned int val2 ;
16894 int ecode2 = 0 ;
16895 bool val3 ;
16896 int ecode3 = 0 ;
16897 PyObject * obj0 = 0 ;
16898 PyObject * obj1 = 0 ;
16899 PyObject * obj2 = 0 ;
16900 char * kwnames[] = {
16901 (char *) "self",(char *) "n",(char *) "show", NULL
16902 };
16903
16904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16906 if (!SWIG_IsOK(res1)) {
16907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16908 }
16909 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16910 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16911 if (!SWIG_IsOK(ecode2)) {
16912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16913 }
16914 arg2 = static_cast< unsigned int >(val2);
16915 if (obj2) {
16916 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16917 if (!SWIG_IsOK(ecode3)) {
16918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16919 }
16920 arg3 = static_cast< bool >(val3);
16921 }
16922 {
16923 PyThreadState* __tstate = wxPyBeginAllowThreads();
16924 (arg1)->Show(arg2,arg3);
16925 wxPyEndAllowThreads(__tstate);
16926 if (PyErr_Occurred()) SWIG_fail;
16927 }
16928 resultobj = SWIG_Py_Void();
16929 return resultobj;
16930 fail:
16931 return NULL;
16932 }
16933
16934
16935 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16936 PyObject *resultobj = 0;
16937 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16938 unsigned int arg2 ;
16939 bool result;
16940 void *argp1 = 0 ;
16941 int res1 = 0 ;
16942 unsigned int val2 ;
16943 int ecode2 = 0 ;
16944 PyObject * obj0 = 0 ;
16945 PyObject * obj1 = 0 ;
16946 char * kwnames[] = {
16947 (char *) "self",(char *) "n", NULL
16948 };
16949
16950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16952 if (!SWIG_IsOK(res1)) {
16953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16954 }
16955 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16956 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16957 if (!SWIG_IsOK(ecode2)) {
16958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16959 }
16960 arg2 = static_cast< unsigned int >(val2);
16961 {
16962 PyThreadState* __tstate = wxPyBeginAllowThreads();
16963 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16964 wxPyEndAllowThreads(__tstate);
16965 if (PyErr_Occurred()) SWIG_fail;
16966 }
16967 {
16968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16969 }
16970 return resultobj;
16971 fail:
16972 return NULL;
16973 }
16974
16975
16976 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16977 PyObject *resultobj = 0;
16978 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16979 unsigned int arg2 ;
16980 bool result;
16981 void *argp1 = 0 ;
16982 int res1 = 0 ;
16983 unsigned int val2 ;
16984 int ecode2 = 0 ;
16985 PyObject * obj0 = 0 ;
16986 PyObject * obj1 = 0 ;
16987 char * kwnames[] = {
16988 (char *) "self",(char *) "n", NULL
16989 };
16990
16991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16993 if (!SWIG_IsOK(res1)) {
16994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16995 }
16996 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16997 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16998 if (!SWIG_IsOK(ecode2)) {
16999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
17000 }
17001 arg2 = static_cast< unsigned int >(val2);
17002 {
17003 PyThreadState* __tstate = wxPyBeginAllowThreads();
17004 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
17005 wxPyEndAllowThreads(__tstate);
17006 if (PyErr_Occurred()) SWIG_fail;
17007 }
17008 {
17009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17010 }
17011 return resultobj;
17012 fail:
17013 return NULL;
17014 }
17015
17016
17017 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17018 PyObject *resultobj = 0;
17019 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17020 unsigned int result;
17021 void *argp1 = 0 ;
17022 int res1 = 0 ;
17023 PyObject *swig_obj[1] ;
17024
17025 if (!args) SWIG_fail;
17026 swig_obj[0] = args;
17027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17028 if (!SWIG_IsOK(res1)) {
17029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17030 }
17031 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17032 {
17033 PyThreadState* __tstate = wxPyBeginAllowThreads();
17034 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
17035 wxPyEndAllowThreads(__tstate);
17036 if (PyErr_Occurred()) SWIG_fail;
17037 }
17038 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17039 return resultobj;
17040 fail:
17041 return NULL;
17042 }
17043
17044
17045 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17046 PyObject *resultobj = 0;
17047 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17048 unsigned int result;
17049 void *argp1 = 0 ;
17050 int res1 = 0 ;
17051 PyObject *swig_obj[1] ;
17052
17053 if (!args) SWIG_fail;
17054 swig_obj[0] = args;
17055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17056 if (!SWIG_IsOK(res1)) {
17057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17058 }
17059 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17060 {
17061 PyThreadState* __tstate = wxPyBeginAllowThreads();
17062 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
17063 wxPyEndAllowThreads(__tstate);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17067 return resultobj;
17068 fail:
17069 return NULL;
17070 }
17071
17072
17073 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17074 PyObject *resultobj = 0;
17075 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17076 int arg2 ;
17077 wxDirection arg3 ;
17078 long arg4 ;
17079 int result;
17080 void *argp1 = 0 ;
17081 int res1 = 0 ;
17082 int val2 ;
17083 int ecode2 = 0 ;
17084 int val3 ;
17085 int ecode3 = 0 ;
17086 long val4 ;
17087 int ecode4 = 0 ;
17088 PyObject * obj0 = 0 ;
17089 PyObject * obj1 = 0 ;
17090 PyObject * obj2 = 0 ;
17091 PyObject * obj3 = 0 ;
17092 char * kwnames[] = {
17093 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17094 };
17095
17096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17098 if (!SWIG_IsOK(res1)) {
17099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17100 }
17101 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17102 ecode2 = SWIG_AsVal_int(obj1, &val2);
17103 if (!SWIG_IsOK(ecode2)) {
17104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17105 }
17106 arg2 = static_cast< int >(val2);
17107 ecode3 = SWIG_AsVal_int(obj2, &val3);
17108 if (!SWIG_IsOK(ecode3)) {
17109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17110 }
17111 arg3 = static_cast< wxDirection >(val3);
17112 ecode4 = SWIG_AsVal_long(obj3, &val4);
17113 if (!SWIG_IsOK(ecode4)) {
17114 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17115 }
17116 arg4 = static_cast< long >(val4);
17117 {
17118 PyThreadState* __tstate = wxPyBeginAllowThreads();
17119 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17120 wxPyEndAllowThreads(__tstate);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 resultobj = SWIG_From_int(static_cast< int >(result));
17124 return resultobj;
17125 fail:
17126 return NULL;
17127 }
17128
17129
17130 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17131 PyObject *resultobj = 0;
17132 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17133 unsigned int arg2 ;
17134 wxString *arg3 = 0 ;
17135 void *argp1 = 0 ;
17136 int res1 = 0 ;
17137 unsigned int val2 ;
17138 int ecode2 = 0 ;
17139 bool temp3 = false ;
17140 PyObject * obj0 = 0 ;
17141 PyObject * obj1 = 0 ;
17142 PyObject * obj2 = 0 ;
17143 char * kwnames[] = {
17144 (char *) "self",(char *) "item",(char *) "text", NULL
17145 };
17146
17147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17149 if (!SWIG_IsOK(res1)) {
17150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17151 }
17152 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17153 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17154 if (!SWIG_IsOK(ecode2)) {
17155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17156 }
17157 arg2 = static_cast< unsigned int >(val2);
17158 {
17159 arg3 = wxString_in_helper(obj2);
17160 if (arg3 == NULL) SWIG_fail;
17161 temp3 = true;
17162 }
17163 {
17164 PyThreadState* __tstate = wxPyBeginAllowThreads();
17165 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17166 wxPyEndAllowThreads(__tstate);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 }
17169 resultobj = SWIG_Py_Void();
17170 {
17171 if (temp3)
17172 delete arg3;
17173 }
17174 return resultobj;
17175 fail:
17176 {
17177 if (temp3)
17178 delete arg3;
17179 }
17180 return NULL;
17181 }
17182
17183
17184 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17185 PyObject *resultobj = 0;
17186 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17187 unsigned int arg2 ;
17188 wxToolTip *result = 0 ;
17189 void *argp1 = 0 ;
17190 int res1 = 0 ;
17191 unsigned int val2 ;
17192 int ecode2 = 0 ;
17193 PyObject * obj0 = 0 ;
17194 PyObject * obj1 = 0 ;
17195 char * kwnames[] = {
17196 (char *) "self",(char *) "item", NULL
17197 };
17198
17199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17201 if (!SWIG_IsOK(res1)) {
17202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17203 }
17204 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17205 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17206 if (!SWIG_IsOK(ecode2)) {
17207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17208 }
17209 arg2 = static_cast< unsigned int >(val2);
17210 {
17211 PyThreadState* __tstate = wxPyBeginAllowThreads();
17212 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17213 wxPyEndAllowThreads(__tstate);
17214 if (PyErr_Occurred()) SWIG_fail;
17215 }
17216 {
17217 resultobj = wxPyMake_wxObject(result, (bool)0);
17218 }
17219 return resultobj;
17220 fail:
17221 return NULL;
17222 }
17223
17224
17225 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17226 PyObject *resultobj = 0;
17227 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17228 unsigned int arg2 ;
17229 wxString *arg3 = 0 ;
17230 void *argp1 = 0 ;
17231 int res1 = 0 ;
17232 unsigned int val2 ;
17233 int ecode2 = 0 ;
17234 bool temp3 = false ;
17235 PyObject * obj0 = 0 ;
17236 PyObject * obj1 = 0 ;
17237 PyObject * obj2 = 0 ;
17238 char * kwnames[] = {
17239 (char *) "self",(char *) "n",(char *) "helpText", NULL
17240 };
17241
17242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17244 if (!SWIG_IsOK(res1)) {
17245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17246 }
17247 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17248 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17249 if (!SWIG_IsOK(ecode2)) {
17250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17251 }
17252 arg2 = static_cast< unsigned int >(val2);
17253 {
17254 arg3 = wxString_in_helper(obj2);
17255 if (arg3 == NULL) SWIG_fail;
17256 temp3 = true;
17257 }
17258 {
17259 PyThreadState* __tstate = wxPyBeginAllowThreads();
17260 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17261 wxPyEndAllowThreads(__tstate);
17262 if (PyErr_Occurred()) SWIG_fail;
17263 }
17264 resultobj = SWIG_Py_Void();
17265 {
17266 if (temp3)
17267 delete arg3;
17268 }
17269 return resultobj;
17270 fail:
17271 {
17272 if (temp3)
17273 delete arg3;
17274 }
17275 return NULL;
17276 }
17277
17278
17279 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17280 PyObject *resultobj = 0;
17281 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17282 unsigned int arg2 ;
17283 wxString result;
17284 void *argp1 = 0 ;
17285 int res1 = 0 ;
17286 unsigned int val2 ;
17287 int ecode2 = 0 ;
17288 PyObject * obj0 = 0 ;
17289 PyObject * obj1 = 0 ;
17290 char * kwnames[] = {
17291 (char *) "self",(char *) "n", NULL
17292 };
17293
17294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17296 if (!SWIG_IsOK(res1)) {
17297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17298 }
17299 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17300 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17301 if (!SWIG_IsOK(ecode2)) {
17302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17303 }
17304 arg2 = static_cast< unsigned int >(val2);
17305 {
17306 PyThreadState* __tstate = wxPyBeginAllowThreads();
17307 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17308 wxPyEndAllowThreads(__tstate);
17309 if (PyErr_Occurred()) SWIG_fail;
17310 }
17311 {
17312 #if wxUSE_UNICODE
17313 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17314 #else
17315 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17316 #endif
17317 }
17318 return resultobj;
17319 fail:
17320 return NULL;
17321 }
17322
17323
17324 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17325 PyObject *resultobj = 0;
17326 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17327 SwigValueWrapper<wxVisualAttributes > result;
17328 int val1 ;
17329 int ecode1 = 0 ;
17330 PyObject * obj0 = 0 ;
17331 char * kwnames[] = {
17332 (char *) "variant", NULL
17333 };
17334
17335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17336 if (obj0) {
17337 ecode1 = SWIG_AsVal_int(obj0, &val1);
17338 if (!SWIG_IsOK(ecode1)) {
17339 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17340 }
17341 arg1 = static_cast< wxWindowVariant >(val1);
17342 }
17343 {
17344 if (!wxPyCheckForApp()) SWIG_fail;
17345 PyThreadState* __tstate = wxPyBeginAllowThreads();
17346 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17347 wxPyEndAllowThreads(__tstate);
17348 if (PyErr_Occurred()) SWIG_fail;
17349 }
17350 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17351 return resultobj;
17352 fail:
17353 return NULL;
17354 }
17355
17356
17357 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17358 PyObject *obj;
17359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17360 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17361 return SWIG_Py_Void();
17362 }
17363
17364 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17365 return SWIG_Python_InitShadowInstance(args);
17366 }
17367
17368 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17369 PyObject *resultobj = 0;
17370 wxWindow *arg1 = (wxWindow *) 0 ;
17371 int arg2 = (int) -1 ;
17372 wxString const &arg3_defvalue = wxPyEmptyString ;
17373 wxString *arg3 = (wxString *) &arg3_defvalue ;
17374 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17375 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17376 wxSize const &arg5_defvalue = wxDefaultSize ;
17377 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17378 long arg6 = (long) 0 ;
17379 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17380 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17381 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17382 wxString *arg8 = (wxString *) &arg8_defvalue ;
17383 wxRadioButton *result = 0 ;
17384 void *argp1 = 0 ;
17385 int res1 = 0 ;
17386 int val2 ;
17387 int ecode2 = 0 ;
17388 bool temp3 = false ;
17389 wxPoint temp4 ;
17390 wxSize temp5 ;
17391 long val6 ;
17392 int ecode6 = 0 ;
17393 void *argp7 = 0 ;
17394 int res7 = 0 ;
17395 bool temp8 = false ;
17396 PyObject * obj0 = 0 ;
17397 PyObject * obj1 = 0 ;
17398 PyObject * obj2 = 0 ;
17399 PyObject * obj3 = 0 ;
17400 PyObject * obj4 = 0 ;
17401 PyObject * obj5 = 0 ;
17402 PyObject * obj6 = 0 ;
17403 PyObject * obj7 = 0 ;
17404 char * kwnames[] = {
17405 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17406 };
17407
17408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17410 if (!SWIG_IsOK(res1)) {
17411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17412 }
17413 arg1 = reinterpret_cast< wxWindow * >(argp1);
17414 if (obj1) {
17415 ecode2 = SWIG_AsVal_int(obj1, &val2);
17416 if (!SWIG_IsOK(ecode2)) {
17417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17418 }
17419 arg2 = static_cast< int >(val2);
17420 }
17421 if (obj2) {
17422 {
17423 arg3 = wxString_in_helper(obj2);
17424 if (arg3 == NULL) SWIG_fail;
17425 temp3 = true;
17426 }
17427 }
17428 if (obj3) {
17429 {
17430 arg4 = &temp4;
17431 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17432 }
17433 }
17434 if (obj4) {
17435 {
17436 arg5 = &temp5;
17437 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17438 }
17439 }
17440 if (obj5) {
17441 ecode6 = SWIG_AsVal_long(obj5, &val6);
17442 if (!SWIG_IsOK(ecode6)) {
17443 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17444 }
17445 arg6 = static_cast< long >(val6);
17446 }
17447 if (obj6) {
17448 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17449 if (!SWIG_IsOK(res7)) {
17450 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17451 }
17452 if (!argp7) {
17453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17454 }
17455 arg7 = reinterpret_cast< wxValidator * >(argp7);
17456 }
17457 if (obj7) {
17458 {
17459 arg8 = wxString_in_helper(obj7);
17460 if (arg8 == NULL) SWIG_fail;
17461 temp8 = true;
17462 }
17463 }
17464 {
17465 if (!wxPyCheckForApp()) SWIG_fail;
17466 PyThreadState* __tstate = wxPyBeginAllowThreads();
17467 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17468 wxPyEndAllowThreads(__tstate);
17469 if (PyErr_Occurred()) SWIG_fail;
17470 }
17471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17472 {
17473 if (temp3)
17474 delete arg3;
17475 }
17476 {
17477 if (temp8)
17478 delete arg8;
17479 }
17480 return resultobj;
17481 fail:
17482 {
17483 if (temp3)
17484 delete arg3;
17485 }
17486 {
17487 if (temp8)
17488 delete arg8;
17489 }
17490 return NULL;
17491 }
17492
17493
17494 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17495 PyObject *resultobj = 0;
17496 wxRadioButton *result = 0 ;
17497
17498 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17499 {
17500 if (!wxPyCheckForApp()) SWIG_fail;
17501 PyThreadState* __tstate = wxPyBeginAllowThreads();
17502 result = (wxRadioButton *)new wxRadioButton();
17503 wxPyEndAllowThreads(__tstate);
17504 if (PyErr_Occurred()) SWIG_fail;
17505 }
17506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17507 return resultobj;
17508 fail:
17509 return NULL;
17510 }
17511
17512
17513 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17514 PyObject *resultobj = 0;
17515 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17516 wxWindow *arg2 = (wxWindow *) 0 ;
17517 int arg3 = (int) -1 ;
17518 wxString const &arg4_defvalue = wxPyEmptyString ;
17519 wxString *arg4 = (wxString *) &arg4_defvalue ;
17520 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17521 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17522 wxSize const &arg6_defvalue = wxDefaultSize ;
17523 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17524 long arg7 = (long) 0 ;
17525 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17526 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17527 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17528 wxString *arg9 = (wxString *) &arg9_defvalue ;
17529 bool result;
17530 void *argp1 = 0 ;
17531 int res1 = 0 ;
17532 void *argp2 = 0 ;
17533 int res2 = 0 ;
17534 int val3 ;
17535 int ecode3 = 0 ;
17536 bool temp4 = false ;
17537 wxPoint temp5 ;
17538 wxSize temp6 ;
17539 long val7 ;
17540 int ecode7 = 0 ;
17541 void *argp8 = 0 ;
17542 int res8 = 0 ;
17543 bool temp9 = false ;
17544 PyObject * obj0 = 0 ;
17545 PyObject * obj1 = 0 ;
17546 PyObject * obj2 = 0 ;
17547 PyObject * obj3 = 0 ;
17548 PyObject * obj4 = 0 ;
17549 PyObject * obj5 = 0 ;
17550 PyObject * obj6 = 0 ;
17551 PyObject * obj7 = 0 ;
17552 PyObject * obj8 = 0 ;
17553 char * kwnames[] = {
17554 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17555 };
17556
17557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17559 if (!SWIG_IsOK(res1)) {
17560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17561 }
17562 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17564 if (!SWIG_IsOK(res2)) {
17565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17566 }
17567 arg2 = reinterpret_cast< wxWindow * >(argp2);
17568 if (obj2) {
17569 ecode3 = SWIG_AsVal_int(obj2, &val3);
17570 if (!SWIG_IsOK(ecode3)) {
17571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17572 }
17573 arg3 = static_cast< int >(val3);
17574 }
17575 if (obj3) {
17576 {
17577 arg4 = wxString_in_helper(obj3);
17578 if (arg4 == NULL) SWIG_fail;
17579 temp4 = true;
17580 }
17581 }
17582 if (obj4) {
17583 {
17584 arg5 = &temp5;
17585 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17586 }
17587 }
17588 if (obj5) {
17589 {
17590 arg6 = &temp6;
17591 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17592 }
17593 }
17594 if (obj6) {
17595 ecode7 = SWIG_AsVal_long(obj6, &val7);
17596 if (!SWIG_IsOK(ecode7)) {
17597 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17598 }
17599 arg7 = static_cast< long >(val7);
17600 }
17601 if (obj7) {
17602 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17603 if (!SWIG_IsOK(res8)) {
17604 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17605 }
17606 if (!argp8) {
17607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17608 }
17609 arg8 = reinterpret_cast< wxValidator * >(argp8);
17610 }
17611 if (obj8) {
17612 {
17613 arg9 = wxString_in_helper(obj8);
17614 if (arg9 == NULL) SWIG_fail;
17615 temp9 = true;
17616 }
17617 }
17618 {
17619 PyThreadState* __tstate = wxPyBeginAllowThreads();
17620 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17621 wxPyEndAllowThreads(__tstate);
17622 if (PyErr_Occurred()) SWIG_fail;
17623 }
17624 {
17625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17626 }
17627 {
17628 if (temp4)
17629 delete arg4;
17630 }
17631 {
17632 if (temp9)
17633 delete arg9;
17634 }
17635 return resultobj;
17636 fail:
17637 {
17638 if (temp4)
17639 delete arg4;
17640 }
17641 {
17642 if (temp9)
17643 delete arg9;
17644 }
17645 return NULL;
17646 }
17647
17648
17649 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17650 PyObject *resultobj = 0;
17651 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17652 bool result;
17653 void *argp1 = 0 ;
17654 int res1 = 0 ;
17655 PyObject *swig_obj[1] ;
17656
17657 if (!args) SWIG_fail;
17658 swig_obj[0] = args;
17659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17660 if (!SWIG_IsOK(res1)) {
17661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17662 }
17663 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 result = (bool)(arg1)->GetValue();
17667 wxPyEndAllowThreads(__tstate);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 }
17670 {
17671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17672 }
17673 return resultobj;
17674 fail:
17675 return NULL;
17676 }
17677
17678
17679 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17680 PyObject *resultobj = 0;
17681 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17682 bool arg2 ;
17683 void *argp1 = 0 ;
17684 int res1 = 0 ;
17685 bool val2 ;
17686 int ecode2 = 0 ;
17687 PyObject * obj0 = 0 ;
17688 PyObject * obj1 = 0 ;
17689 char * kwnames[] = {
17690 (char *) "self",(char *) "value", NULL
17691 };
17692
17693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17695 if (!SWIG_IsOK(res1)) {
17696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17697 }
17698 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17699 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17700 if (!SWIG_IsOK(ecode2)) {
17701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17702 }
17703 arg2 = static_cast< bool >(val2);
17704 {
17705 PyThreadState* __tstate = wxPyBeginAllowThreads();
17706 (arg1)->SetValue(arg2);
17707 wxPyEndAllowThreads(__tstate);
17708 if (PyErr_Occurred()) SWIG_fail;
17709 }
17710 resultobj = SWIG_Py_Void();
17711 return resultobj;
17712 fail:
17713 return NULL;
17714 }
17715
17716
17717 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17718 PyObject *resultobj = 0;
17719 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17720 SwigValueWrapper<wxVisualAttributes > result;
17721 int val1 ;
17722 int ecode1 = 0 ;
17723 PyObject * obj0 = 0 ;
17724 char * kwnames[] = {
17725 (char *) "variant", NULL
17726 };
17727
17728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17729 if (obj0) {
17730 ecode1 = SWIG_AsVal_int(obj0, &val1);
17731 if (!SWIG_IsOK(ecode1)) {
17732 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17733 }
17734 arg1 = static_cast< wxWindowVariant >(val1);
17735 }
17736 {
17737 if (!wxPyCheckForApp()) SWIG_fail;
17738 PyThreadState* __tstate = wxPyBeginAllowThreads();
17739 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17740 wxPyEndAllowThreads(__tstate);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 }
17743 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17744 return resultobj;
17745 fail:
17746 return NULL;
17747 }
17748
17749
17750 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17751 PyObject *obj;
17752 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17753 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17754 return SWIG_Py_Void();
17755 }
17756
17757 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17758 return SWIG_Python_InitShadowInstance(args);
17759 }
17760
17761 SWIGINTERN int SliderNameStr_set(PyObject *) {
17762 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17763 return 1;
17764 }
17765
17766
17767 SWIGINTERN PyObject *SliderNameStr_get(void) {
17768 PyObject *pyobj = 0;
17769
17770 {
17771 #if wxUSE_UNICODE
17772 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17773 #else
17774 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17775 #endif
17776 }
17777 return pyobj;
17778 }
17779
17780
17781 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17782 PyObject *resultobj = 0;
17783 wxWindow *arg1 = (wxWindow *) 0 ;
17784 int arg2 = (int) -1 ;
17785 int arg3 = (int) 0 ;
17786 int arg4 = (int) 0 ;
17787 int arg5 = (int) 100 ;
17788 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17789 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17790 wxSize const &arg7_defvalue = wxDefaultSize ;
17791 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17792 long arg8 = (long) wxSL_HORIZONTAL ;
17793 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17794 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17795 wxString const &arg10_defvalue = wxPySliderNameStr ;
17796 wxString *arg10 = (wxString *) &arg10_defvalue ;
17797 wxSlider *result = 0 ;
17798 void *argp1 = 0 ;
17799 int res1 = 0 ;
17800 int val2 ;
17801 int ecode2 = 0 ;
17802 int val3 ;
17803 int ecode3 = 0 ;
17804 int val4 ;
17805 int ecode4 = 0 ;
17806 int val5 ;
17807 int ecode5 = 0 ;
17808 wxPoint temp6 ;
17809 wxSize temp7 ;
17810 long val8 ;
17811 int ecode8 = 0 ;
17812 void *argp9 = 0 ;
17813 int res9 = 0 ;
17814 bool temp10 = false ;
17815 PyObject * obj0 = 0 ;
17816 PyObject * obj1 = 0 ;
17817 PyObject * obj2 = 0 ;
17818 PyObject * obj3 = 0 ;
17819 PyObject * obj4 = 0 ;
17820 PyObject * obj5 = 0 ;
17821 PyObject * obj6 = 0 ;
17822 PyObject * obj7 = 0 ;
17823 PyObject * obj8 = 0 ;
17824 PyObject * obj9 = 0 ;
17825 char * kwnames[] = {
17826 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17827 };
17828
17829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17831 if (!SWIG_IsOK(res1)) {
17832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17833 }
17834 arg1 = reinterpret_cast< wxWindow * >(argp1);
17835 if (obj1) {
17836 ecode2 = SWIG_AsVal_int(obj1, &val2);
17837 if (!SWIG_IsOK(ecode2)) {
17838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17839 }
17840 arg2 = static_cast< int >(val2);
17841 }
17842 if (obj2) {
17843 ecode3 = SWIG_AsVal_int(obj2, &val3);
17844 if (!SWIG_IsOK(ecode3)) {
17845 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17846 }
17847 arg3 = static_cast< int >(val3);
17848 }
17849 if (obj3) {
17850 ecode4 = SWIG_AsVal_int(obj3, &val4);
17851 if (!SWIG_IsOK(ecode4)) {
17852 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17853 }
17854 arg4 = static_cast< int >(val4);
17855 }
17856 if (obj4) {
17857 ecode5 = SWIG_AsVal_int(obj4, &val5);
17858 if (!SWIG_IsOK(ecode5)) {
17859 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17860 }
17861 arg5 = static_cast< int >(val5);
17862 }
17863 if (obj5) {
17864 {
17865 arg6 = &temp6;
17866 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17867 }
17868 }
17869 if (obj6) {
17870 {
17871 arg7 = &temp7;
17872 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17873 }
17874 }
17875 if (obj7) {
17876 ecode8 = SWIG_AsVal_long(obj7, &val8);
17877 if (!SWIG_IsOK(ecode8)) {
17878 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17879 }
17880 arg8 = static_cast< long >(val8);
17881 }
17882 if (obj8) {
17883 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17884 if (!SWIG_IsOK(res9)) {
17885 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17886 }
17887 if (!argp9) {
17888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17889 }
17890 arg9 = reinterpret_cast< wxValidator * >(argp9);
17891 }
17892 if (obj9) {
17893 {
17894 arg10 = wxString_in_helper(obj9);
17895 if (arg10 == NULL) SWIG_fail;
17896 temp10 = true;
17897 }
17898 }
17899 {
17900 if (!wxPyCheckForApp()) SWIG_fail;
17901 PyThreadState* __tstate = wxPyBeginAllowThreads();
17902 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17903 wxPyEndAllowThreads(__tstate);
17904 if (PyErr_Occurred()) SWIG_fail;
17905 }
17906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17907 {
17908 if (temp10)
17909 delete arg10;
17910 }
17911 return resultobj;
17912 fail:
17913 {
17914 if (temp10)
17915 delete arg10;
17916 }
17917 return NULL;
17918 }
17919
17920
17921 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17922 PyObject *resultobj = 0;
17923 wxSlider *result = 0 ;
17924
17925 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17926 {
17927 if (!wxPyCheckForApp()) SWIG_fail;
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 result = (wxSlider *)new wxSlider();
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj = 0;
17942 wxSlider *arg1 = (wxSlider *) 0 ;
17943 wxWindow *arg2 = (wxWindow *) 0 ;
17944 int arg3 = (int) -1 ;
17945 int arg4 = (int) 0 ;
17946 int arg5 = (int) 0 ;
17947 int arg6 = (int) 100 ;
17948 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17949 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17950 wxSize const &arg8_defvalue = wxDefaultSize ;
17951 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17952 long arg9 = (long) wxSL_HORIZONTAL ;
17953 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17954 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17955 wxString const &arg11_defvalue = wxPySliderNameStr ;
17956 wxString *arg11 = (wxString *) &arg11_defvalue ;
17957 bool result;
17958 void *argp1 = 0 ;
17959 int res1 = 0 ;
17960 void *argp2 = 0 ;
17961 int res2 = 0 ;
17962 int val3 ;
17963 int ecode3 = 0 ;
17964 int val4 ;
17965 int ecode4 = 0 ;
17966 int val5 ;
17967 int ecode5 = 0 ;
17968 int val6 ;
17969 int ecode6 = 0 ;
17970 wxPoint temp7 ;
17971 wxSize temp8 ;
17972 long val9 ;
17973 int ecode9 = 0 ;
17974 void *argp10 = 0 ;
17975 int res10 = 0 ;
17976 bool temp11 = false ;
17977 PyObject * obj0 = 0 ;
17978 PyObject * obj1 = 0 ;
17979 PyObject * obj2 = 0 ;
17980 PyObject * obj3 = 0 ;
17981 PyObject * obj4 = 0 ;
17982 PyObject * obj5 = 0 ;
17983 PyObject * obj6 = 0 ;
17984 PyObject * obj7 = 0 ;
17985 PyObject * obj8 = 0 ;
17986 PyObject * obj9 = 0 ;
17987 PyObject * obj10 = 0 ;
17988 char * kwnames[] = {
17989 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17990 };
17991
17992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17994 if (!SWIG_IsOK(res1)) {
17995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17996 }
17997 arg1 = reinterpret_cast< wxSlider * >(argp1);
17998 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17999 if (!SWIG_IsOK(res2)) {
18000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18001 }
18002 arg2 = reinterpret_cast< wxWindow * >(argp2);
18003 if (obj2) {
18004 ecode3 = SWIG_AsVal_int(obj2, &val3);
18005 if (!SWIG_IsOK(ecode3)) {
18006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
18007 }
18008 arg3 = static_cast< int >(val3);
18009 }
18010 if (obj3) {
18011 ecode4 = SWIG_AsVal_int(obj3, &val4);
18012 if (!SWIG_IsOK(ecode4)) {
18013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
18014 }
18015 arg4 = static_cast< int >(val4);
18016 }
18017 if (obj4) {
18018 ecode5 = SWIG_AsVal_int(obj4, &val5);
18019 if (!SWIG_IsOK(ecode5)) {
18020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
18021 }
18022 arg5 = static_cast< int >(val5);
18023 }
18024 if (obj5) {
18025 ecode6 = SWIG_AsVal_int(obj5, &val6);
18026 if (!SWIG_IsOK(ecode6)) {
18027 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
18028 }
18029 arg6 = static_cast< int >(val6);
18030 }
18031 if (obj6) {
18032 {
18033 arg7 = &temp7;
18034 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
18035 }
18036 }
18037 if (obj7) {
18038 {
18039 arg8 = &temp8;
18040 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
18041 }
18042 }
18043 if (obj8) {
18044 ecode9 = SWIG_AsVal_long(obj8, &val9);
18045 if (!SWIG_IsOK(ecode9)) {
18046 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
18047 }
18048 arg9 = static_cast< long >(val9);
18049 }
18050 if (obj9) {
18051 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
18052 if (!SWIG_IsOK(res10)) {
18053 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18054 }
18055 if (!argp10) {
18056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18057 }
18058 arg10 = reinterpret_cast< wxValidator * >(argp10);
18059 }
18060 if (obj10) {
18061 {
18062 arg11 = wxString_in_helper(obj10);
18063 if (arg11 == NULL) SWIG_fail;
18064 temp11 = true;
18065 }
18066 }
18067 {
18068 PyThreadState* __tstate = wxPyBeginAllowThreads();
18069 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
18070 wxPyEndAllowThreads(__tstate);
18071 if (PyErr_Occurred()) SWIG_fail;
18072 }
18073 {
18074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18075 }
18076 {
18077 if (temp11)
18078 delete arg11;
18079 }
18080 return resultobj;
18081 fail:
18082 {
18083 if (temp11)
18084 delete arg11;
18085 }
18086 return NULL;
18087 }
18088
18089
18090 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18091 PyObject *resultobj = 0;
18092 wxSlider *arg1 = (wxSlider *) 0 ;
18093 int result;
18094 void *argp1 = 0 ;
18095 int res1 = 0 ;
18096 PyObject *swig_obj[1] ;
18097
18098 if (!args) SWIG_fail;
18099 swig_obj[0] = args;
18100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18101 if (!SWIG_IsOK(res1)) {
18102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18103 }
18104 arg1 = reinterpret_cast< wxSlider * >(argp1);
18105 {
18106 PyThreadState* __tstate = wxPyBeginAllowThreads();
18107 result = (int)((wxSlider const *)arg1)->GetValue();
18108 wxPyEndAllowThreads(__tstate);
18109 if (PyErr_Occurred()) SWIG_fail;
18110 }
18111 resultobj = SWIG_From_int(static_cast< int >(result));
18112 return resultobj;
18113 fail:
18114 return NULL;
18115 }
18116
18117
18118 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18119 PyObject *resultobj = 0;
18120 wxSlider *arg1 = (wxSlider *) 0 ;
18121 int arg2 ;
18122 void *argp1 = 0 ;
18123 int res1 = 0 ;
18124 int val2 ;
18125 int ecode2 = 0 ;
18126 PyObject * obj0 = 0 ;
18127 PyObject * obj1 = 0 ;
18128 char * kwnames[] = {
18129 (char *) "self",(char *) "value", NULL
18130 };
18131
18132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18134 if (!SWIG_IsOK(res1)) {
18135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18136 }
18137 arg1 = reinterpret_cast< wxSlider * >(argp1);
18138 ecode2 = SWIG_AsVal_int(obj1, &val2);
18139 if (!SWIG_IsOK(ecode2)) {
18140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18141 }
18142 arg2 = static_cast< int >(val2);
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 (arg1)->SetValue(arg2);
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 resultobj = SWIG_Py_Void();
18150 return resultobj;
18151 fail:
18152 return NULL;
18153 }
18154
18155
18156 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18157 PyObject *resultobj = 0;
18158 wxSlider *arg1 = (wxSlider *) 0 ;
18159 int arg2 ;
18160 int arg3 ;
18161 void *argp1 = 0 ;
18162 int res1 = 0 ;
18163 int val2 ;
18164 int ecode2 = 0 ;
18165 int val3 ;
18166 int ecode3 = 0 ;
18167 PyObject * obj0 = 0 ;
18168 PyObject * obj1 = 0 ;
18169 PyObject * obj2 = 0 ;
18170 char * kwnames[] = {
18171 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18172 };
18173
18174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18176 if (!SWIG_IsOK(res1)) {
18177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18178 }
18179 arg1 = reinterpret_cast< wxSlider * >(argp1);
18180 ecode2 = SWIG_AsVal_int(obj1, &val2);
18181 if (!SWIG_IsOK(ecode2)) {
18182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18183 }
18184 arg2 = static_cast< int >(val2);
18185 ecode3 = SWIG_AsVal_int(obj2, &val3);
18186 if (!SWIG_IsOK(ecode3)) {
18187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18188 }
18189 arg3 = static_cast< int >(val3);
18190 {
18191 PyThreadState* __tstate = wxPyBeginAllowThreads();
18192 (arg1)->SetRange(arg2,arg3);
18193 wxPyEndAllowThreads(__tstate);
18194 if (PyErr_Occurred()) SWIG_fail;
18195 }
18196 resultobj = SWIG_Py_Void();
18197 return resultobj;
18198 fail:
18199 return NULL;
18200 }
18201
18202
18203 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18204 PyObject *resultobj = 0;
18205 wxSlider *arg1 = (wxSlider *) 0 ;
18206 int result;
18207 void *argp1 = 0 ;
18208 int res1 = 0 ;
18209 PyObject *swig_obj[1] ;
18210
18211 if (!args) SWIG_fail;
18212 swig_obj[0] = args;
18213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18214 if (!SWIG_IsOK(res1)) {
18215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18216 }
18217 arg1 = reinterpret_cast< wxSlider * >(argp1);
18218 {
18219 PyThreadState* __tstate = wxPyBeginAllowThreads();
18220 result = (int)((wxSlider const *)arg1)->GetMin();
18221 wxPyEndAllowThreads(__tstate);
18222 if (PyErr_Occurred()) SWIG_fail;
18223 }
18224 resultobj = SWIG_From_int(static_cast< int >(result));
18225 return resultobj;
18226 fail:
18227 return NULL;
18228 }
18229
18230
18231 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18232 PyObject *resultobj = 0;
18233 wxSlider *arg1 = (wxSlider *) 0 ;
18234 int result;
18235 void *argp1 = 0 ;
18236 int res1 = 0 ;
18237 PyObject *swig_obj[1] ;
18238
18239 if (!args) SWIG_fail;
18240 swig_obj[0] = args;
18241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18242 if (!SWIG_IsOK(res1)) {
18243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18244 }
18245 arg1 = reinterpret_cast< wxSlider * >(argp1);
18246 {
18247 PyThreadState* __tstate = wxPyBeginAllowThreads();
18248 result = (int)((wxSlider const *)arg1)->GetMax();
18249 wxPyEndAllowThreads(__tstate);
18250 if (PyErr_Occurred()) SWIG_fail;
18251 }
18252 resultobj = SWIG_From_int(static_cast< int >(result));
18253 return resultobj;
18254 fail:
18255 return NULL;
18256 }
18257
18258
18259 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18260 PyObject *resultobj = 0;
18261 wxSlider *arg1 = (wxSlider *) 0 ;
18262 int arg2 ;
18263 void *argp1 = 0 ;
18264 int res1 = 0 ;
18265 int val2 ;
18266 int ecode2 = 0 ;
18267 PyObject * obj0 = 0 ;
18268 PyObject * obj1 = 0 ;
18269 char * kwnames[] = {
18270 (char *) "self",(char *) "minValue", NULL
18271 };
18272
18273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18275 if (!SWIG_IsOK(res1)) {
18276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18277 }
18278 arg1 = reinterpret_cast< wxSlider * >(argp1);
18279 ecode2 = SWIG_AsVal_int(obj1, &val2);
18280 if (!SWIG_IsOK(ecode2)) {
18281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18282 }
18283 arg2 = static_cast< int >(val2);
18284 {
18285 PyThreadState* __tstate = wxPyBeginAllowThreads();
18286 (arg1)->SetMin(arg2);
18287 wxPyEndAllowThreads(__tstate);
18288 if (PyErr_Occurred()) SWIG_fail;
18289 }
18290 resultobj = SWIG_Py_Void();
18291 return resultobj;
18292 fail:
18293 return NULL;
18294 }
18295
18296
18297 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18298 PyObject *resultobj = 0;
18299 wxSlider *arg1 = (wxSlider *) 0 ;
18300 int arg2 ;
18301 void *argp1 = 0 ;
18302 int res1 = 0 ;
18303 int val2 ;
18304 int ecode2 = 0 ;
18305 PyObject * obj0 = 0 ;
18306 PyObject * obj1 = 0 ;
18307 char * kwnames[] = {
18308 (char *) "self",(char *) "maxValue", NULL
18309 };
18310
18311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18313 if (!SWIG_IsOK(res1)) {
18314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18315 }
18316 arg1 = reinterpret_cast< wxSlider * >(argp1);
18317 ecode2 = SWIG_AsVal_int(obj1, &val2);
18318 if (!SWIG_IsOK(ecode2)) {
18319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18320 }
18321 arg2 = static_cast< int >(val2);
18322 {
18323 PyThreadState* __tstate = wxPyBeginAllowThreads();
18324 (arg1)->SetMax(arg2);
18325 wxPyEndAllowThreads(__tstate);
18326 if (PyErr_Occurred()) SWIG_fail;
18327 }
18328 resultobj = SWIG_Py_Void();
18329 return resultobj;
18330 fail:
18331 return NULL;
18332 }
18333
18334
18335 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18336 PyObject *resultobj = 0;
18337 wxSlider *arg1 = (wxSlider *) 0 ;
18338 int arg2 ;
18339 void *argp1 = 0 ;
18340 int res1 = 0 ;
18341 int val2 ;
18342 int ecode2 = 0 ;
18343 PyObject * obj0 = 0 ;
18344 PyObject * obj1 = 0 ;
18345 char * kwnames[] = {
18346 (char *) "self",(char *) "lineSize", NULL
18347 };
18348
18349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18351 if (!SWIG_IsOK(res1)) {
18352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18353 }
18354 arg1 = reinterpret_cast< wxSlider * >(argp1);
18355 ecode2 = SWIG_AsVal_int(obj1, &val2);
18356 if (!SWIG_IsOK(ecode2)) {
18357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18358 }
18359 arg2 = static_cast< int >(val2);
18360 {
18361 PyThreadState* __tstate = wxPyBeginAllowThreads();
18362 (arg1)->SetLineSize(arg2);
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 resultobj = SWIG_Py_Void();
18367 return resultobj;
18368 fail:
18369 return NULL;
18370 }
18371
18372
18373 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18374 PyObject *resultobj = 0;
18375 wxSlider *arg1 = (wxSlider *) 0 ;
18376 int arg2 ;
18377 void *argp1 = 0 ;
18378 int res1 = 0 ;
18379 int val2 ;
18380 int ecode2 = 0 ;
18381 PyObject * obj0 = 0 ;
18382 PyObject * obj1 = 0 ;
18383 char * kwnames[] = {
18384 (char *) "self",(char *) "pageSize", NULL
18385 };
18386
18387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18389 if (!SWIG_IsOK(res1)) {
18390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18391 }
18392 arg1 = reinterpret_cast< wxSlider * >(argp1);
18393 ecode2 = SWIG_AsVal_int(obj1, &val2);
18394 if (!SWIG_IsOK(ecode2)) {
18395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18396 }
18397 arg2 = static_cast< int >(val2);
18398 {
18399 PyThreadState* __tstate = wxPyBeginAllowThreads();
18400 (arg1)->SetPageSize(arg2);
18401 wxPyEndAllowThreads(__tstate);
18402 if (PyErr_Occurred()) SWIG_fail;
18403 }
18404 resultobj = SWIG_Py_Void();
18405 return resultobj;
18406 fail:
18407 return NULL;
18408 }
18409
18410
18411 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18412 PyObject *resultobj = 0;
18413 wxSlider *arg1 = (wxSlider *) 0 ;
18414 int result;
18415 void *argp1 = 0 ;
18416 int res1 = 0 ;
18417 PyObject *swig_obj[1] ;
18418
18419 if (!args) SWIG_fail;
18420 swig_obj[0] = args;
18421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18422 if (!SWIG_IsOK(res1)) {
18423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18424 }
18425 arg1 = reinterpret_cast< wxSlider * >(argp1);
18426 {
18427 PyThreadState* __tstate = wxPyBeginAllowThreads();
18428 result = (int)((wxSlider const *)arg1)->GetLineSize();
18429 wxPyEndAllowThreads(__tstate);
18430 if (PyErr_Occurred()) SWIG_fail;
18431 }
18432 resultobj = SWIG_From_int(static_cast< int >(result));
18433 return resultobj;
18434 fail:
18435 return NULL;
18436 }
18437
18438
18439 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18440 PyObject *resultobj = 0;
18441 wxSlider *arg1 = (wxSlider *) 0 ;
18442 int result;
18443 void *argp1 = 0 ;
18444 int res1 = 0 ;
18445 PyObject *swig_obj[1] ;
18446
18447 if (!args) SWIG_fail;
18448 swig_obj[0] = args;
18449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18450 if (!SWIG_IsOK(res1)) {
18451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18452 }
18453 arg1 = reinterpret_cast< wxSlider * >(argp1);
18454 {
18455 PyThreadState* __tstate = wxPyBeginAllowThreads();
18456 result = (int)((wxSlider const *)arg1)->GetPageSize();
18457 wxPyEndAllowThreads(__tstate);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 resultobj = SWIG_From_int(static_cast< int >(result));
18461 return resultobj;
18462 fail:
18463 return NULL;
18464 }
18465
18466
18467 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18468 PyObject *resultobj = 0;
18469 wxSlider *arg1 = (wxSlider *) 0 ;
18470 int arg2 ;
18471 void *argp1 = 0 ;
18472 int res1 = 0 ;
18473 int val2 ;
18474 int ecode2 = 0 ;
18475 PyObject * obj0 = 0 ;
18476 PyObject * obj1 = 0 ;
18477 char * kwnames[] = {
18478 (char *) "self",(char *) "lenPixels", NULL
18479 };
18480
18481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18483 if (!SWIG_IsOK(res1)) {
18484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18485 }
18486 arg1 = reinterpret_cast< wxSlider * >(argp1);
18487 ecode2 = SWIG_AsVal_int(obj1, &val2);
18488 if (!SWIG_IsOK(ecode2)) {
18489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18490 }
18491 arg2 = static_cast< int >(val2);
18492 {
18493 PyThreadState* __tstate = wxPyBeginAllowThreads();
18494 (arg1)->SetThumbLength(arg2);
18495 wxPyEndAllowThreads(__tstate);
18496 if (PyErr_Occurred()) SWIG_fail;
18497 }
18498 resultobj = SWIG_Py_Void();
18499 return resultobj;
18500 fail:
18501 return NULL;
18502 }
18503
18504
18505 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18506 PyObject *resultobj = 0;
18507 wxSlider *arg1 = (wxSlider *) 0 ;
18508 int result;
18509 void *argp1 = 0 ;
18510 int res1 = 0 ;
18511 PyObject *swig_obj[1] ;
18512
18513 if (!args) SWIG_fail;
18514 swig_obj[0] = args;
18515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18516 if (!SWIG_IsOK(res1)) {
18517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18518 }
18519 arg1 = reinterpret_cast< wxSlider * >(argp1);
18520 {
18521 PyThreadState* __tstate = wxPyBeginAllowThreads();
18522 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18523 wxPyEndAllowThreads(__tstate);
18524 if (PyErr_Occurred()) SWIG_fail;
18525 }
18526 resultobj = SWIG_From_int(static_cast< int >(result));
18527 return resultobj;
18528 fail:
18529 return NULL;
18530 }
18531
18532
18533 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18534 PyObject *resultobj = 0;
18535 wxSlider *arg1 = (wxSlider *) 0 ;
18536 int arg2 ;
18537 int arg3 = (int) 1 ;
18538 void *argp1 = 0 ;
18539 int res1 = 0 ;
18540 int val2 ;
18541 int ecode2 = 0 ;
18542 int val3 ;
18543 int ecode3 = 0 ;
18544 PyObject * obj0 = 0 ;
18545 PyObject * obj1 = 0 ;
18546 PyObject * obj2 = 0 ;
18547 char * kwnames[] = {
18548 (char *) "self",(char *) "n",(char *) "pos", NULL
18549 };
18550
18551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18553 if (!SWIG_IsOK(res1)) {
18554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18555 }
18556 arg1 = reinterpret_cast< wxSlider * >(argp1);
18557 ecode2 = SWIG_AsVal_int(obj1, &val2);
18558 if (!SWIG_IsOK(ecode2)) {
18559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18560 }
18561 arg2 = static_cast< int >(val2);
18562 if (obj2) {
18563 ecode3 = SWIG_AsVal_int(obj2, &val3);
18564 if (!SWIG_IsOK(ecode3)) {
18565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18566 }
18567 arg3 = static_cast< int >(val3);
18568 }
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 (arg1)->SetTickFreq(arg2,arg3);
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 resultobj = SWIG_Py_Void();
18576 return resultobj;
18577 fail:
18578 return NULL;
18579 }
18580
18581
18582 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18583 PyObject *resultobj = 0;
18584 wxSlider *arg1 = (wxSlider *) 0 ;
18585 int result;
18586 void *argp1 = 0 ;
18587 int res1 = 0 ;
18588 PyObject *swig_obj[1] ;
18589
18590 if (!args) SWIG_fail;
18591 swig_obj[0] = args;
18592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18593 if (!SWIG_IsOK(res1)) {
18594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18595 }
18596 arg1 = reinterpret_cast< wxSlider * >(argp1);
18597 {
18598 PyThreadState* __tstate = wxPyBeginAllowThreads();
18599 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18600 wxPyEndAllowThreads(__tstate);
18601 if (PyErr_Occurred()) SWIG_fail;
18602 }
18603 resultobj = SWIG_From_int(static_cast< int >(result));
18604 return resultobj;
18605 fail:
18606 return NULL;
18607 }
18608
18609
18610 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18611 PyObject *resultobj = 0;
18612 wxSlider *arg1 = (wxSlider *) 0 ;
18613 void *argp1 = 0 ;
18614 int res1 = 0 ;
18615 PyObject *swig_obj[1] ;
18616
18617 if (!args) SWIG_fail;
18618 swig_obj[0] = args;
18619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18620 if (!SWIG_IsOK(res1)) {
18621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18622 }
18623 arg1 = reinterpret_cast< wxSlider * >(argp1);
18624 {
18625 PyThreadState* __tstate = wxPyBeginAllowThreads();
18626 (arg1)->ClearTicks();
18627 wxPyEndAllowThreads(__tstate);
18628 if (PyErr_Occurred()) SWIG_fail;
18629 }
18630 resultobj = SWIG_Py_Void();
18631 return resultobj;
18632 fail:
18633 return NULL;
18634 }
18635
18636
18637 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18638 PyObject *resultobj = 0;
18639 wxSlider *arg1 = (wxSlider *) 0 ;
18640 int arg2 ;
18641 void *argp1 = 0 ;
18642 int res1 = 0 ;
18643 int val2 ;
18644 int ecode2 = 0 ;
18645 PyObject * obj0 = 0 ;
18646 PyObject * obj1 = 0 ;
18647 char * kwnames[] = {
18648 (char *) "self",(char *) "tickPos", NULL
18649 };
18650
18651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18653 if (!SWIG_IsOK(res1)) {
18654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18655 }
18656 arg1 = reinterpret_cast< wxSlider * >(argp1);
18657 ecode2 = SWIG_AsVal_int(obj1, &val2);
18658 if (!SWIG_IsOK(ecode2)) {
18659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18660 }
18661 arg2 = static_cast< int >(val2);
18662 {
18663 PyThreadState* __tstate = wxPyBeginAllowThreads();
18664 (arg1)->SetTick(arg2);
18665 wxPyEndAllowThreads(__tstate);
18666 if (PyErr_Occurred()) SWIG_fail;
18667 }
18668 resultobj = SWIG_Py_Void();
18669 return resultobj;
18670 fail:
18671 return NULL;
18672 }
18673
18674
18675 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18676 PyObject *resultobj = 0;
18677 wxSlider *arg1 = (wxSlider *) 0 ;
18678 void *argp1 = 0 ;
18679 int res1 = 0 ;
18680 PyObject *swig_obj[1] ;
18681
18682 if (!args) SWIG_fail;
18683 swig_obj[0] = args;
18684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18685 if (!SWIG_IsOK(res1)) {
18686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18687 }
18688 arg1 = reinterpret_cast< wxSlider * >(argp1);
18689 {
18690 PyThreadState* __tstate = wxPyBeginAllowThreads();
18691 (arg1)->ClearSel();
18692 wxPyEndAllowThreads(__tstate);
18693 if (PyErr_Occurred()) SWIG_fail;
18694 }
18695 resultobj = SWIG_Py_Void();
18696 return resultobj;
18697 fail:
18698 return NULL;
18699 }
18700
18701
18702 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18703 PyObject *resultobj = 0;
18704 wxSlider *arg1 = (wxSlider *) 0 ;
18705 int result;
18706 void *argp1 = 0 ;
18707 int res1 = 0 ;
18708 PyObject *swig_obj[1] ;
18709
18710 if (!args) SWIG_fail;
18711 swig_obj[0] = args;
18712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18713 if (!SWIG_IsOK(res1)) {
18714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18715 }
18716 arg1 = reinterpret_cast< wxSlider * >(argp1);
18717 {
18718 PyThreadState* __tstate = wxPyBeginAllowThreads();
18719 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18720 wxPyEndAllowThreads(__tstate);
18721 if (PyErr_Occurred()) SWIG_fail;
18722 }
18723 resultobj = SWIG_From_int(static_cast< int >(result));
18724 return resultobj;
18725 fail:
18726 return NULL;
18727 }
18728
18729
18730 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18731 PyObject *resultobj = 0;
18732 wxSlider *arg1 = (wxSlider *) 0 ;
18733 int result;
18734 void *argp1 = 0 ;
18735 int res1 = 0 ;
18736 PyObject *swig_obj[1] ;
18737
18738 if (!args) SWIG_fail;
18739 swig_obj[0] = args;
18740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18741 if (!SWIG_IsOK(res1)) {
18742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18743 }
18744 arg1 = reinterpret_cast< wxSlider * >(argp1);
18745 {
18746 PyThreadState* __tstate = wxPyBeginAllowThreads();
18747 result = (int)((wxSlider const *)arg1)->GetSelStart();
18748 wxPyEndAllowThreads(__tstate);
18749 if (PyErr_Occurred()) SWIG_fail;
18750 }
18751 resultobj = SWIG_From_int(static_cast< int >(result));
18752 return resultobj;
18753 fail:
18754 return NULL;
18755 }
18756
18757
18758 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18759 PyObject *resultobj = 0;
18760 wxSlider *arg1 = (wxSlider *) 0 ;
18761 int arg2 ;
18762 int arg3 ;
18763 void *argp1 = 0 ;
18764 int res1 = 0 ;
18765 int val2 ;
18766 int ecode2 = 0 ;
18767 int val3 ;
18768 int ecode3 = 0 ;
18769 PyObject * obj0 = 0 ;
18770 PyObject * obj1 = 0 ;
18771 PyObject * obj2 = 0 ;
18772 char * kwnames[] = {
18773 (char *) "self",(char *) "min",(char *) "max", NULL
18774 };
18775
18776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18778 if (!SWIG_IsOK(res1)) {
18779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18780 }
18781 arg1 = reinterpret_cast< wxSlider * >(argp1);
18782 ecode2 = SWIG_AsVal_int(obj1, &val2);
18783 if (!SWIG_IsOK(ecode2)) {
18784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18785 }
18786 arg2 = static_cast< int >(val2);
18787 ecode3 = SWIG_AsVal_int(obj2, &val3);
18788 if (!SWIG_IsOK(ecode3)) {
18789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18790 }
18791 arg3 = static_cast< int >(val3);
18792 {
18793 PyThreadState* __tstate = wxPyBeginAllowThreads();
18794 (arg1)->SetSelection(arg2,arg3);
18795 wxPyEndAllowThreads(__tstate);
18796 if (PyErr_Occurred()) SWIG_fail;
18797 }
18798 resultobj = SWIG_Py_Void();
18799 return resultobj;
18800 fail:
18801 return NULL;
18802 }
18803
18804
18805 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18806 PyObject *resultobj = 0;
18807 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18808 SwigValueWrapper<wxVisualAttributes > result;
18809 int val1 ;
18810 int ecode1 = 0 ;
18811 PyObject * obj0 = 0 ;
18812 char * kwnames[] = {
18813 (char *) "variant", NULL
18814 };
18815
18816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18817 if (obj0) {
18818 ecode1 = SWIG_AsVal_int(obj0, &val1);
18819 if (!SWIG_IsOK(ecode1)) {
18820 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18821 }
18822 arg1 = static_cast< wxWindowVariant >(val1);
18823 }
18824 {
18825 if (!wxPyCheckForApp()) SWIG_fail;
18826 PyThreadState* __tstate = wxPyBeginAllowThreads();
18827 result = wxSlider::GetClassDefaultAttributes(arg1);
18828 wxPyEndAllowThreads(__tstate);
18829 if (PyErr_Occurred()) SWIG_fail;
18830 }
18831 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18832 return resultobj;
18833 fail:
18834 return NULL;
18835 }
18836
18837
18838 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18839 PyObject *obj;
18840 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18841 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18842 return SWIG_Py_Void();
18843 }
18844
18845 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18846 return SWIG_Python_InitShadowInstance(args);
18847 }
18848
18849 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18850 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18851 return 1;
18852 }
18853
18854
18855 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18856 PyObject *pyobj = 0;
18857
18858 {
18859 #if wxUSE_UNICODE
18860 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18861 #else
18862 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18863 #endif
18864 }
18865 return pyobj;
18866 }
18867
18868
18869 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18870 PyObject *resultobj = 0;
18871 wxWindow *arg1 = (wxWindow *) 0 ;
18872 int arg2 = (int) -1 ;
18873 wxString const &arg3_defvalue = wxPyEmptyString ;
18874 wxString *arg3 = (wxString *) &arg3_defvalue ;
18875 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18876 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18877 wxSize const &arg5_defvalue = wxDefaultSize ;
18878 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18879 long arg6 = (long) 0 ;
18880 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18881 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18882 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18883 wxString *arg8 = (wxString *) &arg8_defvalue ;
18884 wxToggleButton *result = 0 ;
18885 void *argp1 = 0 ;
18886 int res1 = 0 ;
18887 int val2 ;
18888 int ecode2 = 0 ;
18889 bool temp3 = false ;
18890 wxPoint temp4 ;
18891 wxSize temp5 ;
18892 long val6 ;
18893 int ecode6 = 0 ;
18894 void *argp7 = 0 ;
18895 int res7 = 0 ;
18896 bool temp8 = false ;
18897 PyObject * obj0 = 0 ;
18898 PyObject * obj1 = 0 ;
18899 PyObject * obj2 = 0 ;
18900 PyObject * obj3 = 0 ;
18901 PyObject * obj4 = 0 ;
18902 PyObject * obj5 = 0 ;
18903 PyObject * obj6 = 0 ;
18904 PyObject * obj7 = 0 ;
18905 char * kwnames[] = {
18906 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18907 };
18908
18909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18911 if (!SWIG_IsOK(res1)) {
18912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18913 }
18914 arg1 = reinterpret_cast< wxWindow * >(argp1);
18915 if (obj1) {
18916 ecode2 = SWIG_AsVal_int(obj1, &val2);
18917 if (!SWIG_IsOK(ecode2)) {
18918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18919 }
18920 arg2 = static_cast< int >(val2);
18921 }
18922 if (obj2) {
18923 {
18924 arg3 = wxString_in_helper(obj2);
18925 if (arg3 == NULL) SWIG_fail;
18926 temp3 = true;
18927 }
18928 }
18929 if (obj3) {
18930 {
18931 arg4 = &temp4;
18932 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18933 }
18934 }
18935 if (obj4) {
18936 {
18937 arg5 = &temp5;
18938 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18939 }
18940 }
18941 if (obj5) {
18942 ecode6 = SWIG_AsVal_long(obj5, &val6);
18943 if (!SWIG_IsOK(ecode6)) {
18944 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18945 }
18946 arg6 = static_cast< long >(val6);
18947 }
18948 if (obj6) {
18949 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18950 if (!SWIG_IsOK(res7)) {
18951 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18952 }
18953 if (!argp7) {
18954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18955 }
18956 arg7 = reinterpret_cast< wxValidator * >(argp7);
18957 }
18958 if (obj7) {
18959 {
18960 arg8 = wxString_in_helper(obj7);
18961 if (arg8 == NULL) SWIG_fail;
18962 temp8 = true;
18963 }
18964 }
18965 {
18966 if (!wxPyCheckForApp()) SWIG_fail;
18967 PyThreadState* __tstate = wxPyBeginAllowThreads();
18968 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18969 wxPyEndAllowThreads(__tstate);
18970 if (PyErr_Occurred()) SWIG_fail;
18971 }
18972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18973 {
18974 if (temp3)
18975 delete arg3;
18976 }
18977 {
18978 if (temp8)
18979 delete arg8;
18980 }
18981 return resultobj;
18982 fail:
18983 {
18984 if (temp3)
18985 delete arg3;
18986 }
18987 {
18988 if (temp8)
18989 delete arg8;
18990 }
18991 return NULL;
18992 }
18993
18994
18995 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18996 PyObject *resultobj = 0;
18997 wxToggleButton *result = 0 ;
18998
18999 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
19000 {
19001 if (!wxPyCheckForApp()) SWIG_fail;
19002 PyThreadState* __tstate = wxPyBeginAllowThreads();
19003 result = (wxToggleButton *)new wxToggleButton();
19004 wxPyEndAllowThreads(__tstate);
19005 if (PyErr_Occurred()) SWIG_fail;
19006 }
19007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
19008 return resultobj;
19009 fail:
19010 return NULL;
19011 }
19012
19013
19014 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19015 PyObject *resultobj = 0;
19016 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19017 wxWindow *arg2 = (wxWindow *) 0 ;
19018 int arg3 = (int) -1 ;
19019 wxString const &arg4_defvalue = wxPyEmptyString ;
19020 wxString *arg4 = (wxString *) &arg4_defvalue ;
19021 wxPoint const &arg5_defvalue = wxDefaultPosition ;
19022 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
19023 wxSize const &arg6_defvalue = wxDefaultSize ;
19024 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
19025 long arg7 = (long) 0 ;
19026 wxValidator const &arg8_defvalue = wxDefaultValidator ;
19027 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
19028 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
19029 wxString *arg9 = (wxString *) &arg9_defvalue ;
19030 bool result;
19031 void *argp1 = 0 ;
19032 int res1 = 0 ;
19033 void *argp2 = 0 ;
19034 int res2 = 0 ;
19035 int val3 ;
19036 int ecode3 = 0 ;
19037 bool temp4 = false ;
19038 wxPoint temp5 ;
19039 wxSize temp6 ;
19040 long val7 ;
19041 int ecode7 = 0 ;
19042 void *argp8 = 0 ;
19043 int res8 = 0 ;
19044 bool temp9 = false ;
19045 PyObject * obj0 = 0 ;
19046 PyObject * obj1 = 0 ;
19047 PyObject * obj2 = 0 ;
19048 PyObject * obj3 = 0 ;
19049 PyObject * obj4 = 0 ;
19050 PyObject * obj5 = 0 ;
19051 PyObject * obj6 = 0 ;
19052 PyObject * obj7 = 0 ;
19053 PyObject * obj8 = 0 ;
19054 char * kwnames[] = {
19055 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19056 };
19057
19058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
19059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19060 if (!SWIG_IsOK(res1)) {
19061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19062 }
19063 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19064 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19065 if (!SWIG_IsOK(res2)) {
19066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
19067 }
19068 arg2 = reinterpret_cast< wxWindow * >(argp2);
19069 if (obj2) {
19070 ecode3 = SWIG_AsVal_int(obj2, &val3);
19071 if (!SWIG_IsOK(ecode3)) {
19072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
19073 }
19074 arg3 = static_cast< int >(val3);
19075 }
19076 if (obj3) {
19077 {
19078 arg4 = wxString_in_helper(obj3);
19079 if (arg4 == NULL) SWIG_fail;
19080 temp4 = true;
19081 }
19082 }
19083 if (obj4) {
19084 {
19085 arg5 = &temp5;
19086 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19087 }
19088 }
19089 if (obj5) {
19090 {
19091 arg6 = &temp6;
19092 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
19093 }
19094 }
19095 if (obj6) {
19096 ecode7 = SWIG_AsVal_long(obj6, &val7);
19097 if (!SWIG_IsOK(ecode7)) {
19098 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19099 }
19100 arg7 = static_cast< long >(val7);
19101 }
19102 if (obj7) {
19103 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19104 if (!SWIG_IsOK(res8)) {
19105 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19106 }
19107 if (!argp8) {
19108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19109 }
19110 arg8 = reinterpret_cast< wxValidator * >(argp8);
19111 }
19112 if (obj8) {
19113 {
19114 arg9 = wxString_in_helper(obj8);
19115 if (arg9 == NULL) SWIG_fail;
19116 temp9 = true;
19117 }
19118 }
19119 {
19120 PyThreadState* __tstate = wxPyBeginAllowThreads();
19121 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19122 wxPyEndAllowThreads(__tstate);
19123 if (PyErr_Occurred()) SWIG_fail;
19124 }
19125 {
19126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19127 }
19128 {
19129 if (temp4)
19130 delete arg4;
19131 }
19132 {
19133 if (temp9)
19134 delete arg9;
19135 }
19136 return resultobj;
19137 fail:
19138 {
19139 if (temp4)
19140 delete arg4;
19141 }
19142 {
19143 if (temp9)
19144 delete arg9;
19145 }
19146 return NULL;
19147 }
19148
19149
19150 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19151 PyObject *resultobj = 0;
19152 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19153 bool arg2 ;
19154 void *argp1 = 0 ;
19155 int res1 = 0 ;
19156 bool val2 ;
19157 int ecode2 = 0 ;
19158 PyObject * obj0 = 0 ;
19159 PyObject * obj1 = 0 ;
19160 char * kwnames[] = {
19161 (char *) "self",(char *) "value", NULL
19162 };
19163
19164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19166 if (!SWIG_IsOK(res1)) {
19167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19168 }
19169 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19170 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19171 if (!SWIG_IsOK(ecode2)) {
19172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19173 }
19174 arg2 = static_cast< bool >(val2);
19175 {
19176 PyThreadState* __tstate = wxPyBeginAllowThreads();
19177 (arg1)->SetValue(arg2);
19178 wxPyEndAllowThreads(__tstate);
19179 if (PyErr_Occurred()) SWIG_fail;
19180 }
19181 resultobj = SWIG_Py_Void();
19182 return resultobj;
19183 fail:
19184 return NULL;
19185 }
19186
19187
19188 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19189 PyObject *resultobj = 0;
19190 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19191 bool result;
19192 void *argp1 = 0 ;
19193 int res1 = 0 ;
19194 PyObject *swig_obj[1] ;
19195
19196 if (!args) SWIG_fail;
19197 swig_obj[0] = args;
19198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19199 if (!SWIG_IsOK(res1)) {
19200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19201 }
19202 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19203 {
19204 PyThreadState* __tstate = wxPyBeginAllowThreads();
19205 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19206 wxPyEndAllowThreads(__tstate);
19207 if (PyErr_Occurred()) SWIG_fail;
19208 }
19209 {
19210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19211 }
19212 return resultobj;
19213 fail:
19214 return NULL;
19215 }
19216
19217
19218 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19219 PyObject *resultobj = 0;
19220 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19221 SwigValueWrapper<wxVisualAttributes > result;
19222 int val1 ;
19223 int ecode1 = 0 ;
19224 PyObject * obj0 = 0 ;
19225 char * kwnames[] = {
19226 (char *) "variant", NULL
19227 };
19228
19229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19230 if (obj0) {
19231 ecode1 = SWIG_AsVal_int(obj0, &val1);
19232 if (!SWIG_IsOK(ecode1)) {
19233 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19234 }
19235 arg1 = static_cast< wxWindowVariant >(val1);
19236 }
19237 {
19238 if (!wxPyCheckForApp()) SWIG_fail;
19239 PyThreadState* __tstate = wxPyBeginAllowThreads();
19240 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19241 wxPyEndAllowThreads(__tstate);
19242 if (PyErr_Occurred()) SWIG_fail;
19243 }
19244 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19245 return resultobj;
19246 fail:
19247 return NULL;
19248 }
19249
19250
19251 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19252 PyObject *obj;
19253 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19254 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19255 return SWIG_Py_Void();
19256 }
19257
19258 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19259 return SWIG_Python_InitShadowInstance(args);
19260 }
19261
19262 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19263 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19264 return 1;
19265 }
19266
19267
19268 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19269 PyObject *pyobj = 0;
19270
19271 {
19272 #if wxUSE_UNICODE
19273 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19274 #else
19275 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19276 #endif
19277 }
19278 return pyobj;
19279 }
19280
19281
19282 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19283 PyObject *resultobj = 0;
19284 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19285 size_t result;
19286 void *argp1 = 0 ;
19287 int res1 = 0 ;
19288 PyObject *swig_obj[1] ;
19289
19290 if (!args) SWIG_fail;
19291 swig_obj[0] = args;
19292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19293 if (!SWIG_IsOK(res1)) {
19294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19295 }
19296 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19297 {
19298 PyThreadState* __tstate = wxPyBeginAllowThreads();
19299 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19300 wxPyEndAllowThreads(__tstate);
19301 if (PyErr_Occurred()) SWIG_fail;
19302 }
19303 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19304 return resultobj;
19305 fail:
19306 return NULL;
19307 }
19308
19309
19310 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19311 PyObject *resultobj = 0;
19312 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19313 size_t arg2 ;
19314 wxWindow *result = 0 ;
19315 void *argp1 = 0 ;
19316 int res1 = 0 ;
19317 size_t val2 ;
19318 int ecode2 = 0 ;
19319 PyObject * obj0 = 0 ;
19320 PyObject * obj1 = 0 ;
19321 char * kwnames[] = {
19322 (char *) "self",(char *) "n", NULL
19323 };
19324
19325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19327 if (!SWIG_IsOK(res1)) {
19328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19329 }
19330 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19331 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19332 if (!SWIG_IsOK(ecode2)) {
19333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19334 }
19335 arg2 = static_cast< size_t >(val2);
19336 {
19337 PyThreadState* __tstate = wxPyBeginAllowThreads();
19338 result = (wxWindow *)(arg1)->GetPage(arg2);
19339 wxPyEndAllowThreads(__tstate);
19340 if (PyErr_Occurred()) SWIG_fail;
19341 }
19342 {
19343 resultobj = wxPyMake_wxObject(result, 0);
19344 }
19345 return resultobj;
19346 fail:
19347 return NULL;
19348 }
19349
19350
19351 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19352 PyObject *resultobj = 0;
19353 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19354 wxWindow *result = 0 ;
19355 void *argp1 = 0 ;
19356 int res1 = 0 ;
19357 PyObject *swig_obj[1] ;
19358
19359 if (!args) SWIG_fail;
19360 swig_obj[0] = args;
19361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19362 if (!SWIG_IsOK(res1)) {
19363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19364 }
19365 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19366 {
19367 PyThreadState* __tstate = wxPyBeginAllowThreads();
19368 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19369 wxPyEndAllowThreads(__tstate);
19370 if (PyErr_Occurred()) SWIG_fail;
19371 }
19372 {
19373 resultobj = wxPyMake_wxObject(result, 0);
19374 }
19375 return resultobj;
19376 fail:
19377 return NULL;
19378 }
19379
19380
19381 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19382 PyObject *resultobj = 0;
19383 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19384 int result;
19385 void *argp1 = 0 ;
19386 int res1 = 0 ;
19387 PyObject *swig_obj[1] ;
19388
19389 if (!args) SWIG_fail;
19390 swig_obj[0] = args;
19391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19392 if (!SWIG_IsOK(res1)) {
19393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19394 }
19395 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19396 {
19397 PyThreadState* __tstate = wxPyBeginAllowThreads();
19398 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19399 wxPyEndAllowThreads(__tstate);
19400 if (PyErr_Occurred()) SWIG_fail;
19401 }
19402 resultobj = SWIG_From_int(static_cast< int >(result));
19403 return resultobj;
19404 fail:
19405 return NULL;
19406 }
19407
19408
19409 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19410 PyObject *resultobj = 0;
19411 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19412 size_t arg2 ;
19413 wxString *arg3 = 0 ;
19414 bool result;
19415 void *argp1 = 0 ;
19416 int res1 = 0 ;
19417 size_t val2 ;
19418 int ecode2 = 0 ;
19419 bool temp3 = false ;
19420 PyObject * obj0 = 0 ;
19421 PyObject * obj1 = 0 ;
19422 PyObject * obj2 = 0 ;
19423 char * kwnames[] = {
19424 (char *) "self",(char *) "n",(char *) "strText", NULL
19425 };
19426
19427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19429 if (!SWIG_IsOK(res1)) {
19430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19431 }
19432 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19433 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19434 if (!SWIG_IsOK(ecode2)) {
19435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19436 }
19437 arg2 = static_cast< size_t >(val2);
19438 {
19439 arg3 = wxString_in_helper(obj2);
19440 if (arg3 == NULL) SWIG_fail;
19441 temp3 = true;
19442 }
19443 {
19444 PyThreadState* __tstate = wxPyBeginAllowThreads();
19445 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19446 wxPyEndAllowThreads(__tstate);
19447 if (PyErr_Occurred()) SWIG_fail;
19448 }
19449 {
19450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19451 }
19452 {
19453 if (temp3)
19454 delete arg3;
19455 }
19456 return resultobj;
19457 fail:
19458 {
19459 if (temp3)
19460 delete arg3;
19461 }
19462 return NULL;
19463 }
19464
19465
19466 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19467 PyObject *resultobj = 0;
19468 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19469 size_t arg2 ;
19470 wxString result;
19471 void *argp1 = 0 ;
19472 int res1 = 0 ;
19473 size_t val2 ;
19474 int ecode2 = 0 ;
19475 PyObject * obj0 = 0 ;
19476 PyObject * obj1 = 0 ;
19477 char * kwnames[] = {
19478 (char *) "self",(char *) "n", NULL
19479 };
19480
19481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19483 if (!SWIG_IsOK(res1)) {
19484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19485 }
19486 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19487 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19488 if (!SWIG_IsOK(ecode2)) {
19489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19490 }
19491 arg2 = static_cast< size_t >(val2);
19492 {
19493 PyThreadState* __tstate = wxPyBeginAllowThreads();
19494 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19495 wxPyEndAllowThreads(__tstate);
19496 if (PyErr_Occurred()) SWIG_fail;
19497 }
19498 {
19499 #if wxUSE_UNICODE
19500 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19501 #else
19502 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19503 #endif
19504 }
19505 return resultobj;
19506 fail:
19507 return NULL;
19508 }
19509
19510
19511 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19512 PyObject *resultobj = 0;
19513 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19514 wxImageList *arg2 = (wxImageList *) 0 ;
19515 void *argp1 = 0 ;
19516 int res1 = 0 ;
19517 void *argp2 = 0 ;
19518 int res2 = 0 ;
19519 PyObject * obj0 = 0 ;
19520 PyObject * obj1 = 0 ;
19521 char * kwnames[] = {
19522 (char *) "self",(char *) "imageList", NULL
19523 };
19524
19525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19527 if (!SWIG_IsOK(res1)) {
19528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19529 }
19530 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19532 if (!SWIG_IsOK(res2)) {
19533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19534 }
19535 arg2 = reinterpret_cast< wxImageList * >(argp2);
19536 {
19537 PyThreadState* __tstate = wxPyBeginAllowThreads();
19538 (arg1)->SetImageList(arg2);
19539 wxPyEndAllowThreads(__tstate);
19540 if (PyErr_Occurred()) SWIG_fail;
19541 }
19542 resultobj = SWIG_Py_Void();
19543 return resultobj;
19544 fail:
19545 return NULL;
19546 }
19547
19548
19549 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19550 PyObject *resultobj = 0;
19551 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19552 wxImageList *arg2 = (wxImageList *) 0 ;
19553 void *argp1 = 0 ;
19554 int res1 = 0 ;
19555 int res2 = 0 ;
19556 PyObject * obj0 = 0 ;
19557 PyObject * obj1 = 0 ;
19558 char * kwnames[] = {
19559 (char *) "self",(char *) "imageList", NULL
19560 };
19561
19562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19564 if (!SWIG_IsOK(res1)) {
19565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19566 }
19567 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19568 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19569 if (!SWIG_IsOK(res2)) {
19570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19571 }
19572 {
19573 PyThreadState* __tstate = wxPyBeginAllowThreads();
19574 (arg1)->AssignImageList(arg2);
19575 wxPyEndAllowThreads(__tstate);
19576 if (PyErr_Occurred()) SWIG_fail;
19577 }
19578 resultobj = SWIG_Py_Void();
19579 return resultobj;
19580 fail:
19581 return NULL;
19582 }
19583
19584
19585 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19586 PyObject *resultobj = 0;
19587 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19588 wxImageList *result = 0 ;
19589 void *argp1 = 0 ;
19590 int res1 = 0 ;
19591 PyObject *swig_obj[1] ;
19592
19593 if (!args) SWIG_fail;
19594 swig_obj[0] = args;
19595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19596 if (!SWIG_IsOK(res1)) {
19597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19598 }
19599 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19600 {
19601 PyThreadState* __tstate = wxPyBeginAllowThreads();
19602 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19603 wxPyEndAllowThreads(__tstate);
19604 if (PyErr_Occurred()) SWIG_fail;
19605 }
19606 {
19607 resultobj = wxPyMake_wxObject(result, (bool)0);
19608 }
19609 return resultobj;
19610 fail:
19611 return NULL;
19612 }
19613
19614
19615 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19616 PyObject *resultobj = 0;
19617 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19618 size_t arg2 ;
19619 int result;
19620 void *argp1 = 0 ;
19621 int res1 = 0 ;
19622 size_t val2 ;
19623 int ecode2 = 0 ;
19624 PyObject * obj0 = 0 ;
19625 PyObject * obj1 = 0 ;
19626 char * kwnames[] = {
19627 (char *) "self",(char *) "n", NULL
19628 };
19629
19630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19632 if (!SWIG_IsOK(res1)) {
19633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19634 }
19635 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19636 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19637 if (!SWIG_IsOK(ecode2)) {
19638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19639 }
19640 arg2 = static_cast< size_t >(val2);
19641 {
19642 PyThreadState* __tstate = wxPyBeginAllowThreads();
19643 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19644 wxPyEndAllowThreads(__tstate);
19645 if (PyErr_Occurred()) SWIG_fail;
19646 }
19647 resultobj = SWIG_From_int(static_cast< int >(result));
19648 return resultobj;
19649 fail:
19650 return NULL;
19651 }
19652
19653
19654 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19655 PyObject *resultobj = 0;
19656 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19657 size_t arg2 ;
19658 int arg3 ;
19659 bool result;
19660 void *argp1 = 0 ;
19661 int res1 = 0 ;
19662 size_t val2 ;
19663 int ecode2 = 0 ;
19664 int val3 ;
19665 int ecode3 = 0 ;
19666 PyObject * obj0 = 0 ;
19667 PyObject * obj1 = 0 ;
19668 PyObject * obj2 = 0 ;
19669 char * kwnames[] = {
19670 (char *) "self",(char *) "n",(char *) "imageId", NULL
19671 };
19672
19673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19675 if (!SWIG_IsOK(res1)) {
19676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19677 }
19678 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19679 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19680 if (!SWIG_IsOK(ecode2)) {
19681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19682 }
19683 arg2 = static_cast< size_t >(val2);
19684 ecode3 = SWIG_AsVal_int(obj2, &val3);
19685 if (!SWIG_IsOK(ecode3)) {
19686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19687 }
19688 arg3 = static_cast< int >(val3);
19689 {
19690 PyThreadState* __tstate = wxPyBeginAllowThreads();
19691 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19692 wxPyEndAllowThreads(__tstate);
19693 if (PyErr_Occurred()) SWIG_fail;
19694 }
19695 {
19696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19697 }
19698 return resultobj;
19699 fail:
19700 return NULL;
19701 }
19702
19703
19704 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19705 PyObject *resultobj = 0;
19706 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19707 wxSize *arg2 = 0 ;
19708 void *argp1 = 0 ;
19709 int res1 = 0 ;
19710 wxSize temp2 ;
19711 PyObject * obj0 = 0 ;
19712 PyObject * obj1 = 0 ;
19713 char * kwnames[] = {
19714 (char *) "self",(char *) "size", NULL
19715 };
19716
19717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19719 if (!SWIG_IsOK(res1)) {
19720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19721 }
19722 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19723 {
19724 arg2 = &temp2;
19725 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19726 }
19727 {
19728 PyThreadState* __tstate = wxPyBeginAllowThreads();
19729 (arg1)->SetPageSize((wxSize const &)*arg2);
19730 wxPyEndAllowThreads(__tstate);
19731 if (PyErr_Occurred()) SWIG_fail;
19732 }
19733 resultobj = SWIG_Py_Void();
19734 return resultobj;
19735 fail:
19736 return NULL;
19737 }
19738
19739
19740 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19741 PyObject *resultobj = 0;
19742 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19743 wxSize *arg2 = 0 ;
19744 wxSize result;
19745 void *argp1 = 0 ;
19746 int res1 = 0 ;
19747 wxSize temp2 ;
19748 PyObject * obj0 = 0 ;
19749 PyObject * obj1 = 0 ;
19750 char * kwnames[] = {
19751 (char *) "self",(char *) "sizePage", NULL
19752 };
19753
19754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19756 if (!SWIG_IsOK(res1)) {
19757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19758 }
19759 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19760 {
19761 arg2 = &temp2;
19762 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19763 }
19764 {
19765 PyThreadState* __tstate = wxPyBeginAllowThreads();
19766 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19767 wxPyEndAllowThreads(__tstate);
19768 if (PyErr_Occurred()) SWIG_fail;
19769 }
19770 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19771 return resultobj;
19772 fail:
19773 return NULL;
19774 }
19775
19776
19777 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19778 PyObject *resultobj = 0;
19779 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19780 unsigned int result;
19781 void *argp1 = 0 ;
19782 int res1 = 0 ;
19783 PyObject *swig_obj[1] ;
19784
19785 if (!args) SWIG_fail;
19786 swig_obj[0] = args;
19787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19788 if (!SWIG_IsOK(res1)) {
19789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19790 }
19791 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19792 {
19793 PyThreadState* __tstate = wxPyBeginAllowThreads();
19794 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19795 wxPyEndAllowThreads(__tstate);
19796 if (PyErr_Occurred()) SWIG_fail;
19797 }
19798 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19799 return resultobj;
19800 fail:
19801 return NULL;
19802 }
19803
19804
19805 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19806 PyObject *resultobj = 0;
19807 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19808 unsigned int arg2 ;
19809 void *argp1 = 0 ;
19810 int res1 = 0 ;
19811 unsigned int val2 ;
19812 int ecode2 = 0 ;
19813 PyObject * obj0 = 0 ;
19814 PyObject * obj1 = 0 ;
19815 char * kwnames[] = {
19816 (char *) "self",(char *) "internalBorder", NULL
19817 };
19818
19819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19821 if (!SWIG_IsOK(res1)) {
19822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19823 }
19824 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19825 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19826 if (!SWIG_IsOK(ecode2)) {
19827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19828 }
19829 arg2 = static_cast< unsigned int >(val2);
19830 {
19831 PyThreadState* __tstate = wxPyBeginAllowThreads();
19832 (arg1)->SetInternalBorder(arg2);
19833 wxPyEndAllowThreads(__tstate);
19834 if (PyErr_Occurred()) SWIG_fail;
19835 }
19836 resultobj = SWIG_Py_Void();
19837 return resultobj;
19838 fail:
19839 return NULL;
19840 }
19841
19842
19843 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19844 PyObject *resultobj = 0;
19845 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19846 bool result;
19847 void *argp1 = 0 ;
19848 int res1 = 0 ;
19849 PyObject *swig_obj[1] ;
19850
19851 if (!args) SWIG_fail;
19852 swig_obj[0] = args;
19853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19854 if (!SWIG_IsOK(res1)) {
19855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19856 }
19857 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19858 {
19859 PyThreadState* __tstate = wxPyBeginAllowThreads();
19860 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19861 wxPyEndAllowThreads(__tstate);
19862 if (PyErr_Occurred()) SWIG_fail;
19863 }
19864 {
19865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19866 }
19867 return resultobj;
19868 fail:
19869 return NULL;
19870 }
19871
19872
19873 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19874 PyObject *resultobj = 0;
19875 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19876 int arg2 ;
19877 void *argp1 = 0 ;
19878 int res1 = 0 ;
19879 int val2 ;
19880 int ecode2 = 0 ;
19881 PyObject * obj0 = 0 ;
19882 PyObject * obj1 = 0 ;
19883 char * kwnames[] = {
19884 (char *) "self",(char *) "margin", NULL
19885 };
19886
19887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19889 if (!SWIG_IsOK(res1)) {
19890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19891 }
19892 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19893 ecode2 = SWIG_AsVal_int(obj1, &val2);
19894 if (!SWIG_IsOK(ecode2)) {
19895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19896 }
19897 arg2 = static_cast< int >(val2);
19898 {
19899 PyThreadState* __tstate = wxPyBeginAllowThreads();
19900 (arg1)->SetControlMargin(arg2);
19901 wxPyEndAllowThreads(__tstate);
19902 if (PyErr_Occurred()) SWIG_fail;
19903 }
19904 resultobj = SWIG_Py_Void();
19905 return resultobj;
19906 fail:
19907 return NULL;
19908 }
19909
19910
19911 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19912 PyObject *resultobj = 0;
19913 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19914 int result;
19915 void *argp1 = 0 ;
19916 int res1 = 0 ;
19917 PyObject *swig_obj[1] ;
19918
19919 if (!args) SWIG_fail;
19920 swig_obj[0] = args;
19921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19922 if (!SWIG_IsOK(res1)) {
19923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19924 }
19925 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19926 {
19927 PyThreadState* __tstate = wxPyBeginAllowThreads();
19928 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19929 wxPyEndAllowThreads(__tstate);
19930 if (PyErr_Occurred()) SWIG_fail;
19931 }
19932 resultobj = SWIG_From_int(static_cast< int >(result));
19933 return resultobj;
19934 fail:
19935 return NULL;
19936 }
19937
19938
19939 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19940 PyObject *resultobj = 0;
19941 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19942 bool arg2 ;
19943 void *argp1 = 0 ;
19944 int res1 = 0 ;
19945 bool val2 ;
19946 int ecode2 = 0 ;
19947 PyObject * obj0 = 0 ;
19948 PyObject * obj1 = 0 ;
19949 char * kwnames[] = {
19950 (char *) "self",(char *) "fit", NULL
19951 };
19952
19953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19955 if (!SWIG_IsOK(res1)) {
19956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19957 }
19958 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19959 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19960 if (!SWIG_IsOK(ecode2)) {
19961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19962 }
19963 arg2 = static_cast< bool >(val2);
19964 {
19965 PyThreadState* __tstate = wxPyBeginAllowThreads();
19966 (arg1)->SetFitToCurrentPage(arg2);
19967 wxPyEndAllowThreads(__tstate);
19968 if (PyErr_Occurred()) SWIG_fail;
19969 }
19970 resultobj = SWIG_Py_Void();
19971 return resultobj;
19972 fail:
19973 return NULL;
19974 }
19975
19976
19977 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19978 PyObject *resultobj = 0;
19979 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19980 bool result;
19981 void *argp1 = 0 ;
19982 int res1 = 0 ;
19983 PyObject *swig_obj[1] ;
19984
19985 if (!args) SWIG_fail;
19986 swig_obj[0] = args;
19987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19988 if (!SWIG_IsOK(res1)) {
19989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19990 }
19991 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19992 {
19993 PyThreadState* __tstate = wxPyBeginAllowThreads();
19994 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19995 wxPyEndAllowThreads(__tstate);
19996 if (PyErr_Occurred()) SWIG_fail;
19997 }
19998 {
19999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20000 }
20001 return resultobj;
20002 fail:
20003 return NULL;
20004 }
20005
20006
20007 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20008 PyObject *resultobj = 0;
20009 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20010 wxSizer *result = 0 ;
20011 void *argp1 = 0 ;
20012 int res1 = 0 ;
20013 PyObject *swig_obj[1] ;
20014
20015 if (!args) SWIG_fail;
20016 swig_obj[0] = args;
20017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20018 if (!SWIG_IsOK(res1)) {
20019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20020 }
20021 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20022 {
20023 PyThreadState* __tstate = wxPyBeginAllowThreads();
20024 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
20025 wxPyEndAllowThreads(__tstate);
20026 if (PyErr_Occurred()) SWIG_fail;
20027 }
20028 {
20029 resultobj = wxPyMake_wxObject(result, (bool)0);
20030 }
20031 return resultobj;
20032 fail:
20033 return NULL;
20034 }
20035
20036
20037 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20038 PyObject *resultobj = 0;
20039 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20040 size_t arg2 ;
20041 bool result;
20042 void *argp1 = 0 ;
20043 int res1 = 0 ;
20044 size_t val2 ;
20045 int ecode2 = 0 ;
20046 PyObject * obj0 = 0 ;
20047 PyObject * obj1 = 0 ;
20048 char * kwnames[] = {
20049 (char *) "self",(char *) "n", NULL
20050 };
20051
20052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
20053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20054 if (!SWIG_IsOK(res1)) {
20055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20056 }
20057 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20058 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20059 if (!SWIG_IsOK(ecode2)) {
20060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
20061 }
20062 arg2 = static_cast< size_t >(val2);
20063 {
20064 PyThreadState* __tstate = wxPyBeginAllowThreads();
20065 result = (bool)(arg1)->DeletePage(arg2);
20066 wxPyEndAllowThreads(__tstate);
20067 if (PyErr_Occurred()) SWIG_fail;
20068 }
20069 {
20070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20071 }
20072 return resultobj;
20073 fail:
20074 return NULL;
20075 }
20076
20077
20078 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20079 PyObject *resultobj = 0;
20080 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20081 size_t arg2 ;
20082 bool result;
20083 void *argp1 = 0 ;
20084 int res1 = 0 ;
20085 size_t val2 ;
20086 int ecode2 = 0 ;
20087 PyObject * obj0 = 0 ;
20088 PyObject * obj1 = 0 ;
20089 char * kwnames[] = {
20090 (char *) "self",(char *) "n", NULL
20091 };
20092
20093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20095 if (!SWIG_IsOK(res1)) {
20096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20097 }
20098 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20099 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20100 if (!SWIG_IsOK(ecode2)) {
20101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20102 }
20103 arg2 = static_cast< size_t >(val2);
20104 {
20105 PyThreadState* __tstate = wxPyBeginAllowThreads();
20106 result = (bool)(arg1)->RemovePage(arg2);
20107 wxPyEndAllowThreads(__tstate);
20108 if (PyErr_Occurred()) SWIG_fail;
20109 }
20110 {
20111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20112 }
20113 return resultobj;
20114 fail:
20115 return NULL;
20116 }
20117
20118
20119 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20120 PyObject *resultobj = 0;
20121 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20122 bool result;
20123 void *argp1 = 0 ;
20124 int res1 = 0 ;
20125 PyObject *swig_obj[1] ;
20126
20127 if (!args) SWIG_fail;
20128 swig_obj[0] = args;
20129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20130 if (!SWIG_IsOK(res1)) {
20131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20132 }
20133 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20134 {
20135 PyThreadState* __tstate = wxPyBeginAllowThreads();
20136 result = (bool)(arg1)->DeleteAllPages();
20137 wxPyEndAllowThreads(__tstate);
20138 if (PyErr_Occurred()) SWIG_fail;
20139 }
20140 {
20141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20142 }
20143 return resultobj;
20144 fail:
20145 return NULL;
20146 }
20147
20148
20149 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20150 PyObject *resultobj = 0;
20151 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20152 wxWindow *arg2 = (wxWindow *) 0 ;
20153 wxString *arg3 = 0 ;
20154 bool arg4 = (bool) false ;
20155 int arg5 = (int) -1 ;
20156 bool result;
20157 void *argp1 = 0 ;
20158 int res1 = 0 ;
20159 void *argp2 = 0 ;
20160 int res2 = 0 ;
20161 bool temp3 = false ;
20162 bool val4 ;
20163 int ecode4 = 0 ;
20164 int val5 ;
20165 int ecode5 = 0 ;
20166 PyObject * obj0 = 0 ;
20167 PyObject * obj1 = 0 ;
20168 PyObject * obj2 = 0 ;
20169 PyObject * obj3 = 0 ;
20170 PyObject * obj4 = 0 ;
20171 char * kwnames[] = {
20172 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20173 };
20174
20175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20177 if (!SWIG_IsOK(res1)) {
20178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20179 }
20180 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20181 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20182 if (!SWIG_IsOK(res2)) {
20183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20184 }
20185 arg2 = reinterpret_cast< wxWindow * >(argp2);
20186 {
20187 arg3 = wxString_in_helper(obj2);
20188 if (arg3 == NULL) SWIG_fail;
20189 temp3 = true;
20190 }
20191 if (obj3) {
20192 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20193 if (!SWIG_IsOK(ecode4)) {
20194 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20195 }
20196 arg4 = static_cast< bool >(val4);
20197 }
20198 if (obj4) {
20199 ecode5 = SWIG_AsVal_int(obj4, &val5);
20200 if (!SWIG_IsOK(ecode5)) {
20201 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20202 }
20203 arg5 = static_cast< int >(val5);
20204 }
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 {
20212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20213 }
20214 {
20215 if (temp3)
20216 delete arg3;
20217 }
20218 return resultobj;
20219 fail:
20220 {
20221 if (temp3)
20222 delete arg3;
20223 }
20224 return NULL;
20225 }
20226
20227
20228 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20229 PyObject *resultobj = 0;
20230 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20231 size_t arg2 ;
20232 wxWindow *arg3 = (wxWindow *) 0 ;
20233 wxString *arg4 = 0 ;
20234 bool arg5 = (bool) false ;
20235 int arg6 = (int) -1 ;
20236 bool result;
20237 void *argp1 = 0 ;
20238 int res1 = 0 ;
20239 size_t val2 ;
20240 int ecode2 = 0 ;
20241 void *argp3 = 0 ;
20242 int res3 = 0 ;
20243 bool temp4 = false ;
20244 bool val5 ;
20245 int ecode5 = 0 ;
20246 int val6 ;
20247 int ecode6 = 0 ;
20248 PyObject * obj0 = 0 ;
20249 PyObject * obj1 = 0 ;
20250 PyObject * obj2 = 0 ;
20251 PyObject * obj3 = 0 ;
20252 PyObject * obj4 = 0 ;
20253 PyObject * obj5 = 0 ;
20254 char * kwnames[] = {
20255 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20256 };
20257
20258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20260 if (!SWIG_IsOK(res1)) {
20261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20262 }
20263 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20264 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20265 if (!SWIG_IsOK(ecode2)) {
20266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20267 }
20268 arg2 = static_cast< size_t >(val2);
20269 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20270 if (!SWIG_IsOK(res3)) {
20271 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20272 }
20273 arg3 = reinterpret_cast< wxWindow * >(argp3);
20274 {
20275 arg4 = wxString_in_helper(obj3);
20276 if (arg4 == NULL) SWIG_fail;
20277 temp4 = true;
20278 }
20279 if (obj4) {
20280 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20281 if (!SWIG_IsOK(ecode5)) {
20282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20283 }
20284 arg5 = static_cast< bool >(val5);
20285 }
20286 if (obj5) {
20287 ecode6 = SWIG_AsVal_int(obj5, &val6);
20288 if (!SWIG_IsOK(ecode6)) {
20289 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20290 }
20291 arg6 = static_cast< int >(val6);
20292 }
20293 {
20294 PyThreadState* __tstate = wxPyBeginAllowThreads();
20295 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20296 wxPyEndAllowThreads(__tstate);
20297 if (PyErr_Occurred()) SWIG_fail;
20298 }
20299 {
20300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20301 }
20302 {
20303 if (temp4)
20304 delete arg4;
20305 }
20306 return resultobj;
20307 fail:
20308 {
20309 if (temp4)
20310 delete arg4;
20311 }
20312 return NULL;
20313 }
20314
20315
20316 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20317 PyObject *resultobj = 0;
20318 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20319 size_t arg2 ;
20320 int result;
20321 void *argp1 = 0 ;
20322 int res1 = 0 ;
20323 size_t val2 ;
20324 int ecode2 = 0 ;
20325 PyObject * obj0 = 0 ;
20326 PyObject * obj1 = 0 ;
20327 char * kwnames[] = {
20328 (char *) "self",(char *) "n", NULL
20329 };
20330
20331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20333 if (!SWIG_IsOK(res1)) {
20334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20335 }
20336 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20337 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20338 if (!SWIG_IsOK(ecode2)) {
20339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20340 }
20341 arg2 = static_cast< size_t >(val2);
20342 {
20343 PyThreadState* __tstate = wxPyBeginAllowThreads();
20344 result = (int)(arg1)->SetSelection(arg2);
20345 wxPyEndAllowThreads(__tstate);
20346 if (PyErr_Occurred()) SWIG_fail;
20347 }
20348 resultobj = SWIG_From_int(static_cast< int >(result));
20349 return resultobj;
20350 fail:
20351 return NULL;
20352 }
20353
20354
20355 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20356 PyObject *resultobj = 0;
20357 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20358 size_t arg2 ;
20359 int result;
20360 void *argp1 = 0 ;
20361 int res1 = 0 ;
20362 size_t val2 ;
20363 int ecode2 = 0 ;
20364 PyObject * obj0 = 0 ;
20365 PyObject * obj1 = 0 ;
20366 char * kwnames[] = {
20367 (char *) "self",(char *) "n", NULL
20368 };
20369
20370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20372 if (!SWIG_IsOK(res1)) {
20373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20374 }
20375 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20376 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20377 if (!SWIG_IsOK(ecode2)) {
20378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20379 }
20380 arg2 = static_cast< size_t >(val2);
20381 {
20382 PyThreadState* __tstate = wxPyBeginAllowThreads();
20383 result = (int)(arg1)->ChangeSelection(arg2);
20384 wxPyEndAllowThreads(__tstate);
20385 if (PyErr_Occurred()) SWIG_fail;
20386 }
20387 resultobj = SWIG_From_int(static_cast< int >(result));
20388 return resultobj;
20389 fail:
20390 return NULL;
20391 }
20392
20393
20394 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20395 PyObject *resultobj = 0;
20396 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20397 bool arg2 = (bool) true ;
20398 void *argp1 = 0 ;
20399 int res1 = 0 ;
20400 bool val2 ;
20401 int ecode2 = 0 ;
20402 PyObject * obj0 = 0 ;
20403 PyObject * obj1 = 0 ;
20404 char * kwnames[] = {
20405 (char *) "self",(char *) "forward", NULL
20406 };
20407
20408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20410 if (!SWIG_IsOK(res1)) {
20411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20412 }
20413 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20414 if (obj1) {
20415 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20416 if (!SWIG_IsOK(ecode2)) {
20417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20418 }
20419 arg2 = static_cast< bool >(val2);
20420 }
20421 {
20422 PyThreadState* __tstate = wxPyBeginAllowThreads();
20423 (arg1)->AdvanceSelection(arg2);
20424 wxPyEndAllowThreads(__tstate);
20425 if (PyErr_Occurred()) SWIG_fail;
20426 }
20427 resultobj = SWIG_Py_Void();
20428 return resultobj;
20429 fail:
20430 return NULL;
20431 }
20432
20433
20434 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20435 PyObject *resultobj = 0;
20436 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20437 wxPoint *arg2 = 0 ;
20438 long *arg3 = (long *) 0 ;
20439 int result;
20440 void *argp1 = 0 ;
20441 int res1 = 0 ;
20442 wxPoint temp2 ;
20443 long temp3 ;
20444 int res3 = SWIG_TMPOBJ ;
20445 PyObject * obj0 = 0 ;
20446 PyObject * obj1 = 0 ;
20447 char * kwnames[] = {
20448 (char *) "self",(char *) "pt", NULL
20449 };
20450
20451 arg3 = &temp3;
20452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20454 if (!SWIG_IsOK(res1)) {
20455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20456 }
20457 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20458 {
20459 arg2 = &temp2;
20460 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20461 }
20462 {
20463 PyThreadState* __tstate = wxPyBeginAllowThreads();
20464 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20465 wxPyEndAllowThreads(__tstate);
20466 if (PyErr_Occurred()) SWIG_fail;
20467 }
20468 resultobj = SWIG_From_int(static_cast< int >(result));
20469 if (SWIG_IsTmpObj(res3)) {
20470 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20471 } else {
20472 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20473 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20474 }
20475 return resultobj;
20476 fail:
20477 return NULL;
20478 }
20479
20480
20481 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20482 PyObject *resultobj = 0;
20483 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20484 SwigValueWrapper<wxVisualAttributes > result;
20485 int val1 ;
20486 int ecode1 = 0 ;
20487 PyObject * obj0 = 0 ;
20488 char * kwnames[] = {
20489 (char *) "variant", NULL
20490 };
20491
20492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20493 if (obj0) {
20494 ecode1 = SWIG_AsVal_int(obj0, &val1);
20495 if (!SWIG_IsOK(ecode1)) {
20496 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20497 }
20498 arg1 = static_cast< wxWindowVariant >(val1);
20499 }
20500 {
20501 if (!wxPyCheckForApp()) SWIG_fail;
20502 PyThreadState* __tstate = wxPyBeginAllowThreads();
20503 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20504 wxPyEndAllowThreads(__tstate);
20505 if (PyErr_Occurred()) SWIG_fail;
20506 }
20507 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20508 return resultobj;
20509 fail:
20510 return NULL;
20511 }
20512
20513
20514 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20515 PyObject *obj;
20516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20517 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20518 return SWIG_Py_Void();
20519 }
20520
20521 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20522 PyObject *resultobj = 0;
20523 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20524 int arg2 = (int) 0 ;
20525 int arg3 = (int) -1 ;
20526 int arg4 = (int) -1 ;
20527 wxBookCtrlBaseEvent *result = 0 ;
20528 int val1 ;
20529 int ecode1 = 0 ;
20530 int val2 ;
20531 int ecode2 = 0 ;
20532 int val3 ;
20533 int ecode3 = 0 ;
20534 int val4 ;
20535 int ecode4 = 0 ;
20536 PyObject * obj0 = 0 ;
20537 PyObject * obj1 = 0 ;
20538 PyObject * obj2 = 0 ;
20539 PyObject * obj3 = 0 ;
20540 char * kwnames[] = {
20541 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20542 };
20543
20544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20545 if (obj0) {
20546 ecode1 = SWIG_AsVal_int(obj0, &val1);
20547 if (!SWIG_IsOK(ecode1)) {
20548 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20549 }
20550 arg1 = static_cast< wxEventType >(val1);
20551 }
20552 if (obj1) {
20553 ecode2 = SWIG_AsVal_int(obj1, &val2);
20554 if (!SWIG_IsOK(ecode2)) {
20555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20556 }
20557 arg2 = static_cast< int >(val2);
20558 }
20559 if (obj2) {
20560 ecode3 = SWIG_AsVal_int(obj2, &val3);
20561 if (!SWIG_IsOK(ecode3)) {
20562 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20563 }
20564 arg3 = static_cast< int >(val3);
20565 }
20566 if (obj3) {
20567 ecode4 = SWIG_AsVal_int(obj3, &val4);
20568 if (!SWIG_IsOK(ecode4)) {
20569 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20570 }
20571 arg4 = static_cast< int >(val4);
20572 }
20573 {
20574 PyThreadState* __tstate = wxPyBeginAllowThreads();
20575 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20576 wxPyEndAllowThreads(__tstate);
20577 if (PyErr_Occurred()) SWIG_fail;
20578 }
20579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20580 return resultobj;
20581 fail:
20582 return NULL;
20583 }
20584
20585
20586 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20587 PyObject *resultobj = 0;
20588 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20589 int result;
20590 void *argp1 = 0 ;
20591 int res1 = 0 ;
20592 PyObject *swig_obj[1] ;
20593
20594 if (!args) SWIG_fail;
20595 swig_obj[0] = args;
20596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20597 if (!SWIG_IsOK(res1)) {
20598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20599 }
20600 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20601 {
20602 PyThreadState* __tstate = wxPyBeginAllowThreads();
20603 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20604 wxPyEndAllowThreads(__tstate);
20605 if (PyErr_Occurred()) SWIG_fail;
20606 }
20607 resultobj = SWIG_From_int(static_cast< int >(result));
20608 return resultobj;
20609 fail:
20610 return NULL;
20611 }
20612
20613
20614 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20615 PyObject *resultobj = 0;
20616 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20617 int arg2 ;
20618 void *argp1 = 0 ;
20619 int res1 = 0 ;
20620 int val2 ;
20621 int ecode2 = 0 ;
20622 PyObject * obj0 = 0 ;
20623 PyObject * obj1 = 0 ;
20624 char * kwnames[] = {
20625 (char *) "self",(char *) "nSel", NULL
20626 };
20627
20628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20630 if (!SWIG_IsOK(res1)) {
20631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20632 }
20633 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20634 ecode2 = SWIG_AsVal_int(obj1, &val2);
20635 if (!SWIG_IsOK(ecode2)) {
20636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20637 }
20638 arg2 = static_cast< int >(val2);
20639 {
20640 PyThreadState* __tstate = wxPyBeginAllowThreads();
20641 (arg1)->SetSelection(arg2);
20642 wxPyEndAllowThreads(__tstate);
20643 if (PyErr_Occurred()) SWIG_fail;
20644 }
20645 resultobj = SWIG_Py_Void();
20646 return resultobj;
20647 fail:
20648 return NULL;
20649 }
20650
20651
20652 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20653 PyObject *resultobj = 0;
20654 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20655 int result;
20656 void *argp1 = 0 ;
20657 int res1 = 0 ;
20658 PyObject *swig_obj[1] ;
20659
20660 if (!args) SWIG_fail;
20661 swig_obj[0] = args;
20662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20663 if (!SWIG_IsOK(res1)) {
20664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20665 }
20666 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20667 {
20668 PyThreadState* __tstate = wxPyBeginAllowThreads();
20669 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20670 wxPyEndAllowThreads(__tstate);
20671 if (PyErr_Occurred()) SWIG_fail;
20672 }
20673 resultobj = SWIG_From_int(static_cast< int >(result));
20674 return resultobj;
20675 fail:
20676 return NULL;
20677 }
20678
20679
20680 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20681 PyObject *resultobj = 0;
20682 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20683 int arg2 ;
20684 void *argp1 = 0 ;
20685 int res1 = 0 ;
20686 int val2 ;
20687 int ecode2 = 0 ;
20688 PyObject * obj0 = 0 ;
20689 PyObject * obj1 = 0 ;
20690 char * kwnames[] = {
20691 (char *) "self",(char *) "nOldSel", NULL
20692 };
20693
20694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20696 if (!SWIG_IsOK(res1)) {
20697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20698 }
20699 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20700 ecode2 = SWIG_AsVal_int(obj1, &val2);
20701 if (!SWIG_IsOK(ecode2)) {
20702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20703 }
20704 arg2 = static_cast< int >(val2);
20705 {
20706 PyThreadState* __tstate = wxPyBeginAllowThreads();
20707 (arg1)->SetOldSelection(arg2);
20708 wxPyEndAllowThreads(__tstate);
20709 if (PyErr_Occurred()) SWIG_fail;
20710 }
20711 resultobj = SWIG_Py_Void();
20712 return resultobj;
20713 fail:
20714 return NULL;
20715 }
20716
20717
20718 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20719 PyObject *obj;
20720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20721 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20722 return SWIG_Py_Void();
20723 }
20724
20725 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20726 return SWIG_Python_InitShadowInstance(args);
20727 }
20728
20729 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20730 PyObject *resultobj = 0;
20731 wxWindow *arg1 = (wxWindow *) 0 ;
20732 int arg2 = (int) -1 ;
20733 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20734 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20735 wxSize const &arg4_defvalue = wxDefaultSize ;
20736 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20737 long arg5 = (long) 0 ;
20738 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20739 wxString *arg6 = (wxString *) &arg6_defvalue ;
20740 wxNotebook *result = 0 ;
20741 void *argp1 = 0 ;
20742 int res1 = 0 ;
20743 int val2 ;
20744 int ecode2 = 0 ;
20745 wxPoint temp3 ;
20746 wxSize temp4 ;
20747 long val5 ;
20748 int ecode5 = 0 ;
20749 bool temp6 = false ;
20750 PyObject * obj0 = 0 ;
20751 PyObject * obj1 = 0 ;
20752 PyObject * obj2 = 0 ;
20753 PyObject * obj3 = 0 ;
20754 PyObject * obj4 = 0 ;
20755 PyObject * obj5 = 0 ;
20756 char * kwnames[] = {
20757 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20758 };
20759
20760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20762 if (!SWIG_IsOK(res1)) {
20763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20764 }
20765 arg1 = reinterpret_cast< wxWindow * >(argp1);
20766 if (obj1) {
20767 ecode2 = SWIG_AsVal_int(obj1, &val2);
20768 if (!SWIG_IsOK(ecode2)) {
20769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20770 }
20771 arg2 = static_cast< int >(val2);
20772 }
20773 if (obj2) {
20774 {
20775 arg3 = &temp3;
20776 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20777 }
20778 }
20779 if (obj3) {
20780 {
20781 arg4 = &temp4;
20782 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20783 }
20784 }
20785 if (obj4) {
20786 ecode5 = SWIG_AsVal_long(obj4, &val5);
20787 if (!SWIG_IsOK(ecode5)) {
20788 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20789 }
20790 arg5 = static_cast< long >(val5);
20791 }
20792 if (obj5) {
20793 {
20794 arg6 = wxString_in_helper(obj5);
20795 if (arg6 == NULL) SWIG_fail;
20796 temp6 = true;
20797 }
20798 }
20799 {
20800 if (!wxPyCheckForApp()) SWIG_fail;
20801 PyThreadState* __tstate = wxPyBeginAllowThreads();
20802 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20803 wxPyEndAllowThreads(__tstate);
20804 if (PyErr_Occurred()) SWIG_fail;
20805 }
20806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20807 {
20808 if (temp6)
20809 delete arg6;
20810 }
20811 return resultobj;
20812 fail:
20813 {
20814 if (temp6)
20815 delete arg6;
20816 }
20817 return NULL;
20818 }
20819
20820
20821 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20822 PyObject *resultobj = 0;
20823 wxNotebook *result = 0 ;
20824
20825 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20826 {
20827 if (!wxPyCheckForApp()) SWIG_fail;
20828 PyThreadState* __tstate = wxPyBeginAllowThreads();
20829 result = (wxNotebook *)new wxNotebook();
20830 wxPyEndAllowThreads(__tstate);
20831 if (PyErr_Occurred()) SWIG_fail;
20832 }
20833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20834 return resultobj;
20835 fail:
20836 return NULL;
20837 }
20838
20839
20840 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20841 PyObject *resultobj = 0;
20842 wxNotebook *arg1 = (wxNotebook *) 0 ;
20843 wxWindow *arg2 = (wxWindow *) 0 ;
20844 int arg3 = (int) -1 ;
20845 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20846 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20847 wxSize const &arg5_defvalue = wxDefaultSize ;
20848 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20849 long arg6 = (long) 0 ;
20850 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20851 wxString *arg7 = (wxString *) &arg7_defvalue ;
20852 bool result;
20853 void *argp1 = 0 ;
20854 int res1 = 0 ;
20855 void *argp2 = 0 ;
20856 int res2 = 0 ;
20857 int val3 ;
20858 int ecode3 = 0 ;
20859 wxPoint temp4 ;
20860 wxSize temp5 ;
20861 long val6 ;
20862 int ecode6 = 0 ;
20863 bool temp7 = false ;
20864 PyObject * obj0 = 0 ;
20865 PyObject * obj1 = 0 ;
20866 PyObject * obj2 = 0 ;
20867 PyObject * obj3 = 0 ;
20868 PyObject * obj4 = 0 ;
20869 PyObject * obj5 = 0 ;
20870 PyObject * obj6 = 0 ;
20871 char * kwnames[] = {
20872 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20873 };
20874
20875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20877 if (!SWIG_IsOK(res1)) {
20878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20879 }
20880 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20881 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20882 if (!SWIG_IsOK(res2)) {
20883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20884 }
20885 arg2 = reinterpret_cast< wxWindow * >(argp2);
20886 if (obj2) {
20887 ecode3 = SWIG_AsVal_int(obj2, &val3);
20888 if (!SWIG_IsOK(ecode3)) {
20889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20890 }
20891 arg3 = static_cast< int >(val3);
20892 }
20893 if (obj3) {
20894 {
20895 arg4 = &temp4;
20896 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20897 }
20898 }
20899 if (obj4) {
20900 {
20901 arg5 = &temp5;
20902 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20903 }
20904 }
20905 if (obj5) {
20906 ecode6 = SWIG_AsVal_long(obj5, &val6);
20907 if (!SWIG_IsOK(ecode6)) {
20908 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20909 }
20910 arg6 = static_cast< long >(val6);
20911 }
20912 if (obj6) {
20913 {
20914 arg7 = wxString_in_helper(obj6);
20915 if (arg7 == NULL) SWIG_fail;
20916 temp7 = true;
20917 }
20918 }
20919 {
20920 PyThreadState* __tstate = wxPyBeginAllowThreads();
20921 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20922 wxPyEndAllowThreads(__tstate);
20923 if (PyErr_Occurred()) SWIG_fail;
20924 }
20925 {
20926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20927 }
20928 {
20929 if (temp7)
20930 delete arg7;
20931 }
20932 return resultobj;
20933 fail:
20934 {
20935 if (temp7)
20936 delete arg7;
20937 }
20938 return NULL;
20939 }
20940
20941
20942 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20943 PyObject *resultobj = 0;
20944 wxNotebook *arg1 = (wxNotebook *) 0 ;
20945 int result;
20946 void *argp1 = 0 ;
20947 int res1 = 0 ;
20948 PyObject *swig_obj[1] ;
20949
20950 if (!args) SWIG_fail;
20951 swig_obj[0] = args;
20952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20953 if (!SWIG_IsOK(res1)) {
20954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20955 }
20956 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20957 {
20958 PyThreadState* __tstate = wxPyBeginAllowThreads();
20959 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20960 wxPyEndAllowThreads(__tstate);
20961 if (PyErr_Occurred()) SWIG_fail;
20962 }
20963 resultobj = SWIG_From_int(static_cast< int >(result));
20964 return resultobj;
20965 fail:
20966 return NULL;
20967 }
20968
20969
20970 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20971 PyObject *resultobj = 0;
20972 wxNotebook *arg1 = (wxNotebook *) 0 ;
20973 wxSize *arg2 = 0 ;
20974 void *argp1 = 0 ;
20975 int res1 = 0 ;
20976 wxSize temp2 ;
20977 PyObject * obj0 = 0 ;
20978 PyObject * obj1 = 0 ;
20979 char * kwnames[] = {
20980 (char *) "self",(char *) "padding", NULL
20981 };
20982
20983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20985 if (!SWIG_IsOK(res1)) {
20986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20987 }
20988 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20989 {
20990 arg2 = &temp2;
20991 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20992 }
20993 {
20994 PyThreadState* __tstate = wxPyBeginAllowThreads();
20995 (arg1)->SetPadding((wxSize const &)*arg2);
20996 wxPyEndAllowThreads(__tstate);
20997 if (PyErr_Occurred()) SWIG_fail;
20998 }
20999 resultobj = SWIG_Py_Void();
21000 return resultobj;
21001 fail:
21002 return NULL;
21003 }
21004
21005
21006 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21007 PyObject *resultobj = 0;
21008 wxNotebook *arg1 = (wxNotebook *) 0 ;
21009 wxSize *arg2 = 0 ;
21010 void *argp1 = 0 ;
21011 int res1 = 0 ;
21012 wxSize temp2 ;
21013 PyObject * obj0 = 0 ;
21014 PyObject * obj1 = 0 ;
21015 char * kwnames[] = {
21016 (char *) "self",(char *) "sz", NULL
21017 };
21018
21019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
21020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21021 if (!SWIG_IsOK(res1)) {
21022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
21023 }
21024 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21025 {
21026 arg2 = &temp2;
21027 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21028 }
21029 {
21030 PyThreadState* __tstate = wxPyBeginAllowThreads();
21031 (arg1)->SetTabSize((wxSize const &)*arg2);
21032 wxPyEndAllowThreads(__tstate);
21033 if (PyErr_Occurred()) SWIG_fail;
21034 }
21035 resultobj = SWIG_Py_Void();
21036 return resultobj;
21037 fail:
21038 return NULL;
21039 }
21040
21041
21042 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21043 PyObject *resultobj = 0;
21044 wxNotebook *arg1 = (wxNotebook *) 0 ;
21045 wxColour result;
21046 void *argp1 = 0 ;
21047 int res1 = 0 ;
21048 PyObject *swig_obj[1] ;
21049
21050 if (!args) SWIG_fail;
21051 swig_obj[0] = args;
21052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21053 if (!SWIG_IsOK(res1)) {
21054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21055 }
21056 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21057 {
21058 PyThreadState* __tstate = wxPyBeginAllowThreads();
21059 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
21060 wxPyEndAllowThreads(__tstate);
21061 if (PyErr_Occurred()) SWIG_fail;
21062 }
21063 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
21064 return resultobj;
21065 fail:
21066 return NULL;
21067 }
21068
21069
21070 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21071 PyObject *resultobj = 0;
21072 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
21073 SwigValueWrapper<wxVisualAttributes > result;
21074 int val1 ;
21075 int ecode1 = 0 ;
21076 PyObject * obj0 = 0 ;
21077 char * kwnames[] = {
21078 (char *) "variant", NULL
21079 };
21080
21081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
21082 if (obj0) {
21083 ecode1 = SWIG_AsVal_int(obj0, &val1);
21084 if (!SWIG_IsOK(ecode1)) {
21085 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
21086 }
21087 arg1 = static_cast< wxWindowVariant >(val1);
21088 }
21089 {
21090 if (!wxPyCheckForApp()) SWIG_fail;
21091 PyThreadState* __tstate = wxPyBeginAllowThreads();
21092 result = wxNotebook::GetClassDefaultAttributes(arg1);
21093 wxPyEndAllowThreads(__tstate);
21094 if (PyErr_Occurred()) SWIG_fail;
21095 }
21096 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21097 return resultobj;
21098 fail:
21099 return NULL;
21100 }
21101
21102
21103 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21104 PyObject *resultobj = 0;
21105 wxNotebook *arg1 = (wxNotebook *) 0 ;
21106 int arg2 ;
21107 bool result;
21108 void *argp1 = 0 ;
21109 int res1 = 0 ;
21110 int val2 ;
21111 int ecode2 = 0 ;
21112 PyObject * obj0 = 0 ;
21113 PyObject * obj1 = 0 ;
21114 char * kwnames[] = {
21115 (char *) "self",(char *) "nPage", NULL
21116 };
21117
21118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21120 if (!SWIG_IsOK(res1)) {
21121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21122 }
21123 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21124 ecode2 = SWIG_AsVal_int(obj1, &val2);
21125 if (!SWIG_IsOK(ecode2)) {
21126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21127 }
21128 arg2 = static_cast< int >(val2);
21129 {
21130 PyThreadState* __tstate = wxPyBeginAllowThreads();
21131 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21132 wxPyEndAllowThreads(__tstate);
21133 if (PyErr_Occurred()) SWIG_fail;
21134 }
21135 {
21136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21137 }
21138 return resultobj;
21139 fail:
21140 return NULL;
21141 }
21142
21143
21144 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21145 PyObject *resultobj = 0;
21146 wxNotebook *arg1 = (wxNotebook *) 0 ;
21147 int arg2 ;
21148 int arg3 = (int) -1 ;
21149 void *argp1 = 0 ;
21150 int res1 = 0 ;
21151 int val2 ;
21152 int ecode2 = 0 ;
21153 int val3 ;
21154 int ecode3 = 0 ;
21155 PyObject * obj0 = 0 ;
21156 PyObject * obj1 = 0 ;
21157 PyObject * obj2 = 0 ;
21158 char * kwnames[] = {
21159 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21160 };
21161
21162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21164 if (!SWIG_IsOK(res1)) {
21165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21166 }
21167 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21168 ecode2 = SWIG_AsVal_int(obj1, &val2);
21169 if (!SWIG_IsOK(ecode2)) {
21170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21171 }
21172 arg2 = static_cast< int >(val2);
21173 if (obj2) {
21174 ecode3 = SWIG_AsVal_int(obj2, &val3);
21175 if (!SWIG_IsOK(ecode3)) {
21176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21177 }
21178 arg3 = static_cast< int >(val3);
21179 }
21180 {
21181 PyThreadState* __tstate = wxPyBeginAllowThreads();
21182 (arg1)->SendPageChangedEvent(arg2,arg3);
21183 wxPyEndAllowThreads(__tstate);
21184 if (PyErr_Occurred()) SWIG_fail;
21185 }
21186 resultobj = SWIG_Py_Void();
21187 return resultobj;
21188 fail:
21189 return NULL;
21190 }
21191
21192
21193 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21194 PyObject *obj;
21195 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21196 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21197 return SWIG_Py_Void();
21198 }
21199
21200 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21201 return SWIG_Python_InitShadowInstance(args);
21202 }
21203
21204 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21205 PyObject *resultobj = 0;
21206 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21207 int arg2 = (int) 0 ;
21208 int arg3 = (int) -1 ;
21209 int arg4 = (int) -1 ;
21210 wxNotebookEvent *result = 0 ;
21211 int val1 ;
21212 int ecode1 = 0 ;
21213 int val2 ;
21214 int ecode2 = 0 ;
21215 int val3 ;
21216 int ecode3 = 0 ;
21217 int val4 ;
21218 int ecode4 = 0 ;
21219 PyObject * obj0 = 0 ;
21220 PyObject * obj1 = 0 ;
21221 PyObject * obj2 = 0 ;
21222 PyObject * obj3 = 0 ;
21223 char * kwnames[] = {
21224 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21225 };
21226
21227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21228 if (obj0) {
21229 ecode1 = SWIG_AsVal_int(obj0, &val1);
21230 if (!SWIG_IsOK(ecode1)) {
21231 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21232 }
21233 arg1 = static_cast< wxEventType >(val1);
21234 }
21235 if (obj1) {
21236 ecode2 = SWIG_AsVal_int(obj1, &val2);
21237 if (!SWIG_IsOK(ecode2)) {
21238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21239 }
21240 arg2 = static_cast< int >(val2);
21241 }
21242 if (obj2) {
21243 ecode3 = SWIG_AsVal_int(obj2, &val3);
21244 if (!SWIG_IsOK(ecode3)) {
21245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21246 }
21247 arg3 = static_cast< int >(val3);
21248 }
21249 if (obj3) {
21250 ecode4 = SWIG_AsVal_int(obj3, &val4);
21251 if (!SWIG_IsOK(ecode4)) {
21252 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21253 }
21254 arg4 = static_cast< int >(val4);
21255 }
21256 {
21257 PyThreadState* __tstate = wxPyBeginAllowThreads();
21258 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21259 wxPyEndAllowThreads(__tstate);
21260 if (PyErr_Occurred()) SWIG_fail;
21261 }
21262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21263 return resultobj;
21264 fail:
21265 return NULL;
21266 }
21267
21268
21269 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21270 PyObject *obj;
21271 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21272 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21273 return SWIG_Py_Void();
21274 }
21275
21276 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21277 return SWIG_Python_InitShadowInstance(args);
21278 }
21279
21280 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21281 PyObject *resultobj = 0;
21282 wxWindow *arg1 = (wxWindow *) 0 ;
21283 int arg2 = (int) -1 ;
21284 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21285 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21286 wxSize const &arg4_defvalue = wxDefaultSize ;
21287 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21288 long arg5 = (long) 0 ;
21289 wxString const &arg6_defvalue = wxPyEmptyString ;
21290 wxString *arg6 = (wxString *) &arg6_defvalue ;
21291 wxListbook *result = 0 ;
21292 void *argp1 = 0 ;
21293 int res1 = 0 ;
21294 int val2 ;
21295 int ecode2 = 0 ;
21296 wxPoint temp3 ;
21297 wxSize temp4 ;
21298 long val5 ;
21299 int ecode5 = 0 ;
21300 bool temp6 = false ;
21301 PyObject * obj0 = 0 ;
21302 PyObject * obj1 = 0 ;
21303 PyObject * obj2 = 0 ;
21304 PyObject * obj3 = 0 ;
21305 PyObject * obj4 = 0 ;
21306 PyObject * obj5 = 0 ;
21307 char * kwnames[] = {
21308 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21309 };
21310
21311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21313 if (!SWIG_IsOK(res1)) {
21314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21315 }
21316 arg1 = reinterpret_cast< wxWindow * >(argp1);
21317 if (obj1) {
21318 ecode2 = SWIG_AsVal_int(obj1, &val2);
21319 if (!SWIG_IsOK(ecode2)) {
21320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21321 }
21322 arg2 = static_cast< int >(val2);
21323 }
21324 if (obj2) {
21325 {
21326 arg3 = &temp3;
21327 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21328 }
21329 }
21330 if (obj3) {
21331 {
21332 arg4 = &temp4;
21333 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21334 }
21335 }
21336 if (obj4) {
21337 ecode5 = SWIG_AsVal_long(obj4, &val5);
21338 if (!SWIG_IsOK(ecode5)) {
21339 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21340 }
21341 arg5 = static_cast< long >(val5);
21342 }
21343 if (obj5) {
21344 {
21345 arg6 = wxString_in_helper(obj5);
21346 if (arg6 == NULL) SWIG_fail;
21347 temp6 = true;
21348 }
21349 }
21350 {
21351 if (!wxPyCheckForApp()) SWIG_fail;
21352 PyThreadState* __tstate = wxPyBeginAllowThreads();
21353 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21354 wxPyEndAllowThreads(__tstate);
21355 if (PyErr_Occurred()) SWIG_fail;
21356 }
21357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21358 {
21359 if (temp6)
21360 delete arg6;
21361 }
21362 return resultobj;
21363 fail:
21364 {
21365 if (temp6)
21366 delete arg6;
21367 }
21368 return NULL;
21369 }
21370
21371
21372 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21373 PyObject *resultobj = 0;
21374 wxListbook *result = 0 ;
21375
21376 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21377 {
21378 if (!wxPyCheckForApp()) SWIG_fail;
21379 PyThreadState* __tstate = wxPyBeginAllowThreads();
21380 result = (wxListbook *)new wxListbook();
21381 wxPyEndAllowThreads(__tstate);
21382 if (PyErr_Occurred()) SWIG_fail;
21383 }
21384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21385 return resultobj;
21386 fail:
21387 return NULL;
21388 }
21389
21390
21391 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21392 PyObject *resultobj = 0;
21393 wxListbook *arg1 = (wxListbook *) 0 ;
21394 wxWindow *arg2 = (wxWindow *) 0 ;
21395 int arg3 = (int) -1 ;
21396 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21397 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21398 wxSize const &arg5_defvalue = wxDefaultSize ;
21399 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21400 long arg6 = (long) 0 ;
21401 wxString const &arg7_defvalue = wxPyEmptyString ;
21402 wxString *arg7 = (wxString *) &arg7_defvalue ;
21403 bool result;
21404 void *argp1 = 0 ;
21405 int res1 = 0 ;
21406 void *argp2 = 0 ;
21407 int res2 = 0 ;
21408 int val3 ;
21409 int ecode3 = 0 ;
21410 wxPoint temp4 ;
21411 wxSize temp5 ;
21412 long val6 ;
21413 int ecode6 = 0 ;
21414 bool temp7 = false ;
21415 PyObject * obj0 = 0 ;
21416 PyObject * obj1 = 0 ;
21417 PyObject * obj2 = 0 ;
21418 PyObject * obj3 = 0 ;
21419 PyObject * obj4 = 0 ;
21420 PyObject * obj5 = 0 ;
21421 PyObject * obj6 = 0 ;
21422 char * kwnames[] = {
21423 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21424 };
21425
21426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21428 if (!SWIG_IsOK(res1)) {
21429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21430 }
21431 arg1 = reinterpret_cast< wxListbook * >(argp1);
21432 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21433 if (!SWIG_IsOK(res2)) {
21434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21435 }
21436 arg2 = reinterpret_cast< wxWindow * >(argp2);
21437 if (obj2) {
21438 ecode3 = SWIG_AsVal_int(obj2, &val3);
21439 if (!SWIG_IsOK(ecode3)) {
21440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21441 }
21442 arg3 = static_cast< int >(val3);
21443 }
21444 if (obj3) {
21445 {
21446 arg4 = &temp4;
21447 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21448 }
21449 }
21450 if (obj4) {
21451 {
21452 arg5 = &temp5;
21453 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21454 }
21455 }
21456 if (obj5) {
21457 ecode6 = SWIG_AsVal_long(obj5, &val6);
21458 if (!SWIG_IsOK(ecode6)) {
21459 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21460 }
21461 arg6 = static_cast< long >(val6);
21462 }
21463 if (obj6) {
21464 {
21465 arg7 = wxString_in_helper(obj6);
21466 if (arg7 == NULL) SWIG_fail;
21467 temp7 = true;
21468 }
21469 }
21470 {
21471 PyThreadState* __tstate = wxPyBeginAllowThreads();
21472 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21473 wxPyEndAllowThreads(__tstate);
21474 if (PyErr_Occurred()) SWIG_fail;
21475 }
21476 {
21477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21478 }
21479 {
21480 if (temp7)
21481 delete arg7;
21482 }
21483 return resultobj;
21484 fail:
21485 {
21486 if (temp7)
21487 delete arg7;
21488 }
21489 return NULL;
21490 }
21491
21492
21493 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21494 PyObject *resultobj = 0;
21495 wxListbook *arg1 = (wxListbook *) 0 ;
21496 wxListView *result = 0 ;
21497 void *argp1 = 0 ;
21498 int res1 = 0 ;
21499 PyObject *swig_obj[1] ;
21500
21501 if (!args) SWIG_fail;
21502 swig_obj[0] = args;
21503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21504 if (!SWIG_IsOK(res1)) {
21505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21506 }
21507 arg1 = reinterpret_cast< wxListbook * >(argp1);
21508 {
21509 PyThreadState* __tstate = wxPyBeginAllowThreads();
21510 result = (wxListView *)(arg1)->GetListView();
21511 wxPyEndAllowThreads(__tstate);
21512 if (PyErr_Occurred()) SWIG_fail;
21513 }
21514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21515 return resultobj;
21516 fail:
21517 return NULL;
21518 }
21519
21520
21521 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21522 PyObject *obj;
21523 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21524 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21525 return SWIG_Py_Void();
21526 }
21527
21528 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21529 return SWIG_Python_InitShadowInstance(args);
21530 }
21531
21532 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21533 PyObject *resultobj = 0;
21534 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21535 int arg2 = (int) 0 ;
21536 int arg3 = (int) -1 ;
21537 int arg4 = (int) -1 ;
21538 wxListbookEvent *result = 0 ;
21539 int val1 ;
21540 int ecode1 = 0 ;
21541 int val2 ;
21542 int ecode2 = 0 ;
21543 int val3 ;
21544 int ecode3 = 0 ;
21545 int val4 ;
21546 int ecode4 = 0 ;
21547 PyObject * obj0 = 0 ;
21548 PyObject * obj1 = 0 ;
21549 PyObject * obj2 = 0 ;
21550 PyObject * obj3 = 0 ;
21551 char * kwnames[] = {
21552 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21553 };
21554
21555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21556 if (obj0) {
21557 ecode1 = SWIG_AsVal_int(obj0, &val1);
21558 if (!SWIG_IsOK(ecode1)) {
21559 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21560 }
21561 arg1 = static_cast< wxEventType >(val1);
21562 }
21563 if (obj1) {
21564 ecode2 = SWIG_AsVal_int(obj1, &val2);
21565 if (!SWIG_IsOK(ecode2)) {
21566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21567 }
21568 arg2 = static_cast< int >(val2);
21569 }
21570 if (obj2) {
21571 ecode3 = SWIG_AsVal_int(obj2, &val3);
21572 if (!SWIG_IsOK(ecode3)) {
21573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21574 }
21575 arg3 = static_cast< int >(val3);
21576 }
21577 if (obj3) {
21578 ecode4 = SWIG_AsVal_int(obj3, &val4);
21579 if (!SWIG_IsOK(ecode4)) {
21580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21581 }
21582 arg4 = static_cast< int >(val4);
21583 }
21584 {
21585 PyThreadState* __tstate = wxPyBeginAllowThreads();
21586 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21587 wxPyEndAllowThreads(__tstate);
21588 if (PyErr_Occurred()) SWIG_fail;
21589 }
21590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21591 return resultobj;
21592 fail:
21593 return NULL;
21594 }
21595
21596
21597 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21598 PyObject *obj;
21599 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21600 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21601 return SWIG_Py_Void();
21602 }
21603
21604 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21605 return SWIG_Python_InitShadowInstance(args);
21606 }
21607
21608 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21609 PyObject *resultobj = 0;
21610 wxWindow *arg1 = (wxWindow *) 0 ;
21611 int arg2 ;
21612 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21613 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21614 wxSize const &arg4_defvalue = wxDefaultSize ;
21615 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21616 long arg5 = (long) 0 ;
21617 wxString const &arg6_defvalue = wxPyEmptyString ;
21618 wxString *arg6 = (wxString *) &arg6_defvalue ;
21619 wxChoicebook *result = 0 ;
21620 void *argp1 = 0 ;
21621 int res1 = 0 ;
21622 int val2 ;
21623 int ecode2 = 0 ;
21624 wxPoint temp3 ;
21625 wxSize temp4 ;
21626 long val5 ;
21627 int ecode5 = 0 ;
21628 bool temp6 = false ;
21629 PyObject * obj0 = 0 ;
21630 PyObject * obj1 = 0 ;
21631 PyObject * obj2 = 0 ;
21632 PyObject * obj3 = 0 ;
21633 PyObject * obj4 = 0 ;
21634 PyObject * obj5 = 0 ;
21635 char * kwnames[] = {
21636 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21637 };
21638
21639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21641 if (!SWIG_IsOK(res1)) {
21642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21643 }
21644 arg1 = reinterpret_cast< wxWindow * >(argp1);
21645 ecode2 = SWIG_AsVal_int(obj1, &val2);
21646 if (!SWIG_IsOK(ecode2)) {
21647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21648 }
21649 arg2 = static_cast< int >(val2);
21650 if (obj2) {
21651 {
21652 arg3 = &temp3;
21653 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21654 }
21655 }
21656 if (obj3) {
21657 {
21658 arg4 = &temp4;
21659 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21660 }
21661 }
21662 if (obj4) {
21663 ecode5 = SWIG_AsVal_long(obj4, &val5);
21664 if (!SWIG_IsOK(ecode5)) {
21665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21666 }
21667 arg5 = static_cast< long >(val5);
21668 }
21669 if (obj5) {
21670 {
21671 arg6 = wxString_in_helper(obj5);
21672 if (arg6 == NULL) SWIG_fail;
21673 temp6 = true;
21674 }
21675 }
21676 {
21677 if (!wxPyCheckForApp()) SWIG_fail;
21678 PyThreadState* __tstate = wxPyBeginAllowThreads();
21679 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21680 wxPyEndAllowThreads(__tstate);
21681 if (PyErr_Occurred()) SWIG_fail;
21682 }
21683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21684 {
21685 if (temp6)
21686 delete arg6;
21687 }
21688 return resultobj;
21689 fail:
21690 {
21691 if (temp6)
21692 delete arg6;
21693 }
21694 return NULL;
21695 }
21696
21697
21698 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21699 PyObject *resultobj = 0;
21700 wxChoicebook *result = 0 ;
21701
21702 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21703 {
21704 if (!wxPyCheckForApp()) SWIG_fail;
21705 PyThreadState* __tstate = wxPyBeginAllowThreads();
21706 result = (wxChoicebook *)new wxChoicebook();
21707 wxPyEndAllowThreads(__tstate);
21708 if (PyErr_Occurred()) SWIG_fail;
21709 }
21710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21711 return resultobj;
21712 fail:
21713 return NULL;
21714 }
21715
21716
21717 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21718 PyObject *resultobj = 0;
21719 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21720 wxWindow *arg2 = (wxWindow *) 0 ;
21721 int arg3 ;
21722 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21723 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21724 wxSize const &arg5_defvalue = wxDefaultSize ;
21725 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21726 long arg6 = (long) 0 ;
21727 wxString const &arg7_defvalue = wxPyEmptyString ;
21728 wxString *arg7 = (wxString *) &arg7_defvalue ;
21729 bool result;
21730 void *argp1 = 0 ;
21731 int res1 = 0 ;
21732 void *argp2 = 0 ;
21733 int res2 = 0 ;
21734 int val3 ;
21735 int ecode3 = 0 ;
21736 wxPoint temp4 ;
21737 wxSize temp5 ;
21738 long val6 ;
21739 int ecode6 = 0 ;
21740 bool temp7 = false ;
21741 PyObject * obj0 = 0 ;
21742 PyObject * obj1 = 0 ;
21743 PyObject * obj2 = 0 ;
21744 PyObject * obj3 = 0 ;
21745 PyObject * obj4 = 0 ;
21746 PyObject * obj5 = 0 ;
21747 PyObject * obj6 = 0 ;
21748 char * kwnames[] = {
21749 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21750 };
21751
21752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21754 if (!SWIG_IsOK(res1)) {
21755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21756 }
21757 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21758 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21759 if (!SWIG_IsOK(res2)) {
21760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21761 }
21762 arg2 = reinterpret_cast< wxWindow * >(argp2);
21763 ecode3 = SWIG_AsVal_int(obj2, &val3);
21764 if (!SWIG_IsOK(ecode3)) {
21765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21766 }
21767 arg3 = static_cast< int >(val3);
21768 if (obj3) {
21769 {
21770 arg4 = &temp4;
21771 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21772 }
21773 }
21774 if (obj4) {
21775 {
21776 arg5 = &temp5;
21777 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21778 }
21779 }
21780 if (obj5) {
21781 ecode6 = SWIG_AsVal_long(obj5, &val6);
21782 if (!SWIG_IsOK(ecode6)) {
21783 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21784 }
21785 arg6 = static_cast< long >(val6);
21786 }
21787 if (obj6) {
21788 {
21789 arg7 = wxString_in_helper(obj6);
21790 if (arg7 == NULL) SWIG_fail;
21791 temp7 = true;
21792 }
21793 }
21794 {
21795 PyThreadState* __tstate = wxPyBeginAllowThreads();
21796 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21797 wxPyEndAllowThreads(__tstate);
21798 if (PyErr_Occurred()) SWIG_fail;
21799 }
21800 {
21801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21802 }
21803 {
21804 if (temp7)
21805 delete arg7;
21806 }
21807 return resultobj;
21808 fail:
21809 {
21810 if (temp7)
21811 delete arg7;
21812 }
21813 return NULL;
21814 }
21815
21816
21817 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21818 PyObject *resultobj = 0;
21819 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21820 wxChoice *result = 0 ;
21821 void *argp1 = 0 ;
21822 int res1 = 0 ;
21823 PyObject *swig_obj[1] ;
21824
21825 if (!args) SWIG_fail;
21826 swig_obj[0] = args;
21827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21828 if (!SWIG_IsOK(res1)) {
21829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21830 }
21831 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21832 {
21833 PyThreadState* __tstate = wxPyBeginAllowThreads();
21834 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21835 wxPyEndAllowThreads(__tstate);
21836 if (PyErr_Occurred()) SWIG_fail;
21837 }
21838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21839 return resultobj;
21840 fail:
21841 return NULL;
21842 }
21843
21844
21845 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21846 PyObject *obj;
21847 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21848 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21849 return SWIG_Py_Void();
21850 }
21851
21852 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21853 return SWIG_Python_InitShadowInstance(args);
21854 }
21855
21856 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21857 PyObject *resultobj = 0;
21858 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21859 int arg2 = (int) 0 ;
21860 int arg3 = (int) -1 ;
21861 int arg4 = (int) -1 ;
21862 wxChoicebookEvent *result = 0 ;
21863 int val1 ;
21864 int ecode1 = 0 ;
21865 int val2 ;
21866 int ecode2 = 0 ;
21867 int val3 ;
21868 int ecode3 = 0 ;
21869 int val4 ;
21870 int ecode4 = 0 ;
21871 PyObject * obj0 = 0 ;
21872 PyObject * obj1 = 0 ;
21873 PyObject * obj2 = 0 ;
21874 PyObject * obj3 = 0 ;
21875 char * kwnames[] = {
21876 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21877 };
21878
21879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21880 if (obj0) {
21881 ecode1 = SWIG_AsVal_int(obj0, &val1);
21882 if (!SWIG_IsOK(ecode1)) {
21883 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21884 }
21885 arg1 = static_cast< wxEventType >(val1);
21886 }
21887 if (obj1) {
21888 ecode2 = SWIG_AsVal_int(obj1, &val2);
21889 if (!SWIG_IsOK(ecode2)) {
21890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21891 }
21892 arg2 = static_cast< int >(val2);
21893 }
21894 if (obj2) {
21895 ecode3 = SWIG_AsVal_int(obj2, &val3);
21896 if (!SWIG_IsOK(ecode3)) {
21897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21898 }
21899 arg3 = static_cast< int >(val3);
21900 }
21901 if (obj3) {
21902 ecode4 = SWIG_AsVal_int(obj3, &val4);
21903 if (!SWIG_IsOK(ecode4)) {
21904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21905 }
21906 arg4 = static_cast< int >(val4);
21907 }
21908 {
21909 PyThreadState* __tstate = wxPyBeginAllowThreads();
21910 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21911 wxPyEndAllowThreads(__tstate);
21912 if (PyErr_Occurred()) SWIG_fail;
21913 }
21914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21915 return resultobj;
21916 fail:
21917 return NULL;
21918 }
21919
21920
21921 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21922 PyObject *obj;
21923 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21924 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21925 return SWIG_Py_Void();
21926 }
21927
21928 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21929 return SWIG_Python_InitShadowInstance(args);
21930 }
21931
21932 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21933 PyObject *resultobj = 0;
21934 wxWindow *arg1 = (wxWindow *) 0 ;
21935 int arg2 ;
21936 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21937 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21938 wxSize const &arg4_defvalue = wxDefaultSize ;
21939 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21940 long arg5 = (long) wxBK_DEFAULT ;
21941 wxString const &arg6_defvalue = wxPyEmptyString ;
21942 wxString *arg6 = (wxString *) &arg6_defvalue ;
21943 wxTreebook *result = 0 ;
21944 void *argp1 = 0 ;
21945 int res1 = 0 ;
21946 int val2 ;
21947 int ecode2 = 0 ;
21948 wxPoint temp3 ;
21949 wxSize temp4 ;
21950 long val5 ;
21951 int ecode5 = 0 ;
21952 bool temp6 = false ;
21953 PyObject * obj0 = 0 ;
21954 PyObject * obj1 = 0 ;
21955 PyObject * obj2 = 0 ;
21956 PyObject * obj3 = 0 ;
21957 PyObject * obj4 = 0 ;
21958 PyObject * obj5 = 0 ;
21959 char * kwnames[] = {
21960 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21961 };
21962
21963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21965 if (!SWIG_IsOK(res1)) {
21966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21967 }
21968 arg1 = reinterpret_cast< wxWindow * >(argp1);
21969 ecode2 = SWIG_AsVal_int(obj1, &val2);
21970 if (!SWIG_IsOK(ecode2)) {
21971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21972 }
21973 arg2 = static_cast< int >(val2);
21974 if (obj2) {
21975 {
21976 arg3 = &temp3;
21977 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21978 }
21979 }
21980 if (obj3) {
21981 {
21982 arg4 = &temp4;
21983 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21984 }
21985 }
21986 if (obj4) {
21987 ecode5 = SWIG_AsVal_long(obj4, &val5);
21988 if (!SWIG_IsOK(ecode5)) {
21989 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21990 }
21991 arg5 = static_cast< long >(val5);
21992 }
21993 if (obj5) {
21994 {
21995 arg6 = wxString_in_helper(obj5);
21996 if (arg6 == NULL) SWIG_fail;
21997 temp6 = true;
21998 }
21999 }
22000 {
22001 if (!wxPyCheckForApp()) SWIG_fail;
22002 PyThreadState* __tstate = wxPyBeginAllowThreads();
22003 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22004 wxPyEndAllowThreads(__tstate);
22005 if (PyErr_Occurred()) SWIG_fail;
22006 }
22007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
22008 {
22009 if (temp6)
22010 delete arg6;
22011 }
22012 return resultobj;
22013 fail:
22014 {
22015 if (temp6)
22016 delete arg6;
22017 }
22018 return NULL;
22019 }
22020
22021
22022 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22023 PyObject *resultobj = 0;
22024 wxTreebook *result = 0 ;
22025
22026 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
22027 {
22028 if (!wxPyCheckForApp()) SWIG_fail;
22029 PyThreadState* __tstate = wxPyBeginAllowThreads();
22030 result = (wxTreebook *)new wxTreebook();
22031 wxPyEndAllowThreads(__tstate);
22032 if (PyErr_Occurred()) SWIG_fail;
22033 }
22034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
22035 return resultobj;
22036 fail:
22037 return NULL;
22038 }
22039
22040
22041 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22042 PyObject *resultobj = 0;
22043 wxTreebook *arg1 = (wxTreebook *) 0 ;
22044 wxWindow *arg2 = (wxWindow *) 0 ;
22045 int arg3 ;
22046 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22047 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22048 wxSize const &arg5_defvalue = wxDefaultSize ;
22049 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22050 long arg6 = (long) wxBK_DEFAULT ;
22051 wxString const &arg7_defvalue = wxPyEmptyString ;
22052 wxString *arg7 = (wxString *) &arg7_defvalue ;
22053 bool result;
22054 void *argp1 = 0 ;
22055 int res1 = 0 ;
22056 void *argp2 = 0 ;
22057 int res2 = 0 ;
22058 int val3 ;
22059 int ecode3 = 0 ;
22060 wxPoint temp4 ;
22061 wxSize temp5 ;
22062 long val6 ;
22063 int ecode6 = 0 ;
22064 bool temp7 = false ;
22065 PyObject * obj0 = 0 ;
22066 PyObject * obj1 = 0 ;
22067 PyObject * obj2 = 0 ;
22068 PyObject * obj3 = 0 ;
22069 PyObject * obj4 = 0 ;
22070 PyObject * obj5 = 0 ;
22071 PyObject * obj6 = 0 ;
22072 char * kwnames[] = {
22073 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22074 };
22075
22076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22078 if (!SWIG_IsOK(res1)) {
22079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
22080 }
22081 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22082 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22083 if (!SWIG_IsOK(res2)) {
22084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22085 }
22086 arg2 = reinterpret_cast< wxWindow * >(argp2);
22087 ecode3 = SWIG_AsVal_int(obj2, &val3);
22088 if (!SWIG_IsOK(ecode3)) {
22089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22090 }
22091 arg3 = static_cast< int >(val3);
22092 if (obj3) {
22093 {
22094 arg4 = &temp4;
22095 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22096 }
22097 }
22098 if (obj4) {
22099 {
22100 arg5 = &temp5;
22101 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22102 }
22103 }
22104 if (obj5) {
22105 ecode6 = SWIG_AsVal_long(obj5, &val6);
22106 if (!SWIG_IsOK(ecode6)) {
22107 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22108 }
22109 arg6 = static_cast< long >(val6);
22110 }
22111 if (obj6) {
22112 {
22113 arg7 = wxString_in_helper(obj6);
22114 if (arg7 == NULL) SWIG_fail;
22115 temp7 = true;
22116 }
22117 }
22118 {
22119 PyThreadState* __tstate = wxPyBeginAllowThreads();
22120 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22121 wxPyEndAllowThreads(__tstate);
22122 if (PyErr_Occurred()) SWIG_fail;
22123 }
22124 {
22125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22126 }
22127 {
22128 if (temp7)
22129 delete arg7;
22130 }
22131 return resultobj;
22132 fail:
22133 {
22134 if (temp7)
22135 delete arg7;
22136 }
22137 return NULL;
22138 }
22139
22140
22141 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22142 PyObject *resultobj = 0;
22143 wxTreebook *arg1 = (wxTreebook *) 0 ;
22144 size_t arg2 ;
22145 wxWindow *arg3 = (wxWindow *) 0 ;
22146 wxString *arg4 = 0 ;
22147 bool arg5 = (bool) false ;
22148 int arg6 = (int) wxNOT_FOUND ;
22149 bool result;
22150 void *argp1 = 0 ;
22151 int res1 = 0 ;
22152 size_t val2 ;
22153 int ecode2 = 0 ;
22154 void *argp3 = 0 ;
22155 int res3 = 0 ;
22156 bool temp4 = false ;
22157 bool val5 ;
22158 int ecode5 = 0 ;
22159 int val6 ;
22160 int ecode6 = 0 ;
22161 PyObject * obj0 = 0 ;
22162 PyObject * obj1 = 0 ;
22163 PyObject * obj2 = 0 ;
22164 PyObject * obj3 = 0 ;
22165 PyObject * obj4 = 0 ;
22166 PyObject * obj5 = 0 ;
22167 char * kwnames[] = {
22168 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22169 };
22170
22171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22173 if (!SWIG_IsOK(res1)) {
22174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22175 }
22176 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22177 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22178 if (!SWIG_IsOK(ecode2)) {
22179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22180 }
22181 arg2 = static_cast< size_t >(val2);
22182 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22183 if (!SWIG_IsOK(res3)) {
22184 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22185 }
22186 arg3 = reinterpret_cast< wxWindow * >(argp3);
22187 {
22188 arg4 = wxString_in_helper(obj3);
22189 if (arg4 == NULL) SWIG_fail;
22190 temp4 = true;
22191 }
22192 if (obj4) {
22193 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22194 if (!SWIG_IsOK(ecode5)) {
22195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22196 }
22197 arg5 = static_cast< bool >(val5);
22198 }
22199 if (obj5) {
22200 ecode6 = SWIG_AsVal_int(obj5, &val6);
22201 if (!SWIG_IsOK(ecode6)) {
22202 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22203 }
22204 arg6 = static_cast< int >(val6);
22205 }
22206 {
22207 PyThreadState* __tstate = wxPyBeginAllowThreads();
22208 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 {
22213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22214 }
22215 {
22216 if (temp4)
22217 delete arg4;
22218 }
22219 return resultobj;
22220 fail:
22221 {
22222 if (temp4)
22223 delete arg4;
22224 }
22225 return NULL;
22226 }
22227
22228
22229 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22230 PyObject *resultobj = 0;
22231 wxTreebook *arg1 = (wxTreebook *) 0 ;
22232 wxWindow *arg2 = (wxWindow *) 0 ;
22233 wxString *arg3 = 0 ;
22234 bool arg4 = (bool) false ;
22235 int arg5 = (int) wxNOT_FOUND ;
22236 bool result;
22237 void *argp1 = 0 ;
22238 int res1 = 0 ;
22239 void *argp2 = 0 ;
22240 int res2 = 0 ;
22241 bool temp3 = false ;
22242 bool val4 ;
22243 int ecode4 = 0 ;
22244 int val5 ;
22245 int ecode5 = 0 ;
22246 PyObject * obj0 = 0 ;
22247 PyObject * obj1 = 0 ;
22248 PyObject * obj2 = 0 ;
22249 PyObject * obj3 = 0 ;
22250 PyObject * obj4 = 0 ;
22251 char * kwnames[] = {
22252 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22253 };
22254
22255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22257 if (!SWIG_IsOK(res1)) {
22258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22259 }
22260 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22261 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22262 if (!SWIG_IsOK(res2)) {
22263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22264 }
22265 arg2 = reinterpret_cast< wxWindow * >(argp2);
22266 {
22267 arg3 = wxString_in_helper(obj2);
22268 if (arg3 == NULL) SWIG_fail;
22269 temp3 = true;
22270 }
22271 if (obj3) {
22272 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22273 if (!SWIG_IsOK(ecode4)) {
22274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22275 }
22276 arg4 = static_cast< bool >(val4);
22277 }
22278 if (obj4) {
22279 ecode5 = SWIG_AsVal_int(obj4, &val5);
22280 if (!SWIG_IsOK(ecode5)) {
22281 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22282 }
22283 arg5 = static_cast< int >(val5);
22284 }
22285 {
22286 PyThreadState* __tstate = wxPyBeginAllowThreads();
22287 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22288 wxPyEndAllowThreads(__tstate);
22289 if (PyErr_Occurred()) SWIG_fail;
22290 }
22291 {
22292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22293 }
22294 {
22295 if (temp3)
22296 delete arg3;
22297 }
22298 return resultobj;
22299 fail:
22300 {
22301 if (temp3)
22302 delete arg3;
22303 }
22304 return NULL;
22305 }
22306
22307
22308 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22309 PyObject *resultobj = 0;
22310 wxTreebook *arg1 = (wxTreebook *) 0 ;
22311 size_t arg2 ;
22312 bool result;
22313 void *argp1 = 0 ;
22314 int res1 = 0 ;
22315 size_t val2 ;
22316 int ecode2 = 0 ;
22317 PyObject * obj0 = 0 ;
22318 PyObject * obj1 = 0 ;
22319 char * kwnames[] = {
22320 (char *) "self",(char *) "pos", NULL
22321 };
22322
22323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22325 if (!SWIG_IsOK(res1)) {
22326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22327 }
22328 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22329 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22330 if (!SWIG_IsOK(ecode2)) {
22331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22332 }
22333 arg2 = static_cast< size_t >(val2);
22334 {
22335 PyThreadState* __tstate = wxPyBeginAllowThreads();
22336 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22337 wxPyEndAllowThreads(__tstate);
22338 if (PyErr_Occurred()) SWIG_fail;
22339 }
22340 {
22341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22342 }
22343 return resultobj;
22344 fail:
22345 return NULL;
22346 }
22347
22348
22349 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22350 PyObject *resultobj = 0;
22351 wxTreebook *arg1 = (wxTreebook *) 0 ;
22352 size_t arg2 ;
22353 bool arg3 = (bool) true ;
22354 bool result;
22355 void *argp1 = 0 ;
22356 int res1 = 0 ;
22357 size_t val2 ;
22358 int ecode2 = 0 ;
22359 bool val3 ;
22360 int ecode3 = 0 ;
22361 PyObject * obj0 = 0 ;
22362 PyObject * obj1 = 0 ;
22363 PyObject * obj2 = 0 ;
22364 char * kwnames[] = {
22365 (char *) "self",(char *) "pos",(char *) "expand", NULL
22366 };
22367
22368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22370 if (!SWIG_IsOK(res1)) {
22371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22372 }
22373 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22374 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22375 if (!SWIG_IsOK(ecode2)) {
22376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22377 }
22378 arg2 = static_cast< size_t >(val2);
22379 if (obj2) {
22380 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22381 if (!SWIG_IsOK(ecode3)) {
22382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22383 }
22384 arg3 = static_cast< bool >(val3);
22385 }
22386 {
22387 PyThreadState* __tstate = wxPyBeginAllowThreads();
22388 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22389 wxPyEndAllowThreads(__tstate);
22390 if (PyErr_Occurred()) SWIG_fail;
22391 }
22392 {
22393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22394 }
22395 return resultobj;
22396 fail:
22397 return NULL;
22398 }
22399
22400
22401 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22402 PyObject *resultobj = 0;
22403 wxTreebook *arg1 = (wxTreebook *) 0 ;
22404 size_t arg2 ;
22405 bool result;
22406 void *argp1 = 0 ;
22407 int res1 = 0 ;
22408 size_t val2 ;
22409 int ecode2 = 0 ;
22410 PyObject * obj0 = 0 ;
22411 PyObject * obj1 = 0 ;
22412 char * kwnames[] = {
22413 (char *) "self",(char *) "pos", NULL
22414 };
22415
22416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22418 if (!SWIG_IsOK(res1)) {
22419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22420 }
22421 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22422 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22423 if (!SWIG_IsOK(ecode2)) {
22424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22425 }
22426 arg2 = static_cast< size_t >(val2);
22427 {
22428 PyThreadState* __tstate = wxPyBeginAllowThreads();
22429 result = (bool)(arg1)->CollapseNode(arg2);
22430 wxPyEndAllowThreads(__tstate);
22431 if (PyErr_Occurred()) SWIG_fail;
22432 }
22433 {
22434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22435 }
22436 return resultobj;
22437 fail:
22438 return NULL;
22439 }
22440
22441
22442 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22443 PyObject *resultobj = 0;
22444 wxTreebook *arg1 = (wxTreebook *) 0 ;
22445 size_t arg2 ;
22446 int result;
22447 void *argp1 = 0 ;
22448 int res1 = 0 ;
22449 size_t val2 ;
22450 int ecode2 = 0 ;
22451 PyObject * obj0 = 0 ;
22452 PyObject * obj1 = 0 ;
22453 char * kwnames[] = {
22454 (char *) "self",(char *) "pos", NULL
22455 };
22456
22457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22459 if (!SWIG_IsOK(res1)) {
22460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22461 }
22462 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22463 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22464 if (!SWIG_IsOK(ecode2)) {
22465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22466 }
22467 arg2 = static_cast< size_t >(val2);
22468 {
22469 PyThreadState* __tstate = wxPyBeginAllowThreads();
22470 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22471 wxPyEndAllowThreads(__tstate);
22472 if (PyErr_Occurred()) SWIG_fail;
22473 }
22474 resultobj = SWIG_From_int(static_cast< int >(result));
22475 return resultobj;
22476 fail:
22477 return NULL;
22478 }
22479
22480
22481 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22482 PyObject *resultobj = 0;
22483 wxTreebook *arg1 = (wxTreebook *) 0 ;
22484 wxPyTreeCtrl *result = 0 ;
22485 void *argp1 = 0 ;
22486 int res1 = 0 ;
22487 PyObject *swig_obj[1] ;
22488
22489 if (!args) SWIG_fail;
22490 swig_obj[0] = args;
22491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22492 if (!SWIG_IsOK(res1)) {
22493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22494 }
22495 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22496 {
22497 PyThreadState* __tstate = wxPyBeginAllowThreads();
22498 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22499 wxPyEndAllowThreads(__tstate);
22500 if (PyErr_Occurred()) SWIG_fail;
22501 }
22502 {
22503 resultobj = wxPyMake_wxObject(result, (bool)0);
22504 }
22505 return resultobj;
22506 fail:
22507 return NULL;
22508 }
22509
22510
22511 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22512 PyObject *obj;
22513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22514 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22515 return SWIG_Py_Void();
22516 }
22517
22518 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22519 return SWIG_Python_InitShadowInstance(args);
22520 }
22521
22522 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22523 PyObject *resultobj = 0;
22524 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22525 int arg2 = (int) 0 ;
22526 int arg3 = (int) wxNOT_FOUND ;
22527 int arg4 = (int) wxNOT_FOUND ;
22528 wxTreebookEvent *result = 0 ;
22529 int val1 ;
22530 int ecode1 = 0 ;
22531 int val2 ;
22532 int ecode2 = 0 ;
22533 int val3 ;
22534 int ecode3 = 0 ;
22535 int val4 ;
22536 int ecode4 = 0 ;
22537 PyObject * obj0 = 0 ;
22538 PyObject * obj1 = 0 ;
22539 PyObject * obj2 = 0 ;
22540 PyObject * obj3 = 0 ;
22541 char * kwnames[] = {
22542 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22543 };
22544
22545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22546 if (obj0) {
22547 ecode1 = SWIG_AsVal_int(obj0, &val1);
22548 if (!SWIG_IsOK(ecode1)) {
22549 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22550 }
22551 arg1 = static_cast< wxEventType >(val1);
22552 }
22553 if (obj1) {
22554 ecode2 = SWIG_AsVal_int(obj1, &val2);
22555 if (!SWIG_IsOK(ecode2)) {
22556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22557 }
22558 arg2 = static_cast< int >(val2);
22559 }
22560 if (obj2) {
22561 ecode3 = SWIG_AsVal_int(obj2, &val3);
22562 if (!SWIG_IsOK(ecode3)) {
22563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22564 }
22565 arg3 = static_cast< int >(val3);
22566 }
22567 if (obj3) {
22568 ecode4 = SWIG_AsVal_int(obj3, &val4);
22569 if (!SWIG_IsOK(ecode4)) {
22570 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22571 }
22572 arg4 = static_cast< int >(val4);
22573 }
22574 {
22575 PyThreadState* __tstate = wxPyBeginAllowThreads();
22576 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22577 wxPyEndAllowThreads(__tstate);
22578 if (PyErr_Occurred()) SWIG_fail;
22579 }
22580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22581 return resultobj;
22582 fail:
22583 return NULL;
22584 }
22585
22586
22587 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22588 PyObject *obj;
22589 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22590 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22591 return SWIG_Py_Void();
22592 }
22593
22594 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22595 return SWIG_Python_InitShadowInstance(args);
22596 }
22597
22598 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22599 PyObject *resultobj = 0;
22600 wxWindow *arg1 = (wxWindow *) 0 ;
22601 int arg2 ;
22602 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22603 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22604 wxSize const &arg4_defvalue = wxDefaultSize ;
22605 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22606 long arg5 = (long) wxBK_DEFAULT ;
22607 wxString const &arg6_defvalue = wxPyEmptyString ;
22608 wxString *arg6 = (wxString *) &arg6_defvalue ;
22609 wxToolbook *result = 0 ;
22610 void *argp1 = 0 ;
22611 int res1 = 0 ;
22612 int val2 ;
22613 int ecode2 = 0 ;
22614 wxPoint temp3 ;
22615 wxSize temp4 ;
22616 long val5 ;
22617 int ecode5 = 0 ;
22618 bool temp6 = false ;
22619 PyObject * obj0 = 0 ;
22620 PyObject * obj1 = 0 ;
22621 PyObject * obj2 = 0 ;
22622 PyObject * obj3 = 0 ;
22623 PyObject * obj4 = 0 ;
22624 PyObject * obj5 = 0 ;
22625 char * kwnames[] = {
22626 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22627 };
22628
22629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22631 if (!SWIG_IsOK(res1)) {
22632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22633 }
22634 arg1 = reinterpret_cast< wxWindow * >(argp1);
22635 ecode2 = SWIG_AsVal_int(obj1, &val2);
22636 if (!SWIG_IsOK(ecode2)) {
22637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22638 }
22639 arg2 = static_cast< int >(val2);
22640 if (obj2) {
22641 {
22642 arg3 = &temp3;
22643 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22644 }
22645 }
22646 if (obj3) {
22647 {
22648 arg4 = &temp4;
22649 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22650 }
22651 }
22652 if (obj4) {
22653 ecode5 = SWIG_AsVal_long(obj4, &val5);
22654 if (!SWIG_IsOK(ecode5)) {
22655 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22656 }
22657 arg5 = static_cast< long >(val5);
22658 }
22659 if (obj5) {
22660 {
22661 arg6 = wxString_in_helper(obj5);
22662 if (arg6 == NULL) SWIG_fail;
22663 temp6 = true;
22664 }
22665 }
22666 {
22667 PyThreadState* __tstate = wxPyBeginAllowThreads();
22668 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22669 wxPyEndAllowThreads(__tstate);
22670 if (PyErr_Occurred()) SWIG_fail;
22671 }
22672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22673 {
22674 if (temp6)
22675 delete arg6;
22676 }
22677 return resultobj;
22678 fail:
22679 {
22680 if (temp6)
22681 delete arg6;
22682 }
22683 return NULL;
22684 }
22685
22686
22687 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22688 PyObject *resultobj = 0;
22689 wxToolbook *result = 0 ;
22690
22691 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22692 {
22693 PyThreadState* __tstate = wxPyBeginAllowThreads();
22694 result = (wxToolbook *)new wxToolbook();
22695 wxPyEndAllowThreads(__tstate);
22696 if (PyErr_Occurred()) SWIG_fail;
22697 }
22698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22699 return resultobj;
22700 fail:
22701 return NULL;
22702 }
22703
22704
22705 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22706 PyObject *resultobj = 0;
22707 wxToolbook *arg1 = (wxToolbook *) 0 ;
22708 wxWindow *arg2 = (wxWindow *) 0 ;
22709 int arg3 ;
22710 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22711 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22712 wxSize const &arg5_defvalue = wxDefaultSize ;
22713 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22714 long arg6 = (long) 0 ;
22715 wxString const &arg7_defvalue = wxEmptyString ;
22716 wxString *arg7 = (wxString *) &arg7_defvalue ;
22717 bool result;
22718 void *argp1 = 0 ;
22719 int res1 = 0 ;
22720 void *argp2 = 0 ;
22721 int res2 = 0 ;
22722 int val3 ;
22723 int ecode3 = 0 ;
22724 wxPoint temp4 ;
22725 wxSize temp5 ;
22726 long val6 ;
22727 int ecode6 = 0 ;
22728 bool temp7 = false ;
22729 PyObject * obj0 = 0 ;
22730 PyObject * obj1 = 0 ;
22731 PyObject * obj2 = 0 ;
22732 PyObject * obj3 = 0 ;
22733 PyObject * obj4 = 0 ;
22734 PyObject * obj5 = 0 ;
22735 PyObject * obj6 = 0 ;
22736 char * kwnames[] = {
22737 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22738 };
22739
22740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22742 if (!SWIG_IsOK(res1)) {
22743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22744 }
22745 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22746 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22747 if (!SWIG_IsOK(res2)) {
22748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22749 }
22750 arg2 = reinterpret_cast< wxWindow * >(argp2);
22751 ecode3 = SWIG_AsVal_int(obj2, &val3);
22752 if (!SWIG_IsOK(ecode3)) {
22753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22754 }
22755 arg3 = static_cast< int >(val3);
22756 if (obj3) {
22757 {
22758 arg4 = &temp4;
22759 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22760 }
22761 }
22762 if (obj4) {
22763 {
22764 arg5 = &temp5;
22765 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22766 }
22767 }
22768 if (obj5) {
22769 ecode6 = SWIG_AsVal_long(obj5, &val6);
22770 if (!SWIG_IsOK(ecode6)) {
22771 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22772 }
22773 arg6 = static_cast< long >(val6);
22774 }
22775 if (obj6) {
22776 {
22777 arg7 = wxString_in_helper(obj6);
22778 if (arg7 == NULL) SWIG_fail;
22779 temp7 = true;
22780 }
22781 }
22782 {
22783 PyThreadState* __tstate = wxPyBeginAllowThreads();
22784 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22785 wxPyEndAllowThreads(__tstate);
22786 if (PyErr_Occurred()) SWIG_fail;
22787 }
22788 {
22789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22790 }
22791 {
22792 if (temp7)
22793 delete arg7;
22794 }
22795 return resultobj;
22796 fail:
22797 {
22798 if (temp7)
22799 delete arg7;
22800 }
22801 return NULL;
22802 }
22803
22804
22805 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22806 PyObject *resultobj = 0;
22807 wxToolbook *arg1 = (wxToolbook *) 0 ;
22808 wxToolBarBase *result = 0 ;
22809 void *argp1 = 0 ;
22810 int res1 = 0 ;
22811 PyObject *swig_obj[1] ;
22812
22813 if (!args) SWIG_fail;
22814 swig_obj[0] = args;
22815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22816 if (!SWIG_IsOK(res1)) {
22817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22818 }
22819 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22820 {
22821 PyThreadState* __tstate = wxPyBeginAllowThreads();
22822 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22823 wxPyEndAllowThreads(__tstate);
22824 if (PyErr_Occurred()) SWIG_fail;
22825 }
22826 {
22827 resultobj = wxPyMake_wxObject(result, (bool)0);
22828 }
22829 return resultobj;
22830 fail:
22831 return NULL;
22832 }
22833
22834
22835 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22836 PyObject *resultobj = 0;
22837 wxToolbook *arg1 = (wxToolbook *) 0 ;
22838 void *argp1 = 0 ;
22839 int res1 = 0 ;
22840 PyObject *swig_obj[1] ;
22841
22842 if (!args) SWIG_fail;
22843 swig_obj[0] = args;
22844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22845 if (!SWIG_IsOK(res1)) {
22846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22847 }
22848 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22849 {
22850 PyThreadState* __tstate = wxPyBeginAllowThreads();
22851 (arg1)->Realize();
22852 wxPyEndAllowThreads(__tstate);
22853 if (PyErr_Occurred()) SWIG_fail;
22854 }
22855 resultobj = SWIG_Py_Void();
22856 return resultobj;
22857 fail:
22858 return NULL;
22859 }
22860
22861
22862 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22863 PyObject *obj;
22864 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22865 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22866 return SWIG_Py_Void();
22867 }
22868
22869 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22870 return SWIG_Python_InitShadowInstance(args);
22871 }
22872
22873 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22874 PyObject *resultobj = 0;
22875 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22876 int arg2 = (int) 0 ;
22877 int arg3 = (int) wxNOT_FOUND ;
22878 int arg4 = (int) wxNOT_FOUND ;
22879 wxToolbookEvent *result = 0 ;
22880 int val1 ;
22881 int ecode1 = 0 ;
22882 int val2 ;
22883 int ecode2 = 0 ;
22884 int val3 ;
22885 int ecode3 = 0 ;
22886 int val4 ;
22887 int ecode4 = 0 ;
22888 PyObject * obj0 = 0 ;
22889 PyObject * obj1 = 0 ;
22890 PyObject * obj2 = 0 ;
22891 PyObject * obj3 = 0 ;
22892 char * kwnames[] = {
22893 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22894 };
22895
22896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22897 if (obj0) {
22898 ecode1 = SWIG_AsVal_int(obj0, &val1);
22899 if (!SWIG_IsOK(ecode1)) {
22900 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22901 }
22902 arg1 = static_cast< wxEventType >(val1);
22903 }
22904 if (obj1) {
22905 ecode2 = SWIG_AsVal_int(obj1, &val2);
22906 if (!SWIG_IsOK(ecode2)) {
22907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22908 }
22909 arg2 = static_cast< int >(val2);
22910 }
22911 if (obj2) {
22912 ecode3 = SWIG_AsVal_int(obj2, &val3);
22913 if (!SWIG_IsOK(ecode3)) {
22914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22915 }
22916 arg3 = static_cast< int >(val3);
22917 }
22918 if (obj3) {
22919 ecode4 = SWIG_AsVal_int(obj3, &val4);
22920 if (!SWIG_IsOK(ecode4)) {
22921 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22922 }
22923 arg4 = static_cast< int >(val4);
22924 }
22925 {
22926 PyThreadState* __tstate = wxPyBeginAllowThreads();
22927 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22928 wxPyEndAllowThreads(__tstate);
22929 if (PyErr_Occurred()) SWIG_fail;
22930 }
22931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22932 return resultobj;
22933 fail:
22934 return NULL;
22935 }
22936
22937
22938 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22939 PyObject *obj;
22940 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22941 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22942 return SWIG_Py_Void();
22943 }
22944
22945 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22946 return SWIG_Python_InitShadowInstance(args);
22947 }
22948
22949 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22950 PyObject *resultobj = 0;
22951 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22952 int result;
22953 void *argp1 = 0 ;
22954 int res1 = 0 ;
22955 PyObject *swig_obj[1] ;
22956
22957 if (!args) SWIG_fail;
22958 swig_obj[0] = args;
22959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22960 if (!SWIG_IsOK(res1)) {
22961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22962 }
22963 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22964 {
22965 PyThreadState* __tstate = wxPyBeginAllowThreads();
22966 result = (int)(arg1)->GetId();
22967 wxPyEndAllowThreads(__tstate);
22968 if (PyErr_Occurred()) SWIG_fail;
22969 }
22970 resultobj = SWIG_From_int(static_cast< int >(result));
22971 return resultobj;
22972 fail:
22973 return NULL;
22974 }
22975
22976
22977 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22978 PyObject *resultobj = 0;
22979 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22980 wxControl *result = 0 ;
22981 void *argp1 = 0 ;
22982 int res1 = 0 ;
22983 PyObject *swig_obj[1] ;
22984
22985 if (!args) SWIG_fail;
22986 swig_obj[0] = args;
22987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22988 if (!SWIG_IsOK(res1)) {
22989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22990 }
22991 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22992 {
22993 PyThreadState* __tstate = wxPyBeginAllowThreads();
22994 result = (wxControl *)(arg1)->GetControl();
22995 wxPyEndAllowThreads(__tstate);
22996 if (PyErr_Occurred()) SWIG_fail;
22997 }
22998 {
22999 resultobj = wxPyMake_wxObject(result, 0);
23000 }
23001 return resultobj;
23002 fail:
23003 return NULL;
23004 }
23005
23006
23007 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23008 PyObject *resultobj = 0;
23009 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23010 wxToolBarBase *result = 0 ;
23011 void *argp1 = 0 ;
23012 int res1 = 0 ;
23013 PyObject *swig_obj[1] ;
23014
23015 if (!args) SWIG_fail;
23016 swig_obj[0] = args;
23017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23018 if (!SWIG_IsOK(res1)) {
23019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23020 }
23021 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23022 {
23023 PyThreadState* __tstate = wxPyBeginAllowThreads();
23024 result = (wxToolBarBase *)(arg1)->GetToolBar();
23025 wxPyEndAllowThreads(__tstate);
23026 if (PyErr_Occurred()) SWIG_fail;
23027 }
23028 {
23029 resultobj = wxPyMake_wxObject(result, (bool)0);
23030 }
23031 return resultobj;
23032 fail:
23033 return NULL;
23034 }
23035
23036
23037 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23038 PyObject *resultobj = 0;
23039 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23040 int result;
23041 void *argp1 = 0 ;
23042 int res1 = 0 ;
23043 PyObject *swig_obj[1] ;
23044
23045 if (!args) SWIG_fail;
23046 swig_obj[0] = args;
23047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23048 if (!SWIG_IsOK(res1)) {
23049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23050 }
23051 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23052 {
23053 PyThreadState* __tstate = wxPyBeginAllowThreads();
23054 result = (int)(arg1)->IsButton();
23055 wxPyEndAllowThreads(__tstate);
23056 if (PyErr_Occurred()) SWIG_fail;
23057 }
23058 resultobj = SWIG_From_int(static_cast< int >(result));
23059 return resultobj;
23060 fail:
23061 return NULL;
23062 }
23063
23064
23065 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23066 PyObject *resultobj = 0;
23067 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23068 int result;
23069 void *argp1 = 0 ;
23070 int res1 = 0 ;
23071 PyObject *swig_obj[1] ;
23072
23073 if (!args) SWIG_fail;
23074 swig_obj[0] = args;
23075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23076 if (!SWIG_IsOK(res1)) {
23077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23078 }
23079 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23080 {
23081 PyThreadState* __tstate = wxPyBeginAllowThreads();
23082 result = (int)(arg1)->IsControl();
23083 wxPyEndAllowThreads(__tstate);
23084 if (PyErr_Occurred()) SWIG_fail;
23085 }
23086 resultobj = SWIG_From_int(static_cast< int >(result));
23087 return resultobj;
23088 fail:
23089 return NULL;
23090 }
23091
23092
23093 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23094 PyObject *resultobj = 0;
23095 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23096 int result;
23097 void *argp1 = 0 ;
23098 int res1 = 0 ;
23099 PyObject *swig_obj[1] ;
23100
23101 if (!args) SWIG_fail;
23102 swig_obj[0] = args;
23103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23104 if (!SWIG_IsOK(res1)) {
23105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23106 }
23107 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23108 {
23109 PyThreadState* __tstate = wxPyBeginAllowThreads();
23110 result = (int)(arg1)->IsSeparator();
23111 wxPyEndAllowThreads(__tstate);
23112 if (PyErr_Occurred()) SWIG_fail;
23113 }
23114 resultobj = SWIG_From_int(static_cast< int >(result));
23115 return resultobj;
23116 fail:
23117 return NULL;
23118 }
23119
23120
23121 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23122 PyObject *resultobj = 0;
23123 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23124 int result;
23125 void *argp1 = 0 ;
23126 int res1 = 0 ;
23127 PyObject *swig_obj[1] ;
23128
23129 if (!args) SWIG_fail;
23130 swig_obj[0] = args;
23131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23132 if (!SWIG_IsOK(res1)) {
23133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23134 }
23135 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23136 {
23137 PyThreadState* __tstate = wxPyBeginAllowThreads();
23138 result = (int)(arg1)->GetStyle();
23139 wxPyEndAllowThreads(__tstate);
23140 if (PyErr_Occurred()) SWIG_fail;
23141 }
23142 resultobj = SWIG_From_int(static_cast< int >(result));
23143 return resultobj;
23144 fail:
23145 return NULL;
23146 }
23147
23148
23149 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23150 PyObject *resultobj = 0;
23151 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23152 wxItemKind result;
23153 void *argp1 = 0 ;
23154 int res1 = 0 ;
23155 PyObject *swig_obj[1] ;
23156
23157 if (!args) SWIG_fail;
23158 swig_obj[0] = args;
23159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23160 if (!SWIG_IsOK(res1)) {
23161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23162 }
23163 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23164 {
23165 PyThreadState* __tstate = wxPyBeginAllowThreads();
23166 result = (wxItemKind)(arg1)->GetKind();
23167 wxPyEndAllowThreads(__tstate);
23168 if (PyErr_Occurred()) SWIG_fail;
23169 }
23170 resultobj = SWIG_From_int(static_cast< int >(result));
23171 return resultobj;
23172 fail:
23173 return NULL;
23174 }
23175
23176
23177 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23178 PyObject *resultobj = 0;
23179 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23180 bool result;
23181 void *argp1 = 0 ;
23182 int res1 = 0 ;
23183 PyObject *swig_obj[1] ;
23184
23185 if (!args) SWIG_fail;
23186 swig_obj[0] = args;
23187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23188 if (!SWIG_IsOK(res1)) {
23189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23190 }
23191 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23192 {
23193 PyThreadState* __tstate = wxPyBeginAllowThreads();
23194 result = (bool)(arg1)->IsEnabled();
23195 wxPyEndAllowThreads(__tstate);
23196 if (PyErr_Occurred()) SWIG_fail;
23197 }
23198 {
23199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23200 }
23201 return resultobj;
23202 fail:
23203 return NULL;
23204 }
23205
23206
23207 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23208 PyObject *resultobj = 0;
23209 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23210 bool result;
23211 void *argp1 = 0 ;
23212 int res1 = 0 ;
23213 PyObject *swig_obj[1] ;
23214
23215 if (!args) SWIG_fail;
23216 swig_obj[0] = args;
23217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23218 if (!SWIG_IsOK(res1)) {
23219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23220 }
23221 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23222 {
23223 PyThreadState* __tstate = wxPyBeginAllowThreads();
23224 result = (bool)(arg1)->IsToggled();
23225 wxPyEndAllowThreads(__tstate);
23226 if (PyErr_Occurred()) SWIG_fail;
23227 }
23228 {
23229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23230 }
23231 return resultobj;
23232 fail:
23233 return NULL;
23234 }
23235
23236
23237 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23238 PyObject *resultobj = 0;
23239 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23240 bool result;
23241 void *argp1 = 0 ;
23242 int res1 = 0 ;
23243 PyObject *swig_obj[1] ;
23244
23245 if (!args) SWIG_fail;
23246 swig_obj[0] = args;
23247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23248 if (!SWIG_IsOK(res1)) {
23249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23250 }
23251 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 result = (bool)(arg1)->CanBeToggled();
23255 wxPyEndAllowThreads(__tstate);
23256 if (PyErr_Occurred()) SWIG_fail;
23257 }
23258 {
23259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23260 }
23261 return resultobj;
23262 fail:
23263 return NULL;
23264 }
23265
23266
23267 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23268 PyObject *resultobj = 0;
23269 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23270 wxBitmap *result = 0 ;
23271 void *argp1 = 0 ;
23272 int res1 = 0 ;
23273 PyObject *swig_obj[1] ;
23274
23275 if (!args) SWIG_fail;
23276 swig_obj[0] = args;
23277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23278 if (!SWIG_IsOK(res1)) {
23279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23280 }
23281 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23282 {
23283 PyThreadState* __tstate = wxPyBeginAllowThreads();
23284 {
23285 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23286 result = (wxBitmap *) &_result_ref;
23287 }
23288 wxPyEndAllowThreads(__tstate);
23289 if (PyErr_Occurred()) SWIG_fail;
23290 }
23291 {
23292 wxBitmap* resultptr = new wxBitmap(*result);
23293 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23294 }
23295 return resultobj;
23296 fail:
23297 return NULL;
23298 }
23299
23300
23301 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23302 PyObject *resultobj = 0;
23303 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23304 wxBitmap *result = 0 ;
23305 void *argp1 = 0 ;
23306 int res1 = 0 ;
23307 PyObject *swig_obj[1] ;
23308
23309 if (!args) SWIG_fail;
23310 swig_obj[0] = args;
23311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23312 if (!SWIG_IsOK(res1)) {
23313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23314 }
23315 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23316 {
23317 PyThreadState* __tstate = wxPyBeginAllowThreads();
23318 {
23319 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23320 result = (wxBitmap *) &_result_ref;
23321 }
23322 wxPyEndAllowThreads(__tstate);
23323 if (PyErr_Occurred()) SWIG_fail;
23324 }
23325 {
23326 wxBitmap* resultptr = new wxBitmap(*result);
23327 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23328 }
23329 return resultobj;
23330 fail:
23331 return NULL;
23332 }
23333
23334
23335 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23336 PyObject *resultobj = 0;
23337 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23338 wxBitmap result;
23339 void *argp1 = 0 ;
23340 int res1 = 0 ;
23341 PyObject *swig_obj[1] ;
23342
23343 if (!args) SWIG_fail;
23344 swig_obj[0] = args;
23345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23346 if (!SWIG_IsOK(res1)) {
23347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23348 }
23349 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23350 {
23351 PyThreadState* __tstate = wxPyBeginAllowThreads();
23352 result = (arg1)->GetBitmap();
23353 wxPyEndAllowThreads(__tstate);
23354 if (PyErr_Occurred()) SWIG_fail;
23355 }
23356 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23357 return resultobj;
23358 fail:
23359 return NULL;
23360 }
23361
23362
23363 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23364 PyObject *resultobj = 0;
23365 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23366 wxString result;
23367 void *argp1 = 0 ;
23368 int res1 = 0 ;
23369 PyObject *swig_obj[1] ;
23370
23371 if (!args) SWIG_fail;
23372 swig_obj[0] = args;
23373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23374 if (!SWIG_IsOK(res1)) {
23375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23376 }
23377 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23378 {
23379 PyThreadState* __tstate = wxPyBeginAllowThreads();
23380 result = (arg1)->GetLabel();
23381 wxPyEndAllowThreads(__tstate);
23382 if (PyErr_Occurred()) SWIG_fail;
23383 }
23384 {
23385 #if wxUSE_UNICODE
23386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23387 #else
23388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23389 #endif
23390 }
23391 return resultobj;
23392 fail:
23393 return NULL;
23394 }
23395
23396
23397 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23398 PyObject *resultobj = 0;
23399 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23400 wxString result;
23401 void *argp1 = 0 ;
23402 int res1 = 0 ;
23403 PyObject *swig_obj[1] ;
23404
23405 if (!args) SWIG_fail;
23406 swig_obj[0] = args;
23407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23408 if (!SWIG_IsOK(res1)) {
23409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23410 }
23411 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23412 {
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 result = (arg1)->GetShortHelp();
23415 wxPyEndAllowThreads(__tstate);
23416 if (PyErr_Occurred()) SWIG_fail;
23417 }
23418 {
23419 #if wxUSE_UNICODE
23420 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23421 #else
23422 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23423 #endif
23424 }
23425 return resultobj;
23426 fail:
23427 return NULL;
23428 }
23429
23430
23431 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23432 PyObject *resultobj = 0;
23433 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23434 wxString result;
23435 void *argp1 = 0 ;
23436 int res1 = 0 ;
23437 PyObject *swig_obj[1] ;
23438
23439 if (!args) SWIG_fail;
23440 swig_obj[0] = args;
23441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23442 if (!SWIG_IsOK(res1)) {
23443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23444 }
23445 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23446 {
23447 PyThreadState* __tstate = wxPyBeginAllowThreads();
23448 result = (arg1)->GetLongHelp();
23449 wxPyEndAllowThreads(__tstate);
23450 if (PyErr_Occurred()) SWIG_fail;
23451 }
23452 {
23453 #if wxUSE_UNICODE
23454 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23455 #else
23456 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23457 #endif
23458 }
23459 return resultobj;
23460 fail:
23461 return NULL;
23462 }
23463
23464
23465 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23466 PyObject *resultobj = 0;
23467 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23468 bool arg2 ;
23469 bool result;
23470 void *argp1 = 0 ;
23471 int res1 = 0 ;
23472 bool val2 ;
23473 int ecode2 = 0 ;
23474 PyObject * obj0 = 0 ;
23475 PyObject * obj1 = 0 ;
23476 char * kwnames[] = {
23477 (char *) "self",(char *) "enable", NULL
23478 };
23479
23480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23482 if (!SWIG_IsOK(res1)) {
23483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23484 }
23485 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23486 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23487 if (!SWIG_IsOK(ecode2)) {
23488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23489 }
23490 arg2 = static_cast< bool >(val2);
23491 {
23492 PyThreadState* __tstate = wxPyBeginAllowThreads();
23493 result = (bool)(arg1)->Enable(arg2);
23494 wxPyEndAllowThreads(__tstate);
23495 if (PyErr_Occurred()) SWIG_fail;
23496 }
23497 {
23498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23499 }
23500 return resultobj;
23501 fail:
23502 return NULL;
23503 }
23504
23505
23506 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23507 PyObject *resultobj = 0;
23508 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23509 void *argp1 = 0 ;
23510 int res1 = 0 ;
23511 PyObject *swig_obj[1] ;
23512
23513 if (!args) SWIG_fail;
23514 swig_obj[0] = args;
23515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23516 if (!SWIG_IsOK(res1)) {
23517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23518 }
23519 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23520 {
23521 PyThreadState* __tstate = wxPyBeginAllowThreads();
23522 (arg1)->Toggle();
23523 wxPyEndAllowThreads(__tstate);
23524 if (PyErr_Occurred()) SWIG_fail;
23525 }
23526 resultobj = SWIG_Py_Void();
23527 return resultobj;
23528 fail:
23529 return NULL;
23530 }
23531
23532
23533 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23534 PyObject *resultobj = 0;
23535 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23536 bool arg2 ;
23537 bool result;
23538 void *argp1 = 0 ;
23539 int res1 = 0 ;
23540 bool val2 ;
23541 int ecode2 = 0 ;
23542 PyObject * obj0 = 0 ;
23543 PyObject * obj1 = 0 ;
23544 char * kwnames[] = {
23545 (char *) "self",(char *) "toggle", NULL
23546 };
23547
23548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23550 if (!SWIG_IsOK(res1)) {
23551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23552 }
23553 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23554 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23555 if (!SWIG_IsOK(ecode2)) {
23556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23557 }
23558 arg2 = static_cast< bool >(val2);
23559 {
23560 PyThreadState* __tstate = wxPyBeginAllowThreads();
23561 result = (bool)(arg1)->SetToggle(arg2);
23562 wxPyEndAllowThreads(__tstate);
23563 if (PyErr_Occurred()) SWIG_fail;
23564 }
23565 {
23566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23567 }
23568 return resultobj;
23569 fail:
23570 return NULL;
23571 }
23572
23573
23574 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23575 PyObject *resultobj = 0;
23576 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23577 wxString *arg2 = 0 ;
23578 bool result;
23579 void *argp1 = 0 ;
23580 int res1 = 0 ;
23581 bool temp2 = false ;
23582 PyObject * obj0 = 0 ;
23583 PyObject * obj1 = 0 ;
23584 char * kwnames[] = {
23585 (char *) "self",(char *) "help", NULL
23586 };
23587
23588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23590 if (!SWIG_IsOK(res1)) {
23591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23592 }
23593 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23594 {
23595 arg2 = wxString_in_helper(obj1);
23596 if (arg2 == NULL) SWIG_fail;
23597 temp2 = true;
23598 }
23599 {
23600 PyThreadState* __tstate = wxPyBeginAllowThreads();
23601 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23602 wxPyEndAllowThreads(__tstate);
23603 if (PyErr_Occurred()) SWIG_fail;
23604 }
23605 {
23606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23607 }
23608 {
23609 if (temp2)
23610 delete arg2;
23611 }
23612 return resultobj;
23613 fail:
23614 {
23615 if (temp2)
23616 delete arg2;
23617 }
23618 return NULL;
23619 }
23620
23621
23622 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23623 PyObject *resultobj = 0;
23624 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23625 wxString *arg2 = 0 ;
23626 bool result;
23627 void *argp1 = 0 ;
23628 int res1 = 0 ;
23629 bool temp2 = false ;
23630 PyObject * obj0 = 0 ;
23631 PyObject * obj1 = 0 ;
23632 char * kwnames[] = {
23633 (char *) "self",(char *) "help", NULL
23634 };
23635
23636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23638 if (!SWIG_IsOK(res1)) {
23639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23640 }
23641 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23642 {
23643 arg2 = wxString_in_helper(obj1);
23644 if (arg2 == NULL) SWIG_fail;
23645 temp2 = true;
23646 }
23647 {
23648 PyThreadState* __tstate = wxPyBeginAllowThreads();
23649 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23650 wxPyEndAllowThreads(__tstate);
23651 if (PyErr_Occurred()) SWIG_fail;
23652 }
23653 {
23654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23655 }
23656 {
23657 if (temp2)
23658 delete arg2;
23659 }
23660 return resultobj;
23661 fail:
23662 {
23663 if (temp2)
23664 delete arg2;
23665 }
23666 return NULL;
23667 }
23668
23669
23670 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23671 PyObject *resultobj = 0;
23672 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23673 wxBitmap *arg2 = 0 ;
23674 void *argp1 = 0 ;
23675 int res1 = 0 ;
23676 void *argp2 = 0 ;
23677 int res2 = 0 ;
23678 PyObject * obj0 = 0 ;
23679 PyObject * obj1 = 0 ;
23680 char * kwnames[] = {
23681 (char *) "self",(char *) "bmp", NULL
23682 };
23683
23684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23686 if (!SWIG_IsOK(res1)) {
23687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23688 }
23689 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23690 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23691 if (!SWIG_IsOK(res2)) {
23692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23693 }
23694 if (!argp2) {
23695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23696 }
23697 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23698 {
23699 PyThreadState* __tstate = wxPyBeginAllowThreads();
23700 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23701 wxPyEndAllowThreads(__tstate);
23702 if (PyErr_Occurred()) SWIG_fail;
23703 }
23704 resultobj = SWIG_Py_Void();
23705 return resultobj;
23706 fail:
23707 return NULL;
23708 }
23709
23710
23711 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23712 PyObject *resultobj = 0;
23713 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23714 wxBitmap *arg2 = 0 ;
23715 void *argp1 = 0 ;
23716 int res1 = 0 ;
23717 void *argp2 = 0 ;
23718 int res2 = 0 ;
23719 PyObject * obj0 = 0 ;
23720 PyObject * obj1 = 0 ;
23721 char * kwnames[] = {
23722 (char *) "self",(char *) "bmp", NULL
23723 };
23724
23725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23727 if (!SWIG_IsOK(res1)) {
23728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23729 }
23730 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23731 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23732 if (!SWIG_IsOK(res2)) {
23733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23734 }
23735 if (!argp2) {
23736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23737 }
23738 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23739 {
23740 PyThreadState* __tstate = wxPyBeginAllowThreads();
23741 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23742 wxPyEndAllowThreads(__tstate);
23743 if (PyErr_Occurred()) SWIG_fail;
23744 }
23745 resultobj = SWIG_Py_Void();
23746 return resultobj;
23747 fail:
23748 return NULL;
23749 }
23750
23751
23752 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23753 PyObject *resultobj = 0;
23754 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23755 wxString *arg2 = 0 ;
23756 void *argp1 = 0 ;
23757 int res1 = 0 ;
23758 bool temp2 = false ;
23759 PyObject * obj0 = 0 ;
23760 PyObject * obj1 = 0 ;
23761 char * kwnames[] = {
23762 (char *) "self",(char *) "label", NULL
23763 };
23764
23765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23767 if (!SWIG_IsOK(res1)) {
23768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23769 }
23770 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23771 {
23772 arg2 = wxString_in_helper(obj1);
23773 if (arg2 == NULL) SWIG_fail;
23774 temp2 = true;
23775 }
23776 {
23777 PyThreadState* __tstate = wxPyBeginAllowThreads();
23778 (arg1)->SetLabel((wxString const &)*arg2);
23779 wxPyEndAllowThreads(__tstate);
23780 if (PyErr_Occurred()) SWIG_fail;
23781 }
23782 resultobj = SWIG_Py_Void();
23783 {
23784 if (temp2)
23785 delete arg2;
23786 }
23787 return resultobj;
23788 fail:
23789 {
23790 if (temp2)
23791 delete arg2;
23792 }
23793 return NULL;
23794 }
23795
23796
23797 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23798 PyObject *resultobj = 0;
23799 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23800 void *argp1 = 0 ;
23801 int res1 = 0 ;
23802 PyObject *swig_obj[1] ;
23803
23804 if (!args) SWIG_fail;
23805 swig_obj[0] = args;
23806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23807 if (!SWIG_IsOK(res1)) {
23808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23809 }
23810 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23811 {
23812 PyThreadState* __tstate = wxPyBeginAllowThreads();
23813 (arg1)->Detach();
23814 wxPyEndAllowThreads(__tstate);
23815 if (PyErr_Occurred()) SWIG_fail;
23816 }
23817 resultobj = SWIG_Py_Void();
23818 return resultobj;
23819 fail:
23820 return NULL;
23821 }
23822
23823
23824 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23825 PyObject *resultobj = 0;
23826 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23827 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23828 void *argp1 = 0 ;
23829 int res1 = 0 ;
23830 void *argp2 = 0 ;
23831 int res2 = 0 ;
23832 PyObject * obj0 = 0 ;
23833 PyObject * obj1 = 0 ;
23834 char * kwnames[] = {
23835 (char *) "self",(char *) "tbar", NULL
23836 };
23837
23838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23840 if (!SWIG_IsOK(res1)) {
23841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23842 }
23843 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23844 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23845 if (!SWIG_IsOK(res2)) {
23846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23847 }
23848 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23849 {
23850 PyThreadState* __tstate = wxPyBeginAllowThreads();
23851 (arg1)->Attach(arg2);
23852 wxPyEndAllowThreads(__tstate);
23853 if (PyErr_Occurred()) SWIG_fail;
23854 }
23855 resultobj = SWIG_Py_Void();
23856 return resultobj;
23857 fail:
23858 return NULL;
23859 }
23860
23861
23862 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23863 PyObject *resultobj = 0;
23864 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23865 PyObject *result = 0 ;
23866 void *argp1 = 0 ;
23867 int res1 = 0 ;
23868 PyObject *swig_obj[1] ;
23869
23870 if (!args) SWIG_fail;
23871 swig_obj[0] = args;
23872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23873 if (!SWIG_IsOK(res1)) {
23874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23875 }
23876 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 resultobj = result;
23884 return resultobj;
23885 fail:
23886 return NULL;
23887 }
23888
23889
23890 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23891 PyObject *resultobj = 0;
23892 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23893 PyObject *arg2 = (PyObject *) 0 ;
23894 void *argp1 = 0 ;
23895 int res1 = 0 ;
23896 PyObject * obj0 = 0 ;
23897 PyObject * obj1 = 0 ;
23898 char * kwnames[] = {
23899 (char *) "self",(char *) "clientData", NULL
23900 };
23901
23902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23904 if (!SWIG_IsOK(res1)) {
23905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23906 }
23907 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23908 arg2 = obj1;
23909 {
23910 PyThreadState* __tstate = wxPyBeginAllowThreads();
23911 wxToolBarToolBase_SetClientData(arg1,arg2);
23912 wxPyEndAllowThreads(__tstate);
23913 if (PyErr_Occurred()) SWIG_fail;
23914 }
23915 resultobj = SWIG_Py_Void();
23916 return resultobj;
23917 fail:
23918 return NULL;
23919 }
23920
23921
23922 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23923 PyObject *obj;
23924 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23925 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23926 return SWIG_Py_Void();
23927 }
23928
23929 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23930 PyObject *resultobj = 0;
23931 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23932 int arg2 ;
23933 wxString *arg3 = 0 ;
23934 wxBitmap *arg4 = 0 ;
23935 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23936 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23937 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23938 wxString const &arg7_defvalue = wxPyEmptyString ;
23939 wxString *arg7 = (wxString *) &arg7_defvalue ;
23940 wxString const &arg8_defvalue = wxPyEmptyString ;
23941 wxString *arg8 = (wxString *) &arg8_defvalue ;
23942 PyObject *arg9 = (PyObject *) NULL ;
23943 wxToolBarToolBase *result = 0 ;
23944 void *argp1 = 0 ;
23945 int res1 = 0 ;
23946 int val2 ;
23947 int ecode2 = 0 ;
23948 bool temp3 = false ;
23949 void *argp4 = 0 ;
23950 int res4 = 0 ;
23951 void *argp5 = 0 ;
23952 int res5 = 0 ;
23953 int val6 ;
23954 int ecode6 = 0 ;
23955 bool temp7 = false ;
23956 bool temp8 = false ;
23957 PyObject * obj0 = 0 ;
23958 PyObject * obj1 = 0 ;
23959 PyObject * obj2 = 0 ;
23960 PyObject * obj3 = 0 ;
23961 PyObject * obj4 = 0 ;
23962 PyObject * obj5 = 0 ;
23963 PyObject * obj6 = 0 ;
23964 PyObject * obj7 = 0 ;
23965 PyObject * obj8 = 0 ;
23966 char * kwnames[] = {
23967 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23968 };
23969
23970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23972 if (!SWIG_IsOK(res1)) {
23973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23974 }
23975 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23976 ecode2 = SWIG_AsVal_int(obj1, &val2);
23977 if (!SWIG_IsOK(ecode2)) {
23978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23979 }
23980 arg2 = static_cast< int >(val2);
23981 {
23982 arg3 = wxString_in_helper(obj2);
23983 if (arg3 == NULL) SWIG_fail;
23984 temp3 = true;
23985 }
23986 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23987 if (!SWIG_IsOK(res4)) {
23988 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23989 }
23990 if (!argp4) {
23991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23992 }
23993 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23994 if (obj4) {
23995 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23996 if (!SWIG_IsOK(res5)) {
23997 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23998 }
23999 if (!argp5) {
24000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24001 }
24002 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24003 }
24004 if (obj5) {
24005 ecode6 = SWIG_AsVal_int(obj5, &val6);
24006 if (!SWIG_IsOK(ecode6)) {
24007 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
24008 }
24009 arg6 = static_cast< wxItemKind >(val6);
24010 }
24011 if (obj6) {
24012 {
24013 arg7 = wxString_in_helper(obj6);
24014 if (arg7 == NULL) SWIG_fail;
24015 temp7 = true;
24016 }
24017 }
24018 if (obj7) {
24019 {
24020 arg8 = wxString_in_helper(obj7);
24021 if (arg8 == NULL) SWIG_fail;
24022 temp8 = true;
24023 }
24024 }
24025 if (obj8) {
24026 arg9 = obj8;
24027 }
24028 {
24029 PyThreadState* __tstate = wxPyBeginAllowThreads();
24030 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
24031 wxPyEndAllowThreads(__tstate);
24032 if (PyErr_Occurred()) SWIG_fail;
24033 }
24034 {
24035 resultobj = wxPyMake_wxObject(result, (bool)0);
24036 }
24037 {
24038 if (temp3)
24039 delete arg3;
24040 }
24041 {
24042 if (temp7)
24043 delete arg7;
24044 }
24045 {
24046 if (temp8)
24047 delete arg8;
24048 }
24049 return resultobj;
24050 fail:
24051 {
24052 if (temp3)
24053 delete arg3;
24054 }
24055 {
24056 if (temp7)
24057 delete arg7;
24058 }
24059 {
24060 if (temp8)
24061 delete arg8;
24062 }
24063 return NULL;
24064 }
24065
24066
24067 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24068 PyObject *resultobj = 0;
24069 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24070 size_t arg2 ;
24071 int arg3 ;
24072 wxString *arg4 = 0 ;
24073 wxBitmap *arg5 = 0 ;
24074 wxBitmap const &arg6_defvalue = wxNullBitmap ;
24075 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
24076 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
24077 wxString const &arg8_defvalue = wxPyEmptyString ;
24078 wxString *arg8 = (wxString *) &arg8_defvalue ;
24079 wxString const &arg9_defvalue = wxPyEmptyString ;
24080 wxString *arg9 = (wxString *) &arg9_defvalue ;
24081 PyObject *arg10 = (PyObject *) NULL ;
24082 wxToolBarToolBase *result = 0 ;
24083 void *argp1 = 0 ;
24084 int res1 = 0 ;
24085 size_t val2 ;
24086 int ecode2 = 0 ;
24087 int val3 ;
24088 int ecode3 = 0 ;
24089 bool temp4 = false ;
24090 void *argp5 = 0 ;
24091 int res5 = 0 ;
24092 void *argp6 = 0 ;
24093 int res6 = 0 ;
24094 int val7 ;
24095 int ecode7 = 0 ;
24096 bool temp8 = false ;
24097 bool temp9 = false ;
24098 PyObject * obj0 = 0 ;
24099 PyObject * obj1 = 0 ;
24100 PyObject * obj2 = 0 ;
24101 PyObject * obj3 = 0 ;
24102 PyObject * obj4 = 0 ;
24103 PyObject * obj5 = 0 ;
24104 PyObject * obj6 = 0 ;
24105 PyObject * obj7 = 0 ;
24106 PyObject * obj8 = 0 ;
24107 PyObject * obj9 = 0 ;
24108 char * kwnames[] = {
24109 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24110 };
24111
24112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24114 if (!SWIG_IsOK(res1)) {
24115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24116 }
24117 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24118 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24119 if (!SWIG_IsOK(ecode2)) {
24120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24121 }
24122 arg2 = static_cast< size_t >(val2);
24123 ecode3 = SWIG_AsVal_int(obj2, &val3);
24124 if (!SWIG_IsOK(ecode3)) {
24125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24126 }
24127 arg3 = static_cast< int >(val3);
24128 {
24129 arg4 = wxString_in_helper(obj3);
24130 if (arg4 == NULL) SWIG_fail;
24131 temp4 = true;
24132 }
24133 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24134 if (!SWIG_IsOK(res5)) {
24135 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24136 }
24137 if (!argp5) {
24138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24139 }
24140 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24141 if (obj5) {
24142 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24143 if (!SWIG_IsOK(res6)) {
24144 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24145 }
24146 if (!argp6) {
24147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24148 }
24149 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24150 }
24151 if (obj6) {
24152 ecode7 = SWIG_AsVal_int(obj6, &val7);
24153 if (!SWIG_IsOK(ecode7)) {
24154 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24155 }
24156 arg7 = static_cast< wxItemKind >(val7);
24157 }
24158 if (obj7) {
24159 {
24160 arg8 = wxString_in_helper(obj7);
24161 if (arg8 == NULL) SWIG_fail;
24162 temp8 = true;
24163 }
24164 }
24165 if (obj8) {
24166 {
24167 arg9 = wxString_in_helper(obj8);
24168 if (arg9 == NULL) SWIG_fail;
24169 temp9 = true;
24170 }
24171 }
24172 if (obj9) {
24173 arg10 = obj9;
24174 }
24175 {
24176 PyThreadState* __tstate = wxPyBeginAllowThreads();
24177 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24178 wxPyEndAllowThreads(__tstate);
24179 if (PyErr_Occurred()) SWIG_fail;
24180 }
24181 {
24182 resultobj = wxPyMake_wxObject(result, (bool)0);
24183 }
24184 {
24185 if (temp4)
24186 delete arg4;
24187 }
24188 {
24189 if (temp8)
24190 delete arg8;
24191 }
24192 {
24193 if (temp9)
24194 delete arg9;
24195 }
24196 return resultobj;
24197 fail:
24198 {
24199 if (temp4)
24200 delete arg4;
24201 }
24202 {
24203 if (temp8)
24204 delete arg8;
24205 }
24206 {
24207 if (temp9)
24208 delete arg9;
24209 }
24210 return NULL;
24211 }
24212
24213
24214 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24215 PyObject *resultobj = 0;
24216 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24217 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24218 wxToolBarToolBase *result = 0 ;
24219 void *argp1 = 0 ;
24220 int res1 = 0 ;
24221 void *argp2 = 0 ;
24222 int res2 = 0 ;
24223 PyObject * obj0 = 0 ;
24224 PyObject * obj1 = 0 ;
24225 char * kwnames[] = {
24226 (char *) "self",(char *) "tool", NULL
24227 };
24228
24229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24231 if (!SWIG_IsOK(res1)) {
24232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24233 }
24234 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24235 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24236 if (!SWIG_IsOK(res2)) {
24237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24238 }
24239 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24240 {
24241 PyThreadState* __tstate = wxPyBeginAllowThreads();
24242 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24243 wxPyEndAllowThreads(__tstate);
24244 if (PyErr_Occurred()) SWIG_fail;
24245 }
24246 {
24247 resultobj = wxPyMake_wxObject(result, (bool)0);
24248 }
24249 return resultobj;
24250 fail:
24251 return NULL;
24252 }
24253
24254
24255 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24256 PyObject *resultobj = 0;
24257 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24258 size_t arg2 ;
24259 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24260 wxToolBarToolBase *result = 0 ;
24261 void *argp1 = 0 ;
24262 int res1 = 0 ;
24263 size_t val2 ;
24264 int ecode2 = 0 ;
24265 void *argp3 = 0 ;
24266 int res3 = 0 ;
24267 PyObject * obj0 = 0 ;
24268 PyObject * obj1 = 0 ;
24269 PyObject * obj2 = 0 ;
24270 char * kwnames[] = {
24271 (char *) "self",(char *) "pos",(char *) "tool", NULL
24272 };
24273
24274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24276 if (!SWIG_IsOK(res1)) {
24277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24278 }
24279 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24280 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24281 if (!SWIG_IsOK(ecode2)) {
24282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24283 }
24284 arg2 = static_cast< size_t >(val2);
24285 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24286 if (!SWIG_IsOK(res3)) {
24287 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24288 }
24289 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24290 {
24291 PyThreadState* __tstate = wxPyBeginAllowThreads();
24292 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24293 wxPyEndAllowThreads(__tstate);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 }
24296 {
24297 resultobj = wxPyMake_wxObject(result, (bool)0);
24298 }
24299 return resultobj;
24300 fail:
24301 return NULL;
24302 }
24303
24304
24305 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24306 PyObject *resultobj = 0;
24307 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24308 wxControl *arg2 = (wxControl *) 0 ;
24309 wxString const &arg3_defvalue = wxEmptyString ;
24310 wxString *arg3 = (wxString *) &arg3_defvalue ;
24311 wxToolBarToolBase *result = 0 ;
24312 void *argp1 = 0 ;
24313 int res1 = 0 ;
24314 void *argp2 = 0 ;
24315 int res2 = 0 ;
24316 bool temp3 = false ;
24317 PyObject * obj0 = 0 ;
24318 PyObject * obj1 = 0 ;
24319 PyObject * obj2 = 0 ;
24320 char * kwnames[] = {
24321 (char *) "self",(char *) "control",(char *) "label", NULL
24322 };
24323
24324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ToolBarBase_AddControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24326 if (!SWIG_IsOK(res1)) {
24327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24328 }
24329 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24330 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24331 if (!SWIG_IsOK(res2)) {
24332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24333 }
24334 arg2 = reinterpret_cast< wxControl * >(argp2);
24335 if (obj2) {
24336 {
24337 arg3 = wxString_in_helper(obj2);
24338 if (arg3 == NULL) SWIG_fail;
24339 temp3 = true;
24340 }
24341 }
24342 {
24343 PyThreadState* __tstate = wxPyBeginAllowThreads();
24344 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2,(wxString const &)*arg3);
24345 wxPyEndAllowThreads(__tstate);
24346 if (PyErr_Occurred()) SWIG_fail;
24347 }
24348 {
24349 resultobj = wxPyMake_wxObject(result, (bool)0);
24350 }
24351 {
24352 if (temp3)
24353 delete arg3;
24354 }
24355 return resultobj;
24356 fail:
24357 {
24358 if (temp3)
24359 delete arg3;
24360 }
24361 return NULL;
24362 }
24363
24364
24365 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24366 PyObject *resultobj = 0;
24367 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24368 size_t arg2 ;
24369 wxControl *arg3 = (wxControl *) 0 ;
24370 wxString const &arg4_defvalue = wxEmptyString ;
24371 wxString *arg4 = (wxString *) &arg4_defvalue ;
24372 wxToolBarToolBase *result = 0 ;
24373 void *argp1 = 0 ;
24374 int res1 = 0 ;
24375 size_t val2 ;
24376 int ecode2 = 0 ;
24377 void *argp3 = 0 ;
24378 int res3 = 0 ;
24379 bool temp4 = false ;
24380 PyObject * obj0 = 0 ;
24381 PyObject * obj1 = 0 ;
24382 PyObject * obj2 = 0 ;
24383 PyObject * obj3 = 0 ;
24384 char * kwnames[] = {
24385 (char *) "self",(char *) "pos",(char *) "control",(char *) "label", NULL
24386 };
24387
24388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24390 if (!SWIG_IsOK(res1)) {
24391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24392 }
24393 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24394 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24395 if (!SWIG_IsOK(ecode2)) {
24396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24397 }
24398 arg2 = static_cast< size_t >(val2);
24399 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24400 if (!SWIG_IsOK(res3)) {
24401 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24402 }
24403 arg3 = reinterpret_cast< wxControl * >(argp3);
24404 if (obj3) {
24405 {
24406 arg4 = wxString_in_helper(obj3);
24407 if (arg4 == NULL) SWIG_fail;
24408 temp4 = true;
24409 }
24410 }
24411 {
24412 PyThreadState* __tstate = wxPyBeginAllowThreads();
24413 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3,(wxString const &)*arg4);
24414 wxPyEndAllowThreads(__tstate);
24415 if (PyErr_Occurred()) SWIG_fail;
24416 }
24417 {
24418 resultobj = wxPyMake_wxObject(result, (bool)0);
24419 }
24420 {
24421 if (temp4)
24422 delete arg4;
24423 }
24424 return resultobj;
24425 fail:
24426 {
24427 if (temp4)
24428 delete arg4;
24429 }
24430 return NULL;
24431 }
24432
24433
24434 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24435 PyObject *resultobj = 0;
24436 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24437 int arg2 ;
24438 wxControl *result = 0 ;
24439 void *argp1 = 0 ;
24440 int res1 = 0 ;
24441 int val2 ;
24442 int ecode2 = 0 ;
24443 PyObject * obj0 = 0 ;
24444 PyObject * obj1 = 0 ;
24445 char * kwnames[] = {
24446 (char *) "self",(char *) "id", NULL
24447 };
24448
24449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24451 if (!SWIG_IsOK(res1)) {
24452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24453 }
24454 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24455 ecode2 = SWIG_AsVal_int(obj1, &val2);
24456 if (!SWIG_IsOK(ecode2)) {
24457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24458 }
24459 arg2 = static_cast< int >(val2);
24460 {
24461 PyThreadState* __tstate = wxPyBeginAllowThreads();
24462 result = (wxControl *)(arg1)->FindControl(arg2);
24463 wxPyEndAllowThreads(__tstate);
24464 if (PyErr_Occurred()) SWIG_fail;
24465 }
24466 {
24467 resultobj = wxPyMake_wxObject(result, 0);
24468 }
24469 return resultobj;
24470 fail:
24471 return NULL;
24472 }
24473
24474
24475 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24476 PyObject *resultobj = 0;
24477 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24478 wxToolBarToolBase *result = 0 ;
24479 void *argp1 = 0 ;
24480 int res1 = 0 ;
24481 PyObject *swig_obj[1] ;
24482
24483 if (!args) SWIG_fail;
24484 swig_obj[0] = args;
24485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24486 if (!SWIG_IsOK(res1)) {
24487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24488 }
24489 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24490 {
24491 PyThreadState* __tstate = wxPyBeginAllowThreads();
24492 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24493 wxPyEndAllowThreads(__tstate);
24494 if (PyErr_Occurred()) SWIG_fail;
24495 }
24496 {
24497 resultobj = wxPyMake_wxObject(result, (bool)0);
24498 }
24499 return resultobj;
24500 fail:
24501 return NULL;
24502 }
24503
24504
24505 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24506 PyObject *resultobj = 0;
24507 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24508 size_t arg2 ;
24509 wxToolBarToolBase *result = 0 ;
24510 void *argp1 = 0 ;
24511 int res1 = 0 ;
24512 size_t val2 ;
24513 int ecode2 = 0 ;
24514 PyObject * obj0 = 0 ;
24515 PyObject * obj1 = 0 ;
24516 char * kwnames[] = {
24517 (char *) "self",(char *) "pos", NULL
24518 };
24519
24520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24522 if (!SWIG_IsOK(res1)) {
24523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24524 }
24525 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24526 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24527 if (!SWIG_IsOK(ecode2)) {
24528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24529 }
24530 arg2 = static_cast< size_t >(val2);
24531 {
24532 PyThreadState* __tstate = wxPyBeginAllowThreads();
24533 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24534 wxPyEndAllowThreads(__tstate);
24535 if (PyErr_Occurred()) SWIG_fail;
24536 }
24537 {
24538 resultobj = wxPyMake_wxObject(result, (bool)0);
24539 }
24540 return resultobj;
24541 fail:
24542 return NULL;
24543 }
24544
24545
24546 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24547 PyObject *resultobj = 0;
24548 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24549 int arg2 ;
24550 wxToolBarToolBase *result = 0 ;
24551 void *argp1 = 0 ;
24552 int res1 = 0 ;
24553 int val2 ;
24554 int ecode2 = 0 ;
24555 PyObject * obj0 = 0 ;
24556 PyObject * obj1 = 0 ;
24557 char * kwnames[] = {
24558 (char *) "self",(char *) "id", NULL
24559 };
24560
24561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24563 if (!SWIG_IsOK(res1)) {
24564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24565 }
24566 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24567 ecode2 = SWIG_AsVal_int(obj1, &val2);
24568 if (!SWIG_IsOK(ecode2)) {
24569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24570 }
24571 arg2 = static_cast< int >(val2);
24572 {
24573 PyThreadState* __tstate = wxPyBeginAllowThreads();
24574 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24575 wxPyEndAllowThreads(__tstate);
24576 if (PyErr_Occurred()) SWIG_fail;
24577 }
24578 {
24579 resultobj = wxPyMake_wxObject(result, (bool)0);
24580 }
24581 return resultobj;
24582 fail:
24583 return NULL;
24584 }
24585
24586
24587 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24588 PyObject *resultobj = 0;
24589 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24590 size_t arg2 ;
24591 bool result;
24592 void *argp1 = 0 ;
24593 int res1 = 0 ;
24594 size_t val2 ;
24595 int ecode2 = 0 ;
24596 PyObject * obj0 = 0 ;
24597 PyObject * obj1 = 0 ;
24598 char * kwnames[] = {
24599 (char *) "self",(char *) "pos", NULL
24600 };
24601
24602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24604 if (!SWIG_IsOK(res1)) {
24605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24606 }
24607 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24608 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24609 if (!SWIG_IsOK(ecode2)) {
24610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24611 }
24612 arg2 = static_cast< size_t >(val2);
24613 {
24614 PyThreadState* __tstate = wxPyBeginAllowThreads();
24615 result = (bool)(arg1)->DeleteToolByPos(arg2);
24616 wxPyEndAllowThreads(__tstate);
24617 if (PyErr_Occurred()) SWIG_fail;
24618 }
24619 {
24620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24621 }
24622 return resultobj;
24623 fail:
24624 return NULL;
24625 }
24626
24627
24628 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24629 PyObject *resultobj = 0;
24630 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24631 int arg2 ;
24632 bool result;
24633 void *argp1 = 0 ;
24634 int res1 = 0 ;
24635 int val2 ;
24636 int ecode2 = 0 ;
24637 PyObject * obj0 = 0 ;
24638 PyObject * obj1 = 0 ;
24639 char * kwnames[] = {
24640 (char *) "self",(char *) "id", NULL
24641 };
24642
24643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24645 if (!SWIG_IsOK(res1)) {
24646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24647 }
24648 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24649 ecode2 = SWIG_AsVal_int(obj1, &val2);
24650 if (!SWIG_IsOK(ecode2)) {
24651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24652 }
24653 arg2 = static_cast< int >(val2);
24654 {
24655 PyThreadState* __tstate = wxPyBeginAllowThreads();
24656 result = (bool)(arg1)->DeleteTool(arg2);
24657 wxPyEndAllowThreads(__tstate);
24658 if (PyErr_Occurred()) SWIG_fail;
24659 }
24660 {
24661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24662 }
24663 return resultobj;
24664 fail:
24665 return NULL;
24666 }
24667
24668
24669 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24670 PyObject *resultobj = 0;
24671 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24672 void *argp1 = 0 ;
24673 int res1 = 0 ;
24674 PyObject *swig_obj[1] ;
24675
24676 if (!args) SWIG_fail;
24677 swig_obj[0] = args;
24678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24679 if (!SWIG_IsOK(res1)) {
24680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24681 }
24682 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24683 {
24684 PyThreadState* __tstate = wxPyBeginAllowThreads();
24685 (arg1)->ClearTools();
24686 wxPyEndAllowThreads(__tstate);
24687 if (PyErr_Occurred()) SWIG_fail;
24688 }
24689 resultobj = SWIG_Py_Void();
24690 return resultobj;
24691 fail:
24692 return NULL;
24693 }
24694
24695
24696 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24697 PyObject *resultobj = 0;
24698 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24699 bool result;
24700 void *argp1 = 0 ;
24701 int res1 = 0 ;
24702 PyObject *swig_obj[1] ;
24703
24704 if (!args) SWIG_fail;
24705 swig_obj[0] = args;
24706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24707 if (!SWIG_IsOK(res1)) {
24708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24709 }
24710 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24711 {
24712 PyThreadState* __tstate = wxPyBeginAllowThreads();
24713 result = (bool)(arg1)->Realize();
24714 wxPyEndAllowThreads(__tstate);
24715 if (PyErr_Occurred()) SWIG_fail;
24716 }
24717 {
24718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24719 }
24720 return resultobj;
24721 fail:
24722 return NULL;
24723 }
24724
24725
24726 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24727 PyObject *resultobj = 0;
24728 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24729 int arg2 ;
24730 bool arg3 ;
24731 void *argp1 = 0 ;
24732 int res1 = 0 ;
24733 int val2 ;
24734 int ecode2 = 0 ;
24735 bool val3 ;
24736 int ecode3 = 0 ;
24737 PyObject * obj0 = 0 ;
24738 PyObject * obj1 = 0 ;
24739 PyObject * obj2 = 0 ;
24740 char * kwnames[] = {
24741 (char *) "self",(char *) "id",(char *) "enable", NULL
24742 };
24743
24744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24746 if (!SWIG_IsOK(res1)) {
24747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24748 }
24749 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24750 ecode2 = SWIG_AsVal_int(obj1, &val2);
24751 if (!SWIG_IsOK(ecode2)) {
24752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24753 }
24754 arg2 = static_cast< int >(val2);
24755 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24756 if (!SWIG_IsOK(ecode3)) {
24757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24758 }
24759 arg3 = static_cast< bool >(val3);
24760 {
24761 PyThreadState* __tstate = wxPyBeginAllowThreads();
24762 (arg1)->EnableTool(arg2,arg3);
24763 wxPyEndAllowThreads(__tstate);
24764 if (PyErr_Occurred()) SWIG_fail;
24765 }
24766 resultobj = SWIG_Py_Void();
24767 return resultobj;
24768 fail:
24769 return NULL;
24770 }
24771
24772
24773 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24774 PyObject *resultobj = 0;
24775 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24776 int arg2 ;
24777 bool arg3 ;
24778 void *argp1 = 0 ;
24779 int res1 = 0 ;
24780 int val2 ;
24781 int ecode2 = 0 ;
24782 bool val3 ;
24783 int ecode3 = 0 ;
24784 PyObject * obj0 = 0 ;
24785 PyObject * obj1 = 0 ;
24786 PyObject * obj2 = 0 ;
24787 char * kwnames[] = {
24788 (char *) "self",(char *) "id",(char *) "toggle", NULL
24789 };
24790
24791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24793 if (!SWIG_IsOK(res1)) {
24794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24795 }
24796 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24797 ecode2 = SWIG_AsVal_int(obj1, &val2);
24798 if (!SWIG_IsOK(ecode2)) {
24799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24800 }
24801 arg2 = static_cast< int >(val2);
24802 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24803 if (!SWIG_IsOK(ecode3)) {
24804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24805 }
24806 arg3 = static_cast< bool >(val3);
24807 {
24808 PyThreadState* __tstate = wxPyBeginAllowThreads();
24809 (arg1)->ToggleTool(arg2,arg3);
24810 wxPyEndAllowThreads(__tstate);
24811 if (PyErr_Occurred()) SWIG_fail;
24812 }
24813 resultobj = SWIG_Py_Void();
24814 return resultobj;
24815 fail:
24816 return NULL;
24817 }
24818
24819
24820 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24821 PyObject *resultobj = 0;
24822 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24823 int arg2 ;
24824 bool arg3 ;
24825 void *argp1 = 0 ;
24826 int res1 = 0 ;
24827 int val2 ;
24828 int ecode2 = 0 ;
24829 bool val3 ;
24830 int ecode3 = 0 ;
24831 PyObject * obj0 = 0 ;
24832 PyObject * obj1 = 0 ;
24833 PyObject * obj2 = 0 ;
24834 char * kwnames[] = {
24835 (char *) "self",(char *) "id",(char *) "toggle", NULL
24836 };
24837
24838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24840 if (!SWIG_IsOK(res1)) {
24841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24842 }
24843 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24844 ecode2 = SWIG_AsVal_int(obj1, &val2);
24845 if (!SWIG_IsOK(ecode2)) {
24846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24847 }
24848 arg2 = static_cast< int >(val2);
24849 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24850 if (!SWIG_IsOK(ecode3)) {
24851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24852 }
24853 arg3 = static_cast< bool >(val3);
24854 {
24855 PyThreadState* __tstate = wxPyBeginAllowThreads();
24856 (arg1)->SetToggle(arg2,arg3);
24857 wxPyEndAllowThreads(__tstate);
24858 if (PyErr_Occurred()) SWIG_fail;
24859 }
24860 resultobj = SWIG_Py_Void();
24861 return resultobj;
24862 fail:
24863 return NULL;
24864 }
24865
24866
24867 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24868 PyObject *resultobj = 0;
24869 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24870 int arg2 ;
24871 PyObject *result = 0 ;
24872 void *argp1 = 0 ;
24873 int res1 = 0 ;
24874 int val2 ;
24875 int ecode2 = 0 ;
24876 PyObject * obj0 = 0 ;
24877 PyObject * obj1 = 0 ;
24878 char * kwnames[] = {
24879 (char *) "self",(char *) "id", NULL
24880 };
24881
24882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24884 if (!SWIG_IsOK(res1)) {
24885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24886 }
24887 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24888 ecode2 = SWIG_AsVal_int(obj1, &val2);
24889 if (!SWIG_IsOK(ecode2)) {
24890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24891 }
24892 arg2 = static_cast< int >(val2);
24893 {
24894 PyThreadState* __tstate = wxPyBeginAllowThreads();
24895 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24896 wxPyEndAllowThreads(__tstate);
24897 if (PyErr_Occurred()) SWIG_fail;
24898 }
24899 resultobj = result;
24900 return resultobj;
24901 fail:
24902 return NULL;
24903 }
24904
24905
24906 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24907 PyObject *resultobj = 0;
24908 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24909 int arg2 ;
24910 PyObject *arg3 = (PyObject *) 0 ;
24911 void *argp1 = 0 ;
24912 int res1 = 0 ;
24913 int val2 ;
24914 int ecode2 = 0 ;
24915 PyObject * obj0 = 0 ;
24916 PyObject * obj1 = 0 ;
24917 PyObject * obj2 = 0 ;
24918 char * kwnames[] = {
24919 (char *) "self",(char *) "id",(char *) "clientData", NULL
24920 };
24921
24922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24924 if (!SWIG_IsOK(res1)) {
24925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24926 }
24927 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24928 ecode2 = SWIG_AsVal_int(obj1, &val2);
24929 if (!SWIG_IsOK(ecode2)) {
24930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24931 }
24932 arg2 = static_cast< int >(val2);
24933 arg3 = obj2;
24934 {
24935 PyThreadState* __tstate = wxPyBeginAllowThreads();
24936 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24937 wxPyEndAllowThreads(__tstate);
24938 if (PyErr_Occurred()) SWIG_fail;
24939 }
24940 resultobj = SWIG_Py_Void();
24941 return resultobj;
24942 fail:
24943 return NULL;
24944 }
24945
24946
24947 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24948 PyObject *resultobj = 0;
24949 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24950 int arg2 ;
24951 int result;
24952 void *argp1 = 0 ;
24953 int res1 = 0 ;
24954 int val2 ;
24955 int ecode2 = 0 ;
24956 PyObject * obj0 = 0 ;
24957 PyObject * obj1 = 0 ;
24958 char * kwnames[] = {
24959 (char *) "self",(char *) "id", NULL
24960 };
24961
24962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24964 if (!SWIG_IsOK(res1)) {
24965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24966 }
24967 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24968 ecode2 = SWIG_AsVal_int(obj1, &val2);
24969 if (!SWIG_IsOK(ecode2)) {
24970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24971 }
24972 arg2 = static_cast< int >(val2);
24973 {
24974 PyThreadState* __tstate = wxPyBeginAllowThreads();
24975 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24976 wxPyEndAllowThreads(__tstate);
24977 if (PyErr_Occurred()) SWIG_fail;
24978 }
24979 resultobj = SWIG_From_int(static_cast< int >(result));
24980 return resultobj;
24981 fail:
24982 return NULL;
24983 }
24984
24985
24986 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24987 PyObject *resultobj = 0;
24988 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24989 int arg2 ;
24990 bool result;
24991 void *argp1 = 0 ;
24992 int res1 = 0 ;
24993 int val2 ;
24994 int ecode2 = 0 ;
24995 PyObject * obj0 = 0 ;
24996 PyObject * obj1 = 0 ;
24997 char * kwnames[] = {
24998 (char *) "self",(char *) "id", NULL
24999 };
25000
25001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
25002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25003 if (!SWIG_IsOK(res1)) {
25004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25005 }
25006 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25007 ecode2 = SWIG_AsVal_int(obj1, &val2);
25008 if (!SWIG_IsOK(ecode2)) {
25009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
25010 }
25011 arg2 = static_cast< int >(val2);
25012 {
25013 PyThreadState* __tstate = wxPyBeginAllowThreads();
25014 result = (bool)(arg1)->GetToolState(arg2);
25015 wxPyEndAllowThreads(__tstate);
25016 if (PyErr_Occurred()) SWIG_fail;
25017 }
25018 {
25019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25020 }
25021 return resultobj;
25022 fail:
25023 return NULL;
25024 }
25025
25026
25027 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25028 PyObject *resultobj = 0;
25029 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25030 int arg2 ;
25031 bool result;
25032 void *argp1 = 0 ;
25033 int res1 = 0 ;
25034 int val2 ;
25035 int ecode2 = 0 ;
25036 PyObject * obj0 = 0 ;
25037 PyObject * obj1 = 0 ;
25038 char * kwnames[] = {
25039 (char *) "self",(char *) "id", NULL
25040 };
25041
25042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
25043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25044 if (!SWIG_IsOK(res1)) {
25045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25046 }
25047 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25048 ecode2 = SWIG_AsVal_int(obj1, &val2);
25049 if (!SWIG_IsOK(ecode2)) {
25050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
25051 }
25052 arg2 = static_cast< int >(val2);
25053 {
25054 PyThreadState* __tstate = wxPyBeginAllowThreads();
25055 result = (bool)(arg1)->GetToolEnabled(arg2);
25056 wxPyEndAllowThreads(__tstate);
25057 if (PyErr_Occurred()) SWIG_fail;
25058 }
25059 {
25060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25061 }
25062 return resultobj;
25063 fail:
25064 return NULL;
25065 }
25066
25067
25068 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25069 PyObject *resultobj = 0;
25070 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25071 int arg2 ;
25072 wxString *arg3 = 0 ;
25073 void *argp1 = 0 ;
25074 int res1 = 0 ;
25075 int val2 ;
25076 int ecode2 = 0 ;
25077 bool temp3 = false ;
25078 PyObject * obj0 = 0 ;
25079 PyObject * obj1 = 0 ;
25080 PyObject * obj2 = 0 ;
25081 char * kwnames[] = {
25082 (char *) "self",(char *) "id",(char *) "helpString", NULL
25083 };
25084
25085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25087 if (!SWIG_IsOK(res1)) {
25088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25089 }
25090 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25091 ecode2 = SWIG_AsVal_int(obj1, &val2);
25092 if (!SWIG_IsOK(ecode2)) {
25093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25094 }
25095 arg2 = static_cast< int >(val2);
25096 {
25097 arg3 = wxString_in_helper(obj2);
25098 if (arg3 == NULL) SWIG_fail;
25099 temp3 = true;
25100 }
25101 {
25102 PyThreadState* __tstate = wxPyBeginAllowThreads();
25103 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
25104 wxPyEndAllowThreads(__tstate);
25105 if (PyErr_Occurred()) SWIG_fail;
25106 }
25107 resultobj = SWIG_Py_Void();
25108 {
25109 if (temp3)
25110 delete arg3;
25111 }
25112 return resultobj;
25113 fail:
25114 {
25115 if (temp3)
25116 delete arg3;
25117 }
25118 return NULL;
25119 }
25120
25121
25122 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25123 PyObject *resultobj = 0;
25124 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25125 int arg2 ;
25126 wxString result;
25127 void *argp1 = 0 ;
25128 int res1 = 0 ;
25129 int val2 ;
25130 int ecode2 = 0 ;
25131 PyObject * obj0 = 0 ;
25132 PyObject * obj1 = 0 ;
25133 char * kwnames[] = {
25134 (char *) "self",(char *) "id", NULL
25135 };
25136
25137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25139 if (!SWIG_IsOK(res1)) {
25140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25141 }
25142 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25143 ecode2 = SWIG_AsVal_int(obj1, &val2);
25144 if (!SWIG_IsOK(ecode2)) {
25145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25146 }
25147 arg2 = static_cast< int >(val2);
25148 {
25149 PyThreadState* __tstate = wxPyBeginAllowThreads();
25150 result = (arg1)->GetToolShortHelp(arg2);
25151 wxPyEndAllowThreads(__tstate);
25152 if (PyErr_Occurred()) SWIG_fail;
25153 }
25154 {
25155 #if wxUSE_UNICODE
25156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25157 #else
25158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25159 #endif
25160 }
25161 return resultobj;
25162 fail:
25163 return NULL;
25164 }
25165
25166
25167 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25168 PyObject *resultobj = 0;
25169 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25170 int arg2 ;
25171 wxString *arg3 = 0 ;
25172 void *argp1 = 0 ;
25173 int res1 = 0 ;
25174 int val2 ;
25175 int ecode2 = 0 ;
25176 bool temp3 = false ;
25177 PyObject * obj0 = 0 ;
25178 PyObject * obj1 = 0 ;
25179 PyObject * obj2 = 0 ;
25180 char * kwnames[] = {
25181 (char *) "self",(char *) "id",(char *) "helpString", NULL
25182 };
25183
25184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25186 if (!SWIG_IsOK(res1)) {
25187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25188 }
25189 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25190 ecode2 = SWIG_AsVal_int(obj1, &val2);
25191 if (!SWIG_IsOK(ecode2)) {
25192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25193 }
25194 arg2 = static_cast< int >(val2);
25195 {
25196 arg3 = wxString_in_helper(obj2);
25197 if (arg3 == NULL) SWIG_fail;
25198 temp3 = true;
25199 }
25200 {
25201 PyThreadState* __tstate = wxPyBeginAllowThreads();
25202 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25203 wxPyEndAllowThreads(__tstate);
25204 if (PyErr_Occurred()) SWIG_fail;
25205 }
25206 resultobj = SWIG_Py_Void();
25207 {
25208 if (temp3)
25209 delete arg3;
25210 }
25211 return resultobj;
25212 fail:
25213 {
25214 if (temp3)
25215 delete arg3;
25216 }
25217 return NULL;
25218 }
25219
25220
25221 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25222 PyObject *resultobj = 0;
25223 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25224 int arg2 ;
25225 wxString result;
25226 void *argp1 = 0 ;
25227 int res1 = 0 ;
25228 int val2 ;
25229 int ecode2 = 0 ;
25230 PyObject * obj0 = 0 ;
25231 PyObject * obj1 = 0 ;
25232 char * kwnames[] = {
25233 (char *) "self",(char *) "id", NULL
25234 };
25235
25236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25238 if (!SWIG_IsOK(res1)) {
25239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25240 }
25241 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25242 ecode2 = SWIG_AsVal_int(obj1, &val2);
25243 if (!SWIG_IsOK(ecode2)) {
25244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25245 }
25246 arg2 = static_cast< int >(val2);
25247 {
25248 PyThreadState* __tstate = wxPyBeginAllowThreads();
25249 result = (arg1)->GetToolLongHelp(arg2);
25250 wxPyEndAllowThreads(__tstate);
25251 if (PyErr_Occurred()) SWIG_fail;
25252 }
25253 {
25254 #if wxUSE_UNICODE
25255 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25256 #else
25257 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25258 #endif
25259 }
25260 return resultobj;
25261 fail:
25262 return NULL;
25263 }
25264
25265
25266 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25267 PyObject *resultobj = 0;
25268 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25269 int arg2 ;
25270 int arg3 ;
25271 void *argp1 = 0 ;
25272 int res1 = 0 ;
25273 int val2 ;
25274 int ecode2 = 0 ;
25275 int val3 ;
25276 int ecode3 = 0 ;
25277 PyObject * obj0 = 0 ;
25278 PyObject * obj1 = 0 ;
25279 PyObject * obj2 = 0 ;
25280 char * kwnames[] = {
25281 (char *) "self",(char *) "x",(char *) "y", NULL
25282 };
25283
25284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25286 if (!SWIG_IsOK(res1)) {
25287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25288 }
25289 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25290 ecode2 = SWIG_AsVal_int(obj1, &val2);
25291 if (!SWIG_IsOK(ecode2)) {
25292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25293 }
25294 arg2 = static_cast< int >(val2);
25295 ecode3 = SWIG_AsVal_int(obj2, &val3);
25296 if (!SWIG_IsOK(ecode3)) {
25297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25298 }
25299 arg3 = static_cast< int >(val3);
25300 {
25301 PyThreadState* __tstate = wxPyBeginAllowThreads();
25302 (arg1)->SetMargins(arg2,arg3);
25303 wxPyEndAllowThreads(__tstate);
25304 if (PyErr_Occurred()) SWIG_fail;
25305 }
25306 resultobj = SWIG_Py_Void();
25307 return resultobj;
25308 fail:
25309 return NULL;
25310 }
25311
25312
25313 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25314 PyObject *resultobj = 0;
25315 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25316 wxSize *arg2 = 0 ;
25317 void *argp1 = 0 ;
25318 int res1 = 0 ;
25319 wxSize temp2 ;
25320 PyObject * obj0 = 0 ;
25321 PyObject * obj1 = 0 ;
25322 char * kwnames[] = {
25323 (char *) "self",(char *) "size", NULL
25324 };
25325
25326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25328 if (!SWIG_IsOK(res1)) {
25329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25330 }
25331 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25332 {
25333 arg2 = &temp2;
25334 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25335 }
25336 {
25337 PyThreadState* __tstate = wxPyBeginAllowThreads();
25338 (arg1)->SetMargins((wxSize const &)*arg2);
25339 wxPyEndAllowThreads(__tstate);
25340 if (PyErr_Occurred()) SWIG_fail;
25341 }
25342 resultobj = SWIG_Py_Void();
25343 return resultobj;
25344 fail:
25345 return NULL;
25346 }
25347
25348
25349 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25350 PyObject *resultobj = 0;
25351 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25352 int arg2 ;
25353 void *argp1 = 0 ;
25354 int res1 = 0 ;
25355 int val2 ;
25356 int ecode2 = 0 ;
25357 PyObject * obj0 = 0 ;
25358 PyObject * obj1 = 0 ;
25359 char * kwnames[] = {
25360 (char *) "self",(char *) "packing", NULL
25361 };
25362
25363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25365 if (!SWIG_IsOK(res1)) {
25366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25367 }
25368 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25369 ecode2 = SWIG_AsVal_int(obj1, &val2);
25370 if (!SWIG_IsOK(ecode2)) {
25371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25372 }
25373 arg2 = static_cast< int >(val2);
25374 {
25375 PyThreadState* __tstate = wxPyBeginAllowThreads();
25376 (arg1)->SetToolPacking(arg2);
25377 wxPyEndAllowThreads(__tstate);
25378 if (PyErr_Occurred()) SWIG_fail;
25379 }
25380 resultobj = SWIG_Py_Void();
25381 return resultobj;
25382 fail:
25383 return NULL;
25384 }
25385
25386
25387 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25388 PyObject *resultobj = 0;
25389 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25390 int arg2 ;
25391 void *argp1 = 0 ;
25392 int res1 = 0 ;
25393 int val2 ;
25394 int ecode2 = 0 ;
25395 PyObject * obj0 = 0 ;
25396 PyObject * obj1 = 0 ;
25397 char * kwnames[] = {
25398 (char *) "self",(char *) "separation", NULL
25399 };
25400
25401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25403 if (!SWIG_IsOK(res1)) {
25404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25405 }
25406 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25407 ecode2 = SWIG_AsVal_int(obj1, &val2);
25408 if (!SWIG_IsOK(ecode2)) {
25409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25410 }
25411 arg2 = static_cast< int >(val2);
25412 {
25413 PyThreadState* __tstate = wxPyBeginAllowThreads();
25414 (arg1)->SetToolSeparation(arg2);
25415 wxPyEndAllowThreads(__tstate);
25416 if (PyErr_Occurred()) SWIG_fail;
25417 }
25418 resultobj = SWIG_Py_Void();
25419 return resultobj;
25420 fail:
25421 return NULL;
25422 }
25423
25424
25425 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25426 PyObject *resultobj = 0;
25427 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25428 wxSize result;
25429 void *argp1 = 0 ;
25430 int res1 = 0 ;
25431 PyObject *swig_obj[1] ;
25432
25433 if (!args) SWIG_fail;
25434 swig_obj[0] = args;
25435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25436 if (!SWIG_IsOK(res1)) {
25437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25438 }
25439 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25440 {
25441 PyThreadState* __tstate = wxPyBeginAllowThreads();
25442 result = (arg1)->GetToolMargins();
25443 wxPyEndAllowThreads(__tstate);
25444 if (PyErr_Occurred()) SWIG_fail;
25445 }
25446 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25447 return resultobj;
25448 fail:
25449 return NULL;
25450 }
25451
25452
25453 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25454 PyObject *resultobj = 0;
25455 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25456 wxSize result;
25457 void *argp1 = 0 ;
25458 int res1 = 0 ;
25459 PyObject *swig_obj[1] ;
25460
25461 if (!args) SWIG_fail;
25462 swig_obj[0] = args;
25463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25464 if (!SWIG_IsOK(res1)) {
25465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25466 }
25467 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25468 {
25469 PyThreadState* __tstate = wxPyBeginAllowThreads();
25470 result = (arg1)->GetMargins();
25471 wxPyEndAllowThreads(__tstate);
25472 if (PyErr_Occurred()) SWIG_fail;
25473 }
25474 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25475 return resultobj;
25476 fail:
25477 return NULL;
25478 }
25479
25480
25481 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25482 PyObject *resultobj = 0;
25483 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25484 int result;
25485 void *argp1 = 0 ;
25486 int res1 = 0 ;
25487 PyObject *swig_obj[1] ;
25488
25489 if (!args) SWIG_fail;
25490 swig_obj[0] = args;
25491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25492 if (!SWIG_IsOK(res1)) {
25493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25494 }
25495 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25496 {
25497 PyThreadState* __tstate = wxPyBeginAllowThreads();
25498 result = (int)(arg1)->GetToolPacking();
25499 wxPyEndAllowThreads(__tstate);
25500 if (PyErr_Occurred()) SWIG_fail;
25501 }
25502 resultobj = SWIG_From_int(static_cast< int >(result));
25503 return resultobj;
25504 fail:
25505 return NULL;
25506 }
25507
25508
25509 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25510 PyObject *resultobj = 0;
25511 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25512 int result;
25513 void *argp1 = 0 ;
25514 int res1 = 0 ;
25515 PyObject *swig_obj[1] ;
25516
25517 if (!args) SWIG_fail;
25518 swig_obj[0] = args;
25519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25520 if (!SWIG_IsOK(res1)) {
25521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25522 }
25523 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25524 {
25525 PyThreadState* __tstate = wxPyBeginAllowThreads();
25526 result = (int)(arg1)->GetToolSeparation();
25527 wxPyEndAllowThreads(__tstate);
25528 if (PyErr_Occurred()) SWIG_fail;
25529 }
25530 resultobj = SWIG_From_int(static_cast< int >(result));
25531 return resultobj;
25532 fail:
25533 return NULL;
25534 }
25535
25536
25537 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25538 PyObject *resultobj = 0;
25539 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25540 int arg2 ;
25541 void *argp1 = 0 ;
25542 int res1 = 0 ;
25543 int val2 ;
25544 int ecode2 = 0 ;
25545 PyObject * obj0 = 0 ;
25546 PyObject * obj1 = 0 ;
25547 char * kwnames[] = {
25548 (char *) "self",(char *) "nRows", NULL
25549 };
25550
25551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25553 if (!SWIG_IsOK(res1)) {
25554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25555 }
25556 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25557 ecode2 = SWIG_AsVal_int(obj1, &val2);
25558 if (!SWIG_IsOK(ecode2)) {
25559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25560 }
25561 arg2 = static_cast< int >(val2);
25562 {
25563 PyThreadState* __tstate = wxPyBeginAllowThreads();
25564 (arg1)->SetRows(arg2);
25565 wxPyEndAllowThreads(__tstate);
25566 if (PyErr_Occurred()) SWIG_fail;
25567 }
25568 resultobj = SWIG_Py_Void();
25569 return resultobj;
25570 fail:
25571 return NULL;
25572 }
25573
25574
25575 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25576 PyObject *resultobj = 0;
25577 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25578 int arg2 ;
25579 int arg3 ;
25580 void *argp1 = 0 ;
25581 int res1 = 0 ;
25582 int val2 ;
25583 int ecode2 = 0 ;
25584 int val3 ;
25585 int ecode3 = 0 ;
25586 PyObject * obj0 = 0 ;
25587 PyObject * obj1 = 0 ;
25588 PyObject * obj2 = 0 ;
25589 char * kwnames[] = {
25590 (char *) "self",(char *) "rows",(char *) "cols", NULL
25591 };
25592
25593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25595 if (!SWIG_IsOK(res1)) {
25596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25597 }
25598 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25599 ecode2 = SWIG_AsVal_int(obj1, &val2);
25600 if (!SWIG_IsOK(ecode2)) {
25601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25602 }
25603 arg2 = static_cast< int >(val2);
25604 ecode3 = SWIG_AsVal_int(obj2, &val3);
25605 if (!SWIG_IsOK(ecode3)) {
25606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25607 }
25608 arg3 = static_cast< int >(val3);
25609 {
25610 PyThreadState* __tstate = wxPyBeginAllowThreads();
25611 (arg1)->SetMaxRowsCols(arg2,arg3);
25612 wxPyEndAllowThreads(__tstate);
25613 if (PyErr_Occurred()) SWIG_fail;
25614 }
25615 resultobj = SWIG_Py_Void();
25616 return resultobj;
25617 fail:
25618 return NULL;
25619 }
25620
25621
25622 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25623 PyObject *resultobj = 0;
25624 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25625 int result;
25626 void *argp1 = 0 ;
25627 int res1 = 0 ;
25628 PyObject *swig_obj[1] ;
25629
25630 if (!args) SWIG_fail;
25631 swig_obj[0] = args;
25632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25633 if (!SWIG_IsOK(res1)) {
25634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25635 }
25636 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25637 {
25638 PyThreadState* __tstate = wxPyBeginAllowThreads();
25639 result = (int)(arg1)->GetMaxRows();
25640 wxPyEndAllowThreads(__tstate);
25641 if (PyErr_Occurred()) SWIG_fail;
25642 }
25643 resultobj = SWIG_From_int(static_cast< int >(result));
25644 return resultobj;
25645 fail:
25646 return NULL;
25647 }
25648
25649
25650 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25651 PyObject *resultobj = 0;
25652 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25653 int result;
25654 void *argp1 = 0 ;
25655 int res1 = 0 ;
25656 PyObject *swig_obj[1] ;
25657
25658 if (!args) SWIG_fail;
25659 swig_obj[0] = args;
25660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25661 if (!SWIG_IsOK(res1)) {
25662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25663 }
25664 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25665 {
25666 PyThreadState* __tstate = wxPyBeginAllowThreads();
25667 result = (int)(arg1)->GetMaxCols();
25668 wxPyEndAllowThreads(__tstate);
25669 if (PyErr_Occurred()) SWIG_fail;
25670 }
25671 resultobj = SWIG_From_int(static_cast< int >(result));
25672 return resultobj;
25673 fail:
25674 return NULL;
25675 }
25676
25677
25678 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25679 PyObject *resultobj = 0;
25680 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25681 wxSize *arg2 = 0 ;
25682 void *argp1 = 0 ;
25683 int res1 = 0 ;
25684 wxSize temp2 ;
25685 PyObject * obj0 = 0 ;
25686 PyObject * obj1 = 0 ;
25687 char * kwnames[] = {
25688 (char *) "self",(char *) "size", NULL
25689 };
25690
25691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25693 if (!SWIG_IsOK(res1)) {
25694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25695 }
25696 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25697 {
25698 arg2 = &temp2;
25699 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25700 }
25701 {
25702 PyThreadState* __tstate = wxPyBeginAllowThreads();
25703 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25704 wxPyEndAllowThreads(__tstate);
25705 if (PyErr_Occurred()) SWIG_fail;
25706 }
25707 resultobj = SWIG_Py_Void();
25708 return resultobj;
25709 fail:
25710 return NULL;
25711 }
25712
25713
25714 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25715 PyObject *resultobj = 0;
25716 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25717 wxSize result;
25718 void *argp1 = 0 ;
25719 int res1 = 0 ;
25720 PyObject *swig_obj[1] ;
25721
25722 if (!args) SWIG_fail;
25723 swig_obj[0] = args;
25724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25725 if (!SWIG_IsOK(res1)) {
25726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25727 }
25728 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25729 {
25730 PyThreadState* __tstate = wxPyBeginAllowThreads();
25731 result = (arg1)->GetToolBitmapSize();
25732 wxPyEndAllowThreads(__tstate);
25733 if (PyErr_Occurred()) SWIG_fail;
25734 }
25735 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25736 return resultobj;
25737 fail:
25738 return NULL;
25739 }
25740
25741
25742 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25743 PyObject *resultobj = 0;
25744 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25745 wxSize result;
25746 void *argp1 = 0 ;
25747 int res1 = 0 ;
25748 PyObject *swig_obj[1] ;
25749
25750 if (!args) SWIG_fail;
25751 swig_obj[0] = args;
25752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25753 if (!SWIG_IsOK(res1)) {
25754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25755 }
25756 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25757 {
25758 PyThreadState* __tstate = wxPyBeginAllowThreads();
25759 result = (arg1)->GetToolSize();
25760 wxPyEndAllowThreads(__tstate);
25761 if (PyErr_Occurred()) SWIG_fail;
25762 }
25763 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25764 return resultobj;
25765 fail:
25766 return NULL;
25767 }
25768
25769
25770 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25771 PyObject *resultobj = 0;
25772 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25773 int arg2 ;
25774 int arg3 ;
25775 wxToolBarToolBase *result = 0 ;
25776 void *argp1 = 0 ;
25777 int res1 = 0 ;
25778 int val2 ;
25779 int ecode2 = 0 ;
25780 int val3 ;
25781 int ecode3 = 0 ;
25782 PyObject * obj0 = 0 ;
25783 PyObject * obj1 = 0 ;
25784 PyObject * obj2 = 0 ;
25785 char * kwnames[] = {
25786 (char *) "self",(char *) "x",(char *) "y", NULL
25787 };
25788
25789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25791 if (!SWIG_IsOK(res1)) {
25792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25793 }
25794 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25795 ecode2 = SWIG_AsVal_int(obj1, &val2);
25796 if (!SWIG_IsOK(ecode2)) {
25797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25798 }
25799 arg2 = static_cast< int >(val2);
25800 ecode3 = SWIG_AsVal_int(obj2, &val3);
25801 if (!SWIG_IsOK(ecode3)) {
25802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25803 }
25804 arg3 = static_cast< int >(val3);
25805 {
25806 PyThreadState* __tstate = wxPyBeginAllowThreads();
25807 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25808 wxPyEndAllowThreads(__tstate);
25809 if (PyErr_Occurred()) SWIG_fail;
25810 }
25811 {
25812 resultobj = wxPyMake_wxObject(result, (bool)0);
25813 }
25814 return resultobj;
25815 fail:
25816 return NULL;
25817 }
25818
25819
25820 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25821 PyObject *resultobj = 0;
25822 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25823 int arg2 ;
25824 wxToolBarToolBase *result = 0 ;
25825 void *argp1 = 0 ;
25826 int res1 = 0 ;
25827 int val2 ;
25828 int ecode2 = 0 ;
25829 PyObject * obj0 = 0 ;
25830 PyObject * obj1 = 0 ;
25831 char * kwnames[] = {
25832 (char *) "self",(char *) "toolid", NULL
25833 };
25834
25835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25837 if (!SWIG_IsOK(res1)) {
25838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25839 }
25840 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25841 ecode2 = SWIG_AsVal_int(obj1, &val2);
25842 if (!SWIG_IsOK(ecode2)) {
25843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25844 }
25845 arg2 = static_cast< int >(val2);
25846 {
25847 PyThreadState* __tstate = wxPyBeginAllowThreads();
25848 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25849 wxPyEndAllowThreads(__tstate);
25850 if (PyErr_Occurred()) SWIG_fail;
25851 }
25852 {
25853 resultobj = wxPyMake_wxObject(result, (bool)0);
25854 }
25855 return resultobj;
25856 fail:
25857 return NULL;
25858 }
25859
25860
25861 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25862 PyObject *resultobj = 0;
25863 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25864 bool result;
25865 void *argp1 = 0 ;
25866 int res1 = 0 ;
25867 PyObject *swig_obj[1] ;
25868
25869 if (!args) SWIG_fail;
25870 swig_obj[0] = args;
25871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25872 if (!SWIG_IsOK(res1)) {
25873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25874 }
25875 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25876 {
25877 PyThreadState* __tstate = wxPyBeginAllowThreads();
25878 result = (bool)(arg1)->IsVertical();
25879 wxPyEndAllowThreads(__tstate);
25880 if (PyErr_Occurred()) SWIG_fail;
25881 }
25882 {
25883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25884 }
25885 return resultobj;
25886 fail:
25887 return NULL;
25888 }
25889
25890
25891 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25892 PyObject *resultobj = 0;
25893 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25894 size_t result;
25895 void *argp1 = 0 ;
25896 int res1 = 0 ;
25897 PyObject *swig_obj[1] ;
25898
25899 if (!args) SWIG_fail;
25900 swig_obj[0] = args;
25901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25902 if (!SWIG_IsOK(res1)) {
25903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25904 }
25905 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25906 {
25907 PyThreadState* __tstate = wxPyBeginAllowThreads();
25908 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25909 wxPyEndAllowThreads(__tstate);
25910 if (PyErr_Occurred()) SWIG_fail;
25911 }
25912 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25913 return resultobj;
25914 fail:
25915 return NULL;
25916 }
25917
25918
25919 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25920 PyObject *obj;
25921 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25922 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25923 return SWIG_Py_Void();
25924 }
25925
25926 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25927 PyObject *resultobj = 0;
25928 wxWindow *arg1 = (wxWindow *) 0 ;
25929 int arg2 = (int) -1 ;
25930 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25931 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25932 wxSize const &arg4_defvalue = wxDefaultSize ;
25933 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25934 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25935 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25936 wxString *arg6 = (wxString *) &arg6_defvalue ;
25937 wxToolBar *result = 0 ;
25938 void *argp1 = 0 ;
25939 int res1 = 0 ;
25940 int val2 ;
25941 int ecode2 = 0 ;
25942 wxPoint temp3 ;
25943 wxSize temp4 ;
25944 long val5 ;
25945 int ecode5 = 0 ;
25946 bool temp6 = false ;
25947 PyObject * obj0 = 0 ;
25948 PyObject * obj1 = 0 ;
25949 PyObject * obj2 = 0 ;
25950 PyObject * obj3 = 0 ;
25951 PyObject * obj4 = 0 ;
25952 PyObject * obj5 = 0 ;
25953 char * kwnames[] = {
25954 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25955 };
25956
25957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25959 if (!SWIG_IsOK(res1)) {
25960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25961 }
25962 arg1 = reinterpret_cast< wxWindow * >(argp1);
25963 if (obj1) {
25964 ecode2 = SWIG_AsVal_int(obj1, &val2);
25965 if (!SWIG_IsOK(ecode2)) {
25966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25967 }
25968 arg2 = static_cast< int >(val2);
25969 }
25970 if (obj2) {
25971 {
25972 arg3 = &temp3;
25973 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25974 }
25975 }
25976 if (obj3) {
25977 {
25978 arg4 = &temp4;
25979 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25980 }
25981 }
25982 if (obj4) {
25983 ecode5 = SWIG_AsVal_long(obj4, &val5);
25984 if (!SWIG_IsOK(ecode5)) {
25985 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25986 }
25987 arg5 = static_cast< long >(val5);
25988 }
25989 if (obj5) {
25990 {
25991 arg6 = wxString_in_helper(obj5);
25992 if (arg6 == NULL) SWIG_fail;
25993 temp6 = true;
25994 }
25995 }
25996 {
25997 if (!wxPyCheckForApp()) SWIG_fail;
25998 PyThreadState* __tstate = wxPyBeginAllowThreads();
25999 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
26000 wxPyEndAllowThreads(__tstate);
26001 if (PyErr_Occurred()) SWIG_fail;
26002 }
26003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
26004 {
26005 if (temp6)
26006 delete arg6;
26007 }
26008 return resultobj;
26009 fail:
26010 {
26011 if (temp6)
26012 delete arg6;
26013 }
26014 return NULL;
26015 }
26016
26017
26018 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26019 PyObject *resultobj = 0;
26020 wxToolBar *result = 0 ;
26021
26022 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
26023 {
26024 if (!wxPyCheckForApp()) SWIG_fail;
26025 PyThreadState* __tstate = wxPyBeginAllowThreads();
26026 result = (wxToolBar *)new wxToolBar();
26027 wxPyEndAllowThreads(__tstate);
26028 if (PyErr_Occurred()) SWIG_fail;
26029 }
26030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
26031 return resultobj;
26032 fail:
26033 return NULL;
26034 }
26035
26036
26037 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26038 PyObject *resultobj = 0;
26039 wxToolBar *arg1 = (wxToolBar *) 0 ;
26040 wxWindow *arg2 = (wxWindow *) 0 ;
26041 int arg3 = (int) -1 ;
26042 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26043 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26044 wxSize const &arg5_defvalue = wxDefaultSize ;
26045 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26046 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
26047 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
26048 wxString *arg7 = (wxString *) &arg7_defvalue ;
26049 bool result;
26050 void *argp1 = 0 ;
26051 int res1 = 0 ;
26052 void *argp2 = 0 ;
26053 int res2 = 0 ;
26054 int val3 ;
26055 int ecode3 = 0 ;
26056 wxPoint temp4 ;
26057 wxSize temp5 ;
26058 long val6 ;
26059 int ecode6 = 0 ;
26060 bool temp7 = false ;
26061 PyObject * obj0 = 0 ;
26062 PyObject * obj1 = 0 ;
26063 PyObject * obj2 = 0 ;
26064 PyObject * obj3 = 0 ;
26065 PyObject * obj4 = 0 ;
26066 PyObject * obj5 = 0 ;
26067 PyObject * obj6 = 0 ;
26068 char * kwnames[] = {
26069 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26070 };
26071
26072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26074 if (!SWIG_IsOK(res1)) {
26075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
26076 }
26077 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26078 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26079 if (!SWIG_IsOK(res2)) {
26080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
26081 }
26082 arg2 = reinterpret_cast< wxWindow * >(argp2);
26083 if (obj2) {
26084 ecode3 = SWIG_AsVal_int(obj2, &val3);
26085 if (!SWIG_IsOK(ecode3)) {
26086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
26087 }
26088 arg3 = static_cast< int >(val3);
26089 }
26090 if (obj3) {
26091 {
26092 arg4 = &temp4;
26093 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26094 }
26095 }
26096 if (obj4) {
26097 {
26098 arg5 = &temp5;
26099 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26100 }
26101 }
26102 if (obj5) {
26103 ecode6 = SWIG_AsVal_long(obj5, &val6);
26104 if (!SWIG_IsOK(ecode6)) {
26105 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
26106 }
26107 arg6 = static_cast< long >(val6);
26108 }
26109 if (obj6) {
26110 {
26111 arg7 = wxString_in_helper(obj6);
26112 if (arg7 == NULL) SWIG_fail;
26113 temp7 = true;
26114 }
26115 }
26116 {
26117 PyThreadState* __tstate = wxPyBeginAllowThreads();
26118 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
26119 wxPyEndAllowThreads(__tstate);
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 {
26123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26124 }
26125 {
26126 if (temp7)
26127 delete arg7;
26128 }
26129 return resultobj;
26130 fail:
26131 {
26132 if (temp7)
26133 delete arg7;
26134 }
26135 return NULL;
26136 }
26137
26138
26139 SWIGINTERN PyObject *_wrap_ToolBar_SetToolNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26140 PyObject *resultobj = 0;
26141 wxToolBar *arg1 = (wxToolBar *) 0 ;
26142 int arg2 ;
26143 wxBitmap *arg3 = 0 ;
26144 void *argp1 = 0 ;
26145 int res1 = 0 ;
26146 int val2 ;
26147 int ecode2 = 0 ;
26148 void *argp3 = 0 ;
26149 int res3 = 0 ;
26150 PyObject * obj0 = 0 ;
26151 PyObject * obj1 = 0 ;
26152 PyObject * obj2 = 0 ;
26153 char * kwnames[] = {
26154 (char *) "self",(char *) "id",(char *) "bitmap", NULL
26155 };
26156
26157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolNormalBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26159 if (!SWIG_IsOK(res1)) {
26160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'");
26161 }
26162 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26163 ecode2 = SWIG_AsVal_int(obj1, &val2);
26164 if (!SWIG_IsOK(ecode2)) {
26165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "2"" of type '" "int""'");
26166 }
26167 arg2 = static_cast< int >(val2);
26168 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26169 if (!SWIG_IsOK(res3)) {
26170 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26171 }
26172 if (!argp3) {
26173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26174 }
26175 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26176 {
26177 PyThreadState* __tstate = wxPyBeginAllowThreads();
26178 (arg1)->SetToolNormalBitmap(arg2,(wxBitmap const &)*arg3);
26179 wxPyEndAllowThreads(__tstate);
26180 if (PyErr_Occurred()) SWIG_fail;
26181 }
26182 resultobj = SWIG_Py_Void();
26183 return resultobj;
26184 fail:
26185 return NULL;
26186 }
26187
26188
26189 SWIGINTERN PyObject *_wrap_ToolBar_SetToolDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26190 PyObject *resultobj = 0;
26191 wxToolBar *arg1 = (wxToolBar *) 0 ;
26192 int arg2 ;
26193 wxBitmap *arg3 = 0 ;
26194 void *argp1 = 0 ;
26195 int res1 = 0 ;
26196 int val2 ;
26197 int ecode2 = 0 ;
26198 void *argp3 = 0 ;
26199 int res3 = 0 ;
26200 PyObject * obj0 = 0 ;
26201 PyObject * obj1 = 0 ;
26202 PyObject * obj2 = 0 ;
26203 char * kwnames[] = {
26204 (char *) "self",(char *) "id",(char *) "bitmap", NULL
26205 };
26206
26207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolDisabledBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26209 if (!SWIG_IsOK(res1)) {
26210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'");
26211 }
26212 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26213 ecode2 = SWIG_AsVal_int(obj1, &val2);
26214 if (!SWIG_IsOK(ecode2)) {
26215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "2"" of type '" "int""'");
26216 }
26217 arg2 = static_cast< int >(val2);
26218 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26219 if (!SWIG_IsOK(res3)) {
26220 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26221 }
26222 if (!argp3) {
26223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26224 }
26225 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26226 {
26227 PyThreadState* __tstate = wxPyBeginAllowThreads();
26228 (arg1)->SetToolDisabledBitmap(arg2,(wxBitmap const &)*arg3);
26229 wxPyEndAllowThreads(__tstate);
26230 if (PyErr_Occurred()) SWIG_fail;
26231 }
26232 resultobj = SWIG_Py_Void();
26233 return resultobj;
26234 fail:
26235 return NULL;
26236 }
26237
26238
26239 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26240 PyObject *resultobj = 0;
26241 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26242 SwigValueWrapper<wxVisualAttributes > result;
26243 int val1 ;
26244 int ecode1 = 0 ;
26245 PyObject * obj0 = 0 ;
26246 char * kwnames[] = {
26247 (char *) "variant", NULL
26248 };
26249
26250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26251 if (obj0) {
26252 ecode1 = SWIG_AsVal_int(obj0, &val1);
26253 if (!SWIG_IsOK(ecode1)) {
26254 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26255 }
26256 arg1 = static_cast< wxWindowVariant >(val1);
26257 }
26258 {
26259 if (!wxPyCheckForApp()) SWIG_fail;
26260 PyThreadState* __tstate = wxPyBeginAllowThreads();
26261 result = wxToolBar::GetClassDefaultAttributes(arg1);
26262 wxPyEndAllowThreads(__tstate);
26263 if (PyErr_Occurred()) SWIG_fail;
26264 }
26265 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26266 return resultobj;
26267 fail:
26268 return NULL;
26269 }
26270
26271
26272 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26273 PyObject *obj;
26274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26275 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26276 return SWIG_Py_Void();
26277 }
26278
26279 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26280 return SWIG_Python_InitShadowInstance(args);
26281 }
26282
26283 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26284 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26285 return 1;
26286 }
26287
26288
26289 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26290 PyObject *pyobj = 0;
26291
26292 {
26293 #if wxUSE_UNICODE
26294 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26295 #else
26296 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26297 #endif
26298 }
26299 return pyobj;
26300 }
26301
26302
26303 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26304 PyObject *resultobj = 0;
26305 wxColour const &arg1_defvalue = wxNullColour ;
26306 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26307 wxColour const &arg2_defvalue = wxNullColour ;
26308 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26309 wxFont const &arg3_defvalue = wxNullFont ;
26310 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26311 wxListItemAttr *result = 0 ;
26312 wxColour temp1 ;
26313 wxColour temp2 ;
26314 void *argp3 = 0 ;
26315 int res3 = 0 ;
26316 PyObject * obj0 = 0 ;
26317 PyObject * obj1 = 0 ;
26318 PyObject * obj2 = 0 ;
26319 char * kwnames[] = {
26320 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26321 };
26322
26323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26324 if (obj0) {
26325 {
26326 arg1 = &temp1;
26327 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26328 }
26329 }
26330 if (obj1) {
26331 {
26332 arg2 = &temp2;
26333 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26334 }
26335 }
26336 if (obj2) {
26337 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26338 if (!SWIG_IsOK(res3)) {
26339 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26340 }
26341 if (!argp3) {
26342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26343 }
26344 arg3 = reinterpret_cast< wxFont * >(argp3);
26345 }
26346 {
26347 PyThreadState* __tstate = wxPyBeginAllowThreads();
26348 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26349 wxPyEndAllowThreads(__tstate);
26350 if (PyErr_Occurred()) SWIG_fail;
26351 }
26352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26353 return resultobj;
26354 fail:
26355 return NULL;
26356 }
26357
26358
26359 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26360 PyObject *resultobj = 0;
26361 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26362 void *argp1 = 0 ;
26363 int res1 = 0 ;
26364 PyObject *swig_obj[1] ;
26365
26366 if (!args) SWIG_fail;
26367 swig_obj[0] = args;
26368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26369 if (!SWIG_IsOK(res1)) {
26370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26371 }
26372 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26373 {
26374 PyThreadState* __tstate = wxPyBeginAllowThreads();
26375 delete arg1;
26376
26377 wxPyEndAllowThreads(__tstate);
26378 if (PyErr_Occurred()) SWIG_fail;
26379 }
26380 resultobj = SWIG_Py_Void();
26381 return resultobj;
26382 fail:
26383 return NULL;
26384 }
26385
26386
26387 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26388 PyObject *resultobj = 0;
26389 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26390 wxColour *arg2 = 0 ;
26391 void *argp1 = 0 ;
26392 int res1 = 0 ;
26393 wxColour temp2 ;
26394 PyObject * obj0 = 0 ;
26395 PyObject * obj1 = 0 ;
26396 char * kwnames[] = {
26397 (char *) "self",(char *) "colText", NULL
26398 };
26399
26400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26402 if (!SWIG_IsOK(res1)) {
26403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26404 }
26405 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26406 {
26407 arg2 = &temp2;
26408 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26409 }
26410 {
26411 PyThreadState* __tstate = wxPyBeginAllowThreads();
26412 (arg1)->SetTextColour((wxColour const &)*arg2);
26413 wxPyEndAllowThreads(__tstate);
26414 if (PyErr_Occurred()) SWIG_fail;
26415 }
26416 resultobj = SWIG_Py_Void();
26417 return resultobj;
26418 fail:
26419 return NULL;
26420 }
26421
26422
26423 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26424 PyObject *resultobj = 0;
26425 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26426 wxColour *arg2 = 0 ;
26427 void *argp1 = 0 ;
26428 int res1 = 0 ;
26429 wxColour temp2 ;
26430 PyObject * obj0 = 0 ;
26431 PyObject * obj1 = 0 ;
26432 char * kwnames[] = {
26433 (char *) "self",(char *) "colBack", NULL
26434 };
26435
26436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26438 if (!SWIG_IsOK(res1)) {
26439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26440 }
26441 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26442 {
26443 arg2 = &temp2;
26444 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26445 }
26446 {
26447 PyThreadState* __tstate = wxPyBeginAllowThreads();
26448 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26449 wxPyEndAllowThreads(__tstate);
26450 if (PyErr_Occurred()) SWIG_fail;
26451 }
26452 resultobj = SWIG_Py_Void();
26453 return resultobj;
26454 fail:
26455 return NULL;
26456 }
26457
26458
26459 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26460 PyObject *resultobj = 0;
26461 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26462 wxFont *arg2 = 0 ;
26463 void *argp1 = 0 ;
26464 int res1 = 0 ;
26465 void *argp2 = 0 ;
26466 int res2 = 0 ;
26467 PyObject * obj0 = 0 ;
26468 PyObject * obj1 = 0 ;
26469 char * kwnames[] = {
26470 (char *) "self",(char *) "font", NULL
26471 };
26472
26473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26475 if (!SWIG_IsOK(res1)) {
26476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26477 }
26478 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26479 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26480 if (!SWIG_IsOK(res2)) {
26481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26482 }
26483 if (!argp2) {
26484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26485 }
26486 arg2 = reinterpret_cast< wxFont * >(argp2);
26487 {
26488 PyThreadState* __tstate = wxPyBeginAllowThreads();
26489 (arg1)->SetFont((wxFont const &)*arg2);
26490 wxPyEndAllowThreads(__tstate);
26491 if (PyErr_Occurred()) SWIG_fail;
26492 }
26493 resultobj = SWIG_Py_Void();
26494 return resultobj;
26495 fail:
26496 return NULL;
26497 }
26498
26499
26500 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26501 PyObject *resultobj = 0;
26502 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26503 bool result;
26504 void *argp1 = 0 ;
26505 int res1 = 0 ;
26506 PyObject *swig_obj[1] ;
26507
26508 if (!args) SWIG_fail;
26509 swig_obj[0] = args;
26510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26511 if (!SWIG_IsOK(res1)) {
26512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26513 }
26514 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26515 {
26516 PyThreadState* __tstate = wxPyBeginAllowThreads();
26517 result = (bool)(arg1)->HasTextColour();
26518 wxPyEndAllowThreads(__tstate);
26519 if (PyErr_Occurred()) SWIG_fail;
26520 }
26521 {
26522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26523 }
26524 return resultobj;
26525 fail:
26526 return NULL;
26527 }
26528
26529
26530 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26531 PyObject *resultobj = 0;
26532 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26533 bool result;
26534 void *argp1 = 0 ;
26535 int res1 = 0 ;
26536 PyObject *swig_obj[1] ;
26537
26538 if (!args) SWIG_fail;
26539 swig_obj[0] = args;
26540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26541 if (!SWIG_IsOK(res1)) {
26542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26543 }
26544 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26545 {
26546 PyThreadState* __tstate = wxPyBeginAllowThreads();
26547 result = (bool)(arg1)->HasBackgroundColour();
26548 wxPyEndAllowThreads(__tstate);
26549 if (PyErr_Occurred()) SWIG_fail;
26550 }
26551 {
26552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26553 }
26554 return resultobj;
26555 fail:
26556 return NULL;
26557 }
26558
26559
26560 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26561 PyObject *resultobj = 0;
26562 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26563 bool result;
26564 void *argp1 = 0 ;
26565 int res1 = 0 ;
26566 PyObject *swig_obj[1] ;
26567
26568 if (!args) SWIG_fail;
26569 swig_obj[0] = args;
26570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26571 if (!SWIG_IsOK(res1)) {
26572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26573 }
26574 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26575 {
26576 PyThreadState* __tstate = wxPyBeginAllowThreads();
26577 result = (bool)(arg1)->HasFont();
26578 wxPyEndAllowThreads(__tstate);
26579 if (PyErr_Occurred()) SWIG_fail;
26580 }
26581 {
26582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26583 }
26584 return resultobj;
26585 fail:
26586 return NULL;
26587 }
26588
26589
26590 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26591 PyObject *resultobj = 0;
26592 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26593 wxColour result;
26594 void *argp1 = 0 ;
26595 int res1 = 0 ;
26596 PyObject *swig_obj[1] ;
26597
26598 if (!args) SWIG_fail;
26599 swig_obj[0] = args;
26600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26601 if (!SWIG_IsOK(res1)) {
26602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26603 }
26604 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26605 {
26606 PyThreadState* __tstate = wxPyBeginAllowThreads();
26607 result = (arg1)->GetTextColour();
26608 wxPyEndAllowThreads(__tstate);
26609 if (PyErr_Occurred()) SWIG_fail;
26610 }
26611 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26612 return resultobj;
26613 fail:
26614 return NULL;
26615 }
26616
26617
26618 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26619 PyObject *resultobj = 0;
26620 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26621 wxColour result;
26622 void *argp1 = 0 ;
26623 int res1 = 0 ;
26624 PyObject *swig_obj[1] ;
26625
26626 if (!args) SWIG_fail;
26627 swig_obj[0] = args;
26628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26629 if (!SWIG_IsOK(res1)) {
26630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26631 }
26632 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26633 {
26634 PyThreadState* __tstate = wxPyBeginAllowThreads();
26635 result = (arg1)->GetBackgroundColour();
26636 wxPyEndAllowThreads(__tstate);
26637 if (PyErr_Occurred()) SWIG_fail;
26638 }
26639 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26640 return resultobj;
26641 fail:
26642 return NULL;
26643 }
26644
26645
26646 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26647 PyObject *resultobj = 0;
26648 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26649 wxFont result;
26650 void *argp1 = 0 ;
26651 int res1 = 0 ;
26652 PyObject *swig_obj[1] ;
26653
26654 if (!args) SWIG_fail;
26655 swig_obj[0] = args;
26656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26657 if (!SWIG_IsOK(res1)) {
26658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26659 }
26660 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26661 {
26662 PyThreadState* __tstate = wxPyBeginAllowThreads();
26663 result = (arg1)->GetFont();
26664 wxPyEndAllowThreads(__tstate);
26665 if (PyErr_Occurred()) SWIG_fail;
26666 }
26667 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26668 return resultobj;
26669 fail:
26670 return NULL;
26671 }
26672
26673
26674 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26675 PyObject *resultobj = 0;
26676 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26677 wxListItemAttr *arg2 = 0 ;
26678 void *argp1 = 0 ;
26679 int res1 = 0 ;
26680 void *argp2 = 0 ;
26681 int res2 = 0 ;
26682 PyObject * obj0 = 0 ;
26683 PyObject * obj1 = 0 ;
26684 char * kwnames[] = {
26685 (char *) "self",(char *) "source", NULL
26686 };
26687
26688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26690 if (!SWIG_IsOK(res1)) {
26691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26692 }
26693 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26695 if (!SWIG_IsOK(res2)) {
26696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26697 }
26698 if (!argp2) {
26699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26700 }
26701 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26702 {
26703 PyThreadState* __tstate = wxPyBeginAllowThreads();
26704 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26705 wxPyEndAllowThreads(__tstate);
26706 if (PyErr_Occurred()) SWIG_fail;
26707 }
26708 resultobj = SWIG_Py_Void();
26709 return resultobj;
26710 fail:
26711 return NULL;
26712 }
26713
26714
26715 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26716 PyObject *resultobj = 0;
26717 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26718 void *argp1 = 0 ;
26719 int res1 = 0 ;
26720 PyObject *swig_obj[1] ;
26721
26722 if (!args) SWIG_fail;
26723 swig_obj[0] = args;
26724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26725 if (!SWIG_IsOK(res1)) {
26726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26727 }
26728 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26729 {
26730 PyThreadState* __tstate = wxPyBeginAllowThreads();
26731 wxListItemAttr_Destroy(arg1);
26732 wxPyEndAllowThreads(__tstate);
26733 if (PyErr_Occurred()) SWIG_fail;
26734 }
26735 resultobj = SWIG_Py_Void();
26736 return resultobj;
26737 fail:
26738 return NULL;
26739 }
26740
26741
26742 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26743 PyObject *obj;
26744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26745 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26746 return SWIG_Py_Void();
26747 }
26748
26749 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26750 return SWIG_Python_InitShadowInstance(args);
26751 }
26752
26753 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26754 PyObject *resultobj = 0;
26755 wxListItem *result = 0 ;
26756
26757 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26758 {
26759 PyThreadState* __tstate = wxPyBeginAllowThreads();
26760 result = (wxListItem *)new wxListItem();
26761 wxPyEndAllowThreads(__tstate);
26762 if (PyErr_Occurred()) SWIG_fail;
26763 }
26764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26765 return resultobj;
26766 fail:
26767 return NULL;
26768 }
26769
26770
26771 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26772 PyObject *resultobj = 0;
26773 wxListItem *arg1 = (wxListItem *) 0 ;
26774 void *argp1 = 0 ;
26775 int res1 = 0 ;
26776 PyObject *swig_obj[1] ;
26777
26778 if (!args) SWIG_fail;
26779 swig_obj[0] = args;
26780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26781 if (!SWIG_IsOK(res1)) {
26782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26783 }
26784 arg1 = reinterpret_cast< wxListItem * >(argp1);
26785 {
26786 PyThreadState* __tstate = wxPyBeginAllowThreads();
26787 delete arg1;
26788
26789 wxPyEndAllowThreads(__tstate);
26790 if (PyErr_Occurred()) SWIG_fail;
26791 }
26792 resultobj = SWIG_Py_Void();
26793 return resultobj;
26794 fail:
26795 return NULL;
26796 }
26797
26798
26799 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26800 PyObject *resultobj = 0;
26801 wxListItem *arg1 = (wxListItem *) 0 ;
26802 void *argp1 = 0 ;
26803 int res1 = 0 ;
26804 PyObject *swig_obj[1] ;
26805
26806 if (!args) SWIG_fail;
26807 swig_obj[0] = args;
26808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26809 if (!SWIG_IsOK(res1)) {
26810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26811 }
26812 arg1 = reinterpret_cast< wxListItem * >(argp1);
26813 {
26814 PyThreadState* __tstate = wxPyBeginAllowThreads();
26815 (arg1)->Clear();
26816 wxPyEndAllowThreads(__tstate);
26817 if (PyErr_Occurred()) SWIG_fail;
26818 }
26819 resultobj = SWIG_Py_Void();
26820 return resultobj;
26821 fail:
26822 return NULL;
26823 }
26824
26825
26826 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26827 PyObject *resultobj = 0;
26828 wxListItem *arg1 = (wxListItem *) 0 ;
26829 void *argp1 = 0 ;
26830 int res1 = 0 ;
26831 PyObject *swig_obj[1] ;
26832
26833 if (!args) SWIG_fail;
26834 swig_obj[0] = args;
26835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26836 if (!SWIG_IsOK(res1)) {
26837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26838 }
26839 arg1 = reinterpret_cast< wxListItem * >(argp1);
26840 {
26841 PyThreadState* __tstate = wxPyBeginAllowThreads();
26842 (arg1)->ClearAttributes();
26843 wxPyEndAllowThreads(__tstate);
26844 if (PyErr_Occurred()) SWIG_fail;
26845 }
26846 resultobj = SWIG_Py_Void();
26847 return resultobj;
26848 fail:
26849 return NULL;
26850 }
26851
26852
26853 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26854 PyObject *resultobj = 0;
26855 wxListItem *arg1 = (wxListItem *) 0 ;
26856 long arg2 ;
26857 void *argp1 = 0 ;
26858 int res1 = 0 ;
26859 long val2 ;
26860 int ecode2 = 0 ;
26861 PyObject * obj0 = 0 ;
26862 PyObject * obj1 = 0 ;
26863 char * kwnames[] = {
26864 (char *) "self",(char *) "mask", NULL
26865 };
26866
26867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26869 if (!SWIG_IsOK(res1)) {
26870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26871 }
26872 arg1 = reinterpret_cast< wxListItem * >(argp1);
26873 ecode2 = SWIG_AsVal_long(obj1, &val2);
26874 if (!SWIG_IsOK(ecode2)) {
26875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26876 }
26877 arg2 = static_cast< long >(val2);
26878 {
26879 PyThreadState* __tstate = wxPyBeginAllowThreads();
26880 (arg1)->SetMask(arg2);
26881 wxPyEndAllowThreads(__tstate);
26882 if (PyErr_Occurred()) SWIG_fail;
26883 }
26884 resultobj = SWIG_Py_Void();
26885 return resultobj;
26886 fail:
26887 return NULL;
26888 }
26889
26890
26891 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26892 PyObject *resultobj = 0;
26893 wxListItem *arg1 = (wxListItem *) 0 ;
26894 long arg2 ;
26895 void *argp1 = 0 ;
26896 int res1 = 0 ;
26897 long val2 ;
26898 int ecode2 = 0 ;
26899 PyObject * obj0 = 0 ;
26900 PyObject * obj1 = 0 ;
26901 char * kwnames[] = {
26902 (char *) "self",(char *) "id", NULL
26903 };
26904
26905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26907 if (!SWIG_IsOK(res1)) {
26908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26909 }
26910 arg1 = reinterpret_cast< wxListItem * >(argp1);
26911 ecode2 = SWIG_AsVal_long(obj1, &val2);
26912 if (!SWIG_IsOK(ecode2)) {
26913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26914 }
26915 arg2 = static_cast< long >(val2);
26916 {
26917 PyThreadState* __tstate = wxPyBeginAllowThreads();
26918 (arg1)->SetId(arg2);
26919 wxPyEndAllowThreads(__tstate);
26920 if (PyErr_Occurred()) SWIG_fail;
26921 }
26922 resultobj = SWIG_Py_Void();
26923 return resultobj;
26924 fail:
26925 return NULL;
26926 }
26927
26928
26929 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26930 PyObject *resultobj = 0;
26931 wxListItem *arg1 = (wxListItem *) 0 ;
26932 int arg2 ;
26933 void *argp1 = 0 ;
26934 int res1 = 0 ;
26935 int val2 ;
26936 int ecode2 = 0 ;
26937 PyObject * obj0 = 0 ;
26938 PyObject * obj1 = 0 ;
26939 char * kwnames[] = {
26940 (char *) "self",(char *) "col", NULL
26941 };
26942
26943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26945 if (!SWIG_IsOK(res1)) {
26946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26947 }
26948 arg1 = reinterpret_cast< wxListItem * >(argp1);
26949 ecode2 = SWIG_AsVal_int(obj1, &val2);
26950 if (!SWIG_IsOK(ecode2)) {
26951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26952 }
26953 arg2 = static_cast< int >(val2);
26954 {
26955 PyThreadState* __tstate = wxPyBeginAllowThreads();
26956 (arg1)->SetColumn(arg2);
26957 wxPyEndAllowThreads(__tstate);
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 resultobj = SWIG_Py_Void();
26961 return resultobj;
26962 fail:
26963 return NULL;
26964 }
26965
26966
26967 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26968 PyObject *resultobj = 0;
26969 wxListItem *arg1 = (wxListItem *) 0 ;
26970 long arg2 ;
26971 void *argp1 = 0 ;
26972 int res1 = 0 ;
26973 long val2 ;
26974 int ecode2 = 0 ;
26975 PyObject * obj0 = 0 ;
26976 PyObject * obj1 = 0 ;
26977 char * kwnames[] = {
26978 (char *) "self",(char *) "state", NULL
26979 };
26980
26981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26983 if (!SWIG_IsOK(res1)) {
26984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26985 }
26986 arg1 = reinterpret_cast< wxListItem * >(argp1);
26987 ecode2 = SWIG_AsVal_long(obj1, &val2);
26988 if (!SWIG_IsOK(ecode2)) {
26989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26990 }
26991 arg2 = static_cast< long >(val2);
26992 {
26993 PyThreadState* __tstate = wxPyBeginAllowThreads();
26994 (arg1)->SetState(arg2);
26995 wxPyEndAllowThreads(__tstate);
26996 if (PyErr_Occurred()) SWIG_fail;
26997 }
26998 resultobj = SWIG_Py_Void();
26999 return resultobj;
27000 fail:
27001 return NULL;
27002 }
27003
27004
27005 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27006 PyObject *resultobj = 0;
27007 wxListItem *arg1 = (wxListItem *) 0 ;
27008 long arg2 ;
27009 void *argp1 = 0 ;
27010 int res1 = 0 ;
27011 long val2 ;
27012 int ecode2 = 0 ;
27013 PyObject * obj0 = 0 ;
27014 PyObject * obj1 = 0 ;
27015 char * kwnames[] = {
27016 (char *) "self",(char *) "stateMask", NULL
27017 };
27018
27019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
27020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27021 if (!SWIG_IsOK(res1)) {
27022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27023 }
27024 arg1 = reinterpret_cast< wxListItem * >(argp1);
27025 ecode2 = SWIG_AsVal_long(obj1, &val2);
27026 if (!SWIG_IsOK(ecode2)) {
27027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
27028 }
27029 arg2 = static_cast< long >(val2);
27030 {
27031 PyThreadState* __tstate = wxPyBeginAllowThreads();
27032 (arg1)->SetStateMask(arg2);
27033 wxPyEndAllowThreads(__tstate);
27034 if (PyErr_Occurred()) SWIG_fail;
27035 }
27036 resultobj = SWIG_Py_Void();
27037 return resultobj;
27038 fail:
27039 return NULL;
27040 }
27041
27042
27043 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27044 PyObject *resultobj = 0;
27045 wxListItem *arg1 = (wxListItem *) 0 ;
27046 wxString *arg2 = 0 ;
27047 void *argp1 = 0 ;
27048 int res1 = 0 ;
27049 bool temp2 = false ;
27050 PyObject * obj0 = 0 ;
27051 PyObject * obj1 = 0 ;
27052 char * kwnames[] = {
27053 (char *) "self",(char *) "text", NULL
27054 };
27055
27056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",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_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27060 }
27061 arg1 = reinterpret_cast< wxListItem * >(argp1);
27062 {
27063 arg2 = wxString_in_helper(obj1);
27064 if (arg2 == NULL) SWIG_fail;
27065 temp2 = true;
27066 }
27067 {
27068 PyThreadState* __tstate = wxPyBeginAllowThreads();
27069 (arg1)->SetText((wxString const &)*arg2);
27070 wxPyEndAllowThreads(__tstate);
27071 if (PyErr_Occurred()) SWIG_fail;
27072 }
27073 resultobj = SWIG_Py_Void();
27074 {
27075 if (temp2)
27076 delete arg2;
27077 }
27078 return resultobj;
27079 fail:
27080 {
27081 if (temp2)
27082 delete arg2;
27083 }
27084 return NULL;
27085 }
27086
27087
27088 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27089 PyObject *resultobj = 0;
27090 wxListItem *arg1 = (wxListItem *) 0 ;
27091 int arg2 ;
27092 void *argp1 = 0 ;
27093 int res1 = 0 ;
27094 int val2 ;
27095 int ecode2 = 0 ;
27096 PyObject * obj0 = 0 ;
27097 PyObject * obj1 = 0 ;
27098 char * kwnames[] = {
27099 (char *) "self",(char *) "image", NULL
27100 };
27101
27102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
27103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27104 if (!SWIG_IsOK(res1)) {
27105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27106 }
27107 arg1 = reinterpret_cast< wxListItem * >(argp1);
27108 ecode2 = SWIG_AsVal_int(obj1, &val2);
27109 if (!SWIG_IsOK(ecode2)) {
27110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
27111 }
27112 arg2 = static_cast< int >(val2);
27113 {
27114 PyThreadState* __tstate = wxPyBeginAllowThreads();
27115 (arg1)->SetImage(arg2);
27116 wxPyEndAllowThreads(__tstate);
27117 if (PyErr_Occurred()) SWIG_fail;
27118 }
27119 resultobj = SWIG_Py_Void();
27120 return resultobj;
27121 fail:
27122 return NULL;
27123 }
27124
27125
27126 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27127 PyObject *resultobj = 0;
27128 wxListItem *arg1 = (wxListItem *) 0 ;
27129 long arg2 ;
27130 void *argp1 = 0 ;
27131 int res1 = 0 ;
27132 long val2 ;
27133 int ecode2 = 0 ;
27134 PyObject * obj0 = 0 ;
27135 PyObject * obj1 = 0 ;
27136 char * kwnames[] = {
27137 (char *) "self",(char *) "data", NULL
27138 };
27139
27140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
27141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27142 if (!SWIG_IsOK(res1)) {
27143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27144 }
27145 arg1 = reinterpret_cast< wxListItem * >(argp1);
27146 ecode2 = SWIG_AsVal_long(obj1, &val2);
27147 if (!SWIG_IsOK(ecode2)) {
27148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
27149 }
27150 arg2 = static_cast< long >(val2);
27151 {
27152 PyThreadState* __tstate = wxPyBeginAllowThreads();
27153 (arg1)->SetData(arg2);
27154 wxPyEndAllowThreads(__tstate);
27155 if (PyErr_Occurred()) SWIG_fail;
27156 }
27157 resultobj = SWIG_Py_Void();
27158 return resultobj;
27159 fail:
27160 return NULL;
27161 }
27162
27163
27164 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27165 PyObject *resultobj = 0;
27166 wxListItem *arg1 = (wxListItem *) 0 ;
27167 int arg2 ;
27168 void *argp1 = 0 ;
27169 int res1 = 0 ;
27170 int val2 ;
27171 int ecode2 = 0 ;
27172 PyObject * obj0 = 0 ;
27173 PyObject * obj1 = 0 ;
27174 char * kwnames[] = {
27175 (char *) "self",(char *) "width", NULL
27176 };
27177
27178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
27179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27180 if (!SWIG_IsOK(res1)) {
27181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27182 }
27183 arg1 = reinterpret_cast< wxListItem * >(argp1);
27184 ecode2 = SWIG_AsVal_int(obj1, &val2);
27185 if (!SWIG_IsOK(ecode2)) {
27186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
27187 }
27188 arg2 = static_cast< int >(val2);
27189 {
27190 PyThreadState* __tstate = wxPyBeginAllowThreads();
27191 (arg1)->SetWidth(arg2);
27192 wxPyEndAllowThreads(__tstate);
27193 if (PyErr_Occurred()) SWIG_fail;
27194 }
27195 resultobj = SWIG_Py_Void();
27196 return resultobj;
27197 fail:
27198 return NULL;
27199 }
27200
27201
27202 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27203 PyObject *resultobj = 0;
27204 wxListItem *arg1 = (wxListItem *) 0 ;
27205 wxListColumnFormat arg2 ;
27206 void *argp1 = 0 ;
27207 int res1 = 0 ;
27208 int val2 ;
27209 int ecode2 = 0 ;
27210 PyObject * obj0 = 0 ;
27211 PyObject * obj1 = 0 ;
27212 char * kwnames[] = {
27213 (char *) "self",(char *) "align", NULL
27214 };
27215
27216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
27217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27218 if (!SWIG_IsOK(res1)) {
27219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27220 }
27221 arg1 = reinterpret_cast< wxListItem * >(argp1);
27222 ecode2 = SWIG_AsVal_int(obj1, &val2);
27223 if (!SWIG_IsOK(ecode2)) {
27224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27225 }
27226 arg2 = static_cast< wxListColumnFormat >(val2);
27227 {
27228 PyThreadState* __tstate = wxPyBeginAllowThreads();
27229 (arg1)->SetAlign(arg2);
27230 wxPyEndAllowThreads(__tstate);
27231 if (PyErr_Occurred()) SWIG_fail;
27232 }
27233 resultobj = SWIG_Py_Void();
27234 return resultobj;
27235 fail:
27236 return NULL;
27237 }
27238
27239
27240 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27241 PyObject *resultobj = 0;
27242 wxListItem *arg1 = (wxListItem *) 0 ;
27243 wxColour *arg2 = 0 ;
27244 void *argp1 = 0 ;
27245 int res1 = 0 ;
27246 wxColour temp2 ;
27247 PyObject * obj0 = 0 ;
27248 PyObject * obj1 = 0 ;
27249 char * kwnames[] = {
27250 (char *) "self",(char *) "colText", NULL
27251 };
27252
27253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27255 if (!SWIG_IsOK(res1)) {
27256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27257 }
27258 arg1 = reinterpret_cast< wxListItem * >(argp1);
27259 {
27260 arg2 = &temp2;
27261 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27262 }
27263 {
27264 PyThreadState* __tstate = wxPyBeginAllowThreads();
27265 (arg1)->SetTextColour((wxColour const &)*arg2);
27266 wxPyEndAllowThreads(__tstate);
27267 if (PyErr_Occurred()) SWIG_fail;
27268 }
27269 resultobj = SWIG_Py_Void();
27270 return resultobj;
27271 fail:
27272 return NULL;
27273 }
27274
27275
27276 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27277 PyObject *resultobj = 0;
27278 wxListItem *arg1 = (wxListItem *) 0 ;
27279 wxColour *arg2 = 0 ;
27280 void *argp1 = 0 ;
27281 int res1 = 0 ;
27282 wxColour temp2 ;
27283 PyObject * obj0 = 0 ;
27284 PyObject * obj1 = 0 ;
27285 char * kwnames[] = {
27286 (char *) "self",(char *) "colBack", NULL
27287 };
27288
27289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27291 if (!SWIG_IsOK(res1)) {
27292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27293 }
27294 arg1 = reinterpret_cast< wxListItem * >(argp1);
27295 {
27296 arg2 = &temp2;
27297 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27298 }
27299 {
27300 PyThreadState* __tstate = wxPyBeginAllowThreads();
27301 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27302 wxPyEndAllowThreads(__tstate);
27303 if (PyErr_Occurred()) SWIG_fail;
27304 }
27305 resultobj = SWIG_Py_Void();
27306 return resultobj;
27307 fail:
27308 return NULL;
27309 }
27310
27311
27312 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27313 PyObject *resultobj = 0;
27314 wxListItem *arg1 = (wxListItem *) 0 ;
27315 wxFont *arg2 = 0 ;
27316 void *argp1 = 0 ;
27317 int res1 = 0 ;
27318 void *argp2 = 0 ;
27319 int res2 = 0 ;
27320 PyObject * obj0 = 0 ;
27321 PyObject * obj1 = 0 ;
27322 char * kwnames[] = {
27323 (char *) "self",(char *) "font", NULL
27324 };
27325
27326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27328 if (!SWIG_IsOK(res1)) {
27329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27330 }
27331 arg1 = reinterpret_cast< wxListItem * >(argp1);
27332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27333 if (!SWIG_IsOK(res2)) {
27334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27335 }
27336 if (!argp2) {
27337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27338 }
27339 arg2 = reinterpret_cast< wxFont * >(argp2);
27340 {
27341 PyThreadState* __tstate = wxPyBeginAllowThreads();
27342 (arg1)->SetFont((wxFont const &)*arg2);
27343 wxPyEndAllowThreads(__tstate);
27344 if (PyErr_Occurred()) SWIG_fail;
27345 }
27346 resultobj = SWIG_Py_Void();
27347 return resultobj;
27348 fail:
27349 return NULL;
27350 }
27351
27352
27353 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27354 PyObject *resultobj = 0;
27355 wxListItem *arg1 = (wxListItem *) 0 ;
27356 long result;
27357 void *argp1 = 0 ;
27358 int res1 = 0 ;
27359 PyObject *swig_obj[1] ;
27360
27361 if (!args) SWIG_fail;
27362 swig_obj[0] = args;
27363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27364 if (!SWIG_IsOK(res1)) {
27365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27366 }
27367 arg1 = reinterpret_cast< wxListItem * >(argp1);
27368 {
27369 PyThreadState* __tstate = wxPyBeginAllowThreads();
27370 result = (long)(arg1)->GetMask();
27371 wxPyEndAllowThreads(__tstate);
27372 if (PyErr_Occurred()) SWIG_fail;
27373 }
27374 resultobj = SWIG_From_long(static_cast< long >(result));
27375 return resultobj;
27376 fail:
27377 return NULL;
27378 }
27379
27380
27381 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27382 PyObject *resultobj = 0;
27383 wxListItem *arg1 = (wxListItem *) 0 ;
27384 long result;
27385 void *argp1 = 0 ;
27386 int res1 = 0 ;
27387 PyObject *swig_obj[1] ;
27388
27389 if (!args) SWIG_fail;
27390 swig_obj[0] = args;
27391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27392 if (!SWIG_IsOK(res1)) {
27393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27394 }
27395 arg1 = reinterpret_cast< wxListItem * >(argp1);
27396 {
27397 PyThreadState* __tstate = wxPyBeginAllowThreads();
27398 result = (long)(arg1)->GetId();
27399 wxPyEndAllowThreads(__tstate);
27400 if (PyErr_Occurred()) SWIG_fail;
27401 }
27402 resultobj = SWIG_From_long(static_cast< long >(result));
27403 return resultobj;
27404 fail:
27405 return NULL;
27406 }
27407
27408
27409 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27410 PyObject *resultobj = 0;
27411 wxListItem *arg1 = (wxListItem *) 0 ;
27412 int result;
27413 void *argp1 = 0 ;
27414 int res1 = 0 ;
27415 PyObject *swig_obj[1] ;
27416
27417 if (!args) SWIG_fail;
27418 swig_obj[0] = args;
27419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27420 if (!SWIG_IsOK(res1)) {
27421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27422 }
27423 arg1 = reinterpret_cast< wxListItem * >(argp1);
27424 {
27425 PyThreadState* __tstate = wxPyBeginAllowThreads();
27426 result = (int)(arg1)->GetColumn();
27427 wxPyEndAllowThreads(__tstate);
27428 if (PyErr_Occurred()) SWIG_fail;
27429 }
27430 resultobj = SWIG_From_int(static_cast< int >(result));
27431 return resultobj;
27432 fail:
27433 return NULL;
27434 }
27435
27436
27437 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27438 PyObject *resultobj = 0;
27439 wxListItem *arg1 = (wxListItem *) 0 ;
27440 long result;
27441 void *argp1 = 0 ;
27442 int res1 = 0 ;
27443 PyObject *swig_obj[1] ;
27444
27445 if (!args) SWIG_fail;
27446 swig_obj[0] = args;
27447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27448 if (!SWIG_IsOK(res1)) {
27449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27450 }
27451 arg1 = reinterpret_cast< wxListItem * >(argp1);
27452 {
27453 PyThreadState* __tstate = wxPyBeginAllowThreads();
27454 result = (long)(arg1)->GetState();
27455 wxPyEndAllowThreads(__tstate);
27456 if (PyErr_Occurred()) SWIG_fail;
27457 }
27458 resultobj = SWIG_From_long(static_cast< long >(result));
27459 return resultobj;
27460 fail:
27461 return NULL;
27462 }
27463
27464
27465 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27466 PyObject *resultobj = 0;
27467 wxListItem *arg1 = (wxListItem *) 0 ;
27468 wxString *result = 0 ;
27469 void *argp1 = 0 ;
27470 int res1 = 0 ;
27471 PyObject *swig_obj[1] ;
27472
27473 if (!args) SWIG_fail;
27474 swig_obj[0] = args;
27475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27476 if (!SWIG_IsOK(res1)) {
27477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27478 }
27479 arg1 = reinterpret_cast< wxListItem * >(argp1);
27480 {
27481 PyThreadState* __tstate = wxPyBeginAllowThreads();
27482 {
27483 wxString const &_result_ref = (arg1)->GetText();
27484 result = (wxString *) &_result_ref;
27485 }
27486 wxPyEndAllowThreads(__tstate);
27487 if (PyErr_Occurred()) SWIG_fail;
27488 }
27489 {
27490 #if wxUSE_UNICODE
27491 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27492 #else
27493 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27494 #endif
27495 }
27496 return resultobj;
27497 fail:
27498 return NULL;
27499 }
27500
27501
27502 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27503 PyObject *resultobj = 0;
27504 wxListItem *arg1 = (wxListItem *) 0 ;
27505 int result;
27506 void *argp1 = 0 ;
27507 int res1 = 0 ;
27508 PyObject *swig_obj[1] ;
27509
27510 if (!args) SWIG_fail;
27511 swig_obj[0] = args;
27512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27513 if (!SWIG_IsOK(res1)) {
27514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27515 }
27516 arg1 = reinterpret_cast< wxListItem * >(argp1);
27517 {
27518 PyThreadState* __tstate = wxPyBeginAllowThreads();
27519 result = (int)(arg1)->GetImage();
27520 wxPyEndAllowThreads(__tstate);
27521 if (PyErr_Occurred()) SWIG_fail;
27522 }
27523 resultobj = SWIG_From_int(static_cast< int >(result));
27524 return resultobj;
27525 fail:
27526 return NULL;
27527 }
27528
27529
27530 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27531 PyObject *resultobj = 0;
27532 wxListItem *arg1 = (wxListItem *) 0 ;
27533 long result;
27534 void *argp1 = 0 ;
27535 int res1 = 0 ;
27536 PyObject *swig_obj[1] ;
27537
27538 if (!args) SWIG_fail;
27539 swig_obj[0] = args;
27540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27541 if (!SWIG_IsOK(res1)) {
27542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27543 }
27544 arg1 = reinterpret_cast< wxListItem * >(argp1);
27545 {
27546 PyThreadState* __tstate = wxPyBeginAllowThreads();
27547 result = (long)(arg1)->GetData();
27548 wxPyEndAllowThreads(__tstate);
27549 if (PyErr_Occurred()) SWIG_fail;
27550 }
27551 resultobj = SWIG_From_long(static_cast< long >(result));
27552 return resultobj;
27553 fail:
27554 return NULL;
27555 }
27556
27557
27558 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27559 PyObject *resultobj = 0;
27560 wxListItem *arg1 = (wxListItem *) 0 ;
27561 int result;
27562 void *argp1 = 0 ;
27563 int res1 = 0 ;
27564 PyObject *swig_obj[1] ;
27565
27566 if (!args) SWIG_fail;
27567 swig_obj[0] = args;
27568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27569 if (!SWIG_IsOK(res1)) {
27570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27571 }
27572 arg1 = reinterpret_cast< wxListItem * >(argp1);
27573 {
27574 PyThreadState* __tstate = wxPyBeginAllowThreads();
27575 result = (int)(arg1)->GetWidth();
27576 wxPyEndAllowThreads(__tstate);
27577 if (PyErr_Occurred()) SWIG_fail;
27578 }
27579 resultobj = SWIG_From_int(static_cast< int >(result));
27580 return resultobj;
27581 fail:
27582 return NULL;
27583 }
27584
27585
27586 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27587 PyObject *resultobj = 0;
27588 wxListItem *arg1 = (wxListItem *) 0 ;
27589 wxListColumnFormat result;
27590 void *argp1 = 0 ;
27591 int res1 = 0 ;
27592 PyObject *swig_obj[1] ;
27593
27594 if (!args) SWIG_fail;
27595 swig_obj[0] = args;
27596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27597 if (!SWIG_IsOK(res1)) {
27598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27599 }
27600 arg1 = reinterpret_cast< wxListItem * >(argp1);
27601 {
27602 PyThreadState* __tstate = wxPyBeginAllowThreads();
27603 result = (wxListColumnFormat)(arg1)->GetAlign();
27604 wxPyEndAllowThreads(__tstate);
27605 if (PyErr_Occurred()) SWIG_fail;
27606 }
27607 resultobj = SWIG_From_int(static_cast< int >(result));
27608 return resultobj;
27609 fail:
27610 return NULL;
27611 }
27612
27613
27614 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27615 PyObject *resultobj = 0;
27616 wxListItem *arg1 = (wxListItem *) 0 ;
27617 wxListItemAttr *result = 0 ;
27618 void *argp1 = 0 ;
27619 int res1 = 0 ;
27620 PyObject *swig_obj[1] ;
27621
27622 if (!args) SWIG_fail;
27623 swig_obj[0] = args;
27624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27625 if (!SWIG_IsOK(res1)) {
27626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27627 }
27628 arg1 = reinterpret_cast< wxListItem * >(argp1);
27629 {
27630 PyThreadState* __tstate = wxPyBeginAllowThreads();
27631 result = (wxListItemAttr *)(arg1)->GetAttributes();
27632 wxPyEndAllowThreads(__tstate);
27633 if (PyErr_Occurred()) SWIG_fail;
27634 }
27635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27636 return resultobj;
27637 fail:
27638 return NULL;
27639 }
27640
27641
27642 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27643 PyObject *resultobj = 0;
27644 wxListItem *arg1 = (wxListItem *) 0 ;
27645 bool result;
27646 void *argp1 = 0 ;
27647 int res1 = 0 ;
27648 PyObject *swig_obj[1] ;
27649
27650 if (!args) SWIG_fail;
27651 swig_obj[0] = args;
27652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27653 if (!SWIG_IsOK(res1)) {
27654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27655 }
27656 arg1 = reinterpret_cast< wxListItem * >(argp1);
27657 {
27658 PyThreadState* __tstate = wxPyBeginAllowThreads();
27659 result = (bool)(arg1)->HasAttributes();
27660 wxPyEndAllowThreads(__tstate);
27661 if (PyErr_Occurred()) SWIG_fail;
27662 }
27663 {
27664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27665 }
27666 return resultobj;
27667 fail:
27668 return NULL;
27669 }
27670
27671
27672 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27673 PyObject *resultobj = 0;
27674 wxListItem *arg1 = (wxListItem *) 0 ;
27675 wxColour result;
27676 void *argp1 = 0 ;
27677 int res1 = 0 ;
27678 PyObject *swig_obj[1] ;
27679
27680 if (!args) SWIG_fail;
27681 swig_obj[0] = args;
27682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27683 if (!SWIG_IsOK(res1)) {
27684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27685 }
27686 arg1 = reinterpret_cast< wxListItem * >(argp1);
27687 {
27688 PyThreadState* __tstate = wxPyBeginAllowThreads();
27689 result = ((wxListItem const *)arg1)->GetTextColour();
27690 wxPyEndAllowThreads(__tstate);
27691 if (PyErr_Occurred()) SWIG_fail;
27692 }
27693 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27694 return resultobj;
27695 fail:
27696 return NULL;
27697 }
27698
27699
27700 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27701 PyObject *resultobj = 0;
27702 wxListItem *arg1 = (wxListItem *) 0 ;
27703 wxColour result;
27704 void *argp1 = 0 ;
27705 int res1 = 0 ;
27706 PyObject *swig_obj[1] ;
27707
27708 if (!args) SWIG_fail;
27709 swig_obj[0] = args;
27710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27711 if (!SWIG_IsOK(res1)) {
27712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27713 }
27714 arg1 = reinterpret_cast< wxListItem * >(argp1);
27715 {
27716 PyThreadState* __tstate = wxPyBeginAllowThreads();
27717 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27718 wxPyEndAllowThreads(__tstate);
27719 if (PyErr_Occurred()) SWIG_fail;
27720 }
27721 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27722 return resultobj;
27723 fail:
27724 return NULL;
27725 }
27726
27727
27728 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27729 PyObject *resultobj = 0;
27730 wxListItem *arg1 = (wxListItem *) 0 ;
27731 wxFont result;
27732 void *argp1 = 0 ;
27733 int res1 = 0 ;
27734 PyObject *swig_obj[1] ;
27735
27736 if (!args) SWIG_fail;
27737 swig_obj[0] = args;
27738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27739 if (!SWIG_IsOK(res1)) {
27740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27741 }
27742 arg1 = reinterpret_cast< wxListItem * >(argp1);
27743 {
27744 PyThreadState* __tstate = wxPyBeginAllowThreads();
27745 result = ((wxListItem const *)arg1)->GetFont();
27746 wxPyEndAllowThreads(__tstate);
27747 if (PyErr_Occurred()) SWIG_fail;
27748 }
27749 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27750 return resultobj;
27751 fail:
27752 return NULL;
27753 }
27754
27755
27756 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27757 PyObject *resultobj = 0;
27758 wxListItem *arg1 = (wxListItem *) 0 ;
27759 long arg2 ;
27760 void *argp1 = 0 ;
27761 int res1 = 0 ;
27762 long val2 ;
27763 int ecode2 = 0 ;
27764 PyObject *swig_obj[2] ;
27765
27766 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27768 if (!SWIG_IsOK(res1)) {
27769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27770 }
27771 arg1 = reinterpret_cast< wxListItem * >(argp1);
27772 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27773 if (!SWIG_IsOK(ecode2)) {
27774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27775 }
27776 arg2 = static_cast< long >(val2);
27777 if (arg1) (arg1)->m_mask = arg2;
27778
27779 resultobj = SWIG_Py_Void();
27780 return resultobj;
27781 fail:
27782 return NULL;
27783 }
27784
27785
27786 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27787 PyObject *resultobj = 0;
27788 wxListItem *arg1 = (wxListItem *) 0 ;
27789 long result;
27790 void *argp1 = 0 ;
27791 int res1 = 0 ;
27792 PyObject *swig_obj[1] ;
27793
27794 if (!args) SWIG_fail;
27795 swig_obj[0] = args;
27796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27797 if (!SWIG_IsOK(res1)) {
27798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27799 }
27800 arg1 = reinterpret_cast< wxListItem * >(argp1);
27801 result = (long) ((arg1)->m_mask);
27802 resultobj = SWIG_From_long(static_cast< long >(result));
27803 return resultobj;
27804 fail:
27805 return NULL;
27806 }
27807
27808
27809 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27810 PyObject *resultobj = 0;
27811 wxListItem *arg1 = (wxListItem *) 0 ;
27812 long arg2 ;
27813 void *argp1 = 0 ;
27814 int res1 = 0 ;
27815 long val2 ;
27816 int ecode2 = 0 ;
27817 PyObject *swig_obj[2] ;
27818
27819 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27821 if (!SWIG_IsOK(res1)) {
27822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27823 }
27824 arg1 = reinterpret_cast< wxListItem * >(argp1);
27825 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27826 if (!SWIG_IsOK(ecode2)) {
27827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27828 }
27829 arg2 = static_cast< long >(val2);
27830 if (arg1) (arg1)->m_itemId = arg2;
27831
27832 resultobj = SWIG_Py_Void();
27833 return resultobj;
27834 fail:
27835 return NULL;
27836 }
27837
27838
27839 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27840 PyObject *resultobj = 0;
27841 wxListItem *arg1 = (wxListItem *) 0 ;
27842 long result;
27843 void *argp1 = 0 ;
27844 int res1 = 0 ;
27845 PyObject *swig_obj[1] ;
27846
27847 if (!args) SWIG_fail;
27848 swig_obj[0] = args;
27849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27850 if (!SWIG_IsOK(res1)) {
27851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27852 }
27853 arg1 = reinterpret_cast< wxListItem * >(argp1);
27854 result = (long) ((arg1)->m_itemId);
27855 resultobj = SWIG_From_long(static_cast< long >(result));
27856 return resultobj;
27857 fail:
27858 return NULL;
27859 }
27860
27861
27862 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27863 PyObject *resultobj = 0;
27864 wxListItem *arg1 = (wxListItem *) 0 ;
27865 int arg2 ;
27866 void *argp1 = 0 ;
27867 int res1 = 0 ;
27868 int val2 ;
27869 int ecode2 = 0 ;
27870 PyObject *swig_obj[2] ;
27871
27872 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27874 if (!SWIG_IsOK(res1)) {
27875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27876 }
27877 arg1 = reinterpret_cast< wxListItem * >(argp1);
27878 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27879 if (!SWIG_IsOK(ecode2)) {
27880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27881 }
27882 arg2 = static_cast< int >(val2);
27883 if (arg1) (arg1)->m_col = arg2;
27884
27885 resultobj = SWIG_Py_Void();
27886 return resultobj;
27887 fail:
27888 return NULL;
27889 }
27890
27891
27892 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27893 PyObject *resultobj = 0;
27894 wxListItem *arg1 = (wxListItem *) 0 ;
27895 int result;
27896 void *argp1 = 0 ;
27897 int res1 = 0 ;
27898 PyObject *swig_obj[1] ;
27899
27900 if (!args) SWIG_fail;
27901 swig_obj[0] = args;
27902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27903 if (!SWIG_IsOK(res1)) {
27904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27905 }
27906 arg1 = reinterpret_cast< wxListItem * >(argp1);
27907 result = (int) ((arg1)->m_col);
27908 resultobj = SWIG_From_int(static_cast< int >(result));
27909 return resultobj;
27910 fail:
27911 return NULL;
27912 }
27913
27914
27915 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27916 PyObject *resultobj = 0;
27917 wxListItem *arg1 = (wxListItem *) 0 ;
27918 long arg2 ;
27919 void *argp1 = 0 ;
27920 int res1 = 0 ;
27921 long val2 ;
27922 int ecode2 = 0 ;
27923 PyObject *swig_obj[2] ;
27924
27925 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27927 if (!SWIG_IsOK(res1)) {
27928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27929 }
27930 arg1 = reinterpret_cast< wxListItem * >(argp1);
27931 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27932 if (!SWIG_IsOK(ecode2)) {
27933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27934 }
27935 arg2 = static_cast< long >(val2);
27936 if (arg1) (arg1)->m_state = arg2;
27937
27938 resultobj = SWIG_Py_Void();
27939 return resultobj;
27940 fail:
27941 return NULL;
27942 }
27943
27944
27945 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27946 PyObject *resultobj = 0;
27947 wxListItem *arg1 = (wxListItem *) 0 ;
27948 long result;
27949 void *argp1 = 0 ;
27950 int res1 = 0 ;
27951 PyObject *swig_obj[1] ;
27952
27953 if (!args) SWIG_fail;
27954 swig_obj[0] = args;
27955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27956 if (!SWIG_IsOK(res1)) {
27957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27958 }
27959 arg1 = reinterpret_cast< wxListItem * >(argp1);
27960 result = (long) ((arg1)->m_state);
27961 resultobj = SWIG_From_long(static_cast< long >(result));
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27969 PyObject *resultobj = 0;
27970 wxListItem *arg1 = (wxListItem *) 0 ;
27971 long arg2 ;
27972 void *argp1 = 0 ;
27973 int res1 = 0 ;
27974 long val2 ;
27975 int ecode2 = 0 ;
27976 PyObject *swig_obj[2] ;
27977
27978 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27980 if (!SWIG_IsOK(res1)) {
27981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27982 }
27983 arg1 = reinterpret_cast< wxListItem * >(argp1);
27984 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27985 if (!SWIG_IsOK(ecode2)) {
27986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27987 }
27988 arg2 = static_cast< long >(val2);
27989 if (arg1) (arg1)->m_stateMask = arg2;
27990
27991 resultobj = SWIG_Py_Void();
27992 return resultobj;
27993 fail:
27994 return NULL;
27995 }
27996
27997
27998 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27999 PyObject *resultobj = 0;
28000 wxListItem *arg1 = (wxListItem *) 0 ;
28001 long result;
28002 void *argp1 = 0 ;
28003 int res1 = 0 ;
28004 PyObject *swig_obj[1] ;
28005
28006 if (!args) SWIG_fail;
28007 swig_obj[0] = args;
28008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28009 if (!SWIG_IsOK(res1)) {
28010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28011 }
28012 arg1 = reinterpret_cast< wxListItem * >(argp1);
28013 result = (long) ((arg1)->m_stateMask);
28014 resultobj = SWIG_From_long(static_cast< long >(result));
28015 return resultobj;
28016 fail:
28017 return NULL;
28018 }
28019
28020
28021 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28022 PyObject *resultobj = 0;
28023 wxListItem *arg1 = (wxListItem *) 0 ;
28024 wxString *arg2 = (wxString *) 0 ;
28025 void *argp1 = 0 ;
28026 int res1 = 0 ;
28027 bool temp2 = false ;
28028 PyObject *swig_obj[2] ;
28029
28030 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
28031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28032 if (!SWIG_IsOK(res1)) {
28033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28034 }
28035 arg1 = reinterpret_cast< wxListItem * >(argp1);
28036 {
28037 arg2 = wxString_in_helper(swig_obj[1]);
28038 if (arg2 == NULL) SWIG_fail;
28039 temp2 = true;
28040 }
28041 if (arg1) (arg1)->m_text = *arg2;
28042
28043 resultobj = SWIG_Py_Void();
28044 {
28045 if (temp2)
28046 delete arg2;
28047 }
28048 return resultobj;
28049 fail:
28050 {
28051 if (temp2)
28052 delete arg2;
28053 }
28054 return NULL;
28055 }
28056
28057
28058 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28059 PyObject *resultobj = 0;
28060 wxListItem *arg1 = (wxListItem *) 0 ;
28061 wxString *result = 0 ;
28062 void *argp1 = 0 ;
28063 int res1 = 0 ;
28064 PyObject *swig_obj[1] ;
28065
28066 if (!args) SWIG_fail;
28067 swig_obj[0] = args;
28068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28069 if (!SWIG_IsOK(res1)) {
28070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28071 }
28072 arg1 = reinterpret_cast< wxListItem * >(argp1);
28073 result = (wxString *)& ((arg1)->m_text);
28074 {
28075 #if wxUSE_UNICODE
28076 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28077 #else
28078 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28079 #endif
28080 }
28081 return resultobj;
28082 fail:
28083 return NULL;
28084 }
28085
28086
28087 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28088 PyObject *resultobj = 0;
28089 wxListItem *arg1 = (wxListItem *) 0 ;
28090 int arg2 ;
28091 void *argp1 = 0 ;
28092 int res1 = 0 ;
28093 int val2 ;
28094 int ecode2 = 0 ;
28095 PyObject *swig_obj[2] ;
28096
28097 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
28098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28099 if (!SWIG_IsOK(res1)) {
28100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28101 }
28102 arg1 = reinterpret_cast< wxListItem * >(argp1);
28103 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28104 if (!SWIG_IsOK(ecode2)) {
28105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
28106 }
28107 arg2 = static_cast< int >(val2);
28108 if (arg1) (arg1)->m_image = arg2;
28109
28110 resultobj = SWIG_Py_Void();
28111 return resultobj;
28112 fail:
28113 return NULL;
28114 }
28115
28116
28117 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28118 PyObject *resultobj = 0;
28119 wxListItem *arg1 = (wxListItem *) 0 ;
28120 int result;
28121 void *argp1 = 0 ;
28122 int res1 = 0 ;
28123 PyObject *swig_obj[1] ;
28124
28125 if (!args) SWIG_fail;
28126 swig_obj[0] = args;
28127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28128 if (!SWIG_IsOK(res1)) {
28129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28130 }
28131 arg1 = reinterpret_cast< wxListItem * >(argp1);
28132 result = (int) ((arg1)->m_image);
28133 resultobj = SWIG_From_int(static_cast< int >(result));
28134 return resultobj;
28135 fail:
28136 return NULL;
28137 }
28138
28139
28140 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28141 PyObject *resultobj = 0;
28142 wxListItem *arg1 = (wxListItem *) 0 ;
28143 long arg2 ;
28144 void *argp1 = 0 ;
28145 int res1 = 0 ;
28146 long val2 ;
28147 int ecode2 = 0 ;
28148 PyObject *swig_obj[2] ;
28149
28150 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
28151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28152 if (!SWIG_IsOK(res1)) {
28153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28154 }
28155 arg1 = reinterpret_cast< wxListItem * >(argp1);
28156 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28157 if (!SWIG_IsOK(ecode2)) {
28158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
28159 }
28160 arg2 = static_cast< long >(val2);
28161 if (arg1) (arg1)->m_data = arg2;
28162
28163 resultobj = SWIG_Py_Void();
28164 return resultobj;
28165 fail:
28166 return NULL;
28167 }
28168
28169
28170 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28171 PyObject *resultobj = 0;
28172 wxListItem *arg1 = (wxListItem *) 0 ;
28173 long result;
28174 void *argp1 = 0 ;
28175 int res1 = 0 ;
28176 PyObject *swig_obj[1] ;
28177
28178 if (!args) SWIG_fail;
28179 swig_obj[0] = args;
28180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28181 if (!SWIG_IsOK(res1)) {
28182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28183 }
28184 arg1 = reinterpret_cast< wxListItem * >(argp1);
28185 result = (long) ((arg1)->m_data);
28186 resultobj = SWIG_From_long(static_cast< long >(result));
28187 return resultobj;
28188 fail:
28189 return NULL;
28190 }
28191
28192
28193 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28194 PyObject *resultobj = 0;
28195 wxListItem *arg1 = (wxListItem *) 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,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
28204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28205 if (!SWIG_IsOK(res1)) {
28206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28207 }
28208 arg1 = reinterpret_cast< wxListItem * >(argp1);
28209 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28210 if (!SWIG_IsOK(ecode2)) {
28211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
28212 }
28213 arg2 = static_cast< int >(val2);
28214 if (arg1) (arg1)->m_format = arg2;
28215
28216 resultobj = SWIG_Py_Void();
28217 return resultobj;
28218 fail:
28219 return NULL;
28220 }
28221
28222
28223 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28224 PyObject *resultobj = 0;
28225 wxListItem *arg1 = (wxListItem *) 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_wxListItem, 0 | 0 );
28234 if (!SWIG_IsOK(res1)) {
28235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28236 }
28237 arg1 = reinterpret_cast< wxListItem * >(argp1);
28238 result = (int) ((arg1)->m_format);
28239 resultobj = SWIG_From_int(static_cast< int >(result));
28240 return resultobj;
28241 fail:
28242 return NULL;
28243 }
28244
28245
28246 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28247 PyObject *resultobj = 0;
28248 wxListItem *arg1 = (wxListItem *) 0 ;
28249 int arg2 ;
28250 void *argp1 = 0 ;
28251 int res1 = 0 ;
28252 int val2 ;
28253 int ecode2 = 0 ;
28254 PyObject *swig_obj[2] ;
28255
28256 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28258 if (!SWIG_IsOK(res1)) {
28259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28260 }
28261 arg1 = reinterpret_cast< wxListItem * >(argp1);
28262 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28263 if (!SWIG_IsOK(ecode2)) {
28264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28265 }
28266 arg2 = static_cast< int >(val2);
28267 if (arg1) (arg1)->m_width = arg2;
28268
28269 resultobj = SWIG_Py_Void();
28270 return resultobj;
28271 fail:
28272 return NULL;
28273 }
28274
28275
28276 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28277 PyObject *resultobj = 0;
28278 wxListItem *arg1 = (wxListItem *) 0 ;
28279 int 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_wxListItem, 0 | 0 );
28287 if (!SWIG_IsOK(res1)) {
28288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28289 }
28290 arg1 = reinterpret_cast< wxListItem * >(argp1);
28291 result = (int) ((arg1)->m_width);
28292 resultobj = SWIG_From_int(static_cast< int >(result));
28293 return resultobj;
28294 fail:
28295 return NULL;
28296 }
28297
28298
28299 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28300 PyObject *obj;
28301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28302 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28303 return SWIG_Py_Void();
28304 }
28305
28306 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28307 return SWIG_Python_InitShadowInstance(args);
28308 }
28309
28310 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28311 PyObject *resultobj = 0;
28312 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28313 int arg2 = (int) 0 ;
28314 wxListEvent *result = 0 ;
28315 int val1 ;
28316 int ecode1 = 0 ;
28317 int val2 ;
28318 int ecode2 = 0 ;
28319 PyObject * obj0 = 0 ;
28320 PyObject * obj1 = 0 ;
28321 char * kwnames[] = {
28322 (char *) "commandType",(char *) "id", NULL
28323 };
28324
28325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28326 if (obj0) {
28327 ecode1 = SWIG_AsVal_int(obj0, &val1);
28328 if (!SWIG_IsOK(ecode1)) {
28329 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28330 }
28331 arg1 = static_cast< wxEventType >(val1);
28332 }
28333 if (obj1) {
28334 ecode2 = SWIG_AsVal_int(obj1, &val2);
28335 if (!SWIG_IsOK(ecode2)) {
28336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28337 }
28338 arg2 = static_cast< int >(val2);
28339 }
28340 {
28341 PyThreadState* __tstate = wxPyBeginAllowThreads();
28342 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28343 wxPyEndAllowThreads(__tstate);
28344 if (PyErr_Occurred()) SWIG_fail;
28345 }
28346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28347 return resultobj;
28348 fail:
28349 return NULL;
28350 }
28351
28352
28353 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28354 PyObject *resultobj = 0;
28355 wxListEvent *arg1 = (wxListEvent *) 0 ;
28356 int arg2 ;
28357 void *argp1 = 0 ;
28358 int res1 = 0 ;
28359 int val2 ;
28360 int ecode2 = 0 ;
28361 PyObject *swig_obj[2] ;
28362
28363 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28365 if (!SWIG_IsOK(res1)) {
28366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28367 }
28368 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28369 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28370 if (!SWIG_IsOK(ecode2)) {
28371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28372 }
28373 arg2 = static_cast< int >(val2);
28374 if (arg1) (arg1)->m_code = arg2;
28375
28376 resultobj = SWIG_Py_Void();
28377 return resultobj;
28378 fail:
28379 return NULL;
28380 }
28381
28382
28383 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28384 PyObject *resultobj = 0;
28385 wxListEvent *arg1 = (wxListEvent *) 0 ;
28386 int result;
28387 void *argp1 = 0 ;
28388 int res1 = 0 ;
28389 PyObject *swig_obj[1] ;
28390
28391 if (!args) SWIG_fail;
28392 swig_obj[0] = args;
28393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28394 if (!SWIG_IsOK(res1)) {
28395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28396 }
28397 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28398 result = (int) ((arg1)->m_code);
28399 resultobj = SWIG_From_int(static_cast< int >(result));
28400 return resultobj;
28401 fail:
28402 return NULL;
28403 }
28404
28405
28406 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28407 PyObject *resultobj = 0;
28408 wxListEvent *arg1 = (wxListEvent *) 0 ;
28409 long arg2 ;
28410 void *argp1 = 0 ;
28411 int res1 = 0 ;
28412 long val2 ;
28413 int ecode2 = 0 ;
28414 PyObject *swig_obj[2] ;
28415
28416 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28418 if (!SWIG_IsOK(res1)) {
28419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28420 }
28421 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28422 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28423 if (!SWIG_IsOK(ecode2)) {
28424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28425 }
28426 arg2 = static_cast< long >(val2);
28427 if (arg1) (arg1)->m_oldItemIndex = arg2;
28428
28429 resultobj = SWIG_Py_Void();
28430 return resultobj;
28431 fail:
28432 return NULL;
28433 }
28434
28435
28436 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28437 PyObject *resultobj = 0;
28438 wxListEvent *arg1 = (wxListEvent *) 0 ;
28439 long result;
28440 void *argp1 = 0 ;
28441 int res1 = 0 ;
28442 PyObject *swig_obj[1] ;
28443
28444 if (!args) SWIG_fail;
28445 swig_obj[0] = args;
28446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28447 if (!SWIG_IsOK(res1)) {
28448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28449 }
28450 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28451 result = (long) ((arg1)->m_oldItemIndex);
28452 resultobj = SWIG_From_long(static_cast< long >(result));
28453 return resultobj;
28454 fail:
28455 return NULL;
28456 }
28457
28458
28459 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28460 PyObject *resultobj = 0;
28461 wxListEvent *arg1 = (wxListEvent *) 0 ;
28462 long arg2 ;
28463 void *argp1 = 0 ;
28464 int res1 = 0 ;
28465 long val2 ;
28466 int ecode2 = 0 ;
28467 PyObject *swig_obj[2] ;
28468
28469 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28471 if (!SWIG_IsOK(res1)) {
28472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28473 }
28474 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28475 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28476 if (!SWIG_IsOK(ecode2)) {
28477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28478 }
28479 arg2 = static_cast< long >(val2);
28480 if (arg1) (arg1)->m_itemIndex = arg2;
28481
28482 resultobj = SWIG_Py_Void();
28483 return resultobj;
28484 fail:
28485 return NULL;
28486 }
28487
28488
28489 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28490 PyObject *resultobj = 0;
28491 wxListEvent *arg1 = (wxListEvent *) 0 ;
28492 long result;
28493 void *argp1 = 0 ;
28494 int res1 = 0 ;
28495 PyObject *swig_obj[1] ;
28496
28497 if (!args) SWIG_fail;
28498 swig_obj[0] = args;
28499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28500 if (!SWIG_IsOK(res1)) {
28501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28502 }
28503 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28504 result = (long) ((arg1)->m_itemIndex);
28505 resultobj = SWIG_From_long(static_cast< long >(result));
28506 return resultobj;
28507 fail:
28508 return NULL;
28509 }
28510
28511
28512 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28513 PyObject *resultobj = 0;
28514 wxListEvent *arg1 = (wxListEvent *) 0 ;
28515 int arg2 ;
28516 void *argp1 = 0 ;
28517 int res1 = 0 ;
28518 int val2 ;
28519 int ecode2 = 0 ;
28520 PyObject *swig_obj[2] ;
28521
28522 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28524 if (!SWIG_IsOK(res1)) {
28525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28526 }
28527 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28528 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28529 if (!SWIG_IsOK(ecode2)) {
28530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28531 }
28532 arg2 = static_cast< int >(val2);
28533 if (arg1) (arg1)->m_col = arg2;
28534
28535 resultobj = SWIG_Py_Void();
28536 return resultobj;
28537 fail:
28538 return NULL;
28539 }
28540
28541
28542 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28543 PyObject *resultobj = 0;
28544 wxListEvent *arg1 = (wxListEvent *) 0 ;
28545 int result;
28546 void *argp1 = 0 ;
28547 int res1 = 0 ;
28548 PyObject *swig_obj[1] ;
28549
28550 if (!args) SWIG_fail;
28551 swig_obj[0] = args;
28552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28553 if (!SWIG_IsOK(res1)) {
28554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28555 }
28556 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28557 result = (int) ((arg1)->m_col);
28558 resultobj = SWIG_From_int(static_cast< int >(result));
28559 return resultobj;
28560 fail:
28561 return NULL;
28562 }
28563
28564
28565 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28566 PyObject *resultobj = 0;
28567 wxListEvent *arg1 = (wxListEvent *) 0 ;
28568 wxPoint *arg2 = (wxPoint *) 0 ;
28569 void *argp1 = 0 ;
28570 int res1 = 0 ;
28571 void *argp2 = 0 ;
28572 int res2 = 0 ;
28573 PyObject *swig_obj[2] ;
28574
28575 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28577 if (!SWIG_IsOK(res1)) {
28578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28579 }
28580 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28581 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28582 if (!SWIG_IsOK(res2)) {
28583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28584 }
28585 arg2 = reinterpret_cast< wxPoint * >(argp2);
28586 if (arg1) (arg1)->m_pointDrag = *arg2;
28587
28588 resultobj = SWIG_Py_Void();
28589 return resultobj;
28590 fail:
28591 return NULL;
28592 }
28593
28594
28595 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28596 PyObject *resultobj = 0;
28597 wxListEvent *arg1 = (wxListEvent *) 0 ;
28598 wxPoint *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_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28608 }
28609 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28610 result = (wxPoint *)& ((arg1)->m_pointDrag);
28611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28612 return resultobj;
28613 fail:
28614 return NULL;
28615 }
28616
28617
28618 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28619 PyObject *resultobj = 0;
28620 wxListEvent *arg1 = (wxListEvent *) 0 ;
28621 wxListItem *result = 0 ;
28622 void *argp1 = 0 ;
28623 int res1 = 0 ;
28624 PyObject *swig_obj[1] ;
28625
28626 if (!args) SWIG_fail;
28627 swig_obj[0] = args;
28628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28629 if (!SWIG_IsOK(res1)) {
28630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28631 }
28632 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28633 result = (wxListItem *)& ((arg1)->m_item);
28634 {
28635 resultobj = wxPyMake_wxObject(result, 0);
28636 }
28637 return resultobj;
28638 fail:
28639 return NULL;
28640 }
28641
28642
28643 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28644 PyObject *resultobj = 0;
28645 wxListEvent *arg1 = (wxListEvent *) 0 ;
28646 int result;
28647 void *argp1 = 0 ;
28648 int res1 = 0 ;
28649 PyObject *swig_obj[1] ;
28650
28651 if (!args) SWIG_fail;
28652 swig_obj[0] = args;
28653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28654 if (!SWIG_IsOK(res1)) {
28655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28656 }
28657 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28658 {
28659 PyThreadState* __tstate = wxPyBeginAllowThreads();
28660 result = (int)(arg1)->GetKeyCode();
28661 wxPyEndAllowThreads(__tstate);
28662 if (PyErr_Occurred()) SWIG_fail;
28663 }
28664 resultobj = SWIG_From_int(static_cast< int >(result));
28665 return resultobj;
28666 fail:
28667 return NULL;
28668 }
28669
28670
28671 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28672 PyObject *resultobj = 0;
28673 wxListEvent *arg1 = (wxListEvent *) 0 ;
28674 long result;
28675 void *argp1 = 0 ;
28676 int res1 = 0 ;
28677 PyObject *swig_obj[1] ;
28678
28679 if (!args) SWIG_fail;
28680 swig_obj[0] = args;
28681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28682 if (!SWIG_IsOK(res1)) {
28683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28684 }
28685 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28686 {
28687 PyThreadState* __tstate = wxPyBeginAllowThreads();
28688 result = (long)(arg1)->GetIndex();
28689 wxPyEndAllowThreads(__tstate);
28690 if (PyErr_Occurred()) SWIG_fail;
28691 }
28692 resultobj = SWIG_From_long(static_cast< long >(result));
28693 return resultobj;
28694 fail:
28695 return NULL;
28696 }
28697
28698
28699 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28700 PyObject *resultobj = 0;
28701 wxListEvent *arg1 = (wxListEvent *) 0 ;
28702 int result;
28703 void *argp1 = 0 ;
28704 int res1 = 0 ;
28705 PyObject *swig_obj[1] ;
28706
28707 if (!args) SWIG_fail;
28708 swig_obj[0] = args;
28709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28710 if (!SWIG_IsOK(res1)) {
28711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28712 }
28713 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28714 {
28715 PyThreadState* __tstate = wxPyBeginAllowThreads();
28716 result = (int)(arg1)->GetColumn();
28717 wxPyEndAllowThreads(__tstate);
28718 if (PyErr_Occurred()) SWIG_fail;
28719 }
28720 resultobj = SWIG_From_int(static_cast< int >(result));
28721 return resultobj;
28722 fail:
28723 return NULL;
28724 }
28725
28726
28727 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28728 PyObject *resultobj = 0;
28729 wxListEvent *arg1 = (wxListEvent *) 0 ;
28730 wxPoint result;
28731 void *argp1 = 0 ;
28732 int res1 = 0 ;
28733 PyObject *swig_obj[1] ;
28734
28735 if (!args) SWIG_fail;
28736 swig_obj[0] = args;
28737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28738 if (!SWIG_IsOK(res1)) {
28739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28740 }
28741 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28742 {
28743 PyThreadState* __tstate = wxPyBeginAllowThreads();
28744 result = (arg1)->GetPoint();
28745 wxPyEndAllowThreads(__tstate);
28746 if (PyErr_Occurred()) SWIG_fail;
28747 }
28748 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28749 return resultobj;
28750 fail:
28751 return NULL;
28752 }
28753
28754
28755 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28756 PyObject *resultobj = 0;
28757 wxListEvent *arg1 = (wxListEvent *) 0 ;
28758 wxString *result = 0 ;
28759 void *argp1 = 0 ;
28760 int res1 = 0 ;
28761 PyObject *swig_obj[1] ;
28762
28763 if (!args) SWIG_fail;
28764 swig_obj[0] = args;
28765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28766 if (!SWIG_IsOK(res1)) {
28767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28768 }
28769 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28770 {
28771 PyThreadState* __tstate = wxPyBeginAllowThreads();
28772 {
28773 wxString const &_result_ref = (arg1)->GetLabel();
28774 result = (wxString *) &_result_ref;
28775 }
28776 wxPyEndAllowThreads(__tstate);
28777 if (PyErr_Occurred()) SWIG_fail;
28778 }
28779 {
28780 #if wxUSE_UNICODE
28781 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28782 #else
28783 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28784 #endif
28785 }
28786 return resultobj;
28787 fail:
28788 return NULL;
28789 }
28790
28791
28792 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28793 PyObject *resultobj = 0;
28794 wxListEvent *arg1 = (wxListEvent *) 0 ;
28795 wxString *result = 0 ;
28796 void *argp1 = 0 ;
28797 int res1 = 0 ;
28798 PyObject *swig_obj[1] ;
28799
28800 if (!args) SWIG_fail;
28801 swig_obj[0] = args;
28802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28803 if (!SWIG_IsOK(res1)) {
28804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28805 }
28806 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28807 {
28808 PyThreadState* __tstate = wxPyBeginAllowThreads();
28809 {
28810 wxString const &_result_ref = (arg1)->GetText();
28811 result = (wxString *) &_result_ref;
28812 }
28813 wxPyEndAllowThreads(__tstate);
28814 if (PyErr_Occurred()) SWIG_fail;
28815 }
28816 {
28817 #if wxUSE_UNICODE
28818 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28819 #else
28820 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28821 #endif
28822 }
28823 return resultobj;
28824 fail:
28825 return NULL;
28826 }
28827
28828
28829 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28830 PyObject *resultobj = 0;
28831 wxListEvent *arg1 = (wxListEvent *) 0 ;
28832 int result;
28833 void *argp1 = 0 ;
28834 int res1 = 0 ;
28835 PyObject *swig_obj[1] ;
28836
28837 if (!args) SWIG_fail;
28838 swig_obj[0] = args;
28839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28840 if (!SWIG_IsOK(res1)) {
28841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28842 }
28843 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28844 {
28845 PyThreadState* __tstate = wxPyBeginAllowThreads();
28846 result = (int)(arg1)->GetImage();
28847 wxPyEndAllowThreads(__tstate);
28848 if (PyErr_Occurred()) SWIG_fail;
28849 }
28850 resultobj = SWIG_From_int(static_cast< int >(result));
28851 return resultobj;
28852 fail:
28853 return NULL;
28854 }
28855
28856
28857 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28858 PyObject *resultobj = 0;
28859 wxListEvent *arg1 = (wxListEvent *) 0 ;
28860 long result;
28861 void *argp1 = 0 ;
28862 int res1 = 0 ;
28863 PyObject *swig_obj[1] ;
28864
28865 if (!args) SWIG_fail;
28866 swig_obj[0] = args;
28867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28868 if (!SWIG_IsOK(res1)) {
28869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28870 }
28871 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28872 {
28873 PyThreadState* __tstate = wxPyBeginAllowThreads();
28874 result = (long)(arg1)->GetData();
28875 wxPyEndAllowThreads(__tstate);
28876 if (PyErr_Occurred()) SWIG_fail;
28877 }
28878 resultobj = SWIG_From_long(static_cast< long >(result));
28879 return resultobj;
28880 fail:
28881 return NULL;
28882 }
28883
28884
28885 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28886 PyObject *resultobj = 0;
28887 wxListEvent *arg1 = (wxListEvent *) 0 ;
28888 long result;
28889 void *argp1 = 0 ;
28890 int res1 = 0 ;
28891 PyObject *swig_obj[1] ;
28892
28893 if (!args) SWIG_fail;
28894 swig_obj[0] = args;
28895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28896 if (!SWIG_IsOK(res1)) {
28897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28898 }
28899 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28900 {
28901 PyThreadState* __tstate = wxPyBeginAllowThreads();
28902 result = (long)(arg1)->GetMask();
28903 wxPyEndAllowThreads(__tstate);
28904 if (PyErr_Occurred()) SWIG_fail;
28905 }
28906 resultobj = SWIG_From_long(static_cast< long >(result));
28907 return resultobj;
28908 fail:
28909 return NULL;
28910 }
28911
28912
28913 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28914 PyObject *resultobj = 0;
28915 wxListEvent *arg1 = (wxListEvent *) 0 ;
28916 wxListItem *result = 0 ;
28917 void *argp1 = 0 ;
28918 int res1 = 0 ;
28919 PyObject *swig_obj[1] ;
28920
28921 if (!args) SWIG_fail;
28922 swig_obj[0] = args;
28923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28924 if (!SWIG_IsOK(res1)) {
28925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28926 }
28927 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28928 {
28929 PyThreadState* __tstate = wxPyBeginAllowThreads();
28930 {
28931 wxListItem const &_result_ref = (arg1)->GetItem();
28932 result = (wxListItem *) &_result_ref;
28933 }
28934 wxPyEndAllowThreads(__tstate);
28935 if (PyErr_Occurred()) SWIG_fail;
28936 }
28937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28938 return resultobj;
28939 fail:
28940 return NULL;
28941 }
28942
28943
28944 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28945 PyObject *resultobj = 0;
28946 wxListEvent *arg1 = (wxListEvent *) 0 ;
28947 long result;
28948 void *argp1 = 0 ;
28949 int res1 = 0 ;
28950 PyObject *swig_obj[1] ;
28951
28952 if (!args) SWIG_fail;
28953 swig_obj[0] = args;
28954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28955 if (!SWIG_IsOK(res1)) {
28956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28957 }
28958 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28959 {
28960 PyThreadState* __tstate = wxPyBeginAllowThreads();
28961 result = (long)(arg1)->GetCacheFrom();
28962 wxPyEndAllowThreads(__tstate);
28963 if (PyErr_Occurred()) SWIG_fail;
28964 }
28965 resultobj = SWIG_From_long(static_cast< long >(result));
28966 return resultobj;
28967 fail:
28968 return NULL;
28969 }
28970
28971
28972 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28973 PyObject *resultobj = 0;
28974 wxListEvent *arg1 = (wxListEvent *) 0 ;
28975 long result;
28976 void *argp1 = 0 ;
28977 int res1 = 0 ;
28978 PyObject *swig_obj[1] ;
28979
28980 if (!args) SWIG_fail;
28981 swig_obj[0] = args;
28982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28983 if (!SWIG_IsOK(res1)) {
28984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28985 }
28986 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28987 {
28988 PyThreadState* __tstate = wxPyBeginAllowThreads();
28989 result = (long)(arg1)->GetCacheTo();
28990 wxPyEndAllowThreads(__tstate);
28991 if (PyErr_Occurred()) SWIG_fail;
28992 }
28993 resultobj = SWIG_From_long(static_cast< long >(result));
28994 return resultobj;
28995 fail:
28996 return NULL;
28997 }
28998
28999
29000 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29001 PyObject *resultobj = 0;
29002 wxListEvent *arg1 = (wxListEvent *) 0 ;
29003 bool result;
29004 void *argp1 = 0 ;
29005 int res1 = 0 ;
29006 PyObject *swig_obj[1] ;
29007
29008 if (!args) SWIG_fail;
29009 swig_obj[0] = args;
29010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29011 if (!SWIG_IsOK(res1)) {
29012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
29013 }
29014 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29015 {
29016 PyThreadState* __tstate = wxPyBeginAllowThreads();
29017 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
29018 wxPyEndAllowThreads(__tstate);
29019 if (PyErr_Occurred()) SWIG_fail;
29020 }
29021 {
29022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29023 }
29024 return resultobj;
29025 fail:
29026 return NULL;
29027 }
29028
29029
29030 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29031 PyObject *resultobj = 0;
29032 wxListEvent *arg1 = (wxListEvent *) 0 ;
29033 bool arg2 ;
29034 void *argp1 = 0 ;
29035 int res1 = 0 ;
29036 bool val2 ;
29037 int ecode2 = 0 ;
29038 PyObject * obj0 = 0 ;
29039 PyObject * obj1 = 0 ;
29040 char * kwnames[] = {
29041 (char *) "self",(char *) "editCancelled", NULL
29042 };
29043
29044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
29045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29046 if (!SWIG_IsOK(res1)) {
29047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
29048 }
29049 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29050 ecode2 = SWIG_AsVal_bool(obj1, &val2);
29051 if (!SWIG_IsOK(ecode2)) {
29052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
29053 }
29054 arg2 = static_cast< bool >(val2);
29055 {
29056 PyThreadState* __tstate = wxPyBeginAllowThreads();
29057 (arg1)->SetEditCanceled(arg2);
29058 wxPyEndAllowThreads(__tstate);
29059 if (PyErr_Occurred()) SWIG_fail;
29060 }
29061 resultobj = SWIG_Py_Void();
29062 return resultobj;
29063 fail:
29064 return NULL;
29065 }
29066
29067
29068 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29069 PyObject *obj;
29070 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29071 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
29072 return SWIG_Py_Void();
29073 }
29074
29075 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29076 return SWIG_Python_InitShadowInstance(args);
29077 }
29078
29079 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29080 PyObject *resultobj = 0;
29081 wxWindow *arg1 = (wxWindow *) 0 ;
29082 int arg2 = (int) -1 ;
29083 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29084 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29085 wxSize const &arg4_defvalue = wxDefaultSize ;
29086 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29087 long arg5 = (long) wxLC_ICON ;
29088 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29089 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29090 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
29091 wxString *arg7 = (wxString *) &arg7_defvalue ;
29092 wxPyListCtrl *result = 0 ;
29093 void *argp1 = 0 ;
29094 int res1 = 0 ;
29095 int val2 ;
29096 int ecode2 = 0 ;
29097 wxPoint temp3 ;
29098 wxSize temp4 ;
29099 long val5 ;
29100 int ecode5 = 0 ;
29101 void *argp6 = 0 ;
29102 int res6 = 0 ;
29103 bool temp7 = false ;
29104 PyObject * obj0 = 0 ;
29105 PyObject * obj1 = 0 ;
29106 PyObject * obj2 = 0 ;
29107 PyObject * obj3 = 0 ;
29108 PyObject * obj4 = 0 ;
29109 PyObject * obj5 = 0 ;
29110 PyObject * obj6 = 0 ;
29111 char * kwnames[] = {
29112 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29113 };
29114
29115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29117 if (!SWIG_IsOK(res1)) {
29118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
29119 }
29120 arg1 = reinterpret_cast< wxWindow * >(argp1);
29121 if (obj1) {
29122 ecode2 = SWIG_AsVal_int(obj1, &val2);
29123 if (!SWIG_IsOK(ecode2)) {
29124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
29125 }
29126 arg2 = static_cast< int >(val2);
29127 }
29128 if (obj2) {
29129 {
29130 arg3 = &temp3;
29131 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29132 }
29133 }
29134 if (obj3) {
29135 {
29136 arg4 = &temp4;
29137 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29138 }
29139 }
29140 if (obj4) {
29141 ecode5 = SWIG_AsVal_long(obj4, &val5);
29142 if (!SWIG_IsOK(ecode5)) {
29143 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
29144 }
29145 arg5 = static_cast< long >(val5);
29146 }
29147 if (obj5) {
29148 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
29149 if (!SWIG_IsOK(res6)) {
29150 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29151 }
29152 if (!argp6) {
29153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29154 }
29155 arg6 = reinterpret_cast< wxValidator * >(argp6);
29156 }
29157 if (obj6) {
29158 {
29159 arg7 = wxString_in_helper(obj6);
29160 if (arg7 == NULL) SWIG_fail;
29161 temp7 = true;
29162 }
29163 }
29164 {
29165 if (!wxPyCheckForApp()) SWIG_fail;
29166 PyThreadState* __tstate = wxPyBeginAllowThreads();
29167 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29168 wxPyEndAllowThreads(__tstate);
29169 if (PyErr_Occurred()) SWIG_fail;
29170 }
29171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
29172 {
29173 if (temp7)
29174 delete arg7;
29175 }
29176 return resultobj;
29177 fail:
29178 {
29179 if (temp7)
29180 delete arg7;
29181 }
29182 return NULL;
29183 }
29184
29185
29186 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29187 PyObject *resultobj = 0;
29188 wxPyListCtrl *result = 0 ;
29189
29190 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
29191 {
29192 if (!wxPyCheckForApp()) SWIG_fail;
29193 PyThreadState* __tstate = wxPyBeginAllowThreads();
29194 result = (wxPyListCtrl *)new wxPyListCtrl();
29195 wxPyEndAllowThreads(__tstate);
29196 if (PyErr_Occurred()) SWIG_fail;
29197 }
29198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
29199 return resultobj;
29200 fail:
29201 return NULL;
29202 }
29203
29204
29205 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29206 PyObject *resultobj = 0;
29207 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29208 wxWindow *arg2 = (wxWindow *) 0 ;
29209 int arg3 = (int) -1 ;
29210 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29211 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29212 wxSize const &arg5_defvalue = wxDefaultSize ;
29213 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29214 long arg6 = (long) wxLC_ICON ;
29215 wxValidator const &arg7_defvalue = wxDefaultValidator ;
29216 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
29217 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
29218 wxString *arg8 = (wxString *) &arg8_defvalue ;
29219 bool result;
29220 void *argp1 = 0 ;
29221 int res1 = 0 ;
29222 void *argp2 = 0 ;
29223 int res2 = 0 ;
29224 int val3 ;
29225 int ecode3 = 0 ;
29226 wxPoint temp4 ;
29227 wxSize temp5 ;
29228 long val6 ;
29229 int ecode6 = 0 ;
29230 void *argp7 = 0 ;
29231 int res7 = 0 ;
29232 bool temp8 = false ;
29233 PyObject * obj0 = 0 ;
29234 PyObject * obj1 = 0 ;
29235 PyObject * obj2 = 0 ;
29236 PyObject * obj3 = 0 ;
29237 PyObject * obj4 = 0 ;
29238 PyObject * obj5 = 0 ;
29239 PyObject * obj6 = 0 ;
29240 PyObject * obj7 = 0 ;
29241 char * kwnames[] = {
29242 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29243 };
29244
29245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29247 if (!SWIG_IsOK(res1)) {
29248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29249 }
29250 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29251 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29252 if (!SWIG_IsOK(res2)) {
29253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29254 }
29255 arg2 = reinterpret_cast< wxWindow * >(argp2);
29256 if (obj2) {
29257 ecode3 = SWIG_AsVal_int(obj2, &val3);
29258 if (!SWIG_IsOK(ecode3)) {
29259 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29260 }
29261 arg3 = static_cast< int >(val3);
29262 }
29263 if (obj3) {
29264 {
29265 arg4 = &temp4;
29266 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29267 }
29268 }
29269 if (obj4) {
29270 {
29271 arg5 = &temp5;
29272 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29273 }
29274 }
29275 if (obj5) {
29276 ecode6 = SWIG_AsVal_long(obj5, &val6);
29277 if (!SWIG_IsOK(ecode6)) {
29278 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29279 }
29280 arg6 = static_cast< long >(val6);
29281 }
29282 if (obj6) {
29283 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29284 if (!SWIG_IsOK(res7)) {
29285 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29286 }
29287 if (!argp7) {
29288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29289 }
29290 arg7 = reinterpret_cast< wxValidator * >(argp7);
29291 }
29292 if (obj7) {
29293 {
29294 arg8 = wxString_in_helper(obj7);
29295 if (arg8 == NULL) SWIG_fail;
29296 temp8 = true;
29297 }
29298 }
29299 {
29300 PyThreadState* __tstate = wxPyBeginAllowThreads();
29301 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29302 wxPyEndAllowThreads(__tstate);
29303 if (PyErr_Occurred()) SWIG_fail;
29304 }
29305 {
29306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29307 }
29308 {
29309 if (temp8)
29310 delete arg8;
29311 }
29312 return resultobj;
29313 fail:
29314 {
29315 if (temp8)
29316 delete arg8;
29317 }
29318 return NULL;
29319 }
29320
29321
29322 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29323 PyObject *resultobj = 0;
29324 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29325 PyObject *arg2 = (PyObject *) 0 ;
29326 PyObject *arg3 = (PyObject *) 0 ;
29327 void *argp1 = 0 ;
29328 int res1 = 0 ;
29329 PyObject * obj0 = 0 ;
29330 PyObject * obj1 = 0 ;
29331 PyObject * obj2 = 0 ;
29332 char * kwnames[] = {
29333 (char *) "self",(char *) "self",(char *) "_class", NULL
29334 };
29335
29336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29338 if (!SWIG_IsOK(res1)) {
29339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29340 }
29341 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29342 arg2 = obj1;
29343 arg3 = obj2;
29344 {
29345 PyThreadState* __tstate = wxPyBeginAllowThreads();
29346 (arg1)->_setCallbackInfo(arg2,arg3);
29347 wxPyEndAllowThreads(__tstate);
29348 if (PyErr_Occurred()) SWIG_fail;
29349 }
29350 resultobj = SWIG_Py_Void();
29351 return resultobj;
29352 fail:
29353 return NULL;
29354 }
29355
29356
29357 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29358 PyObject *resultobj = 0;
29359 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29360 int arg2 ;
29361 wxListItem *result = 0 ;
29362 void *argp1 = 0 ;
29363 int res1 = 0 ;
29364 int val2 ;
29365 int ecode2 = 0 ;
29366 PyObject * obj0 = 0 ;
29367 PyObject * obj1 = 0 ;
29368 char * kwnames[] = {
29369 (char *) "self",(char *) "col", NULL
29370 };
29371
29372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29374 if (!SWIG_IsOK(res1)) {
29375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29376 }
29377 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29378 ecode2 = SWIG_AsVal_int(obj1, &val2);
29379 if (!SWIG_IsOK(ecode2)) {
29380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29381 }
29382 arg2 = static_cast< int >(val2);
29383 {
29384 PyThreadState* __tstate = wxPyBeginAllowThreads();
29385 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29386 wxPyEndAllowThreads(__tstate);
29387 if (PyErr_Occurred()) SWIG_fail;
29388 }
29389 {
29390 resultobj = wxPyMake_wxObject(result, 0);
29391 }
29392 return resultobj;
29393 fail:
29394 return NULL;
29395 }
29396
29397
29398 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29399 PyObject *resultobj = 0;
29400 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29401 int arg2 ;
29402 wxListItem *arg3 = 0 ;
29403 bool result;
29404 void *argp1 = 0 ;
29405 int res1 = 0 ;
29406 int val2 ;
29407 int ecode2 = 0 ;
29408 void *argp3 = 0 ;
29409 int res3 = 0 ;
29410 PyObject * obj0 = 0 ;
29411 PyObject * obj1 = 0 ;
29412 PyObject * obj2 = 0 ;
29413 char * kwnames[] = {
29414 (char *) "self",(char *) "col",(char *) "item", NULL
29415 };
29416
29417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29419 if (!SWIG_IsOK(res1)) {
29420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29421 }
29422 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29423 ecode2 = SWIG_AsVal_int(obj1, &val2);
29424 if (!SWIG_IsOK(ecode2)) {
29425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29426 }
29427 arg2 = static_cast< int >(val2);
29428 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29429 if (!SWIG_IsOK(res3)) {
29430 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29431 }
29432 if (!argp3) {
29433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29434 }
29435 arg3 = reinterpret_cast< wxListItem * >(argp3);
29436 {
29437 PyThreadState* __tstate = wxPyBeginAllowThreads();
29438 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29439 wxPyEndAllowThreads(__tstate);
29440 if (PyErr_Occurred()) SWIG_fail;
29441 }
29442 {
29443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29444 }
29445 return resultobj;
29446 fail:
29447 return NULL;
29448 }
29449
29450
29451 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29452 PyObject *resultobj = 0;
29453 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29454 int arg2 ;
29455 int result;
29456 void *argp1 = 0 ;
29457 int res1 = 0 ;
29458 int val2 ;
29459 int ecode2 = 0 ;
29460 PyObject * obj0 = 0 ;
29461 PyObject * obj1 = 0 ;
29462 char * kwnames[] = {
29463 (char *) "self",(char *) "col", NULL
29464 };
29465
29466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29468 if (!SWIG_IsOK(res1)) {
29469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29470 }
29471 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29472 ecode2 = SWIG_AsVal_int(obj1, &val2);
29473 if (!SWIG_IsOK(ecode2)) {
29474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29475 }
29476 arg2 = static_cast< int >(val2);
29477 {
29478 PyThreadState* __tstate = wxPyBeginAllowThreads();
29479 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29480 wxPyEndAllowThreads(__tstate);
29481 if (PyErr_Occurred()) SWIG_fail;
29482 }
29483 resultobj = SWIG_From_int(static_cast< int >(result));
29484 return resultobj;
29485 fail:
29486 return NULL;
29487 }
29488
29489
29490 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29491 PyObject *resultobj = 0;
29492 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29493 int arg2 ;
29494 int arg3 ;
29495 bool result;
29496 void *argp1 = 0 ;
29497 int res1 = 0 ;
29498 int val2 ;
29499 int ecode2 = 0 ;
29500 int val3 ;
29501 int ecode3 = 0 ;
29502 PyObject * obj0 = 0 ;
29503 PyObject * obj1 = 0 ;
29504 PyObject * obj2 = 0 ;
29505 char * kwnames[] = {
29506 (char *) "self",(char *) "col",(char *) "width", NULL
29507 };
29508
29509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29511 if (!SWIG_IsOK(res1)) {
29512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29513 }
29514 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29515 ecode2 = SWIG_AsVal_int(obj1, &val2);
29516 if (!SWIG_IsOK(ecode2)) {
29517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29518 }
29519 arg2 = static_cast< int >(val2);
29520 ecode3 = SWIG_AsVal_int(obj2, &val3);
29521 if (!SWIG_IsOK(ecode3)) {
29522 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29523 }
29524 arg3 = static_cast< int >(val3);
29525 {
29526 PyThreadState* __tstate = wxPyBeginAllowThreads();
29527 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29528 wxPyEndAllowThreads(__tstate);
29529 if (PyErr_Occurred()) SWIG_fail;
29530 }
29531 {
29532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29533 }
29534 return resultobj;
29535 fail:
29536 return NULL;
29537 }
29538
29539
29540 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29541 PyObject *resultobj = 0;
29542 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29543 int result;
29544 void *argp1 = 0 ;
29545 int res1 = 0 ;
29546 PyObject *swig_obj[1] ;
29547
29548 if (!args) SWIG_fail;
29549 swig_obj[0] = args;
29550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29551 if (!SWIG_IsOK(res1)) {
29552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29553 }
29554 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29555 {
29556 PyThreadState* __tstate = wxPyBeginAllowThreads();
29557 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29558 wxPyEndAllowThreads(__tstate);
29559 if (PyErr_Occurred()) SWIG_fail;
29560 }
29561 resultobj = SWIG_From_int(static_cast< int >(result));
29562 return resultobj;
29563 fail:
29564 return NULL;
29565 }
29566
29567
29568 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29569 PyObject *resultobj = 0;
29570 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29571 wxRect result;
29572 void *argp1 = 0 ;
29573 int res1 = 0 ;
29574 PyObject *swig_obj[1] ;
29575
29576 if (!args) SWIG_fail;
29577 swig_obj[0] = args;
29578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29579 if (!SWIG_IsOK(res1)) {
29580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29581 }
29582 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29583 {
29584 PyThreadState* __tstate = wxPyBeginAllowThreads();
29585 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29586 wxPyEndAllowThreads(__tstate);
29587 if (PyErr_Occurred()) SWIG_fail;
29588 }
29589 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29590 return resultobj;
29591 fail:
29592 return NULL;
29593 }
29594
29595
29596 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29597 PyObject *resultobj = 0;
29598 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29599 wxTextCtrl *result = 0 ;
29600 void *argp1 = 0 ;
29601 int res1 = 0 ;
29602 PyObject *swig_obj[1] ;
29603
29604 if (!args) SWIG_fail;
29605 swig_obj[0] = args;
29606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29607 if (!SWIG_IsOK(res1)) {
29608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29609 }
29610 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29611 {
29612 PyThreadState* __tstate = wxPyBeginAllowThreads();
29613 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29614 wxPyEndAllowThreads(__tstate);
29615 if (PyErr_Occurred()) SWIG_fail;
29616 }
29617 {
29618 resultobj = wxPyMake_wxObject(result, 0);
29619 }
29620 return resultobj;
29621 fail:
29622 return NULL;
29623 }
29624
29625
29626 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29627 PyObject *resultobj = 0;
29628 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29629 long arg2 ;
29630 int arg3 = (int) 0 ;
29631 wxListItem *result = 0 ;
29632 void *argp1 = 0 ;
29633 int res1 = 0 ;
29634 long val2 ;
29635 int ecode2 = 0 ;
29636 int val3 ;
29637 int ecode3 = 0 ;
29638 PyObject * obj0 = 0 ;
29639 PyObject * obj1 = 0 ;
29640 PyObject * obj2 = 0 ;
29641 char * kwnames[] = {
29642 (char *) "self",(char *) "itemId",(char *) "col", NULL
29643 };
29644
29645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29647 if (!SWIG_IsOK(res1)) {
29648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29649 }
29650 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29651 ecode2 = SWIG_AsVal_long(obj1, &val2);
29652 if (!SWIG_IsOK(ecode2)) {
29653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29654 }
29655 arg2 = static_cast< long >(val2);
29656 if (obj2) {
29657 ecode3 = SWIG_AsVal_int(obj2, &val3);
29658 if (!SWIG_IsOK(ecode3)) {
29659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29660 }
29661 arg3 = static_cast< int >(val3);
29662 }
29663 {
29664 PyThreadState* __tstate = wxPyBeginAllowThreads();
29665 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29666 wxPyEndAllowThreads(__tstate);
29667 if (PyErr_Occurred()) SWIG_fail;
29668 }
29669 {
29670 resultobj = wxPyMake_wxObject(result, 0);
29671 }
29672 return resultobj;
29673 fail:
29674 return NULL;
29675 }
29676
29677
29678 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29679 PyObject *resultobj = 0;
29680 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29681 wxListItem *arg2 = 0 ;
29682 bool result;
29683 void *argp1 = 0 ;
29684 int res1 = 0 ;
29685 void *argp2 = 0 ;
29686 int res2 = 0 ;
29687 PyObject * obj0 = 0 ;
29688 PyObject * obj1 = 0 ;
29689 char * kwnames[] = {
29690 (char *) "self",(char *) "info", NULL
29691 };
29692
29693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29695 if (!SWIG_IsOK(res1)) {
29696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29697 }
29698 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29699 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29700 if (!SWIG_IsOK(res2)) {
29701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29702 }
29703 if (!argp2) {
29704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29705 }
29706 arg2 = reinterpret_cast< wxListItem * >(argp2);
29707 {
29708 PyThreadState* __tstate = wxPyBeginAllowThreads();
29709 result = (bool)(arg1)->SetItem(*arg2);
29710 wxPyEndAllowThreads(__tstate);
29711 if (PyErr_Occurred()) SWIG_fail;
29712 }
29713 {
29714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29715 }
29716 return resultobj;
29717 fail:
29718 return NULL;
29719 }
29720
29721
29722 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29723 PyObject *resultobj = 0;
29724 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29725 long arg2 ;
29726 int arg3 ;
29727 wxString *arg4 = 0 ;
29728 int arg5 = (int) -1 ;
29729 long result;
29730 void *argp1 = 0 ;
29731 int res1 = 0 ;
29732 long val2 ;
29733 int ecode2 = 0 ;
29734 int val3 ;
29735 int ecode3 = 0 ;
29736 bool temp4 = false ;
29737 int val5 ;
29738 int ecode5 = 0 ;
29739 PyObject * obj0 = 0 ;
29740 PyObject * obj1 = 0 ;
29741 PyObject * obj2 = 0 ;
29742 PyObject * obj3 = 0 ;
29743 PyObject * obj4 = 0 ;
29744 char * kwnames[] = {
29745 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29746 };
29747
29748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29750 if (!SWIG_IsOK(res1)) {
29751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29752 }
29753 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29754 ecode2 = SWIG_AsVal_long(obj1, &val2);
29755 if (!SWIG_IsOK(ecode2)) {
29756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29757 }
29758 arg2 = static_cast< long >(val2);
29759 ecode3 = SWIG_AsVal_int(obj2, &val3);
29760 if (!SWIG_IsOK(ecode3)) {
29761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29762 }
29763 arg3 = static_cast< int >(val3);
29764 {
29765 arg4 = wxString_in_helper(obj3);
29766 if (arg4 == NULL) SWIG_fail;
29767 temp4 = true;
29768 }
29769 if (obj4) {
29770 ecode5 = SWIG_AsVal_int(obj4, &val5);
29771 if (!SWIG_IsOK(ecode5)) {
29772 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29773 }
29774 arg5 = static_cast< int >(val5);
29775 }
29776 {
29777 PyThreadState* __tstate = wxPyBeginAllowThreads();
29778 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29779 wxPyEndAllowThreads(__tstate);
29780 if (PyErr_Occurred()) SWIG_fail;
29781 }
29782 resultobj = SWIG_From_long(static_cast< long >(result));
29783 {
29784 if (temp4)
29785 delete arg4;
29786 }
29787 return resultobj;
29788 fail:
29789 {
29790 if (temp4)
29791 delete arg4;
29792 }
29793 return NULL;
29794 }
29795
29796
29797 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29798 PyObject *resultobj = 0;
29799 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29800 long arg2 ;
29801 long arg3 ;
29802 int result;
29803 void *argp1 = 0 ;
29804 int res1 = 0 ;
29805 long val2 ;
29806 int ecode2 = 0 ;
29807 long val3 ;
29808 int ecode3 = 0 ;
29809 PyObject * obj0 = 0 ;
29810 PyObject * obj1 = 0 ;
29811 PyObject * obj2 = 0 ;
29812 char * kwnames[] = {
29813 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29814 };
29815
29816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29818 if (!SWIG_IsOK(res1)) {
29819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29820 }
29821 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29822 ecode2 = SWIG_AsVal_long(obj1, &val2);
29823 if (!SWIG_IsOK(ecode2)) {
29824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29825 }
29826 arg2 = static_cast< long >(val2);
29827 ecode3 = SWIG_AsVal_long(obj2, &val3);
29828 if (!SWIG_IsOK(ecode3)) {
29829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29830 }
29831 arg3 = static_cast< long >(val3);
29832 {
29833 PyThreadState* __tstate = wxPyBeginAllowThreads();
29834 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29835 wxPyEndAllowThreads(__tstate);
29836 if (PyErr_Occurred()) SWIG_fail;
29837 }
29838 resultobj = SWIG_From_int(static_cast< int >(result));
29839 return resultobj;
29840 fail:
29841 return NULL;
29842 }
29843
29844
29845 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29846 PyObject *resultobj = 0;
29847 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29848 long arg2 ;
29849 long arg3 ;
29850 long arg4 ;
29851 bool result;
29852 void *argp1 = 0 ;
29853 int res1 = 0 ;
29854 long val2 ;
29855 int ecode2 = 0 ;
29856 long val3 ;
29857 int ecode3 = 0 ;
29858 long val4 ;
29859 int ecode4 = 0 ;
29860 PyObject * obj0 = 0 ;
29861 PyObject * obj1 = 0 ;
29862 PyObject * obj2 = 0 ;
29863 PyObject * obj3 = 0 ;
29864 char * kwnames[] = {
29865 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29866 };
29867
29868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29870 if (!SWIG_IsOK(res1)) {
29871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29872 }
29873 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29874 ecode2 = SWIG_AsVal_long(obj1, &val2);
29875 if (!SWIG_IsOK(ecode2)) {
29876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29877 }
29878 arg2 = static_cast< long >(val2);
29879 ecode3 = SWIG_AsVal_long(obj2, &val3);
29880 if (!SWIG_IsOK(ecode3)) {
29881 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29882 }
29883 arg3 = static_cast< long >(val3);
29884 ecode4 = SWIG_AsVal_long(obj3, &val4);
29885 if (!SWIG_IsOK(ecode4)) {
29886 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29887 }
29888 arg4 = static_cast< long >(val4);
29889 {
29890 PyThreadState* __tstate = wxPyBeginAllowThreads();
29891 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29892 wxPyEndAllowThreads(__tstate);
29893 if (PyErr_Occurred()) SWIG_fail;
29894 }
29895 {
29896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29897 }
29898 return resultobj;
29899 fail:
29900 return NULL;
29901 }
29902
29903
29904 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29905 PyObject *resultobj = 0;
29906 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29907 long arg2 ;
29908 int arg3 ;
29909 int arg4 = (int) -1 ;
29910 bool result;
29911 void *argp1 = 0 ;
29912 int res1 = 0 ;
29913 long val2 ;
29914 int ecode2 = 0 ;
29915 int val3 ;
29916 int ecode3 = 0 ;
29917 int val4 ;
29918 int ecode4 = 0 ;
29919 PyObject * obj0 = 0 ;
29920 PyObject * obj1 = 0 ;
29921 PyObject * obj2 = 0 ;
29922 PyObject * obj3 = 0 ;
29923 char * kwnames[] = {
29924 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29925 };
29926
29927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29929 if (!SWIG_IsOK(res1)) {
29930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29931 }
29932 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29933 ecode2 = SWIG_AsVal_long(obj1, &val2);
29934 if (!SWIG_IsOK(ecode2)) {
29935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29936 }
29937 arg2 = static_cast< long >(val2);
29938 ecode3 = SWIG_AsVal_int(obj2, &val3);
29939 if (!SWIG_IsOK(ecode3)) {
29940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29941 }
29942 arg3 = static_cast< int >(val3);
29943 if (obj3) {
29944 ecode4 = SWIG_AsVal_int(obj3, &val4);
29945 if (!SWIG_IsOK(ecode4)) {
29946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29947 }
29948 arg4 = static_cast< int >(val4);
29949 }
29950 {
29951 PyThreadState* __tstate = wxPyBeginAllowThreads();
29952 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29953 wxPyEndAllowThreads(__tstate);
29954 if (PyErr_Occurred()) SWIG_fail;
29955 }
29956 {
29957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29958 }
29959 return resultobj;
29960 fail:
29961 return NULL;
29962 }
29963
29964
29965 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29966 PyObject *resultobj = 0;
29967 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29968 long arg2 ;
29969 long arg3 ;
29970 int arg4 ;
29971 bool result;
29972 void *argp1 = 0 ;
29973 int res1 = 0 ;
29974 long val2 ;
29975 int ecode2 = 0 ;
29976 long val3 ;
29977 int ecode3 = 0 ;
29978 int val4 ;
29979 int ecode4 = 0 ;
29980 PyObject * obj0 = 0 ;
29981 PyObject * obj1 = 0 ;
29982 PyObject * obj2 = 0 ;
29983 PyObject * obj3 = 0 ;
29984 char * kwnames[] = {
29985 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29986 };
29987
29988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29990 if (!SWIG_IsOK(res1)) {
29991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29992 }
29993 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29994 ecode2 = SWIG_AsVal_long(obj1, &val2);
29995 if (!SWIG_IsOK(ecode2)) {
29996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29997 }
29998 arg2 = static_cast< long >(val2);
29999 ecode3 = SWIG_AsVal_long(obj2, &val3);
30000 if (!SWIG_IsOK(ecode3)) {
30001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
30002 }
30003 arg3 = static_cast< long >(val3);
30004 ecode4 = SWIG_AsVal_int(obj3, &val4);
30005 if (!SWIG_IsOK(ecode4)) {
30006 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
30007 }
30008 arg4 = static_cast< int >(val4);
30009 {
30010 PyThreadState* __tstate = wxPyBeginAllowThreads();
30011 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
30012 wxPyEndAllowThreads(__tstate);
30013 if (PyErr_Occurred()) SWIG_fail;
30014 }
30015 {
30016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30017 }
30018 return resultobj;
30019 fail:
30020 return NULL;
30021 }
30022
30023
30024 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30025 PyObject *resultobj = 0;
30026 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30027 long arg2 ;
30028 wxString result;
30029 void *argp1 = 0 ;
30030 int res1 = 0 ;
30031 long val2 ;
30032 int ecode2 = 0 ;
30033 PyObject * obj0 = 0 ;
30034 PyObject * obj1 = 0 ;
30035 char * kwnames[] = {
30036 (char *) "self",(char *) "item", NULL
30037 };
30038
30039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
30040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30041 if (!SWIG_IsOK(res1)) {
30042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30043 }
30044 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30045 ecode2 = SWIG_AsVal_long(obj1, &val2);
30046 if (!SWIG_IsOK(ecode2)) {
30047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
30048 }
30049 arg2 = static_cast< long >(val2);
30050 {
30051 PyThreadState* __tstate = wxPyBeginAllowThreads();
30052 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
30053 wxPyEndAllowThreads(__tstate);
30054 if (PyErr_Occurred()) SWIG_fail;
30055 }
30056 {
30057 #if wxUSE_UNICODE
30058 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30059 #else
30060 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30061 #endif
30062 }
30063 return resultobj;
30064 fail:
30065 return NULL;
30066 }
30067
30068
30069 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30070 PyObject *resultobj = 0;
30071 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30072 long arg2 ;
30073 wxString *arg3 = 0 ;
30074 void *argp1 = 0 ;
30075 int res1 = 0 ;
30076 long val2 ;
30077 int ecode2 = 0 ;
30078 bool temp3 = false ;
30079 PyObject * obj0 = 0 ;
30080 PyObject * obj1 = 0 ;
30081 PyObject * obj2 = 0 ;
30082 char * kwnames[] = {
30083 (char *) "self",(char *) "item",(char *) "str", NULL
30084 };
30085
30086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30088 if (!SWIG_IsOK(res1)) {
30089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30090 }
30091 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30092 ecode2 = SWIG_AsVal_long(obj1, &val2);
30093 if (!SWIG_IsOK(ecode2)) {
30094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
30095 }
30096 arg2 = static_cast< long >(val2);
30097 {
30098 arg3 = wxString_in_helper(obj2);
30099 if (arg3 == NULL) SWIG_fail;
30100 temp3 = true;
30101 }
30102 {
30103 PyThreadState* __tstate = wxPyBeginAllowThreads();
30104 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
30105 wxPyEndAllowThreads(__tstate);
30106 if (PyErr_Occurred()) SWIG_fail;
30107 }
30108 resultobj = SWIG_Py_Void();
30109 {
30110 if (temp3)
30111 delete arg3;
30112 }
30113 return resultobj;
30114 fail:
30115 {
30116 if (temp3)
30117 delete arg3;
30118 }
30119 return NULL;
30120 }
30121
30122
30123 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30124 PyObject *resultobj = 0;
30125 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30126 long arg2 ;
30127 long result;
30128 void *argp1 = 0 ;
30129 int res1 = 0 ;
30130 long val2 ;
30131 int ecode2 = 0 ;
30132 PyObject * obj0 = 0 ;
30133 PyObject * obj1 = 0 ;
30134 char * kwnames[] = {
30135 (char *) "self",(char *) "item", NULL
30136 };
30137
30138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
30139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30140 if (!SWIG_IsOK(res1)) {
30141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30142 }
30143 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30144 ecode2 = SWIG_AsVal_long(obj1, &val2);
30145 if (!SWIG_IsOK(ecode2)) {
30146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
30147 }
30148 arg2 = static_cast< long >(val2);
30149 {
30150 PyThreadState* __tstate = wxPyBeginAllowThreads();
30151 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
30152 wxPyEndAllowThreads(__tstate);
30153 if (PyErr_Occurred()) SWIG_fail;
30154 }
30155 resultobj = SWIG_From_long(static_cast< long >(result));
30156 return resultobj;
30157 fail:
30158 return NULL;
30159 }
30160
30161
30162 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30163 PyObject *resultobj = 0;
30164 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30165 long arg2 ;
30166 long arg3 ;
30167 bool result;
30168 void *argp1 = 0 ;
30169 int res1 = 0 ;
30170 long val2 ;
30171 int ecode2 = 0 ;
30172 long val3 ;
30173 int ecode3 = 0 ;
30174 PyObject * obj0 = 0 ;
30175 PyObject * obj1 = 0 ;
30176 PyObject * obj2 = 0 ;
30177 char * kwnames[] = {
30178 (char *) "self",(char *) "item",(char *) "data", NULL
30179 };
30180
30181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30183 if (!SWIG_IsOK(res1)) {
30184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30185 }
30186 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30187 ecode2 = SWIG_AsVal_long(obj1, &val2);
30188 if (!SWIG_IsOK(ecode2)) {
30189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
30190 }
30191 arg2 = static_cast< long >(val2);
30192 ecode3 = SWIG_AsVal_long(obj2, &val3);
30193 if (!SWIG_IsOK(ecode3)) {
30194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
30195 }
30196 arg3 = static_cast< long >(val3);
30197 {
30198 PyThreadState* __tstate = wxPyBeginAllowThreads();
30199 result = (bool)(arg1)->SetItemData(arg2,arg3);
30200 wxPyEndAllowThreads(__tstate);
30201 if (PyErr_Occurred()) SWIG_fail;
30202 }
30203 {
30204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30205 }
30206 return resultobj;
30207 fail:
30208 return NULL;
30209 }
30210
30211
30212 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30213 PyObject *resultobj = 0;
30214 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30215 long arg2 ;
30216 wxPoint result;
30217 void *argp1 = 0 ;
30218 int res1 = 0 ;
30219 long val2 ;
30220 int ecode2 = 0 ;
30221 PyObject * obj0 = 0 ;
30222 PyObject * obj1 = 0 ;
30223 char * kwnames[] = {
30224 (char *) "self",(char *) "item", NULL
30225 };
30226
30227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30229 if (!SWIG_IsOK(res1)) {
30230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30231 }
30232 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30233 ecode2 = SWIG_AsVal_long(obj1, &val2);
30234 if (!SWIG_IsOK(ecode2)) {
30235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30236 }
30237 arg2 = static_cast< long >(val2);
30238 {
30239 PyThreadState* __tstate = wxPyBeginAllowThreads();
30240 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30241 wxPyEndAllowThreads(__tstate);
30242 if (PyErr_Occurred()) SWIG_fail;
30243 }
30244 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30245 return resultobj;
30246 fail:
30247 return NULL;
30248 }
30249
30250
30251 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30252 PyObject *resultobj = 0;
30253 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30254 long arg2 ;
30255 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30256 wxRect result;
30257 void *argp1 = 0 ;
30258 int res1 = 0 ;
30259 long val2 ;
30260 int ecode2 = 0 ;
30261 int val3 ;
30262 int ecode3 = 0 ;
30263 PyObject * obj0 = 0 ;
30264 PyObject * obj1 = 0 ;
30265 PyObject * obj2 = 0 ;
30266 char * kwnames[] = {
30267 (char *) "self",(char *) "item",(char *) "code", NULL
30268 };
30269
30270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30272 if (!SWIG_IsOK(res1)) {
30273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30274 }
30275 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30276 ecode2 = SWIG_AsVal_long(obj1, &val2);
30277 if (!SWIG_IsOK(ecode2)) {
30278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30279 }
30280 arg2 = static_cast< long >(val2);
30281 if (obj2) {
30282 ecode3 = SWIG_AsVal_int(obj2, &val3);
30283 if (!SWIG_IsOK(ecode3)) {
30284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30285 }
30286 arg3 = static_cast< int >(val3);
30287 }
30288 {
30289 PyThreadState* __tstate = wxPyBeginAllowThreads();
30290 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30291 wxPyEndAllowThreads(__tstate);
30292 if (PyErr_Occurred()) SWIG_fail;
30293 }
30294 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30295 return resultobj;
30296 fail:
30297 return NULL;
30298 }
30299
30300
30301 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30302 PyObject *resultobj = 0;
30303 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30304 long arg2 ;
30305 wxPoint *arg3 = 0 ;
30306 bool result;
30307 void *argp1 = 0 ;
30308 int res1 = 0 ;
30309 long val2 ;
30310 int ecode2 = 0 ;
30311 wxPoint temp3 ;
30312 PyObject * obj0 = 0 ;
30313 PyObject * obj1 = 0 ;
30314 PyObject * obj2 = 0 ;
30315 char * kwnames[] = {
30316 (char *) "self",(char *) "item",(char *) "pos", NULL
30317 };
30318
30319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30321 if (!SWIG_IsOK(res1)) {
30322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30323 }
30324 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30325 ecode2 = SWIG_AsVal_long(obj1, &val2);
30326 if (!SWIG_IsOK(ecode2)) {
30327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30328 }
30329 arg2 = static_cast< long >(val2);
30330 {
30331 arg3 = &temp3;
30332 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30333 }
30334 {
30335 PyThreadState* __tstate = wxPyBeginAllowThreads();
30336 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30337 wxPyEndAllowThreads(__tstate);
30338 if (PyErr_Occurred()) SWIG_fail;
30339 }
30340 {
30341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30342 }
30343 return resultobj;
30344 fail:
30345 return NULL;
30346 }
30347
30348
30349 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30350 PyObject *resultobj = 0;
30351 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30352 int result;
30353 void *argp1 = 0 ;
30354 int res1 = 0 ;
30355 PyObject *swig_obj[1] ;
30356
30357 if (!args) SWIG_fail;
30358 swig_obj[0] = args;
30359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30360 if (!SWIG_IsOK(res1)) {
30361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30362 }
30363 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30364 {
30365 PyThreadState* __tstate = wxPyBeginAllowThreads();
30366 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30367 wxPyEndAllowThreads(__tstate);
30368 if (PyErr_Occurred()) SWIG_fail;
30369 }
30370 resultobj = SWIG_From_int(static_cast< int >(result));
30371 return resultobj;
30372 fail:
30373 return NULL;
30374 }
30375
30376
30377 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30378 PyObject *resultobj = 0;
30379 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30380 int result;
30381 void *argp1 = 0 ;
30382 int res1 = 0 ;
30383 PyObject *swig_obj[1] ;
30384
30385 if (!args) SWIG_fail;
30386 swig_obj[0] = args;
30387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30388 if (!SWIG_IsOK(res1)) {
30389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30390 }
30391 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30392 {
30393 PyThreadState* __tstate = wxPyBeginAllowThreads();
30394 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30395 wxPyEndAllowThreads(__tstate);
30396 if (PyErr_Occurred()) SWIG_fail;
30397 }
30398 resultobj = SWIG_From_int(static_cast< int >(result));
30399 return resultobj;
30400 fail:
30401 return NULL;
30402 }
30403
30404
30405 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30406 PyObject *resultobj = 0;
30407 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30408 wxSize result;
30409 void *argp1 = 0 ;
30410 int res1 = 0 ;
30411 PyObject *swig_obj[1] ;
30412
30413 if (!args) SWIG_fail;
30414 swig_obj[0] = args;
30415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30416 if (!SWIG_IsOK(res1)) {
30417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30418 }
30419 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30420 {
30421 PyThreadState* __tstate = wxPyBeginAllowThreads();
30422 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30423 wxPyEndAllowThreads(__tstate);
30424 if (PyErr_Occurred()) SWIG_fail;
30425 }
30426 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30427 return resultobj;
30428 fail:
30429 return NULL;
30430 }
30431
30432
30433 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30434 PyObject *resultobj = 0;
30435 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30436 int arg2 ;
30437 bool arg3 = (bool) false ;
30438 void *argp1 = 0 ;
30439 int res1 = 0 ;
30440 int val2 ;
30441 int ecode2 = 0 ;
30442 bool val3 ;
30443 int ecode3 = 0 ;
30444 PyObject * obj0 = 0 ;
30445 PyObject * obj1 = 0 ;
30446 PyObject * obj2 = 0 ;
30447 char * kwnames[] = {
30448 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30449 };
30450
30451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30453 if (!SWIG_IsOK(res1)) {
30454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30455 }
30456 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30457 ecode2 = SWIG_AsVal_int(obj1, &val2);
30458 if (!SWIG_IsOK(ecode2)) {
30459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30460 }
30461 arg2 = static_cast< int >(val2);
30462 if (obj2) {
30463 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30464 if (!SWIG_IsOK(ecode3)) {
30465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30466 }
30467 arg3 = static_cast< bool >(val3);
30468 }
30469 {
30470 PyThreadState* __tstate = wxPyBeginAllowThreads();
30471 (arg1)->SetItemSpacing(arg2,arg3);
30472 wxPyEndAllowThreads(__tstate);
30473 if (PyErr_Occurred()) SWIG_fail;
30474 }
30475 resultobj = SWIG_Py_Void();
30476 return resultobj;
30477 fail:
30478 return NULL;
30479 }
30480
30481
30482 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30483 PyObject *resultobj = 0;
30484 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30485 int result;
30486 void *argp1 = 0 ;
30487 int res1 = 0 ;
30488 PyObject *swig_obj[1] ;
30489
30490 if (!args) SWIG_fail;
30491 swig_obj[0] = args;
30492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30493 if (!SWIG_IsOK(res1)) {
30494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30495 }
30496 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30497 {
30498 PyThreadState* __tstate = wxPyBeginAllowThreads();
30499 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30500 wxPyEndAllowThreads(__tstate);
30501 if (PyErr_Occurred()) SWIG_fail;
30502 }
30503 resultobj = SWIG_From_int(static_cast< int >(result));
30504 return resultobj;
30505 fail:
30506 return NULL;
30507 }
30508
30509
30510 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30511 PyObject *resultobj = 0;
30512 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30513 wxColour result;
30514 void *argp1 = 0 ;
30515 int res1 = 0 ;
30516 PyObject *swig_obj[1] ;
30517
30518 if (!args) SWIG_fail;
30519 swig_obj[0] = args;
30520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30521 if (!SWIG_IsOK(res1)) {
30522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30523 }
30524 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30525 {
30526 PyThreadState* __tstate = wxPyBeginAllowThreads();
30527 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30528 wxPyEndAllowThreads(__tstate);
30529 if (PyErr_Occurred()) SWIG_fail;
30530 }
30531 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30532 return resultobj;
30533 fail:
30534 return NULL;
30535 }
30536
30537
30538 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30539 PyObject *resultobj = 0;
30540 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30541 wxColour *arg2 = 0 ;
30542 void *argp1 = 0 ;
30543 int res1 = 0 ;
30544 wxColour temp2 ;
30545 PyObject * obj0 = 0 ;
30546 PyObject * obj1 = 0 ;
30547 char * kwnames[] = {
30548 (char *) "self",(char *) "col", NULL
30549 };
30550
30551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30553 if (!SWIG_IsOK(res1)) {
30554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30555 }
30556 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30557 {
30558 arg2 = &temp2;
30559 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30560 }
30561 {
30562 PyThreadState* __tstate = wxPyBeginAllowThreads();
30563 (arg1)->SetTextColour((wxColour const &)*arg2);
30564 wxPyEndAllowThreads(__tstate);
30565 if (PyErr_Occurred()) SWIG_fail;
30566 }
30567 resultobj = SWIG_Py_Void();
30568 return resultobj;
30569 fail:
30570 return NULL;
30571 }
30572
30573
30574 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30575 PyObject *resultobj = 0;
30576 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30577 long result;
30578 void *argp1 = 0 ;
30579 int res1 = 0 ;
30580 PyObject *swig_obj[1] ;
30581
30582 if (!args) SWIG_fail;
30583 swig_obj[0] = args;
30584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30585 if (!SWIG_IsOK(res1)) {
30586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30587 }
30588 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30589 {
30590 PyThreadState* __tstate = wxPyBeginAllowThreads();
30591 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30592 wxPyEndAllowThreads(__tstate);
30593 if (PyErr_Occurred()) SWIG_fail;
30594 }
30595 resultobj = SWIG_From_long(static_cast< long >(result));
30596 return resultobj;
30597 fail:
30598 return NULL;
30599 }
30600
30601
30602 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30603 PyObject *resultobj = 0;
30604 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30605 long arg2 ;
30606 bool arg3 = (bool) true ;
30607 void *argp1 = 0 ;
30608 int res1 = 0 ;
30609 long val2 ;
30610 int ecode2 = 0 ;
30611 bool val3 ;
30612 int ecode3 = 0 ;
30613 PyObject * obj0 = 0 ;
30614 PyObject * obj1 = 0 ;
30615 PyObject * obj2 = 0 ;
30616 char * kwnames[] = {
30617 (char *) "self",(char *) "style",(char *) "add", NULL
30618 };
30619
30620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30622 if (!SWIG_IsOK(res1)) {
30623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30624 }
30625 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30626 ecode2 = SWIG_AsVal_long(obj1, &val2);
30627 if (!SWIG_IsOK(ecode2)) {
30628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30629 }
30630 arg2 = static_cast< long >(val2);
30631 if (obj2) {
30632 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30633 if (!SWIG_IsOK(ecode3)) {
30634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30635 }
30636 arg3 = static_cast< bool >(val3);
30637 }
30638 {
30639 PyThreadState* __tstate = wxPyBeginAllowThreads();
30640 (arg1)->SetSingleStyle(arg2,arg3);
30641 wxPyEndAllowThreads(__tstate);
30642 if (PyErr_Occurred()) SWIG_fail;
30643 }
30644 resultobj = SWIG_Py_Void();
30645 return resultobj;
30646 fail:
30647 return NULL;
30648 }
30649
30650
30651 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30652 PyObject *resultobj = 0;
30653 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30654 long arg2 ;
30655 int arg3 = (int) wxLIST_NEXT_ALL ;
30656 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30657 long result;
30658 void *argp1 = 0 ;
30659 int res1 = 0 ;
30660 long val2 ;
30661 int ecode2 = 0 ;
30662 int val3 ;
30663 int ecode3 = 0 ;
30664 int val4 ;
30665 int ecode4 = 0 ;
30666 PyObject * obj0 = 0 ;
30667 PyObject * obj1 = 0 ;
30668 PyObject * obj2 = 0 ;
30669 PyObject * obj3 = 0 ;
30670 char * kwnames[] = {
30671 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30672 };
30673
30674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30676 if (!SWIG_IsOK(res1)) {
30677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30678 }
30679 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30680 ecode2 = SWIG_AsVal_long(obj1, &val2);
30681 if (!SWIG_IsOK(ecode2)) {
30682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30683 }
30684 arg2 = static_cast< long >(val2);
30685 if (obj2) {
30686 ecode3 = SWIG_AsVal_int(obj2, &val3);
30687 if (!SWIG_IsOK(ecode3)) {
30688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30689 }
30690 arg3 = static_cast< int >(val3);
30691 }
30692 if (obj3) {
30693 ecode4 = SWIG_AsVal_int(obj3, &val4);
30694 if (!SWIG_IsOK(ecode4)) {
30695 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30696 }
30697 arg4 = static_cast< int >(val4);
30698 }
30699 {
30700 PyThreadState* __tstate = wxPyBeginAllowThreads();
30701 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30702 wxPyEndAllowThreads(__tstate);
30703 if (PyErr_Occurred()) SWIG_fail;
30704 }
30705 resultobj = SWIG_From_long(static_cast< long >(result));
30706 return resultobj;
30707 fail:
30708 return NULL;
30709 }
30710
30711
30712 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30713 PyObject *resultobj = 0;
30714 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30715 int arg2 ;
30716 wxImageList *result = 0 ;
30717 void *argp1 = 0 ;
30718 int res1 = 0 ;
30719 int val2 ;
30720 int ecode2 = 0 ;
30721 PyObject * obj0 = 0 ;
30722 PyObject * obj1 = 0 ;
30723 char * kwnames[] = {
30724 (char *) "self",(char *) "which", NULL
30725 };
30726
30727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30729 if (!SWIG_IsOK(res1)) {
30730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30731 }
30732 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30733 ecode2 = SWIG_AsVal_int(obj1, &val2);
30734 if (!SWIG_IsOK(ecode2)) {
30735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30736 }
30737 arg2 = static_cast< int >(val2);
30738 {
30739 PyThreadState* __tstate = wxPyBeginAllowThreads();
30740 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30741 wxPyEndAllowThreads(__tstate);
30742 if (PyErr_Occurred()) SWIG_fail;
30743 }
30744 {
30745 resultobj = wxPyMake_wxObject(result, (bool)0);
30746 }
30747 return resultobj;
30748 fail:
30749 return NULL;
30750 }
30751
30752
30753 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30754 PyObject *resultobj = 0;
30755 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30756 wxImageList *arg2 = (wxImageList *) 0 ;
30757 int arg3 ;
30758 void *argp1 = 0 ;
30759 int res1 = 0 ;
30760 void *argp2 = 0 ;
30761 int res2 = 0 ;
30762 int val3 ;
30763 int ecode3 = 0 ;
30764 PyObject * obj0 = 0 ;
30765 PyObject * obj1 = 0 ;
30766 PyObject * obj2 = 0 ;
30767 char * kwnames[] = {
30768 (char *) "self",(char *) "imageList",(char *) "which", NULL
30769 };
30770
30771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30773 if (!SWIG_IsOK(res1)) {
30774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30775 }
30776 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30777 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30778 if (!SWIG_IsOK(res2)) {
30779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30780 }
30781 arg2 = reinterpret_cast< wxImageList * >(argp2);
30782 ecode3 = SWIG_AsVal_int(obj2, &val3);
30783 if (!SWIG_IsOK(ecode3)) {
30784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30785 }
30786 arg3 = static_cast< int >(val3);
30787 {
30788 PyThreadState* __tstate = wxPyBeginAllowThreads();
30789 (arg1)->SetImageList(arg2,arg3);
30790 wxPyEndAllowThreads(__tstate);
30791 if (PyErr_Occurred()) SWIG_fail;
30792 }
30793 resultobj = SWIG_Py_Void();
30794 return resultobj;
30795 fail:
30796 return NULL;
30797 }
30798
30799
30800 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30801 PyObject *resultobj = 0;
30802 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30803 wxImageList *arg2 = (wxImageList *) 0 ;
30804 int arg3 ;
30805 void *argp1 = 0 ;
30806 int res1 = 0 ;
30807 int res2 = 0 ;
30808 int val3 ;
30809 int ecode3 = 0 ;
30810 PyObject * obj0 = 0 ;
30811 PyObject * obj1 = 0 ;
30812 PyObject * obj2 = 0 ;
30813 char * kwnames[] = {
30814 (char *) "self",(char *) "imageList",(char *) "which", NULL
30815 };
30816
30817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30819 if (!SWIG_IsOK(res1)) {
30820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30821 }
30822 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30823 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30824 if (!SWIG_IsOK(res2)) {
30825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30826 }
30827 ecode3 = SWIG_AsVal_int(obj2, &val3);
30828 if (!SWIG_IsOK(ecode3)) {
30829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30830 }
30831 arg3 = static_cast< int >(val3);
30832 {
30833 PyThreadState* __tstate = wxPyBeginAllowThreads();
30834 (arg1)->AssignImageList(arg2,arg3);
30835 wxPyEndAllowThreads(__tstate);
30836 if (PyErr_Occurred()) SWIG_fail;
30837 }
30838 resultobj = SWIG_Py_Void();
30839 return resultobj;
30840 fail:
30841 return NULL;
30842 }
30843
30844
30845 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30846 PyObject *resultobj = 0;
30847 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30848 bool result;
30849 void *argp1 = 0 ;
30850 int res1 = 0 ;
30851 PyObject *swig_obj[1] ;
30852
30853 if (!args) SWIG_fail;
30854 swig_obj[0] = args;
30855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30856 if (!SWIG_IsOK(res1)) {
30857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30858 }
30859 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30860 {
30861 PyThreadState* __tstate = wxPyBeginAllowThreads();
30862 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30863 wxPyEndAllowThreads(__tstate);
30864 if (PyErr_Occurred()) SWIG_fail;
30865 }
30866 {
30867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30868 }
30869 return resultobj;
30870 fail:
30871 return NULL;
30872 }
30873
30874
30875 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30876 PyObject *resultobj = 0;
30877 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30878 bool result;
30879 void *argp1 = 0 ;
30880 int res1 = 0 ;
30881 PyObject *swig_obj[1] ;
30882
30883 if (!args) SWIG_fail;
30884 swig_obj[0] = args;
30885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30886 if (!SWIG_IsOK(res1)) {
30887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30888 }
30889 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30890 {
30891 PyThreadState* __tstate = wxPyBeginAllowThreads();
30892 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30893 wxPyEndAllowThreads(__tstate);
30894 if (PyErr_Occurred()) SWIG_fail;
30895 }
30896 {
30897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30898 }
30899 return resultobj;
30900 fail:
30901 return NULL;
30902 }
30903
30904
30905 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30906 PyObject *resultobj = 0;
30907 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30908 long arg2 ;
30909 void *argp1 = 0 ;
30910 int res1 = 0 ;
30911 long val2 ;
30912 int ecode2 = 0 ;
30913 PyObject * obj0 = 0 ;
30914 PyObject * obj1 = 0 ;
30915 char * kwnames[] = {
30916 (char *) "self",(char *) "item", NULL
30917 };
30918
30919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30921 if (!SWIG_IsOK(res1)) {
30922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30923 }
30924 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30925 ecode2 = SWIG_AsVal_long(obj1, &val2);
30926 if (!SWIG_IsOK(ecode2)) {
30927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30928 }
30929 arg2 = static_cast< long >(val2);
30930 {
30931 PyThreadState* __tstate = wxPyBeginAllowThreads();
30932 (arg1)->RefreshItem(arg2);
30933 wxPyEndAllowThreads(__tstate);
30934 if (PyErr_Occurred()) SWIG_fail;
30935 }
30936 resultobj = SWIG_Py_Void();
30937 return resultobj;
30938 fail:
30939 return NULL;
30940 }
30941
30942
30943 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30944 PyObject *resultobj = 0;
30945 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30946 long arg2 ;
30947 long arg3 ;
30948 void *argp1 = 0 ;
30949 int res1 = 0 ;
30950 long val2 ;
30951 int ecode2 = 0 ;
30952 long val3 ;
30953 int ecode3 = 0 ;
30954 PyObject * obj0 = 0 ;
30955 PyObject * obj1 = 0 ;
30956 PyObject * obj2 = 0 ;
30957 char * kwnames[] = {
30958 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30959 };
30960
30961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30963 if (!SWIG_IsOK(res1)) {
30964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30965 }
30966 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30967 ecode2 = SWIG_AsVal_long(obj1, &val2);
30968 if (!SWIG_IsOK(ecode2)) {
30969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30970 }
30971 arg2 = static_cast< long >(val2);
30972 ecode3 = SWIG_AsVal_long(obj2, &val3);
30973 if (!SWIG_IsOK(ecode3)) {
30974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30975 }
30976 arg3 = static_cast< long >(val3);
30977 {
30978 PyThreadState* __tstate = wxPyBeginAllowThreads();
30979 (arg1)->RefreshItems(arg2,arg3);
30980 wxPyEndAllowThreads(__tstate);
30981 if (PyErr_Occurred()) SWIG_fail;
30982 }
30983 resultobj = SWIG_Py_Void();
30984 return resultobj;
30985 fail:
30986 return NULL;
30987 }
30988
30989
30990 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30991 PyObject *resultobj = 0;
30992 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30993 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30994 bool result;
30995 void *argp1 = 0 ;
30996 int res1 = 0 ;
30997 int val2 ;
30998 int ecode2 = 0 ;
30999 PyObject * obj0 = 0 ;
31000 PyObject * obj1 = 0 ;
31001 char * kwnames[] = {
31002 (char *) "self",(char *) "flag", NULL
31003 };
31004
31005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
31006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31007 if (!SWIG_IsOK(res1)) {
31008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31009 }
31010 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31011 if (obj1) {
31012 ecode2 = SWIG_AsVal_int(obj1, &val2);
31013 if (!SWIG_IsOK(ecode2)) {
31014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
31015 }
31016 arg2 = static_cast< int >(val2);
31017 }
31018 {
31019 PyThreadState* __tstate = wxPyBeginAllowThreads();
31020 result = (bool)(arg1)->Arrange(arg2);
31021 wxPyEndAllowThreads(__tstate);
31022 if (PyErr_Occurred()) SWIG_fail;
31023 }
31024 {
31025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31026 }
31027 return resultobj;
31028 fail:
31029 return NULL;
31030 }
31031
31032
31033 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31034 PyObject *resultobj = 0;
31035 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31036 long arg2 ;
31037 bool result;
31038 void *argp1 = 0 ;
31039 int res1 = 0 ;
31040 long val2 ;
31041 int ecode2 = 0 ;
31042 PyObject * obj0 = 0 ;
31043 PyObject * obj1 = 0 ;
31044 char * kwnames[] = {
31045 (char *) "self",(char *) "item", NULL
31046 };
31047
31048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
31049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31050 if (!SWIG_IsOK(res1)) {
31051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31052 }
31053 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31054 ecode2 = SWIG_AsVal_long(obj1, &val2);
31055 if (!SWIG_IsOK(ecode2)) {
31056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
31057 }
31058 arg2 = static_cast< long >(val2);
31059 {
31060 PyThreadState* __tstate = wxPyBeginAllowThreads();
31061 result = (bool)(arg1)->DeleteItem(arg2);
31062 wxPyEndAllowThreads(__tstate);
31063 if (PyErr_Occurred()) SWIG_fail;
31064 }
31065 {
31066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31067 }
31068 return resultobj;
31069 fail:
31070 return NULL;
31071 }
31072
31073
31074 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31075 PyObject *resultobj = 0;
31076 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31077 bool result;
31078 void *argp1 = 0 ;
31079 int res1 = 0 ;
31080 PyObject *swig_obj[1] ;
31081
31082 if (!args) SWIG_fail;
31083 swig_obj[0] = args;
31084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31085 if (!SWIG_IsOK(res1)) {
31086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31087 }
31088 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31089 {
31090 PyThreadState* __tstate = wxPyBeginAllowThreads();
31091 result = (bool)(arg1)->DeleteAllItems();
31092 wxPyEndAllowThreads(__tstate);
31093 if (PyErr_Occurred()) SWIG_fail;
31094 }
31095 {
31096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31097 }
31098 return resultobj;
31099 fail:
31100 return NULL;
31101 }
31102
31103
31104 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31105 PyObject *resultobj = 0;
31106 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31107 int arg2 ;
31108 bool result;
31109 void *argp1 = 0 ;
31110 int res1 = 0 ;
31111 int val2 ;
31112 int ecode2 = 0 ;
31113 PyObject * obj0 = 0 ;
31114 PyObject * obj1 = 0 ;
31115 char * kwnames[] = {
31116 (char *) "self",(char *) "col", NULL
31117 };
31118
31119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
31120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31121 if (!SWIG_IsOK(res1)) {
31122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31123 }
31124 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31125 ecode2 = SWIG_AsVal_int(obj1, &val2);
31126 if (!SWIG_IsOK(ecode2)) {
31127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
31128 }
31129 arg2 = static_cast< int >(val2);
31130 {
31131 PyThreadState* __tstate = wxPyBeginAllowThreads();
31132 result = (bool)(arg1)->DeleteColumn(arg2);
31133 wxPyEndAllowThreads(__tstate);
31134 if (PyErr_Occurred()) SWIG_fail;
31135 }
31136 {
31137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31138 }
31139 return resultobj;
31140 fail:
31141 return NULL;
31142 }
31143
31144
31145 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31146 PyObject *resultobj = 0;
31147 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31148 bool result;
31149 void *argp1 = 0 ;
31150 int res1 = 0 ;
31151 PyObject *swig_obj[1] ;
31152
31153 if (!args) SWIG_fail;
31154 swig_obj[0] = args;
31155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31156 if (!SWIG_IsOK(res1)) {
31157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31158 }
31159 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31160 {
31161 PyThreadState* __tstate = wxPyBeginAllowThreads();
31162 result = (bool)(arg1)->DeleteAllColumns();
31163 wxPyEndAllowThreads(__tstate);
31164 if (PyErr_Occurred()) SWIG_fail;
31165 }
31166 {
31167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31168 }
31169 return resultobj;
31170 fail:
31171 return NULL;
31172 }
31173
31174
31175 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31176 PyObject *resultobj = 0;
31177 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31178 void *argp1 = 0 ;
31179 int res1 = 0 ;
31180 PyObject *swig_obj[1] ;
31181
31182 if (!args) SWIG_fail;
31183 swig_obj[0] = args;
31184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31185 if (!SWIG_IsOK(res1)) {
31186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31187 }
31188 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31189 {
31190 PyThreadState* __tstate = wxPyBeginAllowThreads();
31191 (arg1)->ClearAll();
31192 wxPyEndAllowThreads(__tstate);
31193 if (PyErr_Occurred()) SWIG_fail;
31194 }
31195 resultobj = SWIG_Py_Void();
31196 return resultobj;
31197 fail:
31198 return NULL;
31199 }
31200
31201
31202 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31203 PyObject *resultobj = 0;
31204 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31205 long arg2 ;
31206 void *argp1 = 0 ;
31207 int res1 = 0 ;
31208 long val2 ;
31209 int ecode2 = 0 ;
31210 PyObject * obj0 = 0 ;
31211 PyObject * obj1 = 0 ;
31212 char * kwnames[] = {
31213 (char *) "self",(char *) "item", NULL
31214 };
31215
31216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31218 if (!SWIG_IsOK(res1)) {
31219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31220 }
31221 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31222 ecode2 = SWIG_AsVal_long(obj1, &val2);
31223 if (!SWIG_IsOK(ecode2)) {
31224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31225 }
31226 arg2 = static_cast< long >(val2);
31227 {
31228 PyThreadState* __tstate = wxPyBeginAllowThreads();
31229 (arg1)->EditLabel(arg2);
31230 wxPyEndAllowThreads(__tstate);
31231 if (PyErr_Occurred()) SWIG_fail;
31232 }
31233 resultobj = SWIG_Py_Void();
31234 return resultobj;
31235 fail:
31236 return NULL;
31237 }
31238
31239
31240 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31241 PyObject *resultobj = 0;
31242 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31243 long arg2 ;
31244 bool result;
31245 void *argp1 = 0 ;
31246 int res1 = 0 ;
31247 long val2 ;
31248 int ecode2 = 0 ;
31249 PyObject * obj0 = 0 ;
31250 PyObject * obj1 = 0 ;
31251 char * kwnames[] = {
31252 (char *) "self",(char *) "item", NULL
31253 };
31254
31255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31257 if (!SWIG_IsOK(res1)) {
31258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31259 }
31260 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31261 ecode2 = SWIG_AsVal_long(obj1, &val2);
31262 if (!SWIG_IsOK(ecode2)) {
31263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31264 }
31265 arg2 = static_cast< long >(val2);
31266 {
31267 PyThreadState* __tstate = wxPyBeginAllowThreads();
31268 result = (bool)(arg1)->EnsureVisible(arg2);
31269 wxPyEndAllowThreads(__tstate);
31270 if (PyErr_Occurred()) SWIG_fail;
31271 }
31272 {
31273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31274 }
31275 return resultobj;
31276 fail:
31277 return NULL;
31278 }
31279
31280
31281 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31282 PyObject *resultobj = 0;
31283 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31284 long arg2 ;
31285 wxString *arg3 = 0 ;
31286 bool arg4 = (bool) false ;
31287 long result;
31288 void *argp1 = 0 ;
31289 int res1 = 0 ;
31290 long val2 ;
31291 int ecode2 = 0 ;
31292 bool temp3 = false ;
31293 bool val4 ;
31294 int ecode4 = 0 ;
31295 PyObject * obj0 = 0 ;
31296 PyObject * obj1 = 0 ;
31297 PyObject * obj2 = 0 ;
31298 PyObject * obj3 = 0 ;
31299 char * kwnames[] = {
31300 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31301 };
31302
31303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31307 }
31308 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31309 ecode2 = SWIG_AsVal_long(obj1, &val2);
31310 if (!SWIG_IsOK(ecode2)) {
31311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31312 }
31313 arg2 = static_cast< long >(val2);
31314 {
31315 arg3 = wxString_in_helper(obj2);
31316 if (arg3 == NULL) SWIG_fail;
31317 temp3 = true;
31318 }
31319 if (obj3) {
31320 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31321 if (!SWIG_IsOK(ecode4)) {
31322 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31323 }
31324 arg4 = static_cast< bool >(val4);
31325 }
31326 {
31327 PyThreadState* __tstate = wxPyBeginAllowThreads();
31328 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31329 wxPyEndAllowThreads(__tstate);
31330 if (PyErr_Occurred()) SWIG_fail;
31331 }
31332 resultobj = SWIG_From_long(static_cast< long >(result));
31333 {
31334 if (temp3)
31335 delete arg3;
31336 }
31337 return resultobj;
31338 fail:
31339 {
31340 if (temp3)
31341 delete arg3;
31342 }
31343 return NULL;
31344 }
31345
31346
31347 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31348 PyObject *resultobj = 0;
31349 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31350 long arg2 ;
31351 long arg3 ;
31352 long result;
31353 void *argp1 = 0 ;
31354 int res1 = 0 ;
31355 long val2 ;
31356 int ecode2 = 0 ;
31357 long val3 ;
31358 int ecode3 = 0 ;
31359 PyObject * obj0 = 0 ;
31360 PyObject * obj1 = 0 ;
31361 PyObject * obj2 = 0 ;
31362 char * kwnames[] = {
31363 (char *) "self",(char *) "start",(char *) "data", NULL
31364 };
31365
31366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31368 if (!SWIG_IsOK(res1)) {
31369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31370 }
31371 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31372 ecode2 = SWIG_AsVal_long(obj1, &val2);
31373 if (!SWIG_IsOK(ecode2)) {
31374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31375 }
31376 arg2 = static_cast< long >(val2);
31377 ecode3 = SWIG_AsVal_long(obj2, &val3);
31378 if (!SWIG_IsOK(ecode3)) {
31379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31380 }
31381 arg3 = static_cast< long >(val3);
31382 {
31383 PyThreadState* __tstate = wxPyBeginAllowThreads();
31384 result = (long)(arg1)->FindItem(arg2,arg3);
31385 wxPyEndAllowThreads(__tstate);
31386 if (PyErr_Occurred()) SWIG_fail;
31387 }
31388 resultobj = SWIG_From_long(static_cast< long >(result));
31389 return resultobj;
31390 fail:
31391 return NULL;
31392 }
31393
31394
31395 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31396 PyObject *resultobj = 0;
31397 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31398 long arg2 ;
31399 wxPoint *arg3 = 0 ;
31400 int arg4 ;
31401 long result;
31402 void *argp1 = 0 ;
31403 int res1 = 0 ;
31404 long val2 ;
31405 int ecode2 = 0 ;
31406 wxPoint temp3 ;
31407 int val4 ;
31408 int ecode4 = 0 ;
31409 PyObject * obj0 = 0 ;
31410 PyObject * obj1 = 0 ;
31411 PyObject * obj2 = 0 ;
31412 PyObject * obj3 = 0 ;
31413 char * kwnames[] = {
31414 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31415 };
31416
31417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31419 if (!SWIG_IsOK(res1)) {
31420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31421 }
31422 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31423 ecode2 = SWIG_AsVal_long(obj1, &val2);
31424 if (!SWIG_IsOK(ecode2)) {
31425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31426 }
31427 arg2 = static_cast< long >(val2);
31428 {
31429 arg3 = &temp3;
31430 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31431 }
31432 ecode4 = SWIG_AsVal_int(obj3, &val4);
31433 if (!SWIG_IsOK(ecode4)) {
31434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31435 }
31436 arg4 = static_cast< int >(val4);
31437 {
31438 PyThreadState* __tstate = wxPyBeginAllowThreads();
31439 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31440 wxPyEndAllowThreads(__tstate);
31441 if (PyErr_Occurred()) SWIG_fail;
31442 }
31443 resultobj = SWIG_From_long(static_cast< long >(result));
31444 return resultobj;
31445 fail:
31446 return NULL;
31447 }
31448
31449
31450 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31451 PyObject *resultobj = 0;
31452 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31453 wxPoint *arg2 = 0 ;
31454 int *arg3 = 0 ;
31455 long result;
31456 void *argp1 = 0 ;
31457 int res1 = 0 ;
31458 wxPoint temp2 ;
31459 int temp3 ;
31460 int res3 = SWIG_TMPOBJ ;
31461 PyObject * obj0 = 0 ;
31462 PyObject * obj1 = 0 ;
31463 char * kwnames[] = {
31464 (char *) "self",(char *) "point", NULL
31465 };
31466
31467 arg3 = &temp3;
31468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31470 if (!SWIG_IsOK(res1)) {
31471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31472 }
31473 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31474 {
31475 arg2 = &temp2;
31476 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31477 }
31478 {
31479 PyThreadState* __tstate = wxPyBeginAllowThreads();
31480 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31481 wxPyEndAllowThreads(__tstate);
31482 if (PyErr_Occurred()) SWIG_fail;
31483 }
31484 resultobj = SWIG_From_long(static_cast< long >(result));
31485 if (SWIG_IsTmpObj(res3)) {
31486 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31487 } else {
31488 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31489 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31490 }
31491 return resultobj;
31492 fail:
31493 return NULL;
31494 }
31495
31496
31497 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31498 PyObject *resultobj = 0;
31499 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31500 wxPoint *arg2 = 0 ;
31501 int *arg3 = 0 ;
31502 long *arg4 = (long *) 0 ;
31503 long result;
31504 void *argp1 = 0 ;
31505 int res1 = 0 ;
31506 wxPoint temp2 ;
31507 int temp3 ;
31508 int res3 = SWIG_TMPOBJ ;
31509 long temp4 ;
31510 int res4 = SWIG_TMPOBJ ;
31511 PyObject * obj0 = 0 ;
31512 PyObject * obj1 = 0 ;
31513 char * kwnames[] = {
31514 (char *) "self",(char *) "point", NULL
31515 };
31516
31517 arg3 = &temp3;
31518 arg4 = &temp4;
31519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31521 if (!SWIG_IsOK(res1)) {
31522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31523 }
31524 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31525 {
31526 arg2 = &temp2;
31527 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31528 }
31529 {
31530 PyThreadState* __tstate = wxPyBeginAllowThreads();
31531 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31532 wxPyEndAllowThreads(__tstate);
31533 if (PyErr_Occurred()) SWIG_fail;
31534 }
31535 resultobj = SWIG_From_long(static_cast< long >(result));
31536 if (SWIG_IsTmpObj(res3)) {
31537 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31538 } else {
31539 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31540 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31541 }
31542 if (SWIG_IsTmpObj(res4)) {
31543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31544 } else {
31545 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31547 }
31548 return resultobj;
31549 fail:
31550 return NULL;
31551 }
31552
31553
31554 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31555 PyObject *resultobj = 0;
31556 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31557 wxListItem *arg2 = 0 ;
31558 long result;
31559 void *argp1 = 0 ;
31560 int res1 = 0 ;
31561 void *argp2 = 0 ;
31562 int res2 = 0 ;
31563 PyObject * obj0 = 0 ;
31564 PyObject * obj1 = 0 ;
31565 char * kwnames[] = {
31566 (char *) "self",(char *) "info", NULL
31567 };
31568
31569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31571 if (!SWIG_IsOK(res1)) {
31572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31573 }
31574 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31576 if (!SWIG_IsOK(res2)) {
31577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31578 }
31579 if (!argp2) {
31580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31581 }
31582 arg2 = reinterpret_cast< wxListItem * >(argp2);
31583 {
31584 PyThreadState* __tstate = wxPyBeginAllowThreads();
31585 result = (long)(arg1)->InsertItem(*arg2);
31586 wxPyEndAllowThreads(__tstate);
31587 if (PyErr_Occurred()) SWIG_fail;
31588 }
31589 resultobj = SWIG_From_long(static_cast< long >(result));
31590 return resultobj;
31591 fail:
31592 return NULL;
31593 }
31594
31595
31596 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31597 PyObject *resultobj = 0;
31598 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31599 long arg2 ;
31600 wxString *arg3 = 0 ;
31601 int arg4 = (int) -1 ;
31602 long result;
31603 void *argp1 = 0 ;
31604 int res1 = 0 ;
31605 long val2 ;
31606 int ecode2 = 0 ;
31607 bool temp3 = false ;
31608 int val4 ;
31609 int ecode4 = 0 ;
31610 PyObject * obj0 = 0 ;
31611 PyObject * obj1 = 0 ;
31612 PyObject * obj2 = 0 ;
31613 PyObject * obj3 = 0 ;
31614 char * kwnames[] = {
31615 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31616 };
31617
31618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31620 if (!SWIG_IsOK(res1)) {
31621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31622 }
31623 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31624 ecode2 = SWIG_AsVal_long(obj1, &val2);
31625 if (!SWIG_IsOK(ecode2)) {
31626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31627 }
31628 arg2 = static_cast< long >(val2);
31629 {
31630 arg3 = wxString_in_helper(obj2);
31631 if (arg3 == NULL) SWIG_fail;
31632 temp3 = true;
31633 }
31634 if (obj3) {
31635 ecode4 = SWIG_AsVal_int(obj3, &val4);
31636 if (!SWIG_IsOK(ecode4)) {
31637 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31638 }
31639 arg4 = static_cast< int >(val4);
31640 }
31641 {
31642 PyThreadState* __tstate = wxPyBeginAllowThreads();
31643 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31644 wxPyEndAllowThreads(__tstate);
31645 if (PyErr_Occurred()) SWIG_fail;
31646 }
31647 resultobj = SWIG_From_long(static_cast< long >(result));
31648 {
31649 if (temp3)
31650 delete arg3;
31651 }
31652 return resultobj;
31653 fail:
31654 {
31655 if (temp3)
31656 delete arg3;
31657 }
31658 return NULL;
31659 }
31660
31661
31662 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31663 PyObject *resultobj = 0;
31664 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31665 long arg2 ;
31666 int arg3 ;
31667 long result;
31668 void *argp1 = 0 ;
31669 int res1 = 0 ;
31670 long val2 ;
31671 int ecode2 = 0 ;
31672 int val3 ;
31673 int ecode3 = 0 ;
31674 PyObject * obj0 = 0 ;
31675 PyObject * obj1 = 0 ;
31676 PyObject * obj2 = 0 ;
31677 char * kwnames[] = {
31678 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31679 };
31680
31681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31683 if (!SWIG_IsOK(res1)) {
31684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31685 }
31686 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31687 ecode2 = SWIG_AsVal_long(obj1, &val2);
31688 if (!SWIG_IsOK(ecode2)) {
31689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31690 }
31691 arg2 = static_cast< long >(val2);
31692 ecode3 = SWIG_AsVal_int(obj2, &val3);
31693 if (!SWIG_IsOK(ecode3)) {
31694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31695 }
31696 arg3 = static_cast< int >(val3);
31697 {
31698 PyThreadState* __tstate = wxPyBeginAllowThreads();
31699 result = (long)(arg1)->InsertItem(arg2,arg3);
31700 wxPyEndAllowThreads(__tstate);
31701 if (PyErr_Occurred()) SWIG_fail;
31702 }
31703 resultobj = SWIG_From_long(static_cast< long >(result));
31704 return resultobj;
31705 fail:
31706 return NULL;
31707 }
31708
31709
31710 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31711 PyObject *resultobj = 0;
31712 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31713 long arg2 ;
31714 wxString *arg3 = 0 ;
31715 int arg4 ;
31716 long result;
31717 void *argp1 = 0 ;
31718 int res1 = 0 ;
31719 long val2 ;
31720 int ecode2 = 0 ;
31721 bool temp3 = false ;
31722 int val4 ;
31723 int ecode4 = 0 ;
31724 PyObject * obj0 = 0 ;
31725 PyObject * obj1 = 0 ;
31726 PyObject * obj2 = 0 ;
31727 PyObject * obj3 = 0 ;
31728 char * kwnames[] = {
31729 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31730 };
31731
31732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31734 if (!SWIG_IsOK(res1)) {
31735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31736 }
31737 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31738 ecode2 = SWIG_AsVal_long(obj1, &val2);
31739 if (!SWIG_IsOK(ecode2)) {
31740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31741 }
31742 arg2 = static_cast< long >(val2);
31743 {
31744 arg3 = wxString_in_helper(obj2);
31745 if (arg3 == NULL) SWIG_fail;
31746 temp3 = true;
31747 }
31748 ecode4 = SWIG_AsVal_int(obj3, &val4);
31749 if (!SWIG_IsOK(ecode4)) {
31750 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31751 }
31752 arg4 = static_cast< int >(val4);
31753 {
31754 PyThreadState* __tstate = wxPyBeginAllowThreads();
31755 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31756 wxPyEndAllowThreads(__tstate);
31757 if (PyErr_Occurred()) SWIG_fail;
31758 }
31759 resultobj = SWIG_From_long(static_cast< long >(result));
31760 {
31761 if (temp3)
31762 delete arg3;
31763 }
31764 return resultobj;
31765 fail:
31766 {
31767 if (temp3)
31768 delete arg3;
31769 }
31770 return NULL;
31771 }
31772
31773
31774 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31775 PyObject *resultobj = 0;
31776 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31777 long arg2 ;
31778 wxListItem *arg3 = 0 ;
31779 long result;
31780 void *argp1 = 0 ;
31781 int res1 = 0 ;
31782 long val2 ;
31783 int ecode2 = 0 ;
31784 void *argp3 = 0 ;
31785 int res3 = 0 ;
31786 PyObject * obj0 = 0 ;
31787 PyObject * obj1 = 0 ;
31788 PyObject * obj2 = 0 ;
31789 char * kwnames[] = {
31790 (char *) "self",(char *) "col",(char *) "info", NULL
31791 };
31792
31793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31795 if (!SWIG_IsOK(res1)) {
31796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31797 }
31798 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31799 ecode2 = SWIG_AsVal_long(obj1, &val2);
31800 if (!SWIG_IsOK(ecode2)) {
31801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31802 }
31803 arg2 = static_cast< long >(val2);
31804 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31805 if (!SWIG_IsOK(res3)) {
31806 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31807 }
31808 if (!argp3) {
31809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31810 }
31811 arg3 = reinterpret_cast< wxListItem * >(argp3);
31812 {
31813 PyThreadState* __tstate = wxPyBeginAllowThreads();
31814 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31815 wxPyEndAllowThreads(__tstate);
31816 if (PyErr_Occurred()) SWIG_fail;
31817 }
31818 resultobj = SWIG_From_long(static_cast< long >(result));
31819 return resultobj;
31820 fail:
31821 return NULL;
31822 }
31823
31824
31825 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31826 PyObject *resultobj = 0;
31827 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31828 long arg2 ;
31829 wxString *arg3 = 0 ;
31830 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31831 int arg5 = (int) -1 ;
31832 long result;
31833 void *argp1 = 0 ;
31834 int res1 = 0 ;
31835 long val2 ;
31836 int ecode2 = 0 ;
31837 bool temp3 = false ;
31838 int val4 ;
31839 int ecode4 = 0 ;
31840 int val5 ;
31841 int ecode5 = 0 ;
31842 PyObject * obj0 = 0 ;
31843 PyObject * obj1 = 0 ;
31844 PyObject * obj2 = 0 ;
31845 PyObject * obj3 = 0 ;
31846 PyObject * obj4 = 0 ;
31847 char * kwnames[] = {
31848 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31849 };
31850
31851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31853 if (!SWIG_IsOK(res1)) {
31854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31855 }
31856 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31857 ecode2 = SWIG_AsVal_long(obj1, &val2);
31858 if (!SWIG_IsOK(ecode2)) {
31859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31860 }
31861 arg2 = static_cast< long >(val2);
31862 {
31863 arg3 = wxString_in_helper(obj2);
31864 if (arg3 == NULL) SWIG_fail;
31865 temp3 = true;
31866 }
31867 if (obj3) {
31868 ecode4 = SWIG_AsVal_int(obj3, &val4);
31869 if (!SWIG_IsOK(ecode4)) {
31870 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31871 }
31872 arg4 = static_cast< int >(val4);
31873 }
31874 if (obj4) {
31875 ecode5 = SWIG_AsVal_int(obj4, &val5);
31876 if (!SWIG_IsOK(ecode5)) {
31877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31878 }
31879 arg5 = static_cast< int >(val5);
31880 }
31881 {
31882 PyThreadState* __tstate = wxPyBeginAllowThreads();
31883 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31884 wxPyEndAllowThreads(__tstate);
31885 if (PyErr_Occurred()) SWIG_fail;
31886 }
31887 resultobj = SWIG_From_long(static_cast< long >(result));
31888 {
31889 if (temp3)
31890 delete arg3;
31891 }
31892 return resultobj;
31893 fail:
31894 {
31895 if (temp3)
31896 delete arg3;
31897 }
31898 return NULL;
31899 }
31900
31901
31902 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31903 PyObject *resultobj = 0;
31904 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31905 long arg2 ;
31906 void *argp1 = 0 ;
31907 int res1 = 0 ;
31908 long val2 ;
31909 int ecode2 = 0 ;
31910 PyObject * obj0 = 0 ;
31911 PyObject * obj1 = 0 ;
31912 char * kwnames[] = {
31913 (char *) "self",(char *) "count", NULL
31914 };
31915
31916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31918 if (!SWIG_IsOK(res1)) {
31919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31920 }
31921 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31922 ecode2 = SWIG_AsVal_long(obj1, &val2);
31923 if (!SWIG_IsOK(ecode2)) {
31924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31925 }
31926 arg2 = static_cast< long >(val2);
31927 {
31928 PyThreadState* __tstate = wxPyBeginAllowThreads();
31929 (arg1)->SetItemCount(arg2);
31930 wxPyEndAllowThreads(__tstate);
31931 if (PyErr_Occurred()) SWIG_fail;
31932 }
31933 resultobj = SWIG_Py_Void();
31934 return resultobj;
31935 fail:
31936 return NULL;
31937 }
31938
31939
31940 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31941 PyObject *resultobj = 0;
31942 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31943 int arg2 ;
31944 int arg3 ;
31945 bool result;
31946 void *argp1 = 0 ;
31947 int res1 = 0 ;
31948 int val2 ;
31949 int ecode2 = 0 ;
31950 int val3 ;
31951 int ecode3 = 0 ;
31952 PyObject * obj0 = 0 ;
31953 PyObject * obj1 = 0 ;
31954 PyObject * obj2 = 0 ;
31955 char * kwnames[] = {
31956 (char *) "self",(char *) "dx",(char *) "dy", NULL
31957 };
31958
31959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31961 if (!SWIG_IsOK(res1)) {
31962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31963 }
31964 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31965 ecode2 = SWIG_AsVal_int(obj1, &val2);
31966 if (!SWIG_IsOK(ecode2)) {
31967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31968 }
31969 arg2 = static_cast< int >(val2);
31970 ecode3 = SWIG_AsVal_int(obj2, &val3);
31971 if (!SWIG_IsOK(ecode3)) {
31972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31973 }
31974 arg3 = static_cast< int >(val3);
31975 {
31976 PyThreadState* __tstate = wxPyBeginAllowThreads();
31977 result = (bool)(arg1)->ScrollList(arg2,arg3);
31978 wxPyEndAllowThreads(__tstate);
31979 if (PyErr_Occurred()) SWIG_fail;
31980 }
31981 {
31982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31983 }
31984 return resultobj;
31985 fail:
31986 return NULL;
31987 }
31988
31989
31990 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31991 PyObject *resultobj = 0;
31992 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31993 long arg2 ;
31994 wxColour *arg3 = 0 ;
31995 void *argp1 = 0 ;
31996 int res1 = 0 ;
31997 long val2 ;
31998 int ecode2 = 0 ;
31999 wxColour temp3 ;
32000 PyObject * obj0 = 0 ;
32001 PyObject * obj1 = 0 ;
32002 PyObject * obj2 = 0 ;
32003 char * kwnames[] = {
32004 (char *) "self",(char *) "item",(char *) "col", NULL
32005 };
32006
32007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32009 if (!SWIG_IsOK(res1)) {
32010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32011 }
32012 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32013 ecode2 = SWIG_AsVal_long(obj1, &val2);
32014 if (!SWIG_IsOK(ecode2)) {
32015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
32016 }
32017 arg2 = static_cast< long >(val2);
32018 {
32019 arg3 = &temp3;
32020 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32021 }
32022 {
32023 PyThreadState* __tstate = wxPyBeginAllowThreads();
32024 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
32025 wxPyEndAllowThreads(__tstate);
32026 if (PyErr_Occurred()) SWIG_fail;
32027 }
32028 resultobj = SWIG_Py_Void();
32029 return resultobj;
32030 fail:
32031 return NULL;
32032 }
32033
32034
32035 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32036 PyObject *resultobj = 0;
32037 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32038 long arg2 ;
32039 wxColour result;
32040 void *argp1 = 0 ;
32041 int res1 = 0 ;
32042 long val2 ;
32043 int ecode2 = 0 ;
32044 PyObject * obj0 = 0 ;
32045 PyObject * obj1 = 0 ;
32046 char * kwnames[] = {
32047 (char *) "self",(char *) "item", NULL
32048 };
32049
32050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
32051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32052 if (!SWIG_IsOK(res1)) {
32053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32054 }
32055 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32056 ecode2 = SWIG_AsVal_long(obj1, &val2);
32057 if (!SWIG_IsOK(ecode2)) {
32058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
32059 }
32060 arg2 = static_cast< long >(val2);
32061 {
32062 PyThreadState* __tstate = wxPyBeginAllowThreads();
32063 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
32064 wxPyEndAllowThreads(__tstate);
32065 if (PyErr_Occurred()) SWIG_fail;
32066 }
32067 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32068 return resultobj;
32069 fail:
32070 return NULL;
32071 }
32072
32073
32074 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32075 PyObject *resultobj = 0;
32076 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32077 long arg2 ;
32078 wxColour *arg3 = 0 ;
32079 void *argp1 = 0 ;
32080 int res1 = 0 ;
32081 long val2 ;
32082 int ecode2 = 0 ;
32083 wxColour temp3 ;
32084 PyObject * obj0 = 0 ;
32085 PyObject * obj1 = 0 ;
32086 PyObject * obj2 = 0 ;
32087 char * kwnames[] = {
32088 (char *) "self",(char *) "item",(char *) "col", NULL
32089 };
32090
32091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32093 if (!SWIG_IsOK(res1)) {
32094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32095 }
32096 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32097 ecode2 = SWIG_AsVal_long(obj1, &val2);
32098 if (!SWIG_IsOK(ecode2)) {
32099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32100 }
32101 arg2 = static_cast< long >(val2);
32102 {
32103 arg3 = &temp3;
32104 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32105 }
32106 {
32107 PyThreadState* __tstate = wxPyBeginAllowThreads();
32108 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
32109 wxPyEndAllowThreads(__tstate);
32110 if (PyErr_Occurred()) SWIG_fail;
32111 }
32112 resultobj = SWIG_Py_Void();
32113 return resultobj;
32114 fail:
32115 return NULL;
32116 }
32117
32118
32119 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32120 PyObject *resultobj = 0;
32121 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32122 long arg2 ;
32123 wxColour result;
32124 void *argp1 = 0 ;
32125 int res1 = 0 ;
32126 long val2 ;
32127 int ecode2 = 0 ;
32128 PyObject * obj0 = 0 ;
32129 PyObject * obj1 = 0 ;
32130 char * kwnames[] = {
32131 (char *) "self",(char *) "item", NULL
32132 };
32133
32134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
32135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32136 if (!SWIG_IsOK(res1)) {
32137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32138 }
32139 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32140 ecode2 = SWIG_AsVal_long(obj1, &val2);
32141 if (!SWIG_IsOK(ecode2)) {
32142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32143 }
32144 arg2 = static_cast< long >(val2);
32145 {
32146 PyThreadState* __tstate = wxPyBeginAllowThreads();
32147 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
32148 wxPyEndAllowThreads(__tstate);
32149 if (PyErr_Occurred()) SWIG_fail;
32150 }
32151 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32152 return resultobj;
32153 fail:
32154 return NULL;
32155 }
32156
32157
32158 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32159 PyObject *resultobj = 0;
32160 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32161 long arg2 ;
32162 wxFont *arg3 = 0 ;
32163 void *argp1 = 0 ;
32164 int res1 = 0 ;
32165 long val2 ;
32166 int ecode2 = 0 ;
32167 void *argp3 = 0 ;
32168 int res3 = 0 ;
32169 PyObject * obj0 = 0 ;
32170 PyObject * obj1 = 0 ;
32171 PyObject * obj2 = 0 ;
32172 char * kwnames[] = {
32173 (char *) "self",(char *) "item",(char *) "f", NULL
32174 };
32175
32176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32178 if (!SWIG_IsOK(res1)) {
32179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32180 }
32181 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32182 ecode2 = SWIG_AsVal_long(obj1, &val2);
32183 if (!SWIG_IsOK(ecode2)) {
32184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
32185 }
32186 arg2 = static_cast< long >(val2);
32187 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
32188 if (!SWIG_IsOK(res3)) {
32189 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32190 }
32191 if (!argp3) {
32192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32193 }
32194 arg3 = reinterpret_cast< wxFont * >(argp3);
32195 {
32196 PyThreadState* __tstate = wxPyBeginAllowThreads();
32197 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
32198 wxPyEndAllowThreads(__tstate);
32199 if (PyErr_Occurred()) SWIG_fail;
32200 }
32201 resultobj = SWIG_Py_Void();
32202 return resultobj;
32203 fail:
32204 return NULL;
32205 }
32206
32207
32208 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32209 PyObject *resultobj = 0;
32210 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32211 long arg2 ;
32212 wxFont result;
32213 void *argp1 = 0 ;
32214 int res1 = 0 ;
32215 long val2 ;
32216 int ecode2 = 0 ;
32217 PyObject * obj0 = 0 ;
32218 PyObject * obj1 = 0 ;
32219 char * kwnames[] = {
32220 (char *) "self",(char *) "item", NULL
32221 };
32222
32223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
32224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32225 if (!SWIG_IsOK(res1)) {
32226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32227 }
32228 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32229 ecode2 = SWIG_AsVal_long(obj1, &val2);
32230 if (!SWIG_IsOK(ecode2)) {
32231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32232 }
32233 arg2 = static_cast< long >(val2);
32234 {
32235 PyThreadState* __tstate = wxPyBeginAllowThreads();
32236 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32237 wxPyEndAllowThreads(__tstate);
32238 if (PyErr_Occurred()) SWIG_fail;
32239 }
32240 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32241 return resultobj;
32242 fail:
32243 return NULL;
32244 }
32245
32246
32247 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32248 PyObject *resultobj = 0;
32249 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32250 PyObject *arg2 = (PyObject *) 0 ;
32251 bool result;
32252 void *argp1 = 0 ;
32253 int res1 = 0 ;
32254 PyObject * obj0 = 0 ;
32255 PyObject * obj1 = 0 ;
32256 char * kwnames[] = {
32257 (char *) "self",(char *) "func", NULL
32258 };
32259
32260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32262 if (!SWIG_IsOK(res1)) {
32263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32264 }
32265 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32266 arg2 = obj1;
32267 {
32268 PyThreadState* __tstate = wxPyBeginAllowThreads();
32269 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32270 wxPyEndAllowThreads(__tstate);
32271 if (PyErr_Occurred()) SWIG_fail;
32272 }
32273 {
32274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32275 }
32276 return resultobj;
32277 fail:
32278 return NULL;
32279 }
32280
32281
32282 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32283 PyObject *resultobj = 0;
32284 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32285 wxWindow *result = 0 ;
32286 void *argp1 = 0 ;
32287 int res1 = 0 ;
32288 PyObject *swig_obj[1] ;
32289
32290 if (!args) SWIG_fail;
32291 swig_obj[0] = args;
32292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32293 if (!SWIG_IsOK(res1)) {
32294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32295 }
32296 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32297 {
32298 PyThreadState* __tstate = wxPyBeginAllowThreads();
32299 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32300 wxPyEndAllowThreads(__tstate);
32301 if (PyErr_Occurred()) SWIG_fail;
32302 }
32303 {
32304 resultobj = wxPyMake_wxObject(result, 0);
32305 }
32306 return resultobj;
32307 fail:
32308 return NULL;
32309 }
32310
32311
32312 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32313 PyObject *resultobj = 0;
32314 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32315 SwigValueWrapper<wxVisualAttributes > result;
32316 int val1 ;
32317 int ecode1 = 0 ;
32318 PyObject * obj0 = 0 ;
32319 char * kwnames[] = {
32320 (char *) "variant", NULL
32321 };
32322
32323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32324 if (obj0) {
32325 ecode1 = SWIG_AsVal_int(obj0, &val1);
32326 if (!SWIG_IsOK(ecode1)) {
32327 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32328 }
32329 arg1 = static_cast< wxWindowVariant >(val1);
32330 }
32331 {
32332 if (!wxPyCheckForApp()) SWIG_fail;
32333 PyThreadState* __tstate = wxPyBeginAllowThreads();
32334 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32335 wxPyEndAllowThreads(__tstate);
32336 if (PyErr_Occurred()) SWIG_fail;
32337 }
32338 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32339 return resultobj;
32340 fail:
32341 return NULL;
32342 }
32343
32344
32345 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32346 PyObject *obj;
32347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32348 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32349 return SWIG_Py_Void();
32350 }
32351
32352 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32353 return SWIG_Python_InitShadowInstance(args);
32354 }
32355
32356 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32357 PyObject *resultobj = 0;
32358 wxWindow *arg1 = (wxWindow *) 0 ;
32359 int arg2 = (int) -1 ;
32360 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32361 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32362 wxSize const &arg4_defvalue = wxDefaultSize ;
32363 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32364 long arg5 = (long) wxLC_REPORT ;
32365 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32366 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32367 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32368 wxString *arg7 = (wxString *) &arg7_defvalue ;
32369 wxListView *result = 0 ;
32370 void *argp1 = 0 ;
32371 int res1 = 0 ;
32372 int val2 ;
32373 int ecode2 = 0 ;
32374 wxPoint temp3 ;
32375 wxSize temp4 ;
32376 long val5 ;
32377 int ecode5 = 0 ;
32378 void *argp6 = 0 ;
32379 int res6 = 0 ;
32380 bool temp7 = false ;
32381 PyObject * obj0 = 0 ;
32382 PyObject * obj1 = 0 ;
32383 PyObject * obj2 = 0 ;
32384 PyObject * obj3 = 0 ;
32385 PyObject * obj4 = 0 ;
32386 PyObject * obj5 = 0 ;
32387 PyObject * obj6 = 0 ;
32388 char * kwnames[] = {
32389 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32390 };
32391
32392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32394 if (!SWIG_IsOK(res1)) {
32395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32396 }
32397 arg1 = reinterpret_cast< wxWindow * >(argp1);
32398 if (obj1) {
32399 ecode2 = SWIG_AsVal_int(obj1, &val2);
32400 if (!SWIG_IsOK(ecode2)) {
32401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32402 }
32403 arg2 = static_cast< int >(val2);
32404 }
32405 if (obj2) {
32406 {
32407 arg3 = &temp3;
32408 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32409 }
32410 }
32411 if (obj3) {
32412 {
32413 arg4 = &temp4;
32414 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32415 }
32416 }
32417 if (obj4) {
32418 ecode5 = SWIG_AsVal_long(obj4, &val5);
32419 if (!SWIG_IsOK(ecode5)) {
32420 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32421 }
32422 arg5 = static_cast< long >(val5);
32423 }
32424 if (obj5) {
32425 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32426 if (!SWIG_IsOK(res6)) {
32427 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32428 }
32429 if (!argp6) {
32430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32431 }
32432 arg6 = reinterpret_cast< wxValidator * >(argp6);
32433 }
32434 if (obj6) {
32435 {
32436 arg7 = wxString_in_helper(obj6);
32437 if (arg7 == NULL) SWIG_fail;
32438 temp7 = true;
32439 }
32440 }
32441 {
32442 if (!wxPyCheckForApp()) SWIG_fail;
32443 PyThreadState* __tstate = wxPyBeginAllowThreads();
32444 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32445 wxPyEndAllowThreads(__tstate);
32446 if (PyErr_Occurred()) SWIG_fail;
32447 }
32448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32449 {
32450 if (temp7)
32451 delete arg7;
32452 }
32453 return resultobj;
32454 fail:
32455 {
32456 if (temp7)
32457 delete arg7;
32458 }
32459 return NULL;
32460 }
32461
32462
32463 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32464 PyObject *resultobj = 0;
32465 wxListView *result = 0 ;
32466
32467 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32468 {
32469 if (!wxPyCheckForApp()) SWIG_fail;
32470 PyThreadState* __tstate = wxPyBeginAllowThreads();
32471 result = (wxListView *)new wxListView();
32472 wxPyEndAllowThreads(__tstate);
32473 if (PyErr_Occurred()) SWIG_fail;
32474 }
32475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32476 return resultobj;
32477 fail:
32478 return NULL;
32479 }
32480
32481
32482 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32483 PyObject *resultobj = 0;
32484 wxListView *arg1 = (wxListView *) 0 ;
32485 wxWindow *arg2 = (wxWindow *) 0 ;
32486 int arg3 = (int) -1 ;
32487 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32488 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32489 wxSize const &arg5_defvalue = wxDefaultSize ;
32490 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32491 long arg6 = (long) wxLC_REPORT ;
32492 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32493 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32494 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32495 wxString *arg8 = (wxString *) &arg8_defvalue ;
32496 bool result;
32497 void *argp1 = 0 ;
32498 int res1 = 0 ;
32499 void *argp2 = 0 ;
32500 int res2 = 0 ;
32501 int val3 ;
32502 int ecode3 = 0 ;
32503 wxPoint temp4 ;
32504 wxSize temp5 ;
32505 long val6 ;
32506 int ecode6 = 0 ;
32507 void *argp7 = 0 ;
32508 int res7 = 0 ;
32509 bool temp8 = false ;
32510 PyObject * obj0 = 0 ;
32511 PyObject * obj1 = 0 ;
32512 PyObject * obj2 = 0 ;
32513 PyObject * obj3 = 0 ;
32514 PyObject * obj4 = 0 ;
32515 PyObject * obj5 = 0 ;
32516 PyObject * obj6 = 0 ;
32517 PyObject * obj7 = 0 ;
32518 char * kwnames[] = {
32519 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32520 };
32521
32522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32524 if (!SWIG_IsOK(res1)) {
32525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32526 }
32527 arg1 = reinterpret_cast< wxListView * >(argp1);
32528 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32529 if (!SWIG_IsOK(res2)) {
32530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32531 }
32532 arg2 = reinterpret_cast< wxWindow * >(argp2);
32533 if (obj2) {
32534 ecode3 = SWIG_AsVal_int(obj2, &val3);
32535 if (!SWIG_IsOK(ecode3)) {
32536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32537 }
32538 arg3 = static_cast< int >(val3);
32539 }
32540 if (obj3) {
32541 {
32542 arg4 = &temp4;
32543 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32544 }
32545 }
32546 if (obj4) {
32547 {
32548 arg5 = &temp5;
32549 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32550 }
32551 }
32552 if (obj5) {
32553 ecode6 = SWIG_AsVal_long(obj5, &val6);
32554 if (!SWIG_IsOK(ecode6)) {
32555 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32556 }
32557 arg6 = static_cast< long >(val6);
32558 }
32559 if (obj6) {
32560 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32561 if (!SWIG_IsOK(res7)) {
32562 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32563 }
32564 if (!argp7) {
32565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32566 }
32567 arg7 = reinterpret_cast< wxValidator * >(argp7);
32568 }
32569 if (obj7) {
32570 {
32571 arg8 = wxString_in_helper(obj7);
32572 if (arg8 == NULL) SWIG_fail;
32573 temp8 = true;
32574 }
32575 }
32576 {
32577 PyThreadState* __tstate = wxPyBeginAllowThreads();
32578 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32579 wxPyEndAllowThreads(__tstate);
32580 if (PyErr_Occurred()) SWIG_fail;
32581 }
32582 {
32583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32584 }
32585 {
32586 if (temp8)
32587 delete arg8;
32588 }
32589 return resultobj;
32590 fail:
32591 {
32592 if (temp8)
32593 delete arg8;
32594 }
32595 return NULL;
32596 }
32597
32598
32599 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32600 PyObject *resultobj = 0;
32601 wxListView *arg1 = (wxListView *) 0 ;
32602 long arg2 ;
32603 bool arg3 = (bool) true ;
32604 void *argp1 = 0 ;
32605 int res1 = 0 ;
32606 long val2 ;
32607 int ecode2 = 0 ;
32608 bool val3 ;
32609 int ecode3 = 0 ;
32610 PyObject * obj0 = 0 ;
32611 PyObject * obj1 = 0 ;
32612 PyObject * obj2 = 0 ;
32613 char * kwnames[] = {
32614 (char *) "self",(char *) "n",(char *) "on", NULL
32615 };
32616
32617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32619 if (!SWIG_IsOK(res1)) {
32620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32621 }
32622 arg1 = reinterpret_cast< wxListView * >(argp1);
32623 ecode2 = SWIG_AsVal_long(obj1, &val2);
32624 if (!SWIG_IsOK(ecode2)) {
32625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32626 }
32627 arg2 = static_cast< long >(val2);
32628 if (obj2) {
32629 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32630 if (!SWIG_IsOK(ecode3)) {
32631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32632 }
32633 arg3 = static_cast< bool >(val3);
32634 }
32635 {
32636 PyThreadState* __tstate = wxPyBeginAllowThreads();
32637 (arg1)->Select(arg2,arg3);
32638 wxPyEndAllowThreads(__tstate);
32639 if (PyErr_Occurred()) SWIG_fail;
32640 }
32641 resultobj = SWIG_Py_Void();
32642 return resultobj;
32643 fail:
32644 return NULL;
32645 }
32646
32647
32648 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32649 PyObject *resultobj = 0;
32650 wxListView *arg1 = (wxListView *) 0 ;
32651 long arg2 ;
32652 void *argp1 = 0 ;
32653 int res1 = 0 ;
32654 long val2 ;
32655 int ecode2 = 0 ;
32656 PyObject * obj0 = 0 ;
32657 PyObject * obj1 = 0 ;
32658 char * kwnames[] = {
32659 (char *) "self",(char *) "index", NULL
32660 };
32661
32662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32664 if (!SWIG_IsOK(res1)) {
32665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32666 }
32667 arg1 = reinterpret_cast< wxListView * >(argp1);
32668 ecode2 = SWIG_AsVal_long(obj1, &val2);
32669 if (!SWIG_IsOK(ecode2)) {
32670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32671 }
32672 arg2 = static_cast< long >(val2);
32673 {
32674 PyThreadState* __tstate = wxPyBeginAllowThreads();
32675 (arg1)->Focus(arg2);
32676 wxPyEndAllowThreads(__tstate);
32677 if (PyErr_Occurred()) SWIG_fail;
32678 }
32679 resultobj = SWIG_Py_Void();
32680 return resultobj;
32681 fail:
32682 return NULL;
32683 }
32684
32685
32686 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32687 PyObject *resultobj = 0;
32688 wxListView *arg1 = (wxListView *) 0 ;
32689 long result;
32690 void *argp1 = 0 ;
32691 int res1 = 0 ;
32692 PyObject *swig_obj[1] ;
32693
32694 if (!args) SWIG_fail;
32695 swig_obj[0] = args;
32696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32697 if (!SWIG_IsOK(res1)) {
32698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32699 }
32700 arg1 = reinterpret_cast< wxListView * >(argp1);
32701 {
32702 PyThreadState* __tstate = wxPyBeginAllowThreads();
32703 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32704 wxPyEndAllowThreads(__tstate);
32705 if (PyErr_Occurred()) SWIG_fail;
32706 }
32707 resultobj = SWIG_From_long(static_cast< long >(result));
32708 return resultobj;
32709 fail:
32710 return NULL;
32711 }
32712
32713
32714 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32715 PyObject *resultobj = 0;
32716 wxListView *arg1 = (wxListView *) 0 ;
32717 long arg2 ;
32718 long result;
32719 void *argp1 = 0 ;
32720 int res1 = 0 ;
32721 long val2 ;
32722 int ecode2 = 0 ;
32723 PyObject * obj0 = 0 ;
32724 PyObject * obj1 = 0 ;
32725 char * kwnames[] = {
32726 (char *) "self",(char *) "item", NULL
32727 };
32728
32729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32731 if (!SWIG_IsOK(res1)) {
32732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32733 }
32734 arg1 = reinterpret_cast< wxListView * >(argp1);
32735 ecode2 = SWIG_AsVal_long(obj1, &val2);
32736 if (!SWIG_IsOK(ecode2)) {
32737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32738 }
32739 arg2 = static_cast< long >(val2);
32740 {
32741 PyThreadState* __tstate = wxPyBeginAllowThreads();
32742 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32743 wxPyEndAllowThreads(__tstate);
32744 if (PyErr_Occurred()) SWIG_fail;
32745 }
32746 resultobj = SWIG_From_long(static_cast< long >(result));
32747 return resultobj;
32748 fail:
32749 return NULL;
32750 }
32751
32752
32753 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32754 PyObject *resultobj = 0;
32755 wxListView *arg1 = (wxListView *) 0 ;
32756 long result;
32757 void *argp1 = 0 ;
32758 int res1 = 0 ;
32759 PyObject *swig_obj[1] ;
32760
32761 if (!args) SWIG_fail;
32762 swig_obj[0] = args;
32763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32764 if (!SWIG_IsOK(res1)) {
32765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32766 }
32767 arg1 = reinterpret_cast< wxListView * >(argp1);
32768 {
32769 PyThreadState* __tstate = wxPyBeginAllowThreads();
32770 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32771 wxPyEndAllowThreads(__tstate);
32772 if (PyErr_Occurred()) SWIG_fail;
32773 }
32774 resultobj = SWIG_From_long(static_cast< long >(result));
32775 return resultobj;
32776 fail:
32777 return NULL;
32778 }
32779
32780
32781 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32782 PyObject *resultobj = 0;
32783 wxListView *arg1 = (wxListView *) 0 ;
32784 long arg2 ;
32785 bool result;
32786 void *argp1 = 0 ;
32787 int res1 = 0 ;
32788 long val2 ;
32789 int ecode2 = 0 ;
32790 PyObject * obj0 = 0 ;
32791 PyObject * obj1 = 0 ;
32792 char * kwnames[] = {
32793 (char *) "self",(char *) "index", NULL
32794 };
32795
32796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32798 if (!SWIG_IsOK(res1)) {
32799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32800 }
32801 arg1 = reinterpret_cast< wxListView * >(argp1);
32802 ecode2 = SWIG_AsVal_long(obj1, &val2);
32803 if (!SWIG_IsOK(ecode2)) {
32804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32805 }
32806 arg2 = static_cast< long >(val2);
32807 {
32808 PyThreadState* __tstate = wxPyBeginAllowThreads();
32809 result = (bool)(arg1)->IsSelected(arg2);
32810 wxPyEndAllowThreads(__tstate);
32811 if (PyErr_Occurred()) SWIG_fail;
32812 }
32813 {
32814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32815 }
32816 return resultobj;
32817 fail:
32818 return NULL;
32819 }
32820
32821
32822 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32823 PyObject *resultobj = 0;
32824 wxListView *arg1 = (wxListView *) 0 ;
32825 int arg2 ;
32826 int arg3 ;
32827 void *argp1 = 0 ;
32828 int res1 = 0 ;
32829 int val2 ;
32830 int ecode2 = 0 ;
32831 int val3 ;
32832 int ecode3 = 0 ;
32833 PyObject * obj0 = 0 ;
32834 PyObject * obj1 = 0 ;
32835 PyObject * obj2 = 0 ;
32836 char * kwnames[] = {
32837 (char *) "self",(char *) "col",(char *) "image", NULL
32838 };
32839
32840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32842 if (!SWIG_IsOK(res1)) {
32843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32844 }
32845 arg1 = reinterpret_cast< wxListView * >(argp1);
32846 ecode2 = SWIG_AsVal_int(obj1, &val2);
32847 if (!SWIG_IsOK(ecode2)) {
32848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32849 }
32850 arg2 = static_cast< int >(val2);
32851 ecode3 = SWIG_AsVal_int(obj2, &val3);
32852 if (!SWIG_IsOK(ecode3)) {
32853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32854 }
32855 arg3 = static_cast< int >(val3);
32856 {
32857 PyThreadState* __tstate = wxPyBeginAllowThreads();
32858 (arg1)->SetColumnImage(arg2,arg3);
32859 wxPyEndAllowThreads(__tstate);
32860 if (PyErr_Occurred()) SWIG_fail;
32861 }
32862 resultobj = SWIG_Py_Void();
32863 return resultobj;
32864 fail:
32865 return NULL;
32866 }
32867
32868
32869 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32870 PyObject *resultobj = 0;
32871 wxListView *arg1 = (wxListView *) 0 ;
32872 int arg2 ;
32873 void *argp1 = 0 ;
32874 int res1 = 0 ;
32875 int val2 ;
32876 int ecode2 = 0 ;
32877 PyObject * obj0 = 0 ;
32878 PyObject * obj1 = 0 ;
32879 char * kwnames[] = {
32880 (char *) "self",(char *) "col", NULL
32881 };
32882
32883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32885 if (!SWIG_IsOK(res1)) {
32886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32887 }
32888 arg1 = reinterpret_cast< wxListView * >(argp1);
32889 ecode2 = SWIG_AsVal_int(obj1, &val2);
32890 if (!SWIG_IsOK(ecode2)) {
32891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32892 }
32893 arg2 = static_cast< int >(val2);
32894 {
32895 PyThreadState* __tstate = wxPyBeginAllowThreads();
32896 (arg1)->ClearColumnImage(arg2);
32897 wxPyEndAllowThreads(__tstate);
32898 if (PyErr_Occurred()) SWIG_fail;
32899 }
32900 resultobj = SWIG_Py_Void();
32901 return resultobj;
32902 fail:
32903 return NULL;
32904 }
32905
32906
32907 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32908 PyObject *obj;
32909 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32910 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32911 return SWIG_Py_Void();
32912 }
32913
32914 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32915 return SWIG_Python_InitShadowInstance(args);
32916 }
32917
32918 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32919 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32920 return 1;
32921 }
32922
32923
32924 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32925 PyObject *pyobj = 0;
32926
32927 {
32928 #if wxUSE_UNICODE
32929 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32930 #else
32931 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32932 #endif
32933 }
32934 return pyobj;
32935 }
32936
32937
32938 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32939 PyObject *resultobj = 0;
32940 wxTreeItemId *result = 0 ;
32941
32942 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32943 {
32944 PyThreadState* __tstate = wxPyBeginAllowThreads();
32945 result = (wxTreeItemId *)new wxTreeItemId();
32946 wxPyEndAllowThreads(__tstate);
32947 if (PyErr_Occurred()) SWIG_fail;
32948 }
32949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32950 return resultobj;
32951 fail:
32952 return NULL;
32953 }
32954
32955
32956 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32957 PyObject *resultobj = 0;
32958 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32959 void *argp1 = 0 ;
32960 int res1 = 0 ;
32961 PyObject *swig_obj[1] ;
32962
32963 if (!args) SWIG_fail;
32964 swig_obj[0] = args;
32965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32966 if (!SWIG_IsOK(res1)) {
32967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32968 }
32969 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32970 {
32971 PyThreadState* __tstate = wxPyBeginAllowThreads();
32972 delete arg1;
32973
32974 wxPyEndAllowThreads(__tstate);
32975 if (PyErr_Occurred()) SWIG_fail;
32976 }
32977 resultobj = SWIG_Py_Void();
32978 return resultobj;
32979 fail:
32980 return NULL;
32981 }
32982
32983
32984 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32985 PyObject *resultobj = 0;
32986 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32987 bool result;
32988 void *argp1 = 0 ;
32989 int res1 = 0 ;
32990 PyObject *swig_obj[1] ;
32991
32992 if (!args) SWIG_fail;
32993 swig_obj[0] = args;
32994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32995 if (!SWIG_IsOK(res1)) {
32996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32997 }
32998 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32999 {
33000 PyThreadState* __tstate = wxPyBeginAllowThreads();
33001 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
33002 wxPyEndAllowThreads(__tstate);
33003 if (PyErr_Occurred()) SWIG_fail;
33004 }
33005 {
33006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33007 }
33008 return resultobj;
33009 fail:
33010 return NULL;
33011 }
33012
33013
33014 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33015 PyObject *resultobj = 0;
33016 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33017 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
33018 bool result;
33019 void *argp1 = 0 ;
33020 int res1 = 0 ;
33021 void *argp2 = 0 ;
33022 int res2 = 0 ;
33023 PyObject * obj0 = 0 ;
33024 PyObject * obj1 = 0 ;
33025 char * kwnames[] = {
33026 (char *) "self",(char *) "other", NULL
33027 };
33028
33029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
33030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33031 if (!SWIG_IsOK(res1)) {
33032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33033 }
33034 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33035 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33036 if (!SWIG_IsOK(res2)) {
33037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
33038 }
33039 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33040 {
33041 PyThreadState* __tstate = wxPyBeginAllowThreads();
33042 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
33043 wxPyEndAllowThreads(__tstate);
33044 if (PyErr_Occurred()) SWIG_fail;
33045 }
33046 {
33047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33048 }
33049 return resultobj;
33050 fail:
33051 return NULL;
33052 }
33053
33054
33055 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33056 PyObject *resultobj = 0;
33057 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33058 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
33059 bool result;
33060 void *argp1 = 0 ;
33061 int res1 = 0 ;
33062 void *argp2 = 0 ;
33063 int res2 = 0 ;
33064 PyObject * obj0 = 0 ;
33065 PyObject * obj1 = 0 ;
33066 char * kwnames[] = {
33067 (char *) "self",(char *) "other", NULL
33068 };
33069
33070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
33071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33072 if (!SWIG_IsOK(res1)) {
33073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33074 }
33075 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33076 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33077 if (!SWIG_IsOK(res2)) {
33078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
33079 }
33080 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33081 {
33082 PyThreadState* __tstate = wxPyBeginAllowThreads();
33083 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
33084 wxPyEndAllowThreads(__tstate);
33085 if (PyErr_Occurred()) SWIG_fail;
33086 }
33087 {
33088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33089 }
33090 return resultobj;
33091 fail:
33092 return NULL;
33093 }
33094
33095
33096 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33097 PyObject *resultobj = 0;
33098 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33099 void *arg2 = (void *) 0 ;
33100 void *argp1 = 0 ;
33101 int res1 = 0 ;
33102 int res2 ;
33103 PyObject *swig_obj[2] ;
33104
33105 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
33106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33107 if (!SWIG_IsOK(res1)) {
33108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33109 }
33110 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33111 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
33112 if (!SWIG_IsOK(res2)) {
33113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
33114 }
33115 if (arg1) (arg1)->m_pItem = arg2;
33116
33117 resultobj = SWIG_Py_Void();
33118 return resultobj;
33119 fail:
33120 return NULL;
33121 }
33122
33123
33124 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33125 PyObject *resultobj = 0;
33126 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33127 void *result = 0 ;
33128 void *argp1 = 0 ;
33129 int res1 = 0 ;
33130 PyObject *swig_obj[1] ;
33131
33132 if (!args) SWIG_fail;
33133 swig_obj[0] = args;
33134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33135 if (!SWIG_IsOK(res1)) {
33136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33137 }
33138 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33139 result = (void *) ((arg1)->m_pItem);
33140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
33141 return resultobj;
33142 fail:
33143 return NULL;
33144 }
33145
33146
33147 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33148 PyObject *obj;
33149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33150 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
33151 return SWIG_Py_Void();
33152 }
33153
33154 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33155 return SWIG_Python_InitShadowInstance(args);
33156 }
33157
33158 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33159 PyObject *resultobj = 0;
33160 PyObject *arg1 = (PyObject *) NULL ;
33161 wxPyTreeItemData *result = 0 ;
33162 PyObject * obj0 = 0 ;
33163 char * kwnames[] = {
33164 (char *) "obj", NULL
33165 };
33166
33167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
33168 if (obj0) {
33169 arg1 = obj0;
33170 }
33171 {
33172 PyThreadState* __tstate = wxPyBeginAllowThreads();
33173 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
33174 wxPyEndAllowThreads(__tstate);
33175 if (PyErr_Occurred()) SWIG_fail;
33176 }
33177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
33178 return resultobj;
33179 fail:
33180 return NULL;
33181 }
33182
33183
33184 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33185 PyObject *resultobj = 0;
33186 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33187 void *argp1 = 0 ;
33188 int res1 = 0 ;
33189 PyObject *swig_obj[1] ;
33190
33191 if (!args) SWIG_fail;
33192 swig_obj[0] = args;
33193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
33194 if (!SWIG_IsOK(res1)) {
33195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33196 }
33197 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33198 {
33199 PyThreadState* __tstate = wxPyBeginAllowThreads();
33200 delete arg1;
33201
33202 wxPyEndAllowThreads(__tstate);
33203 if (PyErr_Occurred()) SWIG_fail;
33204 }
33205 resultobj = SWIG_Py_Void();
33206 return resultobj;
33207 fail:
33208 return NULL;
33209 }
33210
33211
33212 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33213 PyObject *resultobj = 0;
33214 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33215 PyObject *result = 0 ;
33216 void *argp1 = 0 ;
33217 int res1 = 0 ;
33218 PyObject *swig_obj[1] ;
33219
33220 if (!args) SWIG_fail;
33221 swig_obj[0] = args;
33222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33223 if (!SWIG_IsOK(res1)) {
33224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33225 }
33226 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33227 {
33228 PyThreadState* __tstate = wxPyBeginAllowThreads();
33229 result = (PyObject *)(arg1)->GetData();
33230 wxPyEndAllowThreads(__tstate);
33231 if (PyErr_Occurred()) SWIG_fail;
33232 }
33233 resultobj = result;
33234 return resultobj;
33235 fail:
33236 return NULL;
33237 }
33238
33239
33240 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33241 PyObject *resultobj = 0;
33242 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33243 PyObject *arg2 = (PyObject *) 0 ;
33244 void *argp1 = 0 ;
33245 int res1 = 0 ;
33246 PyObject * obj0 = 0 ;
33247 PyObject * obj1 = 0 ;
33248 char * kwnames[] = {
33249 (char *) "self",(char *) "obj", NULL
33250 };
33251
33252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33254 if (!SWIG_IsOK(res1)) {
33255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33256 }
33257 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33258 arg2 = obj1;
33259 {
33260 PyThreadState* __tstate = wxPyBeginAllowThreads();
33261 (arg1)->SetData(arg2);
33262 wxPyEndAllowThreads(__tstate);
33263 if (PyErr_Occurred()) SWIG_fail;
33264 }
33265 resultobj = SWIG_Py_Void();
33266 return resultobj;
33267 fail:
33268 return NULL;
33269 }
33270
33271
33272 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33273 PyObject *resultobj = 0;
33274 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33275 wxTreeItemId *result = 0 ;
33276 void *argp1 = 0 ;
33277 int res1 = 0 ;
33278 PyObject *swig_obj[1] ;
33279
33280 if (!args) SWIG_fail;
33281 swig_obj[0] = args;
33282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33283 if (!SWIG_IsOK(res1)) {
33284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33285 }
33286 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33287 {
33288 PyThreadState* __tstate = wxPyBeginAllowThreads();
33289 {
33290 wxTreeItemId const &_result_ref = (arg1)->GetId();
33291 result = (wxTreeItemId *) &_result_ref;
33292 }
33293 wxPyEndAllowThreads(__tstate);
33294 if (PyErr_Occurred()) SWIG_fail;
33295 }
33296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33297 return resultobj;
33298 fail:
33299 return NULL;
33300 }
33301
33302
33303 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33304 PyObject *resultobj = 0;
33305 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33306 wxTreeItemId *arg2 = 0 ;
33307 void *argp1 = 0 ;
33308 int res1 = 0 ;
33309 void *argp2 = 0 ;
33310 int res2 = 0 ;
33311 PyObject * obj0 = 0 ;
33312 PyObject * obj1 = 0 ;
33313 char * kwnames[] = {
33314 (char *) "self",(char *) "id", NULL
33315 };
33316
33317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33319 if (!SWIG_IsOK(res1)) {
33320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33321 }
33322 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33323 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33324 if (!SWIG_IsOK(res2)) {
33325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33326 }
33327 if (!argp2) {
33328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33329 }
33330 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33331 {
33332 PyThreadState* __tstate = wxPyBeginAllowThreads();
33333 (arg1)->SetId((wxTreeItemId const &)*arg2);
33334 wxPyEndAllowThreads(__tstate);
33335 if (PyErr_Occurred()) SWIG_fail;
33336 }
33337 resultobj = SWIG_Py_Void();
33338 return resultobj;
33339 fail:
33340 return NULL;
33341 }
33342
33343
33344 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33345 PyObject *resultobj = 0;
33346 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33347 void *argp1 = 0 ;
33348 int res1 = 0 ;
33349 PyObject *swig_obj[1] ;
33350
33351 if (!args) SWIG_fail;
33352 swig_obj[0] = args;
33353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33354 if (!SWIG_IsOK(res1)) {
33355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33356 }
33357 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33358 {
33359 PyThreadState* __tstate = wxPyBeginAllowThreads();
33360 wxPyTreeItemData_Destroy(arg1);
33361 wxPyEndAllowThreads(__tstate);
33362 if (PyErr_Occurred()) SWIG_fail;
33363 }
33364 resultobj = SWIG_Py_Void();
33365 return resultobj;
33366 fail:
33367 return NULL;
33368 }
33369
33370
33371 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33372 PyObject *obj;
33373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33374 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33375 return SWIG_Py_Void();
33376 }
33377
33378 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33379 return SWIG_Python_InitShadowInstance(args);
33380 }
33381
33382 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33383 {
33384 void *argp = 0;
33385 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33386 if (!SWIG_IsOK(res)) {
33387 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33388 }
33389 if (!argp) {
33390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33391 } else {
33392 wxTreeItemId * temp;
33393 temp = reinterpret_cast< wxTreeItemId * >(argp);
33394 wxNullTreeItemId = *temp;
33395 if (SWIG_IsNewObj(res)) delete temp;
33396 }
33397 }
33398 return 0;
33399 fail:
33400 return 1;
33401 }
33402
33403
33404 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33405 PyObject *pyobj = 0;
33406
33407 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33408 return pyobj;
33409 }
33410
33411
33412 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33413 PyObject *resultobj = 0;
33414 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33415 int arg2 = (int) 0 ;
33416 wxTreeEvent *result = 0 ;
33417 int val1 ;
33418 int ecode1 = 0 ;
33419 int val2 ;
33420 int ecode2 = 0 ;
33421
33422 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33423 if (swig_obj[0]) {
33424 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33425 if (!SWIG_IsOK(ecode1)) {
33426 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33427 }
33428 arg1 = static_cast< wxEventType >(val1);
33429 }
33430 if (swig_obj[1]) {
33431 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33432 if (!SWIG_IsOK(ecode2)) {
33433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33434 }
33435 arg2 = static_cast< int >(val2);
33436 }
33437 {
33438 PyThreadState* __tstate = wxPyBeginAllowThreads();
33439 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33440 wxPyEndAllowThreads(__tstate);
33441 if (PyErr_Occurred()) SWIG_fail;
33442 }
33443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33444 return resultobj;
33445 fail:
33446 return NULL;
33447 }
33448
33449
33450 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33451 PyObject *resultobj = 0;
33452 wxEventType arg1 ;
33453 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33454 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33455 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33456 wxTreeEvent *result = 0 ;
33457 int val1 ;
33458 int ecode1 = 0 ;
33459 void *argp2 = 0 ;
33460 int res2 = 0 ;
33461 void *argp3 = 0 ;
33462 int res3 = 0 ;
33463
33464 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33465 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33466 if (!SWIG_IsOK(ecode1)) {
33467 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33468 }
33469 arg1 = static_cast< wxEventType >(val1);
33470 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33471 if (!SWIG_IsOK(res2)) {
33472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33473 }
33474 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33475 if (swig_obj[2]) {
33476 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33477 if (!SWIG_IsOK(res3)) {
33478 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33479 }
33480 if (!argp3) {
33481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33482 }
33483 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33484 }
33485 {
33486 PyThreadState* __tstate = wxPyBeginAllowThreads();
33487 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33488 wxPyEndAllowThreads(__tstate);
33489 if (PyErr_Occurred()) SWIG_fail;
33490 }
33491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33492 return resultobj;
33493 fail:
33494 return NULL;
33495 }
33496
33497
33498 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33499 int argc;
33500 PyObject *argv[4];
33501
33502 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33503 --argc;
33504 if ((argc >= 0) && (argc <= 2)) {
33505 int _v = 0;
33506 if (argc > 1) {
33507 {
33508 {
33509 int res = SWIG_AsVal_int(argv[1], NULL);
33510 _v = SWIG_CheckState(res);
33511 }
33512 }
33513 if (!_v) goto check_1;
33514 }
33515 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33516 }
33517 check_1:
33518
33519 if ((argc >= 2) && (argc <= 3)) {
33520 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33521 }
33522
33523 fail:
33524 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33525 return NULL;
33526 }
33527
33528
33529 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33530 PyObject *resultobj = 0;
33531 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33532 wxTreeItemId result;
33533 void *argp1 = 0 ;
33534 int res1 = 0 ;
33535 PyObject *swig_obj[1] ;
33536
33537 if (!args) SWIG_fail;
33538 swig_obj[0] = args;
33539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33540 if (!SWIG_IsOK(res1)) {
33541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33542 }
33543 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33544 {
33545 PyThreadState* __tstate = wxPyBeginAllowThreads();
33546 result = ((wxTreeEvent const *)arg1)->GetItem();
33547 wxPyEndAllowThreads(__tstate);
33548 if (PyErr_Occurred()) SWIG_fail;
33549 }
33550 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33551 return resultobj;
33552 fail:
33553 return NULL;
33554 }
33555
33556
33557 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33558 PyObject *resultobj = 0;
33559 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33560 wxTreeItemId *arg2 = 0 ;
33561 void *argp1 = 0 ;
33562 int res1 = 0 ;
33563 void *argp2 = 0 ;
33564 int res2 = 0 ;
33565 PyObject * obj0 = 0 ;
33566 PyObject * obj1 = 0 ;
33567 char * kwnames[] = {
33568 (char *) "self",(char *) "item", NULL
33569 };
33570
33571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33573 if (!SWIG_IsOK(res1)) {
33574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33575 }
33576 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33578 if (!SWIG_IsOK(res2)) {
33579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33580 }
33581 if (!argp2) {
33582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33583 }
33584 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33585 {
33586 PyThreadState* __tstate = wxPyBeginAllowThreads();
33587 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33588 wxPyEndAllowThreads(__tstate);
33589 if (PyErr_Occurred()) SWIG_fail;
33590 }
33591 resultobj = SWIG_Py_Void();
33592 return resultobj;
33593 fail:
33594 return NULL;
33595 }
33596
33597
33598 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33599 PyObject *resultobj = 0;
33600 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33601 wxTreeItemId result;
33602 void *argp1 = 0 ;
33603 int res1 = 0 ;
33604 PyObject *swig_obj[1] ;
33605
33606 if (!args) SWIG_fail;
33607 swig_obj[0] = args;
33608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33609 if (!SWIG_IsOK(res1)) {
33610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33611 }
33612 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33613 {
33614 PyThreadState* __tstate = wxPyBeginAllowThreads();
33615 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33616 wxPyEndAllowThreads(__tstate);
33617 if (PyErr_Occurred()) SWIG_fail;
33618 }
33619 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33620 return resultobj;
33621 fail:
33622 return NULL;
33623 }
33624
33625
33626 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33627 PyObject *resultobj = 0;
33628 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33629 wxTreeItemId *arg2 = 0 ;
33630 void *argp1 = 0 ;
33631 int res1 = 0 ;
33632 void *argp2 = 0 ;
33633 int res2 = 0 ;
33634 PyObject * obj0 = 0 ;
33635 PyObject * obj1 = 0 ;
33636 char * kwnames[] = {
33637 (char *) "self",(char *) "item", NULL
33638 };
33639
33640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33642 if (!SWIG_IsOK(res1)) {
33643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33644 }
33645 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33646 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33647 if (!SWIG_IsOK(res2)) {
33648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33649 }
33650 if (!argp2) {
33651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33652 }
33653 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33654 {
33655 PyThreadState* __tstate = wxPyBeginAllowThreads();
33656 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33657 wxPyEndAllowThreads(__tstate);
33658 if (PyErr_Occurred()) SWIG_fail;
33659 }
33660 resultobj = SWIG_Py_Void();
33661 return resultobj;
33662 fail:
33663 return NULL;
33664 }
33665
33666
33667 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33668 PyObject *resultobj = 0;
33669 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33670 wxPoint result;
33671 void *argp1 = 0 ;
33672 int res1 = 0 ;
33673 PyObject *swig_obj[1] ;
33674
33675 if (!args) SWIG_fail;
33676 swig_obj[0] = args;
33677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33678 if (!SWIG_IsOK(res1)) {
33679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33680 }
33681 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33682 {
33683 PyThreadState* __tstate = wxPyBeginAllowThreads();
33684 result = ((wxTreeEvent const *)arg1)->GetPoint();
33685 wxPyEndAllowThreads(__tstate);
33686 if (PyErr_Occurred()) SWIG_fail;
33687 }
33688 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33689 return resultobj;
33690 fail:
33691 return NULL;
33692 }
33693
33694
33695 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33696 PyObject *resultobj = 0;
33697 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33698 wxPoint *arg2 = 0 ;
33699 void *argp1 = 0 ;
33700 int res1 = 0 ;
33701 wxPoint temp2 ;
33702 PyObject * obj0 = 0 ;
33703 PyObject * obj1 = 0 ;
33704 char * kwnames[] = {
33705 (char *) "self",(char *) "pt", NULL
33706 };
33707
33708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33710 if (!SWIG_IsOK(res1)) {
33711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33712 }
33713 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33714 {
33715 arg2 = &temp2;
33716 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33717 }
33718 {
33719 PyThreadState* __tstate = wxPyBeginAllowThreads();
33720 (arg1)->SetPoint((wxPoint const &)*arg2);
33721 wxPyEndAllowThreads(__tstate);
33722 if (PyErr_Occurred()) SWIG_fail;
33723 }
33724 resultobj = SWIG_Py_Void();
33725 return resultobj;
33726 fail:
33727 return NULL;
33728 }
33729
33730
33731 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33732 PyObject *resultobj = 0;
33733 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33734 wxKeyEvent *result = 0 ;
33735 void *argp1 = 0 ;
33736 int res1 = 0 ;
33737 PyObject *swig_obj[1] ;
33738
33739 if (!args) SWIG_fail;
33740 swig_obj[0] = args;
33741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33742 if (!SWIG_IsOK(res1)) {
33743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33744 }
33745 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33746 {
33747 PyThreadState* __tstate = wxPyBeginAllowThreads();
33748 {
33749 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33750 result = (wxKeyEvent *) &_result_ref;
33751 }
33752 wxPyEndAllowThreads(__tstate);
33753 if (PyErr_Occurred()) SWIG_fail;
33754 }
33755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33756 return resultobj;
33757 fail:
33758 return NULL;
33759 }
33760
33761
33762 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33763 PyObject *resultobj = 0;
33764 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33765 int result;
33766 void *argp1 = 0 ;
33767 int res1 = 0 ;
33768 PyObject *swig_obj[1] ;
33769
33770 if (!args) SWIG_fail;
33771 swig_obj[0] = args;
33772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33773 if (!SWIG_IsOK(res1)) {
33774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33775 }
33776 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33777 {
33778 PyThreadState* __tstate = wxPyBeginAllowThreads();
33779 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33780 wxPyEndAllowThreads(__tstate);
33781 if (PyErr_Occurred()) SWIG_fail;
33782 }
33783 resultobj = SWIG_From_int(static_cast< int >(result));
33784 return resultobj;
33785 fail:
33786 return NULL;
33787 }
33788
33789
33790 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33791 PyObject *resultobj = 0;
33792 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33793 wxKeyEvent *arg2 = 0 ;
33794 void *argp1 = 0 ;
33795 int res1 = 0 ;
33796 void *argp2 = 0 ;
33797 int res2 = 0 ;
33798 PyObject * obj0 = 0 ;
33799 PyObject * obj1 = 0 ;
33800 char * kwnames[] = {
33801 (char *) "self",(char *) "evt", NULL
33802 };
33803
33804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33806 if (!SWIG_IsOK(res1)) {
33807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33808 }
33809 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33811 if (!SWIG_IsOK(res2)) {
33812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33813 }
33814 if (!argp2) {
33815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33816 }
33817 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33818 {
33819 PyThreadState* __tstate = wxPyBeginAllowThreads();
33820 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33821 wxPyEndAllowThreads(__tstate);
33822 if (PyErr_Occurred()) SWIG_fail;
33823 }
33824 resultobj = SWIG_Py_Void();
33825 return resultobj;
33826 fail:
33827 return NULL;
33828 }
33829
33830
33831 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33832 PyObject *resultobj = 0;
33833 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33834 wxString *result = 0 ;
33835 void *argp1 = 0 ;
33836 int res1 = 0 ;
33837 PyObject *swig_obj[1] ;
33838
33839 if (!args) SWIG_fail;
33840 swig_obj[0] = args;
33841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33842 if (!SWIG_IsOK(res1)) {
33843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33844 }
33845 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33846 {
33847 PyThreadState* __tstate = wxPyBeginAllowThreads();
33848 {
33849 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33850 result = (wxString *) &_result_ref;
33851 }
33852 wxPyEndAllowThreads(__tstate);
33853 if (PyErr_Occurred()) SWIG_fail;
33854 }
33855 {
33856 #if wxUSE_UNICODE
33857 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33858 #else
33859 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33860 #endif
33861 }
33862 return resultobj;
33863 fail:
33864 return NULL;
33865 }
33866
33867
33868 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33869 PyObject *resultobj = 0;
33870 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33871 wxString *arg2 = 0 ;
33872 void *argp1 = 0 ;
33873 int res1 = 0 ;
33874 bool temp2 = false ;
33875 PyObject * obj0 = 0 ;
33876 PyObject * obj1 = 0 ;
33877 char * kwnames[] = {
33878 (char *) "self",(char *) "label", NULL
33879 };
33880
33881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33883 if (!SWIG_IsOK(res1)) {
33884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33885 }
33886 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33887 {
33888 arg2 = wxString_in_helper(obj1);
33889 if (arg2 == NULL) SWIG_fail;
33890 temp2 = true;
33891 }
33892 {
33893 PyThreadState* __tstate = wxPyBeginAllowThreads();
33894 (arg1)->SetLabel((wxString const &)*arg2);
33895 wxPyEndAllowThreads(__tstate);
33896 if (PyErr_Occurred()) SWIG_fail;
33897 }
33898 resultobj = SWIG_Py_Void();
33899 {
33900 if (temp2)
33901 delete arg2;
33902 }
33903 return resultobj;
33904 fail:
33905 {
33906 if (temp2)
33907 delete arg2;
33908 }
33909 return NULL;
33910 }
33911
33912
33913 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33914 PyObject *resultobj = 0;
33915 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33916 bool result;
33917 void *argp1 = 0 ;
33918 int res1 = 0 ;
33919 PyObject *swig_obj[1] ;
33920
33921 if (!args) SWIG_fail;
33922 swig_obj[0] = args;
33923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33924 if (!SWIG_IsOK(res1)) {
33925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33926 }
33927 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33928 {
33929 PyThreadState* __tstate = wxPyBeginAllowThreads();
33930 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33931 wxPyEndAllowThreads(__tstate);
33932 if (PyErr_Occurred()) SWIG_fail;
33933 }
33934 {
33935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33936 }
33937 return resultobj;
33938 fail:
33939 return NULL;
33940 }
33941
33942
33943 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33944 PyObject *resultobj = 0;
33945 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33946 bool arg2 ;
33947 void *argp1 = 0 ;
33948 int res1 = 0 ;
33949 bool val2 ;
33950 int ecode2 = 0 ;
33951 PyObject * obj0 = 0 ;
33952 PyObject * obj1 = 0 ;
33953 char * kwnames[] = {
33954 (char *) "self",(char *) "editCancelled", NULL
33955 };
33956
33957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33959 if (!SWIG_IsOK(res1)) {
33960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33961 }
33962 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33963 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33964 if (!SWIG_IsOK(ecode2)) {
33965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33966 }
33967 arg2 = static_cast< bool >(val2);
33968 {
33969 PyThreadState* __tstate = wxPyBeginAllowThreads();
33970 (arg1)->SetEditCanceled(arg2);
33971 wxPyEndAllowThreads(__tstate);
33972 if (PyErr_Occurred()) SWIG_fail;
33973 }
33974 resultobj = SWIG_Py_Void();
33975 return resultobj;
33976 fail:
33977 return NULL;
33978 }
33979
33980
33981 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33982 PyObject *resultobj = 0;
33983 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33984 wxString *arg2 = 0 ;
33985 void *argp1 = 0 ;
33986 int res1 = 0 ;
33987 bool temp2 = false ;
33988 PyObject * obj0 = 0 ;
33989 PyObject * obj1 = 0 ;
33990 char * kwnames[] = {
33991 (char *) "self",(char *) "toolTip", NULL
33992 };
33993
33994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33996 if (!SWIG_IsOK(res1)) {
33997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33998 }
33999 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34000 {
34001 arg2 = wxString_in_helper(obj1);
34002 if (arg2 == NULL) SWIG_fail;
34003 temp2 = true;
34004 }
34005 {
34006 PyThreadState* __tstate = wxPyBeginAllowThreads();
34007 (arg1)->SetToolTip((wxString const &)*arg2);
34008 wxPyEndAllowThreads(__tstate);
34009 if (PyErr_Occurred()) SWIG_fail;
34010 }
34011 resultobj = SWIG_Py_Void();
34012 {
34013 if (temp2)
34014 delete arg2;
34015 }
34016 return resultobj;
34017 fail:
34018 {
34019 if (temp2)
34020 delete arg2;
34021 }
34022 return NULL;
34023 }
34024
34025
34026 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34027 PyObject *resultobj = 0;
34028 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34029 wxString result;
34030 void *argp1 = 0 ;
34031 int res1 = 0 ;
34032 PyObject *swig_obj[1] ;
34033
34034 if (!args) SWIG_fail;
34035 swig_obj[0] = args;
34036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34037 if (!SWIG_IsOK(res1)) {
34038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34039 }
34040 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34041 {
34042 PyThreadState* __tstate = wxPyBeginAllowThreads();
34043 result = (arg1)->GetToolTip();
34044 wxPyEndAllowThreads(__tstate);
34045 if (PyErr_Occurred()) SWIG_fail;
34046 }
34047 {
34048 #if wxUSE_UNICODE
34049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34050 #else
34051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34052 #endif
34053 }
34054 return resultobj;
34055 fail:
34056 return NULL;
34057 }
34058
34059
34060 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34061 PyObject *obj;
34062 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34063 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
34064 return SWIG_Py_Void();
34065 }
34066
34067 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34068 return SWIG_Python_InitShadowInstance(args);
34069 }
34070
34071 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34072 PyObject *resultobj = 0;
34073 wxWindow *arg1 = (wxWindow *) 0 ;
34074 int arg2 = (int) -1 ;
34075 wxPoint const &arg3_defvalue = wxDefaultPosition ;
34076 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
34077 wxSize const &arg4_defvalue = wxDefaultSize ;
34078 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
34079 long arg5 = (long) wxTR_DEFAULT_STYLE ;
34080 wxValidator const &arg6_defvalue = wxDefaultValidator ;
34081 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
34082 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
34083 wxString *arg7 = (wxString *) &arg7_defvalue ;
34084 wxPyTreeCtrl *result = 0 ;
34085 void *argp1 = 0 ;
34086 int res1 = 0 ;
34087 int val2 ;
34088 int ecode2 = 0 ;
34089 wxPoint temp3 ;
34090 wxSize temp4 ;
34091 long val5 ;
34092 int ecode5 = 0 ;
34093 void *argp6 = 0 ;
34094 int res6 = 0 ;
34095 bool temp7 = false ;
34096 PyObject * obj0 = 0 ;
34097 PyObject * obj1 = 0 ;
34098 PyObject * obj2 = 0 ;
34099 PyObject * obj3 = 0 ;
34100 PyObject * obj4 = 0 ;
34101 PyObject * obj5 = 0 ;
34102 PyObject * obj6 = 0 ;
34103 char * kwnames[] = {
34104 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34105 };
34106
34107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34109 if (!SWIG_IsOK(res1)) {
34110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
34111 }
34112 arg1 = reinterpret_cast< wxWindow * >(argp1);
34113 if (obj1) {
34114 ecode2 = SWIG_AsVal_int(obj1, &val2);
34115 if (!SWIG_IsOK(ecode2)) {
34116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
34117 }
34118 arg2 = static_cast< int >(val2);
34119 }
34120 if (obj2) {
34121 {
34122 arg3 = &temp3;
34123 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34124 }
34125 }
34126 if (obj3) {
34127 {
34128 arg4 = &temp4;
34129 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34130 }
34131 }
34132 if (obj4) {
34133 ecode5 = SWIG_AsVal_long(obj4, &val5);
34134 if (!SWIG_IsOK(ecode5)) {
34135 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
34136 }
34137 arg5 = static_cast< long >(val5);
34138 }
34139 if (obj5) {
34140 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
34141 if (!SWIG_IsOK(res6)) {
34142 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34143 }
34144 if (!argp6) {
34145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34146 }
34147 arg6 = reinterpret_cast< wxValidator * >(argp6);
34148 }
34149 if (obj6) {
34150 {
34151 arg7 = wxString_in_helper(obj6);
34152 if (arg7 == NULL) SWIG_fail;
34153 temp7 = true;
34154 }
34155 }
34156 {
34157 if (!wxPyCheckForApp()) SWIG_fail;
34158 PyThreadState* __tstate = wxPyBeginAllowThreads();
34159 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
34160 wxPyEndAllowThreads(__tstate);
34161 if (PyErr_Occurred()) SWIG_fail;
34162 }
34163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
34164 {
34165 if (temp7)
34166 delete arg7;
34167 }
34168 return resultobj;
34169 fail:
34170 {
34171 if (temp7)
34172 delete arg7;
34173 }
34174 return NULL;
34175 }
34176
34177
34178 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34179 PyObject *resultobj = 0;
34180 wxPyTreeCtrl *result = 0 ;
34181
34182 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
34183 {
34184 if (!wxPyCheckForApp()) SWIG_fail;
34185 PyThreadState* __tstate = wxPyBeginAllowThreads();
34186 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
34187 wxPyEndAllowThreads(__tstate);
34188 if (PyErr_Occurred()) SWIG_fail;
34189 }
34190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
34191 return resultobj;
34192 fail:
34193 return NULL;
34194 }
34195
34196
34197 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34198 PyObject *resultobj = 0;
34199 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34200 wxWindow *arg2 = (wxWindow *) 0 ;
34201 int arg3 = (int) -1 ;
34202 wxPoint const &arg4_defvalue = wxDefaultPosition ;
34203 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
34204 wxSize const &arg5_defvalue = wxDefaultSize ;
34205 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
34206 long arg6 = (long) wxTR_DEFAULT_STYLE ;
34207 wxValidator const &arg7_defvalue = wxDefaultValidator ;
34208 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
34209 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
34210 wxString *arg8 = (wxString *) &arg8_defvalue ;
34211 bool result;
34212 void *argp1 = 0 ;
34213 int res1 = 0 ;
34214 void *argp2 = 0 ;
34215 int res2 = 0 ;
34216 int val3 ;
34217 int ecode3 = 0 ;
34218 wxPoint temp4 ;
34219 wxSize temp5 ;
34220 long val6 ;
34221 int ecode6 = 0 ;
34222 void *argp7 = 0 ;
34223 int res7 = 0 ;
34224 bool temp8 = false ;
34225 PyObject * obj0 = 0 ;
34226 PyObject * obj1 = 0 ;
34227 PyObject * obj2 = 0 ;
34228 PyObject * obj3 = 0 ;
34229 PyObject * obj4 = 0 ;
34230 PyObject * obj5 = 0 ;
34231 PyObject * obj6 = 0 ;
34232 PyObject * obj7 = 0 ;
34233 char * kwnames[] = {
34234 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34235 };
34236
34237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34239 if (!SWIG_IsOK(res1)) {
34240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34241 }
34242 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34243 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34244 if (!SWIG_IsOK(res2)) {
34245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34246 }
34247 arg2 = reinterpret_cast< wxWindow * >(argp2);
34248 if (obj2) {
34249 ecode3 = SWIG_AsVal_int(obj2, &val3);
34250 if (!SWIG_IsOK(ecode3)) {
34251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34252 }
34253 arg3 = static_cast< int >(val3);
34254 }
34255 if (obj3) {
34256 {
34257 arg4 = &temp4;
34258 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
34259 }
34260 }
34261 if (obj4) {
34262 {
34263 arg5 = &temp5;
34264 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
34265 }
34266 }
34267 if (obj5) {
34268 ecode6 = SWIG_AsVal_long(obj5, &val6);
34269 if (!SWIG_IsOK(ecode6)) {
34270 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34271 }
34272 arg6 = static_cast< long >(val6);
34273 }
34274 if (obj6) {
34275 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34276 if (!SWIG_IsOK(res7)) {
34277 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34278 }
34279 if (!argp7) {
34280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34281 }
34282 arg7 = reinterpret_cast< wxValidator * >(argp7);
34283 }
34284 if (obj7) {
34285 {
34286 arg8 = wxString_in_helper(obj7);
34287 if (arg8 == NULL) SWIG_fail;
34288 temp8 = true;
34289 }
34290 }
34291 {
34292 PyThreadState* __tstate = wxPyBeginAllowThreads();
34293 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34294 wxPyEndAllowThreads(__tstate);
34295 if (PyErr_Occurred()) SWIG_fail;
34296 }
34297 {
34298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34299 }
34300 {
34301 if (temp8)
34302 delete arg8;
34303 }
34304 return resultobj;
34305 fail:
34306 {
34307 if (temp8)
34308 delete arg8;
34309 }
34310 return NULL;
34311 }
34312
34313
34314 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34315 PyObject *resultobj = 0;
34316 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34317 PyObject *arg2 = (PyObject *) 0 ;
34318 PyObject *arg3 = (PyObject *) 0 ;
34319 void *argp1 = 0 ;
34320 int res1 = 0 ;
34321 PyObject * obj0 = 0 ;
34322 PyObject * obj1 = 0 ;
34323 PyObject * obj2 = 0 ;
34324 char * kwnames[] = {
34325 (char *) "self",(char *) "self",(char *) "_class", NULL
34326 };
34327
34328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34330 if (!SWIG_IsOK(res1)) {
34331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34332 }
34333 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34334 arg2 = obj1;
34335 arg3 = obj2;
34336 {
34337 PyThreadState* __tstate = wxPyBeginAllowThreads();
34338 (arg1)->_setCallbackInfo(arg2,arg3);
34339 wxPyEndAllowThreads(__tstate);
34340 if (PyErr_Occurred()) SWIG_fail;
34341 }
34342 resultobj = SWIG_Py_Void();
34343 return resultobj;
34344 fail:
34345 return NULL;
34346 }
34347
34348
34349 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34350 PyObject *resultobj = 0;
34351 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34352 unsigned int result;
34353 void *argp1 = 0 ;
34354 int res1 = 0 ;
34355 PyObject *swig_obj[1] ;
34356
34357 if (!args) SWIG_fail;
34358 swig_obj[0] = args;
34359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34360 if (!SWIG_IsOK(res1)) {
34361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34362 }
34363 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34364 {
34365 PyThreadState* __tstate = wxPyBeginAllowThreads();
34366 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34367 wxPyEndAllowThreads(__tstate);
34368 if (PyErr_Occurred()) SWIG_fail;
34369 }
34370 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34371 return resultobj;
34372 fail:
34373 return NULL;
34374 }
34375
34376
34377 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34378 PyObject *resultobj = 0;
34379 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34380 unsigned int result;
34381 void *argp1 = 0 ;
34382 int res1 = 0 ;
34383 PyObject *swig_obj[1] ;
34384
34385 if (!args) SWIG_fail;
34386 swig_obj[0] = args;
34387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34388 if (!SWIG_IsOK(res1)) {
34389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34390 }
34391 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34392 {
34393 PyThreadState* __tstate = wxPyBeginAllowThreads();
34394 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34395 wxPyEndAllowThreads(__tstate);
34396 if (PyErr_Occurred()) SWIG_fail;
34397 }
34398 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34399 return resultobj;
34400 fail:
34401 return NULL;
34402 }
34403
34404
34405 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34406 PyObject *resultobj = 0;
34407 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34408 unsigned int arg2 ;
34409 void *argp1 = 0 ;
34410 int res1 = 0 ;
34411 unsigned int val2 ;
34412 int ecode2 = 0 ;
34413 PyObject * obj0 = 0 ;
34414 PyObject * obj1 = 0 ;
34415 char * kwnames[] = {
34416 (char *) "self",(char *) "indent", NULL
34417 };
34418
34419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34421 if (!SWIG_IsOK(res1)) {
34422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34423 }
34424 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34425 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34426 if (!SWIG_IsOK(ecode2)) {
34427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34428 }
34429 arg2 = static_cast< unsigned int >(val2);
34430 {
34431 PyThreadState* __tstate = wxPyBeginAllowThreads();
34432 (arg1)->SetIndent(arg2);
34433 wxPyEndAllowThreads(__tstate);
34434 if (PyErr_Occurred()) SWIG_fail;
34435 }
34436 resultobj = SWIG_Py_Void();
34437 return resultobj;
34438 fail:
34439 return NULL;
34440 }
34441
34442
34443 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34444 PyObject *resultobj = 0;
34445 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34446 unsigned int result;
34447 void *argp1 = 0 ;
34448 int res1 = 0 ;
34449 PyObject *swig_obj[1] ;
34450
34451 if (!args) SWIG_fail;
34452 swig_obj[0] = args;
34453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34454 if (!SWIG_IsOK(res1)) {
34455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34456 }
34457 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34458 {
34459 PyThreadState* __tstate = wxPyBeginAllowThreads();
34460 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34461 wxPyEndAllowThreads(__tstate);
34462 if (PyErr_Occurred()) SWIG_fail;
34463 }
34464 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34465 return resultobj;
34466 fail:
34467 return NULL;
34468 }
34469
34470
34471 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34472 PyObject *resultobj = 0;
34473 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34474 unsigned int arg2 ;
34475 void *argp1 = 0 ;
34476 int res1 = 0 ;
34477 unsigned int val2 ;
34478 int ecode2 = 0 ;
34479 PyObject * obj0 = 0 ;
34480 PyObject * obj1 = 0 ;
34481 char * kwnames[] = {
34482 (char *) "self",(char *) "spacing", NULL
34483 };
34484
34485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34487 if (!SWIG_IsOK(res1)) {
34488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34489 }
34490 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34491 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34492 if (!SWIG_IsOK(ecode2)) {
34493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34494 }
34495 arg2 = static_cast< unsigned int >(val2);
34496 {
34497 PyThreadState* __tstate = wxPyBeginAllowThreads();
34498 (arg1)->SetSpacing(arg2);
34499 wxPyEndAllowThreads(__tstate);
34500 if (PyErr_Occurred()) SWIG_fail;
34501 }
34502 resultobj = SWIG_Py_Void();
34503 return resultobj;
34504 fail:
34505 return NULL;
34506 }
34507
34508
34509 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34510 PyObject *resultobj = 0;
34511 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34512 wxImageList *result = 0 ;
34513 void *argp1 = 0 ;
34514 int res1 = 0 ;
34515 PyObject *swig_obj[1] ;
34516
34517 if (!args) SWIG_fail;
34518 swig_obj[0] = args;
34519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34520 if (!SWIG_IsOK(res1)) {
34521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34522 }
34523 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34524 {
34525 PyThreadState* __tstate = wxPyBeginAllowThreads();
34526 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34527 wxPyEndAllowThreads(__tstate);
34528 if (PyErr_Occurred()) SWIG_fail;
34529 }
34530 {
34531 resultobj = wxPyMake_wxObject(result, (bool)0);
34532 }
34533 return resultobj;
34534 fail:
34535 return NULL;
34536 }
34537
34538
34539 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34540 PyObject *resultobj = 0;
34541 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34542 wxImageList *result = 0 ;
34543 void *argp1 = 0 ;
34544 int res1 = 0 ;
34545 PyObject *swig_obj[1] ;
34546
34547 if (!args) SWIG_fail;
34548 swig_obj[0] = args;
34549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34550 if (!SWIG_IsOK(res1)) {
34551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34552 }
34553 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34554 {
34555 PyThreadState* __tstate = wxPyBeginAllowThreads();
34556 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34557 wxPyEndAllowThreads(__tstate);
34558 if (PyErr_Occurred()) SWIG_fail;
34559 }
34560 {
34561 resultobj = wxPyMake_wxObject(result, (bool)0);
34562 }
34563 return resultobj;
34564 fail:
34565 return NULL;
34566 }
34567
34568
34569 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34570 PyObject *resultobj = 0;
34571 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34572 wxImageList *arg2 = (wxImageList *) 0 ;
34573 void *argp1 = 0 ;
34574 int res1 = 0 ;
34575 void *argp2 = 0 ;
34576 int res2 = 0 ;
34577 PyObject * obj0 = 0 ;
34578 PyObject * obj1 = 0 ;
34579 char * kwnames[] = {
34580 (char *) "self",(char *) "imageList", NULL
34581 };
34582
34583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34585 if (!SWIG_IsOK(res1)) {
34586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34587 }
34588 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34590 if (!SWIG_IsOK(res2)) {
34591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34592 }
34593 arg2 = reinterpret_cast< wxImageList * >(argp2);
34594 {
34595 PyThreadState* __tstate = wxPyBeginAllowThreads();
34596 (arg1)->SetImageList(arg2);
34597 wxPyEndAllowThreads(__tstate);
34598 if (PyErr_Occurred()) SWIG_fail;
34599 }
34600 resultobj = SWIG_Py_Void();
34601 return resultobj;
34602 fail:
34603 return NULL;
34604 }
34605
34606
34607 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34608 PyObject *resultobj = 0;
34609 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34610 wxImageList *arg2 = (wxImageList *) 0 ;
34611 void *argp1 = 0 ;
34612 int res1 = 0 ;
34613 void *argp2 = 0 ;
34614 int res2 = 0 ;
34615 PyObject * obj0 = 0 ;
34616 PyObject * obj1 = 0 ;
34617 char * kwnames[] = {
34618 (char *) "self",(char *) "imageList", NULL
34619 };
34620
34621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34623 if (!SWIG_IsOK(res1)) {
34624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34625 }
34626 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34627 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34628 if (!SWIG_IsOK(res2)) {
34629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34630 }
34631 arg2 = reinterpret_cast< wxImageList * >(argp2);
34632 {
34633 PyThreadState* __tstate = wxPyBeginAllowThreads();
34634 (arg1)->SetStateImageList(arg2);
34635 wxPyEndAllowThreads(__tstate);
34636 if (PyErr_Occurred()) SWIG_fail;
34637 }
34638 resultobj = SWIG_Py_Void();
34639 return resultobj;
34640 fail:
34641 return NULL;
34642 }
34643
34644
34645 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34646 PyObject *resultobj = 0;
34647 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34648 wxImageList *arg2 = (wxImageList *) 0 ;
34649 void *argp1 = 0 ;
34650 int res1 = 0 ;
34651 int res2 = 0 ;
34652 PyObject * obj0 = 0 ;
34653 PyObject * obj1 = 0 ;
34654 char * kwnames[] = {
34655 (char *) "self",(char *) "imageList", NULL
34656 };
34657
34658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34660 if (!SWIG_IsOK(res1)) {
34661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34662 }
34663 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34664 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34665 if (!SWIG_IsOK(res2)) {
34666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34667 }
34668 {
34669 PyThreadState* __tstate = wxPyBeginAllowThreads();
34670 (arg1)->AssignImageList(arg2);
34671 wxPyEndAllowThreads(__tstate);
34672 if (PyErr_Occurred()) SWIG_fail;
34673 }
34674 resultobj = SWIG_Py_Void();
34675 return resultobj;
34676 fail:
34677 return NULL;
34678 }
34679
34680
34681 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34682 PyObject *resultobj = 0;
34683 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34684 wxImageList *arg2 = (wxImageList *) 0 ;
34685 void *argp1 = 0 ;
34686 int res1 = 0 ;
34687 int res2 = 0 ;
34688 PyObject * obj0 = 0 ;
34689 PyObject * obj1 = 0 ;
34690 char * kwnames[] = {
34691 (char *) "self",(char *) "imageList", NULL
34692 };
34693
34694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34696 if (!SWIG_IsOK(res1)) {
34697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34698 }
34699 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34700 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34701 if (!SWIG_IsOK(res2)) {
34702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34703 }
34704 {
34705 PyThreadState* __tstate = wxPyBeginAllowThreads();
34706 (arg1)->AssignStateImageList(arg2);
34707 wxPyEndAllowThreads(__tstate);
34708 if (PyErr_Occurred()) SWIG_fail;
34709 }
34710 resultobj = SWIG_Py_Void();
34711 return resultobj;
34712 fail:
34713 return NULL;
34714 }
34715
34716
34717 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34718 PyObject *resultobj = 0;
34719 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34720 wxTreeItemId *arg2 = 0 ;
34721 wxString result;
34722 void *argp1 = 0 ;
34723 int res1 = 0 ;
34724 void *argp2 = 0 ;
34725 int res2 = 0 ;
34726 PyObject * obj0 = 0 ;
34727 PyObject * obj1 = 0 ;
34728 char * kwnames[] = {
34729 (char *) "self",(char *) "item", NULL
34730 };
34731
34732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34734 if (!SWIG_IsOK(res1)) {
34735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34736 }
34737 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34738 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34739 if (!SWIG_IsOK(res2)) {
34740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34741 }
34742 if (!argp2) {
34743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34744 }
34745 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34746 {
34747 PyThreadState* __tstate = wxPyBeginAllowThreads();
34748 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34749 wxPyEndAllowThreads(__tstate);
34750 if (PyErr_Occurred()) SWIG_fail;
34751 }
34752 {
34753 #if wxUSE_UNICODE
34754 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34755 #else
34756 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34757 #endif
34758 }
34759 return resultobj;
34760 fail:
34761 return NULL;
34762 }
34763
34764
34765 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34766 PyObject *resultobj = 0;
34767 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34768 wxTreeItemId *arg2 = 0 ;
34769 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34770 int result;
34771 void *argp1 = 0 ;
34772 int res1 = 0 ;
34773 void *argp2 = 0 ;
34774 int res2 = 0 ;
34775 int val3 ;
34776 int ecode3 = 0 ;
34777 PyObject * obj0 = 0 ;
34778 PyObject * obj1 = 0 ;
34779 PyObject * obj2 = 0 ;
34780 char * kwnames[] = {
34781 (char *) "self",(char *) "item",(char *) "which", NULL
34782 };
34783
34784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34786 if (!SWIG_IsOK(res1)) {
34787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34788 }
34789 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34790 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34791 if (!SWIG_IsOK(res2)) {
34792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34793 }
34794 if (!argp2) {
34795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34796 }
34797 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34798 if (obj2) {
34799 ecode3 = SWIG_AsVal_int(obj2, &val3);
34800 if (!SWIG_IsOK(ecode3)) {
34801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34802 }
34803 arg3 = static_cast< wxTreeItemIcon >(val3);
34804 }
34805 {
34806 PyThreadState* __tstate = wxPyBeginAllowThreads();
34807 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34808 wxPyEndAllowThreads(__tstate);
34809 if (PyErr_Occurred()) SWIG_fail;
34810 }
34811 resultobj = SWIG_From_int(static_cast< int >(result));
34812 return resultobj;
34813 fail:
34814 return NULL;
34815 }
34816
34817
34818 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34819 PyObject *resultobj = 0;
34820 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34821 wxTreeItemId *arg2 = 0 ;
34822 wxPyTreeItemData *result = 0 ;
34823 void *argp1 = 0 ;
34824 int res1 = 0 ;
34825 void *argp2 = 0 ;
34826 int res2 = 0 ;
34827 PyObject * obj0 = 0 ;
34828 PyObject * obj1 = 0 ;
34829 char * kwnames[] = {
34830 (char *) "self",(char *) "item", NULL
34831 };
34832
34833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34835 if (!SWIG_IsOK(res1)) {
34836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34837 }
34838 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34840 if (!SWIG_IsOK(res2)) {
34841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34842 }
34843 if (!argp2) {
34844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34845 }
34846 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34847 {
34848 PyThreadState* __tstate = wxPyBeginAllowThreads();
34849 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34850 wxPyEndAllowThreads(__tstate);
34851 if (PyErr_Occurred()) SWIG_fail;
34852 }
34853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34854 return resultobj;
34855 fail:
34856 return NULL;
34857 }
34858
34859
34860 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34861 PyObject *resultobj = 0;
34862 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34863 wxTreeItemId *arg2 = 0 ;
34864 PyObject *result = 0 ;
34865 void *argp1 = 0 ;
34866 int res1 = 0 ;
34867 void *argp2 = 0 ;
34868 int res2 = 0 ;
34869 PyObject * obj0 = 0 ;
34870 PyObject * obj1 = 0 ;
34871 char * kwnames[] = {
34872 (char *) "self",(char *) "item", NULL
34873 };
34874
34875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34877 if (!SWIG_IsOK(res1)) {
34878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34879 }
34880 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34882 if (!SWIG_IsOK(res2)) {
34883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34884 }
34885 if (!argp2) {
34886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34887 }
34888 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34889 {
34890 PyThreadState* __tstate = wxPyBeginAllowThreads();
34891 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34892 wxPyEndAllowThreads(__tstate);
34893 if (PyErr_Occurred()) SWIG_fail;
34894 }
34895 resultobj = result;
34896 return resultobj;
34897 fail:
34898 return NULL;
34899 }
34900
34901
34902 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34903 PyObject *resultobj = 0;
34904 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34905 wxTreeItemId *arg2 = 0 ;
34906 wxColour result;
34907 void *argp1 = 0 ;
34908 int res1 = 0 ;
34909 void *argp2 = 0 ;
34910 int res2 = 0 ;
34911 PyObject * obj0 = 0 ;
34912 PyObject * obj1 = 0 ;
34913 char * kwnames[] = {
34914 (char *) "self",(char *) "item", NULL
34915 };
34916
34917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34919 if (!SWIG_IsOK(res1)) {
34920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34921 }
34922 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34924 if (!SWIG_IsOK(res2)) {
34925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34926 }
34927 if (!argp2) {
34928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34929 }
34930 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34931 {
34932 PyThreadState* __tstate = wxPyBeginAllowThreads();
34933 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34934 wxPyEndAllowThreads(__tstate);
34935 if (PyErr_Occurred()) SWIG_fail;
34936 }
34937 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34938 return resultobj;
34939 fail:
34940 return NULL;
34941 }
34942
34943
34944 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34945 PyObject *resultobj = 0;
34946 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34947 wxTreeItemId *arg2 = 0 ;
34948 wxColour result;
34949 void *argp1 = 0 ;
34950 int res1 = 0 ;
34951 void *argp2 = 0 ;
34952 int res2 = 0 ;
34953 PyObject * obj0 = 0 ;
34954 PyObject * obj1 = 0 ;
34955 char * kwnames[] = {
34956 (char *) "self",(char *) "item", NULL
34957 };
34958
34959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34961 if (!SWIG_IsOK(res1)) {
34962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34963 }
34964 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34966 if (!SWIG_IsOK(res2)) {
34967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34968 }
34969 if (!argp2) {
34970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34971 }
34972 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34973 {
34974 PyThreadState* __tstate = wxPyBeginAllowThreads();
34975 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34976 wxPyEndAllowThreads(__tstate);
34977 if (PyErr_Occurred()) SWIG_fail;
34978 }
34979 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34980 return resultobj;
34981 fail:
34982 return NULL;
34983 }
34984
34985
34986 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34987 PyObject *resultobj = 0;
34988 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34989 wxTreeItemId *arg2 = 0 ;
34990 wxFont result;
34991 void *argp1 = 0 ;
34992 int res1 = 0 ;
34993 void *argp2 = 0 ;
34994 int res2 = 0 ;
34995 PyObject * obj0 = 0 ;
34996 PyObject * obj1 = 0 ;
34997 char * kwnames[] = {
34998 (char *) "self",(char *) "item", NULL
34999 };
35000
35001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
35002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35003 if (!SWIG_IsOK(res1)) {
35004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35005 }
35006 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35007 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35008 if (!SWIG_IsOK(res2)) {
35009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35010 }
35011 if (!argp2) {
35012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35013 }
35014 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35015 {
35016 PyThreadState* __tstate = wxPyBeginAllowThreads();
35017 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
35018 wxPyEndAllowThreads(__tstate);
35019 if (PyErr_Occurred()) SWIG_fail;
35020 }
35021 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
35022 return resultobj;
35023 fail:
35024 return NULL;
35025 }
35026
35027
35028 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35029 PyObject *resultobj = 0;
35030 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35031 wxTreeItemId *arg2 = 0 ;
35032 wxString *arg3 = 0 ;
35033 void *argp1 = 0 ;
35034 int res1 = 0 ;
35035 void *argp2 = 0 ;
35036 int res2 = 0 ;
35037 bool temp3 = false ;
35038 PyObject * obj0 = 0 ;
35039 PyObject * obj1 = 0 ;
35040 PyObject * obj2 = 0 ;
35041 char * kwnames[] = {
35042 (char *) "self",(char *) "item",(char *) "text", NULL
35043 };
35044
35045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",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_SetItemText" "', 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_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35054 }
35055 if (!argp2) {
35056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35057 }
35058 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35059 {
35060 arg3 = wxString_in_helper(obj2);
35061 if (arg3 == NULL) SWIG_fail;
35062 temp3 = true;
35063 }
35064 {
35065 PyThreadState* __tstate = wxPyBeginAllowThreads();
35066 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
35067 wxPyEndAllowThreads(__tstate);
35068 if (PyErr_Occurred()) SWIG_fail;
35069 }
35070 resultobj = SWIG_Py_Void();
35071 {
35072 if (temp3)
35073 delete arg3;
35074 }
35075 return resultobj;
35076 fail:
35077 {
35078 if (temp3)
35079 delete arg3;
35080 }
35081 return NULL;
35082 }
35083
35084
35085 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35086 PyObject *resultobj = 0;
35087 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35088 wxTreeItemId *arg2 = 0 ;
35089 int arg3 ;
35090 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
35091 void *argp1 = 0 ;
35092 int res1 = 0 ;
35093 void *argp2 = 0 ;
35094 int res2 = 0 ;
35095 int val3 ;
35096 int ecode3 = 0 ;
35097 int val4 ;
35098 int ecode4 = 0 ;
35099 PyObject * obj0 = 0 ;
35100 PyObject * obj1 = 0 ;
35101 PyObject * obj2 = 0 ;
35102 PyObject * obj3 = 0 ;
35103 char * kwnames[] = {
35104 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
35105 };
35106
35107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35109 if (!SWIG_IsOK(res1)) {
35110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35111 }
35112 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35113 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35114 if (!SWIG_IsOK(res2)) {
35115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35116 }
35117 if (!argp2) {
35118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35119 }
35120 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35121 ecode3 = SWIG_AsVal_int(obj2, &val3);
35122 if (!SWIG_IsOK(ecode3)) {
35123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
35124 }
35125 arg3 = static_cast< int >(val3);
35126 if (obj3) {
35127 ecode4 = SWIG_AsVal_int(obj3, &val4);
35128 if (!SWIG_IsOK(ecode4)) {
35129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
35130 }
35131 arg4 = static_cast< wxTreeItemIcon >(val4);
35132 }
35133 {
35134 PyThreadState* __tstate = wxPyBeginAllowThreads();
35135 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
35136 wxPyEndAllowThreads(__tstate);
35137 if (PyErr_Occurred()) SWIG_fail;
35138 }
35139 resultobj = SWIG_Py_Void();
35140 return resultobj;
35141 fail:
35142 return NULL;
35143 }
35144
35145
35146 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35147 PyObject *resultobj = 0;
35148 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35149 wxTreeItemId *arg2 = 0 ;
35150 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
35151 void *argp1 = 0 ;
35152 int res1 = 0 ;
35153 void *argp2 = 0 ;
35154 int res2 = 0 ;
35155 int res3 = 0 ;
35156 PyObject * obj0 = 0 ;
35157 PyObject * obj1 = 0 ;
35158 PyObject * obj2 = 0 ;
35159 char * kwnames[] = {
35160 (char *) "self",(char *) "item",(char *) "data", NULL
35161 };
35162
35163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35165 if (!SWIG_IsOK(res1)) {
35166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35167 }
35168 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35169 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35170 if (!SWIG_IsOK(res2)) {
35171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35172 }
35173 if (!argp2) {
35174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35175 }
35176 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35177 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35178 if (!SWIG_IsOK(res3)) {
35179 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
35180 }
35181 {
35182 PyThreadState* __tstate = wxPyBeginAllowThreads();
35183 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
35184 wxPyEndAllowThreads(__tstate);
35185 if (PyErr_Occurred()) SWIG_fail;
35186 }
35187 resultobj = SWIG_Py_Void();
35188 return resultobj;
35189 fail:
35190 return NULL;
35191 }
35192
35193
35194 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35195 PyObject *resultobj = 0;
35196 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35197 wxTreeItemId *arg2 = 0 ;
35198 PyObject *arg3 = (PyObject *) 0 ;
35199 void *argp1 = 0 ;
35200 int res1 = 0 ;
35201 void *argp2 = 0 ;
35202 int res2 = 0 ;
35203 PyObject * obj0 = 0 ;
35204 PyObject * obj1 = 0 ;
35205 PyObject * obj2 = 0 ;
35206 char * kwnames[] = {
35207 (char *) "self",(char *) "item",(char *) "obj", NULL
35208 };
35209
35210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35212 if (!SWIG_IsOK(res1)) {
35213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35214 }
35215 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35217 if (!SWIG_IsOK(res2)) {
35218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35219 }
35220 if (!argp2) {
35221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35222 }
35223 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35224 arg3 = obj2;
35225 {
35226 PyThreadState* __tstate = wxPyBeginAllowThreads();
35227 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35228 wxPyEndAllowThreads(__tstate);
35229 if (PyErr_Occurred()) SWIG_fail;
35230 }
35231 resultobj = SWIG_Py_Void();
35232 return resultobj;
35233 fail:
35234 return NULL;
35235 }
35236
35237
35238 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35239 PyObject *resultobj = 0;
35240 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35241 wxTreeItemId *arg2 = 0 ;
35242 bool arg3 = (bool) true ;
35243 void *argp1 = 0 ;
35244 int res1 = 0 ;
35245 void *argp2 = 0 ;
35246 int res2 = 0 ;
35247 bool val3 ;
35248 int ecode3 = 0 ;
35249 PyObject * obj0 = 0 ;
35250 PyObject * obj1 = 0 ;
35251 PyObject * obj2 = 0 ;
35252 char * kwnames[] = {
35253 (char *) "self",(char *) "item",(char *) "has", NULL
35254 };
35255
35256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35258 if (!SWIG_IsOK(res1)) {
35259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35260 }
35261 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35262 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35263 if (!SWIG_IsOK(res2)) {
35264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35265 }
35266 if (!argp2) {
35267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35268 }
35269 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35270 if (obj2) {
35271 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35272 if (!SWIG_IsOK(ecode3)) {
35273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35274 }
35275 arg3 = static_cast< bool >(val3);
35276 }
35277 {
35278 PyThreadState* __tstate = wxPyBeginAllowThreads();
35279 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35280 wxPyEndAllowThreads(__tstate);
35281 if (PyErr_Occurred()) SWIG_fail;
35282 }
35283 resultobj = SWIG_Py_Void();
35284 return resultobj;
35285 fail:
35286 return NULL;
35287 }
35288
35289
35290 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35291 PyObject *resultobj = 0;
35292 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35293 wxTreeItemId *arg2 = 0 ;
35294 bool arg3 = (bool) true ;
35295 void *argp1 = 0 ;
35296 int res1 = 0 ;
35297 void *argp2 = 0 ;
35298 int res2 = 0 ;
35299 bool val3 ;
35300 int ecode3 = 0 ;
35301 PyObject * obj0 = 0 ;
35302 PyObject * obj1 = 0 ;
35303 PyObject * obj2 = 0 ;
35304 char * kwnames[] = {
35305 (char *) "self",(char *) "item",(char *) "bold", NULL
35306 };
35307
35308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35310 if (!SWIG_IsOK(res1)) {
35311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35312 }
35313 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35314 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35315 if (!SWIG_IsOK(res2)) {
35316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35317 }
35318 if (!argp2) {
35319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35320 }
35321 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35322 if (obj2) {
35323 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35324 if (!SWIG_IsOK(ecode3)) {
35325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35326 }
35327 arg3 = static_cast< bool >(val3);
35328 }
35329 {
35330 PyThreadState* __tstate = wxPyBeginAllowThreads();
35331 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35332 wxPyEndAllowThreads(__tstate);
35333 if (PyErr_Occurred()) SWIG_fail;
35334 }
35335 resultobj = SWIG_Py_Void();
35336 return resultobj;
35337 fail:
35338 return NULL;
35339 }
35340
35341
35342 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35343 PyObject *resultobj = 0;
35344 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35345 wxTreeItemId *arg2 = 0 ;
35346 bool arg3 = (bool) true ;
35347 void *argp1 = 0 ;
35348 int res1 = 0 ;
35349 void *argp2 = 0 ;
35350 int res2 = 0 ;
35351 bool val3 ;
35352 int ecode3 = 0 ;
35353 PyObject * obj0 = 0 ;
35354 PyObject * obj1 = 0 ;
35355 PyObject * obj2 = 0 ;
35356 char * kwnames[] = {
35357 (char *) "self",(char *) "item",(char *) "highlight", NULL
35358 };
35359
35360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35362 if (!SWIG_IsOK(res1)) {
35363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35364 }
35365 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35367 if (!SWIG_IsOK(res2)) {
35368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35369 }
35370 if (!argp2) {
35371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35372 }
35373 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35374 if (obj2) {
35375 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35376 if (!SWIG_IsOK(ecode3)) {
35377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35378 }
35379 arg3 = static_cast< bool >(val3);
35380 }
35381 {
35382 PyThreadState* __tstate = wxPyBeginAllowThreads();
35383 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35384 wxPyEndAllowThreads(__tstate);
35385 if (PyErr_Occurred()) SWIG_fail;
35386 }
35387 resultobj = SWIG_Py_Void();
35388 return resultobj;
35389 fail:
35390 return NULL;
35391 }
35392
35393
35394 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35395 PyObject *resultobj = 0;
35396 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35397 wxTreeItemId *arg2 = 0 ;
35398 wxColour *arg3 = 0 ;
35399 void *argp1 = 0 ;
35400 int res1 = 0 ;
35401 void *argp2 = 0 ;
35402 int res2 = 0 ;
35403 wxColour temp3 ;
35404 PyObject * obj0 = 0 ;
35405 PyObject * obj1 = 0 ;
35406 PyObject * obj2 = 0 ;
35407 char * kwnames[] = {
35408 (char *) "self",(char *) "item",(char *) "col", NULL
35409 };
35410
35411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35413 if (!SWIG_IsOK(res1)) {
35414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35415 }
35416 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35417 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35418 if (!SWIG_IsOK(res2)) {
35419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35420 }
35421 if (!argp2) {
35422 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35423 }
35424 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35425 {
35426 arg3 = &temp3;
35427 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35428 }
35429 {
35430 PyThreadState* __tstate = wxPyBeginAllowThreads();
35431 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35432 wxPyEndAllowThreads(__tstate);
35433 if (PyErr_Occurred()) SWIG_fail;
35434 }
35435 resultobj = SWIG_Py_Void();
35436 return resultobj;
35437 fail:
35438 return NULL;
35439 }
35440
35441
35442 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35443 PyObject *resultobj = 0;
35444 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35445 wxTreeItemId *arg2 = 0 ;
35446 wxColour *arg3 = 0 ;
35447 void *argp1 = 0 ;
35448 int res1 = 0 ;
35449 void *argp2 = 0 ;
35450 int res2 = 0 ;
35451 wxColour temp3 ;
35452 PyObject * obj0 = 0 ;
35453 PyObject * obj1 = 0 ;
35454 PyObject * obj2 = 0 ;
35455 char * kwnames[] = {
35456 (char *) "self",(char *) "item",(char *) "col", NULL
35457 };
35458
35459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35461 if (!SWIG_IsOK(res1)) {
35462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35463 }
35464 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35465 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35466 if (!SWIG_IsOK(res2)) {
35467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35468 }
35469 if (!argp2) {
35470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35471 }
35472 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35473 {
35474 arg3 = &temp3;
35475 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35476 }
35477 {
35478 PyThreadState* __tstate = wxPyBeginAllowThreads();
35479 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35480 wxPyEndAllowThreads(__tstate);
35481 if (PyErr_Occurred()) SWIG_fail;
35482 }
35483 resultobj = SWIG_Py_Void();
35484 return resultobj;
35485 fail:
35486 return NULL;
35487 }
35488
35489
35490 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35491 PyObject *resultobj = 0;
35492 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35493 wxTreeItemId *arg2 = 0 ;
35494 wxFont *arg3 = 0 ;
35495 void *argp1 = 0 ;
35496 int res1 = 0 ;
35497 void *argp2 = 0 ;
35498 int res2 = 0 ;
35499 void *argp3 = 0 ;
35500 int res3 = 0 ;
35501 PyObject * obj0 = 0 ;
35502 PyObject * obj1 = 0 ;
35503 PyObject * obj2 = 0 ;
35504 char * kwnames[] = {
35505 (char *) "self",(char *) "item",(char *) "font", NULL
35506 };
35507
35508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35510 if (!SWIG_IsOK(res1)) {
35511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35512 }
35513 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35515 if (!SWIG_IsOK(res2)) {
35516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35517 }
35518 if (!argp2) {
35519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35520 }
35521 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35522 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35523 if (!SWIG_IsOK(res3)) {
35524 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35525 }
35526 if (!argp3) {
35527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35528 }
35529 arg3 = reinterpret_cast< wxFont * >(argp3);
35530 {
35531 PyThreadState* __tstate = wxPyBeginAllowThreads();
35532 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35533 wxPyEndAllowThreads(__tstate);
35534 if (PyErr_Occurred()) SWIG_fail;
35535 }
35536 resultobj = SWIG_Py_Void();
35537 return resultobj;
35538 fail:
35539 return NULL;
35540 }
35541
35542
35543 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35544 PyObject *resultobj = 0;
35545 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35546 wxTreeItemId *arg2 = 0 ;
35547 bool result;
35548 void *argp1 = 0 ;
35549 int res1 = 0 ;
35550 void *argp2 = 0 ;
35551 int res2 = 0 ;
35552 PyObject * obj0 = 0 ;
35553 PyObject * obj1 = 0 ;
35554 char * kwnames[] = {
35555 (char *) "self",(char *) "item", NULL
35556 };
35557
35558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35560 if (!SWIG_IsOK(res1)) {
35561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35562 }
35563 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35564 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35565 if (!SWIG_IsOK(res2)) {
35566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35567 }
35568 if (!argp2) {
35569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35570 }
35571 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35572 {
35573 PyThreadState* __tstate = wxPyBeginAllowThreads();
35574 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35575 wxPyEndAllowThreads(__tstate);
35576 if (PyErr_Occurred()) SWIG_fail;
35577 }
35578 {
35579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35580 }
35581 return resultobj;
35582 fail:
35583 return NULL;
35584 }
35585
35586
35587 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35588 PyObject *resultobj = 0;
35589 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35590 wxTreeItemId *arg2 = 0 ;
35591 bool result;
35592 void *argp1 = 0 ;
35593 int res1 = 0 ;
35594 void *argp2 = 0 ;
35595 int res2 = 0 ;
35596 PyObject * obj0 = 0 ;
35597 PyObject * obj1 = 0 ;
35598 char * kwnames[] = {
35599 (char *) "self",(char *) "item", NULL
35600 };
35601
35602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35604 if (!SWIG_IsOK(res1)) {
35605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35606 }
35607 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35608 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35609 if (!SWIG_IsOK(res2)) {
35610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35611 }
35612 if (!argp2) {
35613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35614 }
35615 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35616 {
35617 PyThreadState* __tstate = wxPyBeginAllowThreads();
35618 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35619 wxPyEndAllowThreads(__tstate);
35620 if (PyErr_Occurred()) SWIG_fail;
35621 }
35622 {
35623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35624 }
35625 return resultobj;
35626 fail:
35627 return NULL;
35628 }
35629
35630
35631 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35632 PyObject *resultobj = 0;
35633 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35634 wxTreeItemId *arg2 = 0 ;
35635 bool result;
35636 void *argp1 = 0 ;
35637 int res1 = 0 ;
35638 void *argp2 = 0 ;
35639 int res2 = 0 ;
35640 PyObject * obj0 = 0 ;
35641 PyObject * obj1 = 0 ;
35642 char * kwnames[] = {
35643 (char *) "self",(char *) "item", NULL
35644 };
35645
35646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35648 if (!SWIG_IsOK(res1)) {
35649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35650 }
35651 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35653 if (!SWIG_IsOK(res2)) {
35654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35655 }
35656 if (!argp2) {
35657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35658 }
35659 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35660 {
35661 PyThreadState* __tstate = wxPyBeginAllowThreads();
35662 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35663 wxPyEndAllowThreads(__tstate);
35664 if (PyErr_Occurred()) SWIG_fail;
35665 }
35666 {
35667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35668 }
35669 return resultobj;
35670 fail:
35671 return NULL;
35672 }
35673
35674
35675 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35676 PyObject *resultobj = 0;
35677 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35678 wxTreeItemId *arg2 = 0 ;
35679 bool result;
35680 void *argp1 = 0 ;
35681 int res1 = 0 ;
35682 void *argp2 = 0 ;
35683 int res2 = 0 ;
35684 PyObject * obj0 = 0 ;
35685 PyObject * obj1 = 0 ;
35686 char * kwnames[] = {
35687 (char *) "self",(char *) "item", NULL
35688 };
35689
35690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35692 if (!SWIG_IsOK(res1)) {
35693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35694 }
35695 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35697 if (!SWIG_IsOK(res2)) {
35698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35699 }
35700 if (!argp2) {
35701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35702 }
35703 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35704 {
35705 PyThreadState* __tstate = wxPyBeginAllowThreads();
35706 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35707 wxPyEndAllowThreads(__tstate);
35708 if (PyErr_Occurred()) SWIG_fail;
35709 }
35710 {
35711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35712 }
35713 return resultobj;
35714 fail:
35715 return NULL;
35716 }
35717
35718
35719 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35720 PyObject *resultobj = 0;
35721 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35722 wxTreeItemId *arg2 = 0 ;
35723 bool result;
35724 void *argp1 = 0 ;
35725 int res1 = 0 ;
35726 void *argp2 = 0 ;
35727 int res2 = 0 ;
35728 PyObject * obj0 = 0 ;
35729 PyObject * obj1 = 0 ;
35730 char * kwnames[] = {
35731 (char *) "self",(char *) "item", NULL
35732 };
35733
35734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35736 if (!SWIG_IsOK(res1)) {
35737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35738 }
35739 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35740 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35741 if (!SWIG_IsOK(res2)) {
35742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35743 }
35744 if (!argp2) {
35745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35746 }
35747 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35748 {
35749 PyThreadState* __tstate = wxPyBeginAllowThreads();
35750 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35751 wxPyEndAllowThreads(__tstate);
35752 if (PyErr_Occurred()) SWIG_fail;
35753 }
35754 {
35755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35756 }
35757 return resultobj;
35758 fail:
35759 return NULL;
35760 }
35761
35762
35763 SWIGINTERN PyObject *_wrap_TreeCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35764 PyObject *resultobj = 0;
35765 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35766 bool result;
35767 void *argp1 = 0 ;
35768 int res1 = 0 ;
35769 PyObject *swig_obj[1] ;
35770
35771 if (!args) SWIG_fail;
35772 swig_obj[0] = args;
35773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35774 if (!SWIG_IsOK(res1)) {
35775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35776 }
35777 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35778 {
35779 PyThreadState* __tstate = wxPyBeginAllowThreads();
35780 result = (bool)((wxPyTreeCtrl const *)arg1)->IsEmpty();
35781 wxPyEndAllowThreads(__tstate);
35782 if (PyErr_Occurred()) SWIG_fail;
35783 }
35784 {
35785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35786 }
35787 return resultobj;
35788 fail:
35789 return NULL;
35790 }
35791
35792
35793 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35794 PyObject *resultobj = 0;
35795 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35796 wxTreeItemId *arg2 = 0 ;
35797 bool arg3 = (bool) true ;
35798 size_t result;
35799 void *argp1 = 0 ;
35800 int res1 = 0 ;
35801 void *argp2 = 0 ;
35802 int res2 = 0 ;
35803 bool val3 ;
35804 int ecode3 = 0 ;
35805 PyObject * obj0 = 0 ;
35806 PyObject * obj1 = 0 ;
35807 PyObject * obj2 = 0 ;
35808 char * kwnames[] = {
35809 (char *) "self",(char *) "item",(char *) "recursively", NULL
35810 };
35811
35812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35814 if (!SWIG_IsOK(res1)) {
35815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35816 }
35817 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35818 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35819 if (!SWIG_IsOK(res2)) {
35820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35821 }
35822 if (!argp2) {
35823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35824 }
35825 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35826 if (obj2) {
35827 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35828 if (!SWIG_IsOK(ecode3)) {
35829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35830 }
35831 arg3 = static_cast< bool >(val3);
35832 }
35833 {
35834 PyThreadState* __tstate = wxPyBeginAllowThreads();
35835 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35836 wxPyEndAllowThreads(__tstate);
35837 if (PyErr_Occurred()) SWIG_fail;
35838 }
35839 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35840 return resultobj;
35841 fail:
35842 return NULL;
35843 }
35844
35845
35846 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35847 PyObject *resultobj = 0;
35848 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35849 wxTreeItemId result;
35850 void *argp1 = 0 ;
35851 int res1 = 0 ;
35852 PyObject *swig_obj[1] ;
35853
35854 if (!args) SWIG_fail;
35855 swig_obj[0] = args;
35856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35857 if (!SWIG_IsOK(res1)) {
35858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35859 }
35860 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35861 {
35862 PyThreadState* __tstate = wxPyBeginAllowThreads();
35863 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35864 wxPyEndAllowThreads(__tstate);
35865 if (PyErr_Occurred()) SWIG_fail;
35866 }
35867 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35868 return resultobj;
35869 fail:
35870 return NULL;
35871 }
35872
35873
35874 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35875 PyObject *resultobj = 0;
35876 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35877 wxTreeItemId result;
35878 void *argp1 = 0 ;
35879 int res1 = 0 ;
35880 PyObject *swig_obj[1] ;
35881
35882 if (!args) SWIG_fail;
35883 swig_obj[0] = args;
35884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35885 if (!SWIG_IsOK(res1)) {
35886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35887 }
35888 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35889 {
35890 PyThreadState* __tstate = wxPyBeginAllowThreads();
35891 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35892 wxPyEndAllowThreads(__tstate);
35893 if (PyErr_Occurred()) SWIG_fail;
35894 }
35895 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35896 return resultobj;
35897 fail:
35898 return NULL;
35899 }
35900
35901
35902 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35903 PyObject *resultobj = 0;
35904 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35905 PyObject *result = 0 ;
35906 void *argp1 = 0 ;
35907 int res1 = 0 ;
35908 PyObject *swig_obj[1] ;
35909
35910 if (!args) SWIG_fail;
35911 swig_obj[0] = args;
35912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35913 if (!SWIG_IsOK(res1)) {
35914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35915 }
35916 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35917 {
35918 PyThreadState* __tstate = wxPyBeginAllowThreads();
35919 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35920 wxPyEndAllowThreads(__tstate);
35921 if (PyErr_Occurred()) SWIG_fail;
35922 }
35923 resultobj = result;
35924 return resultobj;
35925 fail:
35926 return NULL;
35927 }
35928
35929
35930 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35931 PyObject *resultobj = 0;
35932 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35933 wxTreeItemId *arg2 = 0 ;
35934 wxTreeItemId result;
35935 void *argp1 = 0 ;
35936 int res1 = 0 ;
35937 void *argp2 = 0 ;
35938 int res2 = 0 ;
35939 PyObject * obj0 = 0 ;
35940 PyObject * obj1 = 0 ;
35941 char * kwnames[] = {
35942 (char *) "self",(char *) "item", NULL
35943 };
35944
35945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35947 if (!SWIG_IsOK(res1)) {
35948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35949 }
35950 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35952 if (!SWIG_IsOK(res2)) {
35953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35954 }
35955 if (!argp2) {
35956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35957 }
35958 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35959 {
35960 PyThreadState* __tstate = wxPyBeginAllowThreads();
35961 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35962 wxPyEndAllowThreads(__tstate);
35963 if (PyErr_Occurred()) SWIG_fail;
35964 }
35965 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35966 return resultobj;
35967 fail:
35968 return NULL;
35969 }
35970
35971
35972 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35973 PyObject *resultobj = 0;
35974 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35975 wxTreeItemId *arg2 = 0 ;
35976 PyObject *result = 0 ;
35977 void *argp1 = 0 ;
35978 int res1 = 0 ;
35979 void *argp2 = 0 ;
35980 int res2 = 0 ;
35981 PyObject * obj0 = 0 ;
35982 PyObject * obj1 = 0 ;
35983 char * kwnames[] = {
35984 (char *) "self",(char *) "item", NULL
35985 };
35986
35987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35989 if (!SWIG_IsOK(res1)) {
35990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35991 }
35992 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35993 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35994 if (!SWIG_IsOK(res2)) {
35995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35996 }
35997 if (!argp2) {
35998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35999 }
36000 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36001 {
36002 PyThreadState* __tstate = wxPyBeginAllowThreads();
36003 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
36004 wxPyEndAllowThreads(__tstate);
36005 if (PyErr_Occurred()) SWIG_fail;
36006 }
36007 resultobj = result;
36008 return resultobj;
36009 fail:
36010 return NULL;
36011 }
36012
36013
36014 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36015 PyObject *resultobj = 0;
36016 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36017 wxTreeItemId *arg2 = 0 ;
36018 void *arg3 = (void *) 0 ;
36019 PyObject *result = 0 ;
36020 void *argp1 = 0 ;
36021 int res1 = 0 ;
36022 void *argp2 = 0 ;
36023 int res2 = 0 ;
36024 int res3 ;
36025 PyObject * obj0 = 0 ;
36026 PyObject * obj1 = 0 ;
36027 PyObject * obj2 = 0 ;
36028 char * kwnames[] = {
36029 (char *) "self",(char *) "item",(char *) "cookie", NULL
36030 };
36031
36032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36034 if (!SWIG_IsOK(res1)) {
36035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36036 }
36037 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36038 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36039 if (!SWIG_IsOK(res2)) {
36040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36041 }
36042 if (!argp2) {
36043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36044 }
36045 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36046 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
36047 if (!SWIG_IsOK(res3)) {
36048 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
36049 }
36050 {
36051 PyThreadState* __tstate = wxPyBeginAllowThreads();
36052 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
36053 wxPyEndAllowThreads(__tstate);
36054 if (PyErr_Occurred()) SWIG_fail;
36055 }
36056 resultobj = result;
36057 return resultobj;
36058 fail:
36059 return NULL;
36060 }
36061
36062
36063 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36064 PyObject *resultobj = 0;
36065 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36066 wxTreeItemId *arg2 = 0 ;
36067 wxTreeItemId result;
36068 void *argp1 = 0 ;
36069 int res1 = 0 ;
36070 void *argp2 = 0 ;
36071 int res2 = 0 ;
36072 PyObject * obj0 = 0 ;
36073 PyObject * obj1 = 0 ;
36074 char * kwnames[] = {
36075 (char *) "self",(char *) "item", NULL
36076 };
36077
36078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
36079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36080 if (!SWIG_IsOK(res1)) {
36081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36082 }
36083 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36084 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36085 if (!SWIG_IsOK(res2)) {
36086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36087 }
36088 if (!argp2) {
36089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36090 }
36091 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36092 {
36093 PyThreadState* __tstate = wxPyBeginAllowThreads();
36094 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
36095 wxPyEndAllowThreads(__tstate);
36096 if (PyErr_Occurred()) SWIG_fail;
36097 }
36098 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36099 return resultobj;
36100 fail:
36101 return NULL;
36102 }
36103
36104
36105 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36106 PyObject *resultobj = 0;
36107 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36108 wxTreeItemId *arg2 = 0 ;
36109 wxTreeItemId result;
36110 void *argp1 = 0 ;
36111 int res1 = 0 ;
36112 void *argp2 = 0 ;
36113 int res2 = 0 ;
36114 PyObject * obj0 = 0 ;
36115 PyObject * obj1 = 0 ;
36116 char * kwnames[] = {
36117 (char *) "self",(char *) "item", NULL
36118 };
36119
36120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36122 if (!SWIG_IsOK(res1)) {
36123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36124 }
36125 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36126 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36127 if (!SWIG_IsOK(res2)) {
36128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36129 }
36130 if (!argp2) {
36131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36132 }
36133 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36134 {
36135 PyThreadState* __tstate = wxPyBeginAllowThreads();
36136 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
36137 wxPyEndAllowThreads(__tstate);
36138 if (PyErr_Occurred()) SWIG_fail;
36139 }
36140 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36141 return resultobj;
36142 fail:
36143 return NULL;
36144 }
36145
36146
36147 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36148 PyObject *resultobj = 0;
36149 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36150 wxTreeItemId *arg2 = 0 ;
36151 wxTreeItemId result;
36152 void *argp1 = 0 ;
36153 int res1 = 0 ;
36154 void *argp2 = 0 ;
36155 int res2 = 0 ;
36156 PyObject * obj0 = 0 ;
36157 PyObject * obj1 = 0 ;
36158 char * kwnames[] = {
36159 (char *) "self",(char *) "item", NULL
36160 };
36161
36162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36164 if (!SWIG_IsOK(res1)) {
36165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36166 }
36167 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36168 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36169 if (!SWIG_IsOK(res2)) {
36170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36171 }
36172 if (!argp2) {
36173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36174 }
36175 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36176 {
36177 PyThreadState* __tstate = wxPyBeginAllowThreads();
36178 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
36179 wxPyEndAllowThreads(__tstate);
36180 if (PyErr_Occurred()) SWIG_fail;
36181 }
36182 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36183 return resultobj;
36184 fail:
36185 return NULL;
36186 }
36187
36188
36189 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36190 PyObject *resultobj = 0;
36191 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36192 wxTreeItemId result;
36193 void *argp1 = 0 ;
36194 int res1 = 0 ;
36195 PyObject *swig_obj[1] ;
36196
36197 if (!args) SWIG_fail;
36198 swig_obj[0] = args;
36199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36200 if (!SWIG_IsOK(res1)) {
36201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36202 }
36203 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36204 {
36205 PyThreadState* __tstate = wxPyBeginAllowThreads();
36206 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
36207 wxPyEndAllowThreads(__tstate);
36208 if (PyErr_Occurred()) SWIG_fail;
36209 }
36210 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36211 return resultobj;
36212 fail:
36213 return NULL;
36214 }
36215
36216
36217 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36218 PyObject *resultobj = 0;
36219 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36220 wxTreeItemId *arg2 = 0 ;
36221 wxTreeItemId result;
36222 void *argp1 = 0 ;
36223 int res1 = 0 ;
36224 void *argp2 = 0 ;
36225 int res2 = 0 ;
36226 PyObject * obj0 = 0 ;
36227 PyObject * obj1 = 0 ;
36228 char * kwnames[] = {
36229 (char *) "self",(char *) "item", NULL
36230 };
36231
36232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36234 if (!SWIG_IsOK(res1)) {
36235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36236 }
36237 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36238 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36239 if (!SWIG_IsOK(res2)) {
36240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36241 }
36242 if (!argp2) {
36243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36244 }
36245 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36246 {
36247 PyThreadState* __tstate = wxPyBeginAllowThreads();
36248 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
36249 wxPyEndAllowThreads(__tstate);
36250 if (PyErr_Occurred()) SWIG_fail;
36251 }
36252 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36253 return resultobj;
36254 fail:
36255 return NULL;
36256 }
36257
36258
36259 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36260 PyObject *resultobj = 0;
36261 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36262 wxTreeItemId *arg2 = 0 ;
36263 wxTreeItemId result;
36264 void *argp1 = 0 ;
36265 int res1 = 0 ;
36266 void *argp2 = 0 ;
36267 int res2 = 0 ;
36268 PyObject * obj0 = 0 ;
36269 PyObject * obj1 = 0 ;
36270 char * kwnames[] = {
36271 (char *) "self",(char *) "item", NULL
36272 };
36273
36274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36276 if (!SWIG_IsOK(res1)) {
36277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36278 }
36279 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36280 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36281 if (!SWIG_IsOK(res2)) {
36282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36283 }
36284 if (!argp2) {
36285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36286 }
36287 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36288 {
36289 PyThreadState* __tstate = wxPyBeginAllowThreads();
36290 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36291 wxPyEndAllowThreads(__tstate);
36292 if (PyErr_Occurred()) SWIG_fail;
36293 }
36294 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36295 return resultobj;
36296 fail:
36297 return NULL;
36298 }
36299
36300
36301 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36302 PyObject *resultobj = 0;
36303 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36304 wxString *arg2 = 0 ;
36305 int arg3 = (int) -1 ;
36306 int arg4 = (int) -1 ;
36307 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36308 wxTreeItemId result;
36309 void *argp1 = 0 ;
36310 int res1 = 0 ;
36311 bool temp2 = false ;
36312 int val3 ;
36313 int ecode3 = 0 ;
36314 int val4 ;
36315 int ecode4 = 0 ;
36316 int res5 = 0 ;
36317 PyObject * obj0 = 0 ;
36318 PyObject * obj1 = 0 ;
36319 PyObject * obj2 = 0 ;
36320 PyObject * obj3 = 0 ;
36321 PyObject * obj4 = 0 ;
36322 char * kwnames[] = {
36323 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36324 };
36325
36326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36328 if (!SWIG_IsOK(res1)) {
36329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36330 }
36331 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36332 {
36333 arg2 = wxString_in_helper(obj1);
36334 if (arg2 == NULL) SWIG_fail;
36335 temp2 = true;
36336 }
36337 if (obj2) {
36338 ecode3 = SWIG_AsVal_int(obj2, &val3);
36339 if (!SWIG_IsOK(ecode3)) {
36340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36341 }
36342 arg3 = static_cast< int >(val3);
36343 }
36344 if (obj3) {
36345 ecode4 = SWIG_AsVal_int(obj3, &val4);
36346 if (!SWIG_IsOK(ecode4)) {
36347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36348 }
36349 arg4 = static_cast< int >(val4);
36350 }
36351 if (obj4) {
36352 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36353 if (!SWIG_IsOK(res5)) {
36354 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36355 }
36356 }
36357 {
36358 PyThreadState* __tstate = wxPyBeginAllowThreads();
36359 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36360 wxPyEndAllowThreads(__tstate);
36361 if (PyErr_Occurred()) SWIG_fail;
36362 }
36363 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36364 {
36365 if (temp2)
36366 delete arg2;
36367 }
36368 return resultobj;
36369 fail:
36370 {
36371 if (temp2)
36372 delete arg2;
36373 }
36374 return NULL;
36375 }
36376
36377
36378 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36379 PyObject *resultobj = 0;
36380 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36381 wxTreeItemId *arg2 = 0 ;
36382 wxString *arg3 = 0 ;
36383 int arg4 = (int) -1 ;
36384 int arg5 = (int) -1 ;
36385 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36386 wxTreeItemId result;
36387 void *argp1 = 0 ;
36388 int res1 = 0 ;
36389 void *argp2 = 0 ;
36390 int res2 = 0 ;
36391 bool temp3 = false ;
36392 int val4 ;
36393 int ecode4 = 0 ;
36394 int val5 ;
36395 int ecode5 = 0 ;
36396 int res6 = 0 ;
36397 PyObject * obj0 = 0 ;
36398 PyObject * obj1 = 0 ;
36399 PyObject * obj2 = 0 ;
36400 PyObject * obj3 = 0 ;
36401 PyObject * obj4 = 0 ;
36402 PyObject * obj5 = 0 ;
36403 char * kwnames[] = {
36404 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36405 };
36406
36407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36409 if (!SWIG_IsOK(res1)) {
36410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36411 }
36412 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36414 if (!SWIG_IsOK(res2)) {
36415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36416 }
36417 if (!argp2) {
36418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36419 }
36420 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36421 {
36422 arg3 = wxString_in_helper(obj2);
36423 if (arg3 == NULL) SWIG_fail;
36424 temp3 = true;
36425 }
36426 if (obj3) {
36427 ecode4 = SWIG_AsVal_int(obj3, &val4);
36428 if (!SWIG_IsOK(ecode4)) {
36429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36430 }
36431 arg4 = static_cast< int >(val4);
36432 }
36433 if (obj4) {
36434 ecode5 = SWIG_AsVal_int(obj4, &val5);
36435 if (!SWIG_IsOK(ecode5)) {
36436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36437 }
36438 arg5 = static_cast< int >(val5);
36439 }
36440 if (obj5) {
36441 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36442 if (!SWIG_IsOK(res6)) {
36443 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36444 }
36445 }
36446 {
36447 PyThreadState* __tstate = wxPyBeginAllowThreads();
36448 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36449 wxPyEndAllowThreads(__tstate);
36450 if (PyErr_Occurred()) SWIG_fail;
36451 }
36452 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36453 {
36454 if (temp3)
36455 delete arg3;
36456 }
36457 return resultobj;
36458 fail:
36459 {
36460 if (temp3)
36461 delete arg3;
36462 }
36463 return NULL;
36464 }
36465
36466
36467 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36468 PyObject *resultobj = 0;
36469 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36470 wxTreeItemId *arg2 = 0 ;
36471 wxTreeItemId *arg3 = 0 ;
36472 wxString *arg4 = 0 ;
36473 int arg5 = (int) -1 ;
36474 int arg6 = (int) -1 ;
36475 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36476 wxTreeItemId result;
36477 void *argp1 = 0 ;
36478 int res1 = 0 ;
36479 void *argp2 = 0 ;
36480 int res2 = 0 ;
36481 void *argp3 = 0 ;
36482 int res3 = 0 ;
36483 bool temp4 = false ;
36484 int val5 ;
36485 int ecode5 = 0 ;
36486 int val6 ;
36487 int ecode6 = 0 ;
36488 int res7 = 0 ;
36489 PyObject * obj0 = 0 ;
36490 PyObject * obj1 = 0 ;
36491 PyObject * obj2 = 0 ;
36492 PyObject * obj3 = 0 ;
36493 PyObject * obj4 = 0 ;
36494 PyObject * obj5 = 0 ;
36495 PyObject * obj6 = 0 ;
36496 char * kwnames[] = {
36497 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36498 };
36499
36500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) 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_InsertItem" "', 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_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36509 }
36510 if (!argp2) {
36511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36512 }
36513 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36514 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36515 if (!SWIG_IsOK(res3)) {
36516 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36517 }
36518 if (!argp3) {
36519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36520 }
36521 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36522 {
36523 arg4 = wxString_in_helper(obj3);
36524 if (arg4 == NULL) SWIG_fail;
36525 temp4 = true;
36526 }
36527 if (obj4) {
36528 ecode5 = SWIG_AsVal_int(obj4, &val5);
36529 if (!SWIG_IsOK(ecode5)) {
36530 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36531 }
36532 arg5 = static_cast< int >(val5);
36533 }
36534 if (obj5) {
36535 ecode6 = SWIG_AsVal_int(obj5, &val6);
36536 if (!SWIG_IsOK(ecode6)) {
36537 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36538 }
36539 arg6 = static_cast< int >(val6);
36540 }
36541 if (obj6) {
36542 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36543 if (!SWIG_IsOK(res7)) {
36544 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36545 }
36546 }
36547 {
36548 PyThreadState* __tstate = wxPyBeginAllowThreads();
36549 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36550 wxPyEndAllowThreads(__tstate);
36551 if (PyErr_Occurred()) SWIG_fail;
36552 }
36553 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36554 {
36555 if (temp4)
36556 delete arg4;
36557 }
36558 return resultobj;
36559 fail:
36560 {
36561 if (temp4)
36562 delete arg4;
36563 }
36564 return NULL;
36565 }
36566
36567
36568 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36569 PyObject *resultobj = 0;
36570 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36571 wxTreeItemId *arg2 = 0 ;
36572 size_t arg3 ;
36573 wxString *arg4 = 0 ;
36574 int arg5 = (int) -1 ;
36575 int arg6 = (int) -1 ;
36576 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36577 wxTreeItemId result;
36578 void *argp1 = 0 ;
36579 int res1 = 0 ;
36580 void *argp2 = 0 ;
36581 int res2 = 0 ;
36582 size_t val3 ;
36583 int ecode3 = 0 ;
36584 bool temp4 = false ;
36585 int val5 ;
36586 int ecode5 = 0 ;
36587 int val6 ;
36588 int ecode6 = 0 ;
36589 int res7 = 0 ;
36590 PyObject * obj0 = 0 ;
36591 PyObject * obj1 = 0 ;
36592 PyObject * obj2 = 0 ;
36593 PyObject * obj3 = 0 ;
36594 PyObject * obj4 = 0 ;
36595 PyObject * obj5 = 0 ;
36596 PyObject * obj6 = 0 ;
36597 char * kwnames[] = {
36598 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36599 };
36600
36601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36603 if (!SWIG_IsOK(res1)) {
36604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36605 }
36606 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36607 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36608 if (!SWIG_IsOK(res2)) {
36609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36610 }
36611 if (!argp2) {
36612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36613 }
36614 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36615 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36616 if (!SWIG_IsOK(ecode3)) {
36617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36618 }
36619 arg3 = static_cast< size_t >(val3);
36620 {
36621 arg4 = wxString_in_helper(obj3);
36622 if (arg4 == NULL) SWIG_fail;
36623 temp4 = true;
36624 }
36625 if (obj4) {
36626 ecode5 = SWIG_AsVal_int(obj4, &val5);
36627 if (!SWIG_IsOK(ecode5)) {
36628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36629 }
36630 arg5 = static_cast< int >(val5);
36631 }
36632 if (obj5) {
36633 ecode6 = SWIG_AsVal_int(obj5, &val6);
36634 if (!SWIG_IsOK(ecode6)) {
36635 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36636 }
36637 arg6 = static_cast< int >(val6);
36638 }
36639 if (obj6) {
36640 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36641 if (!SWIG_IsOK(res7)) {
36642 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36643 }
36644 }
36645 {
36646 PyThreadState* __tstate = wxPyBeginAllowThreads();
36647 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36648 wxPyEndAllowThreads(__tstate);
36649 if (PyErr_Occurred()) SWIG_fail;
36650 }
36651 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36652 {
36653 if (temp4)
36654 delete arg4;
36655 }
36656 return resultobj;
36657 fail:
36658 {
36659 if (temp4)
36660 delete arg4;
36661 }
36662 return NULL;
36663 }
36664
36665
36666 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36667 PyObject *resultobj = 0;
36668 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36669 wxTreeItemId *arg2 = 0 ;
36670 wxString *arg3 = 0 ;
36671 int arg4 = (int) -1 ;
36672 int arg5 = (int) -1 ;
36673 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36674 wxTreeItemId result;
36675 void *argp1 = 0 ;
36676 int res1 = 0 ;
36677 void *argp2 = 0 ;
36678 int res2 = 0 ;
36679 bool temp3 = false ;
36680 int val4 ;
36681 int ecode4 = 0 ;
36682 int val5 ;
36683 int ecode5 = 0 ;
36684 int res6 = 0 ;
36685 PyObject * obj0 = 0 ;
36686 PyObject * obj1 = 0 ;
36687 PyObject * obj2 = 0 ;
36688 PyObject * obj3 = 0 ;
36689 PyObject * obj4 = 0 ;
36690 PyObject * obj5 = 0 ;
36691 char * kwnames[] = {
36692 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36693 };
36694
36695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36697 if (!SWIG_IsOK(res1)) {
36698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36699 }
36700 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36702 if (!SWIG_IsOK(res2)) {
36703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36704 }
36705 if (!argp2) {
36706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36707 }
36708 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36709 {
36710 arg3 = wxString_in_helper(obj2);
36711 if (arg3 == NULL) SWIG_fail;
36712 temp3 = true;
36713 }
36714 if (obj3) {
36715 ecode4 = SWIG_AsVal_int(obj3, &val4);
36716 if (!SWIG_IsOK(ecode4)) {
36717 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36718 }
36719 arg4 = static_cast< int >(val4);
36720 }
36721 if (obj4) {
36722 ecode5 = SWIG_AsVal_int(obj4, &val5);
36723 if (!SWIG_IsOK(ecode5)) {
36724 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36725 }
36726 arg5 = static_cast< int >(val5);
36727 }
36728 if (obj5) {
36729 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36730 if (!SWIG_IsOK(res6)) {
36731 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36732 }
36733 }
36734 {
36735 PyThreadState* __tstate = wxPyBeginAllowThreads();
36736 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36737 wxPyEndAllowThreads(__tstate);
36738 if (PyErr_Occurred()) SWIG_fail;
36739 }
36740 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36741 {
36742 if (temp3)
36743 delete arg3;
36744 }
36745 return resultobj;
36746 fail:
36747 {
36748 if (temp3)
36749 delete arg3;
36750 }
36751 return NULL;
36752 }
36753
36754
36755 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36756 PyObject *resultobj = 0;
36757 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36758 wxTreeItemId *arg2 = 0 ;
36759 void *argp1 = 0 ;
36760 int res1 = 0 ;
36761 void *argp2 = 0 ;
36762 int res2 = 0 ;
36763 PyObject * obj0 = 0 ;
36764 PyObject * obj1 = 0 ;
36765 char * kwnames[] = {
36766 (char *) "self",(char *) "item", NULL
36767 };
36768
36769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36771 if (!SWIG_IsOK(res1)) {
36772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36773 }
36774 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36776 if (!SWIG_IsOK(res2)) {
36777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36778 }
36779 if (!argp2) {
36780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36781 }
36782 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36783 {
36784 PyThreadState* __tstate = wxPyBeginAllowThreads();
36785 (arg1)->Delete((wxTreeItemId const &)*arg2);
36786 wxPyEndAllowThreads(__tstate);
36787 if (PyErr_Occurred()) SWIG_fail;
36788 }
36789 resultobj = SWIG_Py_Void();
36790 return resultobj;
36791 fail:
36792 return NULL;
36793 }
36794
36795
36796 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36797 PyObject *resultobj = 0;
36798 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36799 wxTreeItemId *arg2 = 0 ;
36800 void *argp1 = 0 ;
36801 int res1 = 0 ;
36802 void *argp2 = 0 ;
36803 int res2 = 0 ;
36804 PyObject * obj0 = 0 ;
36805 PyObject * obj1 = 0 ;
36806 char * kwnames[] = {
36807 (char *) "self",(char *) "item", NULL
36808 };
36809
36810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36812 if (!SWIG_IsOK(res1)) {
36813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36814 }
36815 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36816 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36817 if (!SWIG_IsOK(res2)) {
36818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36819 }
36820 if (!argp2) {
36821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36822 }
36823 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36824 {
36825 PyThreadState* __tstate = wxPyBeginAllowThreads();
36826 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36827 wxPyEndAllowThreads(__tstate);
36828 if (PyErr_Occurred()) SWIG_fail;
36829 }
36830 resultobj = SWIG_Py_Void();
36831 return resultobj;
36832 fail:
36833 return NULL;
36834 }
36835
36836
36837 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36838 PyObject *resultobj = 0;
36839 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36840 void *argp1 = 0 ;
36841 int res1 = 0 ;
36842 PyObject *swig_obj[1] ;
36843
36844 if (!args) SWIG_fail;
36845 swig_obj[0] = args;
36846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36847 if (!SWIG_IsOK(res1)) {
36848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36849 }
36850 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36851 {
36852 PyThreadState* __tstate = wxPyBeginAllowThreads();
36853 (arg1)->DeleteAllItems();
36854 wxPyEndAllowThreads(__tstate);
36855 if (PyErr_Occurred()) SWIG_fail;
36856 }
36857 resultobj = SWIG_Py_Void();
36858 return resultobj;
36859 fail:
36860 return NULL;
36861 }
36862
36863
36864 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36865 PyObject *resultobj = 0;
36866 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36867 wxTreeItemId *arg2 = 0 ;
36868 void *argp1 = 0 ;
36869 int res1 = 0 ;
36870 void *argp2 = 0 ;
36871 int res2 = 0 ;
36872 PyObject * obj0 = 0 ;
36873 PyObject * obj1 = 0 ;
36874 char * kwnames[] = {
36875 (char *) "self",(char *) "item", NULL
36876 };
36877
36878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36880 if (!SWIG_IsOK(res1)) {
36881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36882 }
36883 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36885 if (!SWIG_IsOK(res2)) {
36886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36887 }
36888 if (!argp2) {
36889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36890 }
36891 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36892 {
36893 PyThreadState* __tstate = wxPyBeginAllowThreads();
36894 (arg1)->Expand((wxTreeItemId const &)*arg2);
36895 wxPyEndAllowThreads(__tstate);
36896 if (PyErr_Occurred()) SWIG_fail;
36897 }
36898 resultobj = SWIG_Py_Void();
36899 return resultobj;
36900 fail:
36901 return NULL;
36902 }
36903
36904
36905 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36906 PyObject *resultobj = 0;
36907 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36908 wxTreeItemId *arg2 = 0 ;
36909 void *argp1 = 0 ;
36910 int res1 = 0 ;
36911 void *argp2 = 0 ;
36912 int res2 = 0 ;
36913 PyObject * obj0 = 0 ;
36914 PyObject * obj1 = 0 ;
36915 char * kwnames[] = {
36916 (char *) "self",(char *) "item", NULL
36917 };
36918
36919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36921 if (!SWIG_IsOK(res1)) {
36922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36923 }
36924 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36925 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36926 if (!SWIG_IsOK(res2)) {
36927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36928 }
36929 if (!argp2) {
36930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36931 }
36932 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36933 {
36934 PyThreadState* __tstate = wxPyBeginAllowThreads();
36935 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36936 wxPyEndAllowThreads(__tstate);
36937 if (PyErr_Occurred()) SWIG_fail;
36938 }
36939 resultobj = SWIG_Py_Void();
36940 return resultobj;
36941 fail:
36942 return NULL;
36943 }
36944
36945
36946 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36947 PyObject *resultobj = 0;
36948 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36949 void *argp1 = 0 ;
36950 int res1 = 0 ;
36951 PyObject *swig_obj[1] ;
36952
36953 if (!args) SWIG_fail;
36954 swig_obj[0] = args;
36955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36956 if (!SWIG_IsOK(res1)) {
36957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36958 }
36959 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36960 {
36961 PyThreadState* __tstate = wxPyBeginAllowThreads();
36962 (arg1)->ExpandAll();
36963 wxPyEndAllowThreads(__tstate);
36964 if (PyErr_Occurred()) SWIG_fail;
36965 }
36966 resultobj = SWIG_Py_Void();
36967 return resultobj;
36968 fail:
36969 return NULL;
36970 }
36971
36972
36973 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36974 PyObject *resultobj = 0;
36975 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36976 wxTreeItemId *arg2 = 0 ;
36977 void *argp1 = 0 ;
36978 int res1 = 0 ;
36979 void *argp2 = 0 ;
36980 int res2 = 0 ;
36981 PyObject * obj0 = 0 ;
36982 PyObject * obj1 = 0 ;
36983 char * kwnames[] = {
36984 (char *) "self",(char *) "item", NULL
36985 };
36986
36987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36989 if (!SWIG_IsOK(res1)) {
36990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36991 }
36992 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36993 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36994 if (!SWIG_IsOK(res2)) {
36995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36996 }
36997 if (!argp2) {
36998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36999 }
37000 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37001 {
37002 PyThreadState* __tstate = wxPyBeginAllowThreads();
37003 (arg1)->Collapse((wxTreeItemId const &)*arg2);
37004 wxPyEndAllowThreads(__tstate);
37005 if (PyErr_Occurred()) SWIG_fail;
37006 }
37007 resultobj = SWIG_Py_Void();
37008 return resultobj;
37009 fail:
37010 return NULL;
37011 }
37012
37013
37014 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37015 PyObject *resultobj = 0;
37016 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37017 wxTreeItemId *arg2 = 0 ;
37018 void *argp1 = 0 ;
37019 int res1 = 0 ;
37020 void *argp2 = 0 ;
37021 int res2 = 0 ;
37022 PyObject * obj0 = 0 ;
37023 PyObject * obj1 = 0 ;
37024 char * kwnames[] = {
37025 (char *) "self",(char *) "item", NULL
37026 };
37027
37028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37030 if (!SWIG_IsOK(res1)) {
37031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37032 }
37033 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37034 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37035 if (!SWIG_IsOK(res2)) {
37036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37037 }
37038 if (!argp2) {
37039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37040 }
37041 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37042 {
37043 PyThreadState* __tstate = wxPyBeginAllowThreads();
37044 (arg1)->CollapseAllChildren((wxTreeItemId const &)*arg2);
37045 wxPyEndAllowThreads(__tstate);
37046 if (PyErr_Occurred()) SWIG_fail;
37047 }
37048 resultobj = SWIG_Py_Void();
37049 return resultobj;
37050 fail:
37051 return NULL;
37052 }
37053
37054
37055 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37056 PyObject *resultobj = 0;
37057 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37058 void *argp1 = 0 ;
37059 int res1 = 0 ;
37060 PyObject *swig_obj[1] ;
37061
37062 if (!args) SWIG_fail;
37063 swig_obj[0] = args;
37064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37065 if (!SWIG_IsOK(res1)) {
37066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37067 }
37068 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37069 {
37070 PyThreadState* __tstate = wxPyBeginAllowThreads();
37071 (arg1)->CollapseAll();
37072 wxPyEndAllowThreads(__tstate);
37073 if (PyErr_Occurred()) SWIG_fail;
37074 }
37075 resultobj = SWIG_Py_Void();
37076 return resultobj;
37077 fail:
37078 return NULL;
37079 }
37080
37081
37082 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37083 PyObject *resultobj = 0;
37084 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37085 wxTreeItemId *arg2 = 0 ;
37086 void *argp1 = 0 ;
37087 int res1 = 0 ;
37088 void *argp2 = 0 ;
37089 int res2 = 0 ;
37090 PyObject * obj0 = 0 ;
37091 PyObject * obj1 = 0 ;
37092 char * kwnames[] = {
37093 (char *) "self",(char *) "item", NULL
37094 };
37095
37096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
37097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37098 if (!SWIG_IsOK(res1)) {
37099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37100 }
37101 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37102 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37103 if (!SWIG_IsOK(res2)) {
37104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37105 }
37106 if (!argp2) {
37107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37108 }
37109 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37110 {
37111 PyThreadState* __tstate = wxPyBeginAllowThreads();
37112 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
37113 wxPyEndAllowThreads(__tstate);
37114 if (PyErr_Occurred()) SWIG_fail;
37115 }
37116 resultobj = SWIG_Py_Void();
37117 return resultobj;
37118 fail:
37119 return NULL;
37120 }
37121
37122
37123 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37124 PyObject *resultobj = 0;
37125 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37126 wxTreeItemId *arg2 = 0 ;
37127 void *argp1 = 0 ;
37128 int res1 = 0 ;
37129 void *argp2 = 0 ;
37130 int res2 = 0 ;
37131 PyObject * obj0 = 0 ;
37132 PyObject * obj1 = 0 ;
37133 char * kwnames[] = {
37134 (char *) "self",(char *) "item", NULL
37135 };
37136
37137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
37138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37139 if (!SWIG_IsOK(res1)) {
37140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37141 }
37142 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37143 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37144 if (!SWIG_IsOK(res2)) {
37145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37146 }
37147 if (!argp2) {
37148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37149 }
37150 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37151 {
37152 PyThreadState* __tstate = wxPyBeginAllowThreads();
37153 (arg1)->Toggle((wxTreeItemId const &)*arg2);
37154 wxPyEndAllowThreads(__tstate);
37155 if (PyErr_Occurred()) SWIG_fail;
37156 }
37157 resultobj = SWIG_Py_Void();
37158 return resultobj;
37159 fail:
37160 return NULL;
37161 }
37162
37163
37164 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37165 PyObject *resultobj = 0;
37166 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37167 void *argp1 = 0 ;
37168 int res1 = 0 ;
37169 PyObject *swig_obj[1] ;
37170
37171 if (!args) SWIG_fail;
37172 swig_obj[0] = args;
37173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37174 if (!SWIG_IsOK(res1)) {
37175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37176 }
37177 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37178 {
37179 PyThreadState* __tstate = wxPyBeginAllowThreads();
37180 (arg1)->Unselect();
37181 wxPyEndAllowThreads(__tstate);
37182 if (PyErr_Occurred()) SWIG_fail;
37183 }
37184 resultobj = SWIG_Py_Void();
37185 return resultobj;
37186 fail:
37187 return NULL;
37188 }
37189
37190
37191 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37192 PyObject *resultobj = 0;
37193 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37194 wxTreeItemId *arg2 = 0 ;
37195 void *argp1 = 0 ;
37196 int res1 = 0 ;
37197 void *argp2 = 0 ;
37198 int res2 = 0 ;
37199 PyObject * obj0 = 0 ;
37200 PyObject * obj1 = 0 ;
37201 char * kwnames[] = {
37202 (char *) "self",(char *) "item", NULL
37203 };
37204
37205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
37206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37207 if (!SWIG_IsOK(res1)) {
37208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37209 }
37210 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37212 if (!SWIG_IsOK(res2)) {
37213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37214 }
37215 if (!argp2) {
37216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37217 }
37218 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37219 {
37220 PyThreadState* __tstate = wxPyBeginAllowThreads();
37221 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
37222 wxPyEndAllowThreads(__tstate);
37223 if (PyErr_Occurred()) SWIG_fail;
37224 }
37225 resultobj = SWIG_Py_Void();
37226 return resultobj;
37227 fail:
37228 return NULL;
37229 }
37230
37231
37232 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37233 PyObject *resultobj = 0;
37234 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37235 void *argp1 = 0 ;
37236 int res1 = 0 ;
37237 PyObject *swig_obj[1] ;
37238
37239 if (!args) SWIG_fail;
37240 swig_obj[0] = args;
37241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37242 if (!SWIG_IsOK(res1)) {
37243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37244 }
37245 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37246 {
37247 PyThreadState* __tstate = wxPyBeginAllowThreads();
37248 (arg1)->UnselectAll();
37249 wxPyEndAllowThreads(__tstate);
37250 if (PyErr_Occurred()) SWIG_fail;
37251 }
37252 resultobj = SWIG_Py_Void();
37253 return resultobj;
37254 fail:
37255 return NULL;
37256 }
37257
37258
37259 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37260 PyObject *resultobj = 0;
37261 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37262 wxTreeItemId *arg2 = 0 ;
37263 bool arg3 = (bool) true ;
37264 void *argp1 = 0 ;
37265 int res1 = 0 ;
37266 void *argp2 = 0 ;
37267 int res2 = 0 ;
37268 bool val3 ;
37269 int ecode3 = 0 ;
37270 PyObject * obj0 = 0 ;
37271 PyObject * obj1 = 0 ;
37272 PyObject * obj2 = 0 ;
37273 char * kwnames[] = {
37274 (char *) "self",(char *) "item",(char *) "select", NULL
37275 };
37276
37277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37279 if (!SWIG_IsOK(res1)) {
37280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37281 }
37282 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37284 if (!SWIG_IsOK(res2)) {
37285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37286 }
37287 if (!argp2) {
37288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37289 }
37290 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37291 if (obj2) {
37292 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37293 if (!SWIG_IsOK(ecode3)) {
37294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37295 }
37296 arg3 = static_cast< bool >(val3);
37297 }
37298 {
37299 PyThreadState* __tstate = wxPyBeginAllowThreads();
37300 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37301 wxPyEndAllowThreads(__tstate);
37302 if (PyErr_Occurred()) SWIG_fail;
37303 }
37304 resultobj = SWIG_Py_Void();
37305 return resultobj;
37306 fail:
37307 return NULL;
37308 }
37309
37310
37311 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37312 PyObject *resultobj = 0;
37313 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37314 wxTreeItemId *arg2 = 0 ;
37315 void *argp1 = 0 ;
37316 int res1 = 0 ;
37317 void *argp2 = 0 ;
37318 int res2 = 0 ;
37319 PyObject * obj0 = 0 ;
37320 PyObject * obj1 = 0 ;
37321 char * kwnames[] = {
37322 (char *) "self",(char *) "item", NULL
37323 };
37324
37325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37327 if (!SWIG_IsOK(res1)) {
37328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37329 }
37330 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37332 if (!SWIG_IsOK(res2)) {
37333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37334 }
37335 if (!argp2) {
37336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37337 }
37338 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37339 {
37340 PyThreadState* __tstate = wxPyBeginAllowThreads();
37341 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37342 wxPyEndAllowThreads(__tstate);
37343 if (PyErr_Occurred()) SWIG_fail;
37344 }
37345 resultobj = SWIG_Py_Void();
37346 return resultobj;
37347 fail:
37348 return NULL;
37349 }
37350
37351
37352 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37353 PyObject *resultobj = 0;
37354 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37355 wxTreeItemId *arg2 = 0 ;
37356 void *argp1 = 0 ;
37357 int res1 = 0 ;
37358 void *argp2 = 0 ;
37359 int res2 = 0 ;
37360 PyObject * obj0 = 0 ;
37361 PyObject * obj1 = 0 ;
37362 char * kwnames[] = {
37363 (char *) "self",(char *) "item", NULL
37364 };
37365
37366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37368 if (!SWIG_IsOK(res1)) {
37369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37370 }
37371 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37373 if (!SWIG_IsOK(res2)) {
37374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37375 }
37376 if (!argp2) {
37377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37378 }
37379 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37380 {
37381 PyThreadState* __tstate = wxPyBeginAllowThreads();
37382 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37383 wxPyEndAllowThreads(__tstate);
37384 if (PyErr_Occurred()) SWIG_fail;
37385 }
37386 resultobj = SWIG_Py_Void();
37387 return resultobj;
37388 fail:
37389 return NULL;
37390 }
37391
37392
37393 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37394 PyObject *resultobj = 0;
37395 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37396 wxTreeItemId *arg2 = 0 ;
37397 void *argp1 = 0 ;
37398 int res1 = 0 ;
37399 void *argp2 = 0 ;
37400 int res2 = 0 ;
37401 PyObject * obj0 = 0 ;
37402 PyObject * obj1 = 0 ;
37403 char * kwnames[] = {
37404 (char *) "self",(char *) "item", NULL
37405 };
37406
37407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37409 if (!SWIG_IsOK(res1)) {
37410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37411 }
37412 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37414 if (!SWIG_IsOK(res2)) {
37415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37416 }
37417 if (!argp2) {
37418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37419 }
37420 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37421 {
37422 PyThreadState* __tstate = wxPyBeginAllowThreads();
37423 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37424 wxPyEndAllowThreads(__tstate);
37425 if (PyErr_Occurred()) SWIG_fail;
37426 }
37427 resultobj = SWIG_Py_Void();
37428 return resultobj;
37429 fail:
37430 return NULL;
37431 }
37432
37433
37434 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37435 PyObject *resultobj = 0;
37436 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37437 wxTreeItemId *arg2 = 0 ;
37438 void *argp1 = 0 ;
37439 int res1 = 0 ;
37440 void *argp2 = 0 ;
37441 int res2 = 0 ;
37442 PyObject * obj0 = 0 ;
37443 PyObject * obj1 = 0 ;
37444 char * kwnames[] = {
37445 (char *) "self",(char *) "item", NULL
37446 };
37447
37448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37450 if (!SWIG_IsOK(res1)) {
37451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37452 }
37453 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37454 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37455 if (!SWIG_IsOK(res2)) {
37456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37457 }
37458 if (!argp2) {
37459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37460 }
37461 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37462 {
37463 PyThreadState* __tstate = wxPyBeginAllowThreads();
37464 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37465 wxPyEndAllowThreads(__tstate);
37466 if (PyErr_Occurred()) SWIG_fail;
37467 }
37468 resultobj = SWIG_Py_Void();
37469 return resultobj;
37470 fail:
37471 return NULL;
37472 }
37473
37474
37475 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37476 PyObject *resultobj = 0;
37477 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37478 wxTextCtrl *result = 0 ;
37479 void *argp1 = 0 ;
37480 int res1 = 0 ;
37481 PyObject *swig_obj[1] ;
37482
37483 if (!args) SWIG_fail;
37484 swig_obj[0] = args;
37485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37486 if (!SWIG_IsOK(res1)) {
37487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37488 }
37489 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37490 {
37491 PyThreadState* __tstate = wxPyBeginAllowThreads();
37492 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37493 wxPyEndAllowThreads(__tstate);
37494 if (PyErr_Occurred()) SWIG_fail;
37495 }
37496 {
37497 resultobj = wxPyMake_wxObject(result, 0);
37498 }
37499 return resultobj;
37500 fail:
37501 return NULL;
37502 }
37503
37504
37505 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37506 PyObject *resultobj = 0;
37507 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37508 wxTreeItemId *arg2 = 0 ;
37509 void *argp1 = 0 ;
37510 int res1 = 0 ;
37511 void *argp2 = 0 ;
37512 int res2 = 0 ;
37513 PyObject * obj0 = 0 ;
37514 PyObject * obj1 = 0 ;
37515 char * kwnames[] = {
37516 (char *) "self",(char *) "item", NULL
37517 };
37518
37519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37521 if (!SWIG_IsOK(res1)) {
37522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37523 }
37524 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37525 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37526 if (!SWIG_IsOK(res2)) {
37527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37528 }
37529 if (!argp2) {
37530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37531 }
37532 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37533 {
37534 PyThreadState* __tstate = wxPyBeginAllowThreads();
37535 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37536 wxPyEndAllowThreads(__tstate);
37537 if (PyErr_Occurred()) SWIG_fail;
37538 }
37539 resultobj = SWIG_Py_Void();
37540 return resultobj;
37541 fail:
37542 return NULL;
37543 }
37544
37545
37546 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37547 PyObject *resultobj = 0;
37548 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37549 wxPoint *arg2 = 0 ;
37550 int *arg3 = 0 ;
37551 wxTreeItemId result;
37552 void *argp1 = 0 ;
37553 int res1 = 0 ;
37554 wxPoint temp2 ;
37555 int temp3 ;
37556 int res3 = SWIG_TMPOBJ ;
37557 PyObject * obj0 = 0 ;
37558 PyObject * obj1 = 0 ;
37559 char * kwnames[] = {
37560 (char *) "self",(char *) "point", NULL
37561 };
37562
37563 arg3 = &temp3;
37564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37566 if (!SWIG_IsOK(res1)) {
37567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37568 }
37569 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37570 {
37571 arg2 = &temp2;
37572 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37573 }
37574 {
37575 PyThreadState* __tstate = wxPyBeginAllowThreads();
37576 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37577 wxPyEndAllowThreads(__tstate);
37578 if (PyErr_Occurred()) SWIG_fail;
37579 }
37580 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37581 if (SWIG_IsTmpObj(res3)) {
37582 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37583 } else {
37584 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37585 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37586 }
37587 return resultobj;
37588 fail:
37589 return NULL;
37590 }
37591
37592
37593 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37594 PyObject *resultobj = 0;
37595 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37596 wxTreeItemId *arg2 = 0 ;
37597 bool arg3 = (bool) false ;
37598 PyObject *result = 0 ;
37599 void *argp1 = 0 ;
37600 int res1 = 0 ;
37601 void *argp2 = 0 ;
37602 int res2 = 0 ;
37603 bool val3 ;
37604 int ecode3 = 0 ;
37605 PyObject * obj0 = 0 ;
37606 PyObject * obj1 = 0 ;
37607 PyObject * obj2 = 0 ;
37608 char * kwnames[] = {
37609 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37610 };
37611
37612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37614 if (!SWIG_IsOK(res1)) {
37615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37616 }
37617 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37619 if (!SWIG_IsOK(res2)) {
37620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37621 }
37622 if (!argp2) {
37623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37624 }
37625 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37626 if (obj2) {
37627 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37628 if (!SWIG_IsOK(ecode3)) {
37629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37630 }
37631 arg3 = static_cast< bool >(val3);
37632 }
37633 {
37634 PyThreadState* __tstate = wxPyBeginAllowThreads();
37635 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37636 wxPyEndAllowThreads(__tstate);
37637 if (PyErr_Occurred()) SWIG_fail;
37638 }
37639 resultobj = result;
37640 return resultobj;
37641 fail:
37642 return NULL;
37643 }
37644
37645
37646 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37647 PyObject *resultobj = 0;
37648 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37649 SwigValueWrapper<wxVisualAttributes > result;
37650 int val1 ;
37651 int ecode1 = 0 ;
37652 PyObject * obj0 = 0 ;
37653 char * kwnames[] = {
37654 (char *) "variant", NULL
37655 };
37656
37657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37658 if (obj0) {
37659 ecode1 = SWIG_AsVal_int(obj0, &val1);
37660 if (!SWIG_IsOK(ecode1)) {
37661 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37662 }
37663 arg1 = static_cast< wxWindowVariant >(val1);
37664 }
37665 {
37666 if (!wxPyCheckForApp()) SWIG_fail;
37667 PyThreadState* __tstate = wxPyBeginAllowThreads();
37668 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37669 wxPyEndAllowThreads(__tstate);
37670 if (PyErr_Occurred()) SWIG_fail;
37671 }
37672 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37673 return resultobj;
37674 fail:
37675 return NULL;
37676 }
37677
37678
37679 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37680 PyObject *resultobj = 0;
37681 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37682 bool arg2 ;
37683 void *argp1 = 0 ;
37684 int res1 = 0 ;
37685 bool val2 ;
37686 int ecode2 = 0 ;
37687 PyObject * obj0 = 0 ;
37688 PyObject * obj1 = 0 ;
37689 char * kwnames[] = {
37690 (char *) "self",(char *) "q", NULL
37691 };
37692
37693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37695 if (!SWIG_IsOK(res1)) {
37696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37697 }
37698 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37699 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37700 if (!SWIG_IsOK(ecode2)) {
37701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37702 }
37703 arg2 = static_cast< bool >(val2);
37704 {
37705 PyThreadState* __tstate = wxPyBeginAllowThreads();
37706 (arg1)->SetQuickBestSize(arg2);
37707 wxPyEndAllowThreads(__tstate);
37708 if (PyErr_Occurred()) SWIG_fail;
37709 }
37710 resultobj = SWIG_Py_Void();
37711 return resultobj;
37712 fail:
37713 return NULL;
37714 }
37715
37716
37717 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37718 PyObject *resultobj = 0;
37719 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37720 bool result;
37721 void *argp1 = 0 ;
37722 int res1 = 0 ;
37723 PyObject *swig_obj[1] ;
37724
37725 if (!args) SWIG_fail;
37726 swig_obj[0] = args;
37727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37728 if (!SWIG_IsOK(res1)) {
37729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37730 }
37731 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37732 {
37733 PyThreadState* __tstate = wxPyBeginAllowThreads();
37734 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37735 wxPyEndAllowThreads(__tstate);
37736 if (PyErr_Occurred()) SWIG_fail;
37737 }
37738 {
37739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37740 }
37741 return resultobj;
37742 fail:
37743 return NULL;
37744 }
37745
37746
37747 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37748 PyObject *obj;
37749 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37750 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37751 return SWIG_Py_Void();
37752 }
37753
37754 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37755 return SWIG_Python_InitShadowInstance(args);
37756 }
37757
37758 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37759 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37760 return 1;
37761 }
37762
37763
37764 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37765 PyObject *pyobj = 0;
37766
37767 {
37768 #if wxUSE_UNICODE
37769 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37770 #else
37771 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37772 #endif
37773 }
37774 return pyobj;
37775 }
37776
37777
37778 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37779 PyObject *resultobj = 0;
37780 wxWindow *arg1 = (wxWindow *) 0 ;
37781 int arg2 = (int) (int)-1 ;
37782 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37783 wxString *arg3 = (wxString *) &arg3_defvalue ;
37784 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37785 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37786 wxSize const &arg5_defvalue = wxDefaultSize ;
37787 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37788 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37789 wxString const &arg7_defvalue = wxPyEmptyString ;
37790 wxString *arg7 = (wxString *) &arg7_defvalue ;
37791 int arg8 = (int) 0 ;
37792 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37793 wxString *arg9 = (wxString *) &arg9_defvalue ;
37794 wxGenericDirCtrl *result = 0 ;
37795 void *argp1 = 0 ;
37796 int res1 = 0 ;
37797 int val2 ;
37798 int ecode2 = 0 ;
37799 bool temp3 = false ;
37800 wxPoint temp4 ;
37801 wxSize temp5 ;
37802 long val6 ;
37803 int ecode6 = 0 ;
37804 bool temp7 = false ;
37805 int val8 ;
37806 int ecode8 = 0 ;
37807 bool temp9 = false ;
37808 PyObject * obj0 = 0 ;
37809 PyObject * obj1 = 0 ;
37810 PyObject * obj2 = 0 ;
37811 PyObject * obj3 = 0 ;
37812 PyObject * obj4 = 0 ;
37813 PyObject * obj5 = 0 ;
37814 PyObject * obj6 = 0 ;
37815 PyObject * obj7 = 0 ;
37816 PyObject * obj8 = 0 ;
37817 char * kwnames[] = {
37818 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37819 };
37820
37821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37823 if (!SWIG_IsOK(res1)) {
37824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37825 }
37826 arg1 = reinterpret_cast< wxWindow * >(argp1);
37827 if (obj1) {
37828 ecode2 = SWIG_AsVal_int(obj1, &val2);
37829 if (!SWIG_IsOK(ecode2)) {
37830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37831 }
37832 arg2 = static_cast< int >(val2);
37833 }
37834 if (obj2) {
37835 {
37836 arg3 = wxString_in_helper(obj2);
37837 if (arg3 == NULL) SWIG_fail;
37838 temp3 = true;
37839 }
37840 }
37841 if (obj3) {
37842 {
37843 arg4 = &temp4;
37844 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37845 }
37846 }
37847 if (obj4) {
37848 {
37849 arg5 = &temp5;
37850 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37851 }
37852 }
37853 if (obj5) {
37854 ecode6 = SWIG_AsVal_long(obj5, &val6);
37855 if (!SWIG_IsOK(ecode6)) {
37856 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37857 }
37858 arg6 = static_cast< long >(val6);
37859 }
37860 if (obj6) {
37861 {
37862 arg7 = wxString_in_helper(obj6);
37863 if (arg7 == NULL) SWIG_fail;
37864 temp7 = true;
37865 }
37866 }
37867 if (obj7) {
37868 ecode8 = SWIG_AsVal_int(obj7, &val8);
37869 if (!SWIG_IsOK(ecode8)) {
37870 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37871 }
37872 arg8 = static_cast< int >(val8);
37873 }
37874 if (obj8) {
37875 {
37876 arg9 = wxString_in_helper(obj8);
37877 if (arg9 == NULL) SWIG_fail;
37878 temp9 = true;
37879 }
37880 }
37881 {
37882 if (!wxPyCheckForApp()) SWIG_fail;
37883 PyThreadState* __tstate = wxPyBeginAllowThreads();
37884 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37885 wxPyEndAllowThreads(__tstate);
37886 if (PyErr_Occurred()) SWIG_fail;
37887 }
37888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37889 {
37890 if (temp3)
37891 delete arg3;
37892 }
37893 {
37894 if (temp7)
37895 delete arg7;
37896 }
37897 {
37898 if (temp9)
37899 delete arg9;
37900 }
37901 return resultobj;
37902 fail:
37903 {
37904 if (temp3)
37905 delete arg3;
37906 }
37907 {
37908 if (temp7)
37909 delete arg7;
37910 }
37911 {
37912 if (temp9)
37913 delete arg9;
37914 }
37915 return NULL;
37916 }
37917
37918
37919 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37920 PyObject *resultobj = 0;
37921 wxGenericDirCtrl *result = 0 ;
37922
37923 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37924 {
37925 if (!wxPyCheckForApp()) SWIG_fail;
37926 PyThreadState* __tstate = wxPyBeginAllowThreads();
37927 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37928 wxPyEndAllowThreads(__tstate);
37929 if (PyErr_Occurred()) SWIG_fail;
37930 }
37931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37932 return resultobj;
37933 fail:
37934 return NULL;
37935 }
37936
37937
37938 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37939 PyObject *resultobj = 0;
37940 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37941 wxWindow *arg2 = (wxWindow *) 0 ;
37942 int arg3 = (int) (int)-1 ;
37943 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37944 wxString *arg4 = (wxString *) &arg4_defvalue ;
37945 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37946 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37947 wxSize const &arg6_defvalue = wxDefaultSize ;
37948 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37949 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37950 wxString const &arg8_defvalue = wxPyEmptyString ;
37951 wxString *arg8 = (wxString *) &arg8_defvalue ;
37952 int arg9 = (int) 0 ;
37953 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37954 wxString *arg10 = (wxString *) &arg10_defvalue ;
37955 bool result;
37956 void *argp1 = 0 ;
37957 int res1 = 0 ;
37958 void *argp2 = 0 ;
37959 int res2 = 0 ;
37960 int val3 ;
37961 int ecode3 = 0 ;
37962 bool temp4 = false ;
37963 wxPoint temp5 ;
37964 wxSize temp6 ;
37965 long val7 ;
37966 int ecode7 = 0 ;
37967 bool temp8 = false ;
37968 int val9 ;
37969 int ecode9 = 0 ;
37970 bool temp10 = false ;
37971 PyObject * obj0 = 0 ;
37972 PyObject * obj1 = 0 ;
37973 PyObject * obj2 = 0 ;
37974 PyObject * obj3 = 0 ;
37975 PyObject * obj4 = 0 ;
37976 PyObject * obj5 = 0 ;
37977 PyObject * obj6 = 0 ;
37978 PyObject * obj7 = 0 ;
37979 PyObject * obj8 = 0 ;
37980 PyObject * obj9 = 0 ;
37981 char * kwnames[] = {
37982 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37983 };
37984
37985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37987 if (!SWIG_IsOK(res1)) {
37988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37989 }
37990 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37991 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37992 if (!SWIG_IsOK(res2)) {
37993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37994 }
37995 arg2 = reinterpret_cast< wxWindow * >(argp2);
37996 if (obj2) {
37997 ecode3 = SWIG_AsVal_int(obj2, &val3);
37998 if (!SWIG_IsOK(ecode3)) {
37999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38000 }
38001 arg3 = static_cast< int >(val3);
38002 }
38003 if (obj3) {
38004 {
38005 arg4 = wxString_in_helper(obj3);
38006 if (arg4 == NULL) SWIG_fail;
38007 temp4 = true;
38008 }
38009 }
38010 if (obj4) {
38011 {
38012 arg5 = &temp5;
38013 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
38014 }
38015 }
38016 if (obj5) {
38017 {
38018 arg6 = &temp6;
38019 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
38020 }
38021 }
38022 if (obj6) {
38023 ecode7 = SWIG_AsVal_long(obj6, &val7);
38024 if (!SWIG_IsOK(ecode7)) {
38025 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
38026 }
38027 arg7 = static_cast< long >(val7);
38028 }
38029 if (obj7) {
38030 {
38031 arg8 = wxString_in_helper(obj7);
38032 if (arg8 == NULL) SWIG_fail;
38033 temp8 = true;
38034 }
38035 }
38036 if (obj8) {
38037 ecode9 = SWIG_AsVal_int(obj8, &val9);
38038 if (!SWIG_IsOK(ecode9)) {
38039 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
38040 }
38041 arg9 = static_cast< int >(val9);
38042 }
38043 if (obj9) {
38044 {
38045 arg10 = wxString_in_helper(obj9);
38046 if (arg10 == NULL) SWIG_fail;
38047 temp10 = true;
38048 }
38049 }
38050 {
38051 PyThreadState* __tstate = wxPyBeginAllowThreads();
38052 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
38053 wxPyEndAllowThreads(__tstate);
38054 if (PyErr_Occurred()) SWIG_fail;
38055 }
38056 {
38057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38058 }
38059 {
38060 if (temp4)
38061 delete arg4;
38062 }
38063 {
38064 if (temp8)
38065 delete arg8;
38066 }
38067 {
38068 if (temp10)
38069 delete arg10;
38070 }
38071 return resultobj;
38072 fail:
38073 {
38074 if (temp4)
38075 delete arg4;
38076 }
38077 {
38078 if (temp8)
38079 delete arg8;
38080 }
38081 {
38082 if (temp10)
38083 delete arg10;
38084 }
38085 return NULL;
38086 }
38087
38088
38089 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38090 PyObject *resultobj = 0;
38091 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38092 wxString *arg2 = 0 ;
38093 bool result;
38094 void *argp1 = 0 ;
38095 int res1 = 0 ;
38096 bool temp2 = false ;
38097 PyObject * obj0 = 0 ;
38098 PyObject * obj1 = 0 ;
38099 char * kwnames[] = {
38100 (char *) "self",(char *) "path", NULL
38101 };
38102
38103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
38104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38105 if (!SWIG_IsOK(res1)) {
38106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38107 }
38108 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38109 {
38110 arg2 = wxString_in_helper(obj1);
38111 if (arg2 == NULL) SWIG_fail;
38112 temp2 = true;
38113 }
38114 {
38115 PyThreadState* __tstate = wxPyBeginAllowThreads();
38116 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
38117 wxPyEndAllowThreads(__tstate);
38118 if (PyErr_Occurred()) SWIG_fail;
38119 }
38120 {
38121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38122 }
38123 {
38124 if (temp2)
38125 delete arg2;
38126 }
38127 return resultobj;
38128 fail:
38129 {
38130 if (temp2)
38131 delete arg2;
38132 }
38133 return NULL;
38134 }
38135
38136
38137 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38138 PyObject *resultobj = 0;
38139 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38140 wxString *arg2 = 0 ;
38141 bool result;
38142 void *argp1 = 0 ;
38143 int res1 = 0 ;
38144 bool temp2 = false ;
38145 PyObject * obj0 = 0 ;
38146 PyObject * obj1 = 0 ;
38147 char * kwnames[] = {
38148 (char *) "self",(char *) "path", NULL
38149 };
38150
38151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
38152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38153 if (!SWIG_IsOK(res1)) {
38154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38155 }
38156 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38157 {
38158 arg2 = wxString_in_helper(obj1);
38159 if (arg2 == NULL) SWIG_fail;
38160 temp2 = true;
38161 }
38162 {
38163 PyThreadState* __tstate = wxPyBeginAllowThreads();
38164 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
38165 wxPyEndAllowThreads(__tstate);
38166 if (PyErr_Occurred()) SWIG_fail;
38167 }
38168 {
38169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38170 }
38171 {
38172 if (temp2)
38173 delete arg2;
38174 }
38175 return resultobj;
38176 fail:
38177 {
38178 if (temp2)
38179 delete arg2;
38180 }
38181 return NULL;
38182 }
38183
38184
38185 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38186 PyObject *resultobj = 0;
38187 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38188 wxString result;
38189 void *argp1 = 0 ;
38190 int res1 = 0 ;
38191 PyObject *swig_obj[1] ;
38192
38193 if (!args) SWIG_fail;
38194 swig_obj[0] = args;
38195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38196 if (!SWIG_IsOK(res1)) {
38197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38198 }
38199 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38200 {
38201 PyThreadState* __tstate = wxPyBeginAllowThreads();
38202 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
38203 wxPyEndAllowThreads(__tstate);
38204 if (PyErr_Occurred()) SWIG_fail;
38205 }
38206 {
38207 #if wxUSE_UNICODE
38208 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38209 #else
38210 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38211 #endif
38212 }
38213 return resultobj;
38214 fail:
38215 return NULL;
38216 }
38217
38218
38219 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38220 PyObject *resultobj = 0;
38221 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38222 wxString *arg2 = 0 ;
38223 void *argp1 = 0 ;
38224 int res1 = 0 ;
38225 bool temp2 = false ;
38226 PyObject * obj0 = 0 ;
38227 PyObject * obj1 = 0 ;
38228 char * kwnames[] = {
38229 (char *) "self",(char *) "path", NULL
38230 };
38231
38232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
38233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38234 if (!SWIG_IsOK(res1)) {
38235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38236 }
38237 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38238 {
38239 arg2 = wxString_in_helper(obj1);
38240 if (arg2 == NULL) SWIG_fail;
38241 temp2 = true;
38242 }
38243 {
38244 PyThreadState* __tstate = wxPyBeginAllowThreads();
38245 (arg1)->SetDefaultPath((wxString const &)*arg2);
38246 wxPyEndAllowThreads(__tstate);
38247 if (PyErr_Occurred()) SWIG_fail;
38248 }
38249 resultobj = SWIG_Py_Void();
38250 {
38251 if (temp2)
38252 delete arg2;
38253 }
38254 return resultobj;
38255 fail:
38256 {
38257 if (temp2)
38258 delete arg2;
38259 }
38260 return NULL;
38261 }
38262
38263
38264 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38265 PyObject *resultobj = 0;
38266 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38267 wxString result;
38268 void *argp1 = 0 ;
38269 int res1 = 0 ;
38270 PyObject *swig_obj[1] ;
38271
38272 if (!args) SWIG_fail;
38273 swig_obj[0] = args;
38274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38275 if (!SWIG_IsOK(res1)) {
38276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38277 }
38278 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38279 {
38280 PyThreadState* __tstate = wxPyBeginAllowThreads();
38281 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38282 wxPyEndAllowThreads(__tstate);
38283 if (PyErr_Occurred()) SWIG_fail;
38284 }
38285 {
38286 #if wxUSE_UNICODE
38287 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38288 #else
38289 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38290 #endif
38291 }
38292 return resultobj;
38293 fail:
38294 return NULL;
38295 }
38296
38297
38298 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38299 PyObject *resultobj = 0;
38300 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38301 wxString result;
38302 void *argp1 = 0 ;
38303 int res1 = 0 ;
38304 PyObject *swig_obj[1] ;
38305
38306 if (!args) SWIG_fail;
38307 swig_obj[0] = args;
38308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38309 if (!SWIG_IsOK(res1)) {
38310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38311 }
38312 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38313 {
38314 PyThreadState* __tstate = wxPyBeginAllowThreads();
38315 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38316 wxPyEndAllowThreads(__tstate);
38317 if (PyErr_Occurred()) SWIG_fail;
38318 }
38319 {
38320 #if wxUSE_UNICODE
38321 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38322 #else
38323 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38324 #endif
38325 }
38326 return resultobj;
38327 fail:
38328 return NULL;
38329 }
38330
38331
38332 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38333 PyObject *resultobj = 0;
38334 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38335 wxString *arg2 = 0 ;
38336 void *argp1 = 0 ;
38337 int res1 = 0 ;
38338 bool temp2 = false ;
38339 PyObject * obj0 = 0 ;
38340 PyObject * obj1 = 0 ;
38341 char * kwnames[] = {
38342 (char *) "self",(char *) "path", NULL
38343 };
38344
38345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38347 if (!SWIG_IsOK(res1)) {
38348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38349 }
38350 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38351 {
38352 arg2 = wxString_in_helper(obj1);
38353 if (arg2 == NULL) SWIG_fail;
38354 temp2 = true;
38355 }
38356 {
38357 PyThreadState* __tstate = wxPyBeginAllowThreads();
38358 (arg1)->SetPath((wxString const &)*arg2);
38359 wxPyEndAllowThreads(__tstate);
38360 if (PyErr_Occurred()) SWIG_fail;
38361 }
38362 resultobj = SWIG_Py_Void();
38363 {
38364 if (temp2)
38365 delete arg2;
38366 }
38367 return resultobj;
38368 fail:
38369 {
38370 if (temp2)
38371 delete arg2;
38372 }
38373 return NULL;
38374 }
38375
38376
38377 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38378 PyObject *resultobj = 0;
38379 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38380 bool arg2 ;
38381 void *argp1 = 0 ;
38382 int res1 = 0 ;
38383 bool val2 ;
38384 int ecode2 = 0 ;
38385 PyObject * obj0 = 0 ;
38386 PyObject * obj1 = 0 ;
38387 char * kwnames[] = {
38388 (char *) "self",(char *) "show", NULL
38389 };
38390
38391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38393 if (!SWIG_IsOK(res1)) {
38394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38395 }
38396 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38397 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38398 if (!SWIG_IsOK(ecode2)) {
38399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38400 }
38401 arg2 = static_cast< bool >(val2);
38402 {
38403 PyThreadState* __tstate = wxPyBeginAllowThreads();
38404 (arg1)->ShowHidden(arg2);
38405 wxPyEndAllowThreads(__tstate);
38406 if (PyErr_Occurred()) SWIG_fail;
38407 }
38408 resultobj = SWIG_Py_Void();
38409 return resultobj;
38410 fail:
38411 return NULL;
38412 }
38413
38414
38415 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38416 PyObject *resultobj = 0;
38417 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38418 bool result;
38419 void *argp1 = 0 ;
38420 int res1 = 0 ;
38421 PyObject *swig_obj[1] ;
38422
38423 if (!args) SWIG_fail;
38424 swig_obj[0] = args;
38425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38426 if (!SWIG_IsOK(res1)) {
38427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38428 }
38429 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38430 {
38431 PyThreadState* __tstate = wxPyBeginAllowThreads();
38432 result = (bool)(arg1)->GetShowHidden();
38433 wxPyEndAllowThreads(__tstate);
38434 if (PyErr_Occurred()) SWIG_fail;
38435 }
38436 {
38437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38438 }
38439 return resultobj;
38440 fail:
38441 return NULL;
38442 }
38443
38444
38445 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38446 PyObject *resultobj = 0;
38447 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38448 wxString result;
38449 void *argp1 = 0 ;
38450 int res1 = 0 ;
38451 PyObject *swig_obj[1] ;
38452
38453 if (!args) SWIG_fail;
38454 swig_obj[0] = args;
38455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38456 if (!SWIG_IsOK(res1)) {
38457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38458 }
38459 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38460 {
38461 PyThreadState* __tstate = wxPyBeginAllowThreads();
38462 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38463 wxPyEndAllowThreads(__tstate);
38464 if (PyErr_Occurred()) SWIG_fail;
38465 }
38466 {
38467 #if wxUSE_UNICODE
38468 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38469 #else
38470 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38471 #endif
38472 }
38473 return resultobj;
38474 fail:
38475 return NULL;
38476 }
38477
38478
38479 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38480 PyObject *resultobj = 0;
38481 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38482 wxString *arg2 = 0 ;
38483 void *argp1 = 0 ;
38484 int res1 = 0 ;
38485 bool temp2 = false ;
38486 PyObject * obj0 = 0 ;
38487 PyObject * obj1 = 0 ;
38488 char * kwnames[] = {
38489 (char *) "self",(char *) "filter", NULL
38490 };
38491
38492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38494 if (!SWIG_IsOK(res1)) {
38495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38496 }
38497 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38498 {
38499 arg2 = wxString_in_helper(obj1);
38500 if (arg2 == NULL) SWIG_fail;
38501 temp2 = true;
38502 }
38503 {
38504 PyThreadState* __tstate = wxPyBeginAllowThreads();
38505 (arg1)->SetFilter((wxString const &)*arg2);
38506 wxPyEndAllowThreads(__tstate);
38507 if (PyErr_Occurred()) SWIG_fail;
38508 }
38509 resultobj = SWIG_Py_Void();
38510 {
38511 if (temp2)
38512 delete arg2;
38513 }
38514 return resultobj;
38515 fail:
38516 {
38517 if (temp2)
38518 delete arg2;
38519 }
38520 return NULL;
38521 }
38522
38523
38524 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38525 PyObject *resultobj = 0;
38526 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38527 int result;
38528 void *argp1 = 0 ;
38529 int res1 = 0 ;
38530 PyObject *swig_obj[1] ;
38531
38532 if (!args) SWIG_fail;
38533 swig_obj[0] = args;
38534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38535 if (!SWIG_IsOK(res1)) {
38536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38537 }
38538 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38539 {
38540 PyThreadState* __tstate = wxPyBeginAllowThreads();
38541 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38542 wxPyEndAllowThreads(__tstate);
38543 if (PyErr_Occurred()) SWIG_fail;
38544 }
38545 resultobj = SWIG_From_int(static_cast< int >(result));
38546 return resultobj;
38547 fail:
38548 return NULL;
38549 }
38550
38551
38552 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38553 PyObject *resultobj = 0;
38554 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38555 int arg2 ;
38556 void *argp1 = 0 ;
38557 int res1 = 0 ;
38558 int val2 ;
38559 int ecode2 = 0 ;
38560 PyObject * obj0 = 0 ;
38561 PyObject * obj1 = 0 ;
38562 char * kwnames[] = {
38563 (char *) "self",(char *) "n", NULL
38564 };
38565
38566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38568 if (!SWIG_IsOK(res1)) {
38569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38570 }
38571 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38572 ecode2 = SWIG_AsVal_int(obj1, &val2);
38573 if (!SWIG_IsOK(ecode2)) {
38574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38575 }
38576 arg2 = static_cast< int >(val2);
38577 {
38578 PyThreadState* __tstate = wxPyBeginAllowThreads();
38579 (arg1)->SetFilterIndex(arg2);
38580 wxPyEndAllowThreads(__tstate);
38581 if (PyErr_Occurred()) SWIG_fail;
38582 }
38583 resultobj = SWIG_Py_Void();
38584 return resultobj;
38585 fail:
38586 return NULL;
38587 }
38588
38589
38590 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38591 PyObject *resultobj = 0;
38592 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38593 wxTreeItemId result;
38594 void *argp1 = 0 ;
38595 int res1 = 0 ;
38596 PyObject *swig_obj[1] ;
38597
38598 if (!args) SWIG_fail;
38599 swig_obj[0] = args;
38600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38601 if (!SWIG_IsOK(res1)) {
38602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38603 }
38604 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38605 {
38606 PyThreadState* __tstate = wxPyBeginAllowThreads();
38607 result = (arg1)->GetRootId();
38608 wxPyEndAllowThreads(__tstate);
38609 if (PyErr_Occurred()) SWIG_fail;
38610 }
38611 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38612 return resultobj;
38613 fail:
38614 return NULL;
38615 }
38616
38617
38618 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38619 PyObject *resultobj = 0;
38620 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38621 wxPyTreeCtrl *result = 0 ;
38622 void *argp1 = 0 ;
38623 int res1 = 0 ;
38624 PyObject *swig_obj[1] ;
38625
38626 if (!args) SWIG_fail;
38627 swig_obj[0] = args;
38628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38629 if (!SWIG_IsOK(res1)) {
38630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38631 }
38632 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38633 {
38634 PyThreadState* __tstate = wxPyBeginAllowThreads();
38635 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38636 wxPyEndAllowThreads(__tstate);
38637 if (PyErr_Occurred()) SWIG_fail;
38638 }
38639 {
38640 resultobj = wxPyMake_wxObject(result, 0);
38641 }
38642 return resultobj;
38643 fail:
38644 return NULL;
38645 }
38646
38647
38648 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38649 PyObject *resultobj = 0;
38650 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38651 wxDirFilterListCtrl *result = 0 ;
38652 void *argp1 = 0 ;
38653 int res1 = 0 ;
38654 PyObject *swig_obj[1] ;
38655
38656 if (!args) SWIG_fail;
38657 swig_obj[0] = args;
38658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38659 if (!SWIG_IsOK(res1)) {
38660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38661 }
38662 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38663 {
38664 PyThreadState* __tstate = wxPyBeginAllowThreads();
38665 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38666 wxPyEndAllowThreads(__tstate);
38667 if (PyErr_Occurred()) SWIG_fail;
38668 }
38669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38670 return resultobj;
38671 fail:
38672 return NULL;
38673 }
38674
38675
38676 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38677 PyObject *resultobj = 0;
38678 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38679 wxTreeItemId arg2 ;
38680 wxString *arg3 = 0 ;
38681 bool *arg4 = 0 ;
38682 wxTreeItemId result;
38683 void *argp1 = 0 ;
38684 int res1 = 0 ;
38685 void *argp2 ;
38686 int res2 = 0 ;
38687 bool temp3 = false ;
38688 bool temp4 ;
38689 int res4 = SWIG_TMPOBJ ;
38690 PyObject * obj0 = 0 ;
38691 PyObject * obj1 = 0 ;
38692 PyObject * obj2 = 0 ;
38693 char * kwnames[] = {
38694 (char *) "self",(char *) "parentId",(char *) "path", NULL
38695 };
38696
38697 arg4 = &temp4;
38698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38700 if (!SWIG_IsOK(res1)) {
38701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38702 }
38703 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38704 {
38705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38706 if (!SWIG_IsOK(res2)) {
38707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38708 }
38709 if (!argp2) {
38710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38711 } else {
38712 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38713 arg2 = *temp;
38714 if (SWIG_IsNewObj(res2)) delete temp;
38715 }
38716 }
38717 {
38718 arg3 = wxString_in_helper(obj2);
38719 if (arg3 == NULL) SWIG_fail;
38720 temp3 = true;
38721 }
38722 {
38723 PyThreadState* __tstate = wxPyBeginAllowThreads();
38724 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38725 wxPyEndAllowThreads(__tstate);
38726 if (PyErr_Occurred()) SWIG_fail;
38727 }
38728 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38729 if (SWIG_IsTmpObj(res4)) {
38730 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38731 } else {
38732 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38733 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38734 }
38735 {
38736 if (temp3)
38737 delete arg3;
38738 }
38739 return resultobj;
38740 fail:
38741 {
38742 if (temp3)
38743 delete arg3;
38744 }
38745 return NULL;
38746 }
38747
38748
38749 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38750 PyObject *resultobj = 0;
38751 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38752 void *argp1 = 0 ;
38753 int res1 = 0 ;
38754 PyObject *swig_obj[1] ;
38755
38756 if (!args) SWIG_fail;
38757 swig_obj[0] = args;
38758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38759 if (!SWIG_IsOK(res1)) {
38760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38761 }
38762 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38763 {
38764 PyThreadState* __tstate = wxPyBeginAllowThreads();
38765 (arg1)->DoResize();
38766 wxPyEndAllowThreads(__tstate);
38767 if (PyErr_Occurred()) SWIG_fail;
38768 }
38769 resultobj = SWIG_Py_Void();
38770 return resultobj;
38771 fail:
38772 return NULL;
38773 }
38774
38775
38776 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38777 PyObject *resultobj = 0;
38778 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38779 void *argp1 = 0 ;
38780 int res1 = 0 ;
38781 PyObject *swig_obj[1] ;
38782
38783 if (!args) SWIG_fail;
38784 swig_obj[0] = args;
38785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38786 if (!SWIG_IsOK(res1)) {
38787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38788 }
38789 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38790 {
38791 PyThreadState* __tstate = wxPyBeginAllowThreads();
38792 (arg1)->ReCreateTree();
38793 wxPyEndAllowThreads(__tstate);
38794 if (PyErr_Occurred()) SWIG_fail;
38795 }
38796 resultobj = SWIG_Py_Void();
38797 return resultobj;
38798 fail:
38799 return NULL;
38800 }
38801
38802
38803 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38804 PyObject *obj;
38805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38806 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38807 return SWIG_Py_Void();
38808 }
38809
38810 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38811 return SWIG_Python_InitShadowInstance(args);
38812 }
38813
38814 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38815 PyObject *resultobj = 0;
38816 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38817 int arg2 = (int) (int)-1 ;
38818 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38819 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38820 wxSize const &arg4_defvalue = wxDefaultSize ;
38821 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38822 long arg5 = (long) 0 ;
38823 wxDirFilterListCtrl *result = 0 ;
38824 void *argp1 = 0 ;
38825 int res1 = 0 ;
38826 int val2 ;
38827 int ecode2 = 0 ;
38828 wxPoint temp3 ;
38829 wxSize temp4 ;
38830 long val5 ;
38831 int ecode5 = 0 ;
38832 PyObject * obj0 = 0 ;
38833 PyObject * obj1 = 0 ;
38834 PyObject * obj2 = 0 ;
38835 PyObject * obj3 = 0 ;
38836 PyObject * obj4 = 0 ;
38837 char * kwnames[] = {
38838 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38839 };
38840
38841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38843 if (!SWIG_IsOK(res1)) {
38844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38845 }
38846 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38847 if (obj1) {
38848 ecode2 = SWIG_AsVal_int(obj1, &val2);
38849 if (!SWIG_IsOK(ecode2)) {
38850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38851 }
38852 arg2 = static_cast< int >(val2);
38853 }
38854 if (obj2) {
38855 {
38856 arg3 = &temp3;
38857 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38858 }
38859 }
38860 if (obj3) {
38861 {
38862 arg4 = &temp4;
38863 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38864 }
38865 }
38866 if (obj4) {
38867 ecode5 = SWIG_AsVal_long(obj4, &val5);
38868 if (!SWIG_IsOK(ecode5)) {
38869 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38870 }
38871 arg5 = static_cast< long >(val5);
38872 }
38873 {
38874 if (!wxPyCheckForApp()) SWIG_fail;
38875 PyThreadState* __tstate = wxPyBeginAllowThreads();
38876 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38877 wxPyEndAllowThreads(__tstate);
38878 if (PyErr_Occurred()) SWIG_fail;
38879 }
38880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38881 return resultobj;
38882 fail:
38883 return NULL;
38884 }
38885
38886
38887 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38888 PyObject *resultobj = 0;
38889 wxDirFilterListCtrl *result = 0 ;
38890
38891 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38892 {
38893 if (!wxPyCheckForApp()) SWIG_fail;
38894 PyThreadState* __tstate = wxPyBeginAllowThreads();
38895 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38896 wxPyEndAllowThreads(__tstate);
38897 if (PyErr_Occurred()) SWIG_fail;
38898 }
38899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38900 return resultobj;
38901 fail:
38902 return NULL;
38903 }
38904
38905
38906 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38907 PyObject *resultobj = 0;
38908 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38909 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38910 int arg3 = (int) (int)-1 ;
38911 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38912 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38913 wxSize const &arg5_defvalue = wxDefaultSize ;
38914 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38915 long arg6 = (long) 0 ;
38916 bool result;
38917 void *argp1 = 0 ;
38918 int res1 = 0 ;
38919 void *argp2 = 0 ;
38920 int res2 = 0 ;
38921 int val3 ;
38922 int ecode3 = 0 ;
38923 wxPoint temp4 ;
38924 wxSize temp5 ;
38925 long val6 ;
38926 int ecode6 = 0 ;
38927 PyObject * obj0 = 0 ;
38928 PyObject * obj1 = 0 ;
38929 PyObject * obj2 = 0 ;
38930 PyObject * obj3 = 0 ;
38931 PyObject * obj4 = 0 ;
38932 PyObject * obj5 = 0 ;
38933 char * kwnames[] = {
38934 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38935 };
38936
38937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38939 if (!SWIG_IsOK(res1)) {
38940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38941 }
38942 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38943 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38944 if (!SWIG_IsOK(res2)) {
38945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38946 }
38947 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38948 if (obj2) {
38949 ecode3 = SWIG_AsVal_int(obj2, &val3);
38950 if (!SWIG_IsOK(ecode3)) {
38951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38952 }
38953 arg3 = static_cast< int >(val3);
38954 }
38955 if (obj3) {
38956 {
38957 arg4 = &temp4;
38958 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38959 }
38960 }
38961 if (obj4) {
38962 {
38963 arg5 = &temp5;
38964 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38965 }
38966 }
38967 if (obj5) {
38968 ecode6 = SWIG_AsVal_long(obj5, &val6);
38969 if (!SWIG_IsOK(ecode6)) {
38970 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38971 }
38972 arg6 = static_cast< long >(val6);
38973 }
38974 {
38975 PyThreadState* __tstate = wxPyBeginAllowThreads();
38976 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38977 wxPyEndAllowThreads(__tstate);
38978 if (PyErr_Occurred()) SWIG_fail;
38979 }
38980 {
38981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38982 }
38983 return resultobj;
38984 fail:
38985 return NULL;
38986 }
38987
38988
38989 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38990 PyObject *resultobj = 0;
38991 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38992 wxString *arg2 = 0 ;
38993 int arg3 ;
38994 void *argp1 = 0 ;
38995 int res1 = 0 ;
38996 bool temp2 = false ;
38997 int val3 ;
38998 int ecode3 = 0 ;
38999 PyObject * obj0 = 0 ;
39000 PyObject * obj1 = 0 ;
39001 PyObject * obj2 = 0 ;
39002 char * kwnames[] = {
39003 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
39004 };
39005
39006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
39008 if (!SWIG_IsOK(res1)) {
39009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
39010 }
39011 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
39012 {
39013 arg2 = wxString_in_helper(obj1);
39014 if (arg2 == NULL) SWIG_fail;
39015 temp2 = true;
39016 }
39017 ecode3 = SWIG_AsVal_int(obj2, &val3);
39018 if (!SWIG_IsOK(ecode3)) {
39019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
39020 }
39021 arg3 = static_cast< int >(val3);
39022 {
39023 PyThreadState* __tstate = wxPyBeginAllowThreads();
39024 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
39025 wxPyEndAllowThreads(__tstate);
39026 if (PyErr_Occurred()) SWIG_fail;
39027 }
39028 resultobj = SWIG_Py_Void();
39029 {
39030 if (temp2)
39031 delete arg2;
39032 }
39033 return resultobj;
39034 fail:
39035 {
39036 if (temp2)
39037 delete arg2;
39038 }
39039 return NULL;
39040 }
39041
39042
39043 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39044 PyObject *obj;
39045 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39046 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
39047 return SWIG_Py_Void();
39048 }
39049
39050 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39051 return SWIG_Python_InitShadowInstance(args);
39052 }
39053
39054 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39055 PyObject *resultobj = 0;
39056 wxWindow *arg1 = (wxWindow *) 0 ;
39057 int arg2 = (int) (int)-1 ;
39058 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39059 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39060 wxSize const &arg4_defvalue = wxDefaultSize ;
39061 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39062 long arg5 = (long) 0 ;
39063 wxValidator const &arg6_defvalue = wxDefaultValidator ;
39064 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
39065 wxString const &arg7_defvalue = wxPyControlNameStr ;
39066 wxString *arg7 = (wxString *) &arg7_defvalue ;
39067 wxPyControl *result = 0 ;
39068 void *argp1 = 0 ;
39069 int res1 = 0 ;
39070 int val2 ;
39071 int ecode2 = 0 ;
39072 wxPoint temp3 ;
39073 wxSize temp4 ;
39074 long val5 ;
39075 int ecode5 = 0 ;
39076 void *argp6 = 0 ;
39077 int res6 = 0 ;
39078 bool temp7 = false ;
39079 PyObject * obj0 = 0 ;
39080 PyObject * obj1 = 0 ;
39081 PyObject * obj2 = 0 ;
39082 PyObject * obj3 = 0 ;
39083 PyObject * obj4 = 0 ;
39084 PyObject * obj5 = 0 ;
39085 PyObject * obj6 = 0 ;
39086 char * kwnames[] = {
39087 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
39088 };
39089
39090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
39091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39092 if (!SWIG_IsOK(res1)) {
39093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
39094 }
39095 arg1 = reinterpret_cast< wxWindow * >(argp1);
39096 if (obj1) {
39097 ecode2 = SWIG_AsVal_int(obj1, &val2);
39098 if (!SWIG_IsOK(ecode2)) {
39099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
39100 }
39101 arg2 = static_cast< int >(val2);
39102 }
39103 if (obj2) {
39104 {
39105 arg3 = &temp3;
39106 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39107 }
39108 }
39109 if (obj3) {
39110 {
39111 arg4 = &temp4;
39112 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39113 }
39114 }
39115 if (obj4) {
39116 ecode5 = SWIG_AsVal_long(obj4, &val5);
39117 if (!SWIG_IsOK(ecode5)) {
39118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
39119 }
39120 arg5 = static_cast< long >(val5);
39121 }
39122 if (obj5) {
39123 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
39124 if (!SWIG_IsOK(res6)) {
39125 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39126 }
39127 if (!argp6) {
39128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39129 }
39130 arg6 = reinterpret_cast< wxValidator * >(argp6);
39131 }
39132 if (obj6) {
39133 {
39134 arg7 = wxString_in_helper(obj6);
39135 if (arg7 == NULL) SWIG_fail;
39136 temp7 = true;
39137 }
39138 }
39139 {
39140 if (!wxPyCheckForApp()) SWIG_fail;
39141 PyThreadState* __tstate = wxPyBeginAllowThreads();
39142 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
39143 wxPyEndAllowThreads(__tstate);
39144 if (PyErr_Occurred()) SWIG_fail;
39145 }
39146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
39147 {
39148 if (temp7)
39149 delete arg7;
39150 }
39151 return resultobj;
39152 fail:
39153 {
39154 if (temp7)
39155 delete arg7;
39156 }
39157 return NULL;
39158 }
39159
39160
39161 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39162 PyObject *resultobj = 0;
39163 wxPyControl *result = 0 ;
39164
39165 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
39166 {
39167 if (!wxPyCheckForApp()) SWIG_fail;
39168 PyThreadState* __tstate = wxPyBeginAllowThreads();
39169 result = (wxPyControl *)new wxPyControl();
39170 wxPyEndAllowThreads(__tstate);
39171 if (PyErr_Occurred()) SWIG_fail;
39172 }
39173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
39174 return resultobj;
39175 fail:
39176 return NULL;
39177 }
39178
39179
39180 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39181 PyObject *resultobj = 0;
39182 wxPyControl *arg1 = (wxPyControl *) 0 ;
39183 PyObject *arg2 = (PyObject *) 0 ;
39184 PyObject *arg3 = (PyObject *) 0 ;
39185 void *argp1 = 0 ;
39186 int res1 = 0 ;
39187 PyObject * obj0 = 0 ;
39188 PyObject * obj1 = 0 ;
39189 PyObject * obj2 = 0 ;
39190 char * kwnames[] = {
39191 (char *) "self",(char *) "self",(char *) "_class", NULL
39192 };
39193
39194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39196 if (!SWIG_IsOK(res1)) {
39197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
39198 }
39199 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39200 arg2 = obj1;
39201 arg3 = obj2;
39202 {
39203 PyThreadState* __tstate = wxPyBeginAllowThreads();
39204 (arg1)->_setCallbackInfo(arg2,arg3);
39205 wxPyEndAllowThreads(__tstate);
39206 if (PyErr_Occurred()) SWIG_fail;
39207 }
39208 resultobj = SWIG_Py_Void();
39209 return resultobj;
39210 fail:
39211 return NULL;
39212 }
39213
39214
39215 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39216 PyObject *resultobj = 0;
39217 wxPyControl *arg1 = (wxPyControl *) 0 ;
39218 wxDC *arg2 = (wxDC *) 0 ;
39219 bool result;
39220 void *argp1 = 0 ;
39221 int res1 = 0 ;
39222 void *argp2 = 0 ;
39223 int res2 = 0 ;
39224 PyObject * obj0 = 0 ;
39225 PyObject * obj1 = 0 ;
39226 char * kwnames[] = {
39227 (char *) "self",(char *) "dc", NULL
39228 };
39229
39230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39232 if (!SWIG_IsOK(res1)) {
39233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
39234 }
39235 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39236 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
39237 if (!SWIG_IsOK(res2)) {
39238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
39239 }
39240 arg2 = reinterpret_cast< wxDC * >(argp2);
39241 {
39242 PyThreadState* __tstate = wxPyBeginAllowThreads();
39243 result = (bool)(arg1)->DoEraseBackground(arg2);
39244 wxPyEndAllowThreads(__tstate);
39245 if (PyErr_Occurred()) SWIG_fail;
39246 }
39247 {
39248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39249 }
39250 return resultobj;
39251 fail:
39252 return NULL;
39253 }
39254
39255
39256 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39257 PyObject *resultobj = 0;
39258 wxPyControl *arg1 = (wxPyControl *) 0 ;
39259 int arg2 ;
39260 int arg3 ;
39261 int arg4 ;
39262 int arg5 ;
39263 void *argp1 = 0 ;
39264 int res1 = 0 ;
39265 int val2 ;
39266 int ecode2 = 0 ;
39267 int val3 ;
39268 int ecode3 = 0 ;
39269 int val4 ;
39270 int ecode4 = 0 ;
39271 int val5 ;
39272 int ecode5 = 0 ;
39273 PyObject * obj0 = 0 ;
39274 PyObject * obj1 = 0 ;
39275 PyObject * obj2 = 0 ;
39276 PyObject * obj3 = 0 ;
39277 PyObject * obj4 = 0 ;
39278 char * kwnames[] = {
39279 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39280 };
39281
39282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39284 if (!SWIG_IsOK(res1)) {
39285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39286 }
39287 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39288 ecode2 = SWIG_AsVal_int(obj1, &val2);
39289 if (!SWIG_IsOK(ecode2)) {
39290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39291 }
39292 arg2 = static_cast< int >(val2);
39293 ecode3 = SWIG_AsVal_int(obj2, &val3);
39294 if (!SWIG_IsOK(ecode3)) {
39295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39296 }
39297 arg3 = static_cast< int >(val3);
39298 ecode4 = SWIG_AsVal_int(obj3, &val4);
39299 if (!SWIG_IsOK(ecode4)) {
39300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39301 }
39302 arg4 = static_cast< int >(val4);
39303 ecode5 = SWIG_AsVal_int(obj4, &val5);
39304 if (!SWIG_IsOK(ecode5)) {
39305 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39306 }
39307 arg5 = static_cast< int >(val5);
39308 {
39309 PyThreadState* __tstate = wxPyBeginAllowThreads();
39310 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39311 wxPyEndAllowThreads(__tstate);
39312 if (PyErr_Occurred()) SWIG_fail;
39313 }
39314 resultobj = SWIG_Py_Void();
39315 return resultobj;
39316 fail:
39317 return NULL;
39318 }
39319
39320
39321 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39322 PyObject *resultobj = 0;
39323 wxPyControl *arg1 = (wxPyControl *) 0 ;
39324 int arg2 ;
39325 int arg3 ;
39326 int arg4 ;
39327 int arg5 ;
39328 int arg6 = (int) wxSIZE_AUTO ;
39329 void *argp1 = 0 ;
39330 int res1 = 0 ;
39331 int val2 ;
39332 int ecode2 = 0 ;
39333 int val3 ;
39334 int ecode3 = 0 ;
39335 int val4 ;
39336 int ecode4 = 0 ;
39337 int val5 ;
39338 int ecode5 = 0 ;
39339 int val6 ;
39340 int ecode6 = 0 ;
39341 PyObject * obj0 = 0 ;
39342 PyObject * obj1 = 0 ;
39343 PyObject * obj2 = 0 ;
39344 PyObject * obj3 = 0 ;
39345 PyObject * obj4 = 0 ;
39346 PyObject * obj5 = 0 ;
39347 char * kwnames[] = {
39348 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39349 };
39350
39351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39353 if (!SWIG_IsOK(res1)) {
39354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39355 }
39356 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39357 ecode2 = SWIG_AsVal_int(obj1, &val2);
39358 if (!SWIG_IsOK(ecode2)) {
39359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39360 }
39361 arg2 = static_cast< int >(val2);
39362 ecode3 = SWIG_AsVal_int(obj2, &val3);
39363 if (!SWIG_IsOK(ecode3)) {
39364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39365 }
39366 arg3 = static_cast< int >(val3);
39367 ecode4 = SWIG_AsVal_int(obj3, &val4);
39368 if (!SWIG_IsOK(ecode4)) {
39369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39370 }
39371 arg4 = static_cast< int >(val4);
39372 ecode5 = SWIG_AsVal_int(obj4, &val5);
39373 if (!SWIG_IsOK(ecode5)) {
39374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39375 }
39376 arg5 = static_cast< int >(val5);
39377 if (obj5) {
39378 ecode6 = SWIG_AsVal_int(obj5, &val6);
39379 if (!SWIG_IsOK(ecode6)) {
39380 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39381 }
39382 arg6 = static_cast< int >(val6);
39383 }
39384 {
39385 PyThreadState* __tstate = wxPyBeginAllowThreads();
39386 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39387 wxPyEndAllowThreads(__tstate);
39388 if (PyErr_Occurred()) SWIG_fail;
39389 }
39390 resultobj = SWIG_Py_Void();
39391 return resultobj;
39392 fail:
39393 return NULL;
39394 }
39395
39396
39397 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39398 PyObject *resultobj = 0;
39399 wxPyControl *arg1 = (wxPyControl *) 0 ;
39400 int arg2 ;
39401 int arg3 ;
39402 void *argp1 = 0 ;
39403 int res1 = 0 ;
39404 int val2 ;
39405 int ecode2 = 0 ;
39406 int val3 ;
39407 int ecode3 = 0 ;
39408 PyObject * obj0 = 0 ;
39409 PyObject * obj1 = 0 ;
39410 PyObject * obj2 = 0 ;
39411 char * kwnames[] = {
39412 (char *) "self",(char *) "width",(char *) "height", NULL
39413 };
39414
39415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39417 if (!SWIG_IsOK(res1)) {
39418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39419 }
39420 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39421 ecode2 = SWIG_AsVal_int(obj1, &val2);
39422 if (!SWIG_IsOK(ecode2)) {
39423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39424 }
39425 arg2 = static_cast< int >(val2);
39426 ecode3 = SWIG_AsVal_int(obj2, &val3);
39427 if (!SWIG_IsOK(ecode3)) {
39428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39429 }
39430 arg3 = static_cast< int >(val3);
39431 {
39432 PyThreadState* __tstate = wxPyBeginAllowThreads();
39433 (arg1)->DoSetClientSize(arg2,arg3);
39434 wxPyEndAllowThreads(__tstate);
39435 if (PyErr_Occurred()) SWIG_fail;
39436 }
39437 resultobj = SWIG_Py_Void();
39438 return resultobj;
39439 fail:
39440 return NULL;
39441 }
39442
39443
39444 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39445 PyObject *resultobj = 0;
39446 wxPyControl *arg1 = (wxPyControl *) 0 ;
39447 int arg2 ;
39448 int arg3 ;
39449 void *argp1 = 0 ;
39450 int res1 = 0 ;
39451 int val2 ;
39452 int ecode2 = 0 ;
39453 int val3 ;
39454 int ecode3 = 0 ;
39455 PyObject * obj0 = 0 ;
39456 PyObject * obj1 = 0 ;
39457 PyObject * obj2 = 0 ;
39458 char * kwnames[] = {
39459 (char *) "self",(char *) "x",(char *) "y", NULL
39460 };
39461
39462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39464 if (!SWIG_IsOK(res1)) {
39465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39466 }
39467 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39468 ecode2 = SWIG_AsVal_int(obj1, &val2);
39469 if (!SWIG_IsOK(ecode2)) {
39470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39471 }
39472 arg2 = static_cast< int >(val2);
39473 ecode3 = SWIG_AsVal_int(obj2, &val3);
39474 if (!SWIG_IsOK(ecode3)) {
39475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39476 }
39477 arg3 = static_cast< int >(val3);
39478 {
39479 PyThreadState* __tstate = wxPyBeginAllowThreads();
39480 (arg1)->DoSetVirtualSize(arg2,arg3);
39481 wxPyEndAllowThreads(__tstate);
39482 if (PyErr_Occurred()) SWIG_fail;
39483 }
39484 resultobj = SWIG_Py_Void();
39485 return resultobj;
39486 fail:
39487 return NULL;
39488 }
39489
39490
39491 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39492 PyObject *resultobj = 0;
39493 wxPyControl *arg1 = (wxPyControl *) 0 ;
39494 int *arg2 = (int *) 0 ;
39495 int *arg3 = (int *) 0 ;
39496 void *argp1 = 0 ;
39497 int res1 = 0 ;
39498 int temp2 ;
39499 int res2 = SWIG_TMPOBJ ;
39500 int temp3 ;
39501 int res3 = SWIG_TMPOBJ ;
39502 PyObject *swig_obj[1] ;
39503
39504 arg2 = &temp2;
39505 arg3 = &temp3;
39506 if (!args) SWIG_fail;
39507 swig_obj[0] = args;
39508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39509 if (!SWIG_IsOK(res1)) {
39510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39511 }
39512 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39513 {
39514 PyThreadState* __tstate = wxPyBeginAllowThreads();
39515 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39516 wxPyEndAllowThreads(__tstate);
39517 if (PyErr_Occurred()) SWIG_fail;
39518 }
39519 resultobj = SWIG_Py_Void();
39520 if (SWIG_IsTmpObj(res2)) {
39521 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39522 } else {
39523 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39524 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39525 }
39526 if (SWIG_IsTmpObj(res3)) {
39527 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39528 } else {
39529 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39530 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39531 }
39532 return resultobj;
39533 fail:
39534 return NULL;
39535 }
39536
39537
39538 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39539 PyObject *resultobj = 0;
39540 wxPyControl *arg1 = (wxPyControl *) 0 ;
39541 int *arg2 = (int *) 0 ;
39542 int *arg3 = (int *) 0 ;
39543 void *argp1 = 0 ;
39544 int res1 = 0 ;
39545 int temp2 ;
39546 int res2 = SWIG_TMPOBJ ;
39547 int temp3 ;
39548 int res3 = SWIG_TMPOBJ ;
39549 PyObject *swig_obj[1] ;
39550
39551 arg2 = &temp2;
39552 arg3 = &temp3;
39553 if (!args) SWIG_fail;
39554 swig_obj[0] = args;
39555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39556 if (!SWIG_IsOK(res1)) {
39557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39558 }
39559 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39560 {
39561 PyThreadState* __tstate = wxPyBeginAllowThreads();
39562 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39563 wxPyEndAllowThreads(__tstate);
39564 if (PyErr_Occurred()) SWIG_fail;
39565 }
39566 resultobj = SWIG_Py_Void();
39567 if (SWIG_IsTmpObj(res2)) {
39568 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39569 } else {
39570 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39571 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39572 }
39573 if (SWIG_IsTmpObj(res3)) {
39574 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39575 } else {
39576 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39577 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39578 }
39579 return resultobj;
39580 fail:
39581 return NULL;
39582 }
39583
39584
39585 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39586 PyObject *resultobj = 0;
39587 wxPyControl *arg1 = (wxPyControl *) 0 ;
39588 int *arg2 = (int *) 0 ;
39589 int *arg3 = (int *) 0 ;
39590 void *argp1 = 0 ;
39591 int res1 = 0 ;
39592 int temp2 ;
39593 int res2 = SWIG_TMPOBJ ;
39594 int temp3 ;
39595 int res3 = SWIG_TMPOBJ ;
39596 PyObject *swig_obj[1] ;
39597
39598 arg2 = &temp2;
39599 arg3 = &temp3;
39600 if (!args) SWIG_fail;
39601 swig_obj[0] = args;
39602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39603 if (!SWIG_IsOK(res1)) {
39604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39605 }
39606 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39607 {
39608 PyThreadState* __tstate = wxPyBeginAllowThreads();
39609 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39610 wxPyEndAllowThreads(__tstate);
39611 if (PyErr_Occurred()) SWIG_fail;
39612 }
39613 resultobj = SWIG_Py_Void();
39614 if (SWIG_IsTmpObj(res2)) {
39615 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39616 } else {
39617 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39618 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39619 }
39620 if (SWIG_IsTmpObj(res3)) {
39621 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39622 } else {
39623 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39624 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39625 }
39626 return resultobj;
39627 fail:
39628 return NULL;
39629 }
39630
39631
39632 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39633 PyObject *resultobj = 0;
39634 wxPyControl *arg1 = (wxPyControl *) 0 ;
39635 wxSize result;
39636 void *argp1 = 0 ;
39637 int res1 = 0 ;
39638 PyObject *swig_obj[1] ;
39639
39640 if (!args) SWIG_fail;
39641 swig_obj[0] = args;
39642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39643 if (!SWIG_IsOK(res1)) {
39644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39645 }
39646 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39647 {
39648 PyThreadState* __tstate = wxPyBeginAllowThreads();
39649 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39650 wxPyEndAllowThreads(__tstate);
39651 if (PyErr_Occurred()) SWIG_fail;
39652 }
39653 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39654 return resultobj;
39655 fail:
39656 return NULL;
39657 }
39658
39659
39660 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39661 PyObject *resultobj = 0;
39662 wxPyControl *arg1 = (wxPyControl *) 0 ;
39663 wxSize result;
39664 void *argp1 = 0 ;
39665 int res1 = 0 ;
39666 PyObject *swig_obj[1] ;
39667
39668 if (!args) SWIG_fail;
39669 swig_obj[0] = args;
39670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39671 if (!SWIG_IsOK(res1)) {
39672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39673 }
39674 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39675 {
39676 PyThreadState* __tstate = wxPyBeginAllowThreads();
39677 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39678 wxPyEndAllowThreads(__tstate);
39679 if (PyErr_Occurred()) SWIG_fail;
39680 }
39681 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39682 return resultobj;
39683 fail:
39684 return NULL;
39685 }
39686
39687
39688 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39689 PyObject *resultobj = 0;
39690 wxPyControl *arg1 = (wxPyControl *) 0 ;
39691 SwigValueWrapper<wxVisualAttributes > result;
39692 void *argp1 = 0 ;
39693 int res1 = 0 ;
39694 PyObject *swig_obj[1] ;
39695
39696 if (!args) SWIG_fail;
39697 swig_obj[0] = args;
39698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39699 if (!SWIG_IsOK(res1)) {
39700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39701 }
39702 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39703 {
39704 PyThreadState* __tstate = wxPyBeginAllowThreads();
39705 result = (arg1)->GetDefaultAttributes();
39706 wxPyEndAllowThreads(__tstate);
39707 if (PyErr_Occurred()) SWIG_fail;
39708 }
39709 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39710 return resultobj;
39711 fail:
39712 return NULL;
39713 }
39714
39715
39716 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39717 PyObject *resultobj = 0;
39718 wxPyControl *arg1 = (wxPyControl *) 0 ;
39719 void *argp1 = 0 ;
39720 int res1 = 0 ;
39721 PyObject *swig_obj[1] ;
39722
39723 if (!args) SWIG_fail;
39724 swig_obj[0] = args;
39725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39726 if (!SWIG_IsOK(res1)) {
39727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39728 }
39729 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39730 {
39731 PyThreadState* __tstate = wxPyBeginAllowThreads();
39732 (arg1)->OnInternalIdle();
39733 wxPyEndAllowThreads(__tstate);
39734 if (PyErr_Occurred()) SWIG_fail;
39735 }
39736 resultobj = SWIG_Py_Void();
39737 return resultobj;
39738 fail:
39739 return NULL;
39740 }
39741
39742
39743 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39744 PyObject *obj;
39745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39746 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39747 return SWIG_Py_Void();
39748 }
39749
39750 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39751 return SWIG_Python_InitShadowInstance(args);
39752 }
39753
39754 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39755 PyObject *resultobj = 0;
39756 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39757 int arg2 = (int) 0 ;
39758 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39759 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39760 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39761 wxHelpEvent *result = 0 ;
39762 int val1 ;
39763 int ecode1 = 0 ;
39764 int val2 ;
39765 int ecode2 = 0 ;
39766 wxPoint temp3 ;
39767 int val4 ;
39768 int ecode4 = 0 ;
39769 PyObject * obj0 = 0 ;
39770 PyObject * obj1 = 0 ;
39771 PyObject * obj2 = 0 ;
39772 PyObject * obj3 = 0 ;
39773 char * kwnames[] = {
39774 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39775 };
39776
39777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39778 if (obj0) {
39779 ecode1 = SWIG_AsVal_int(obj0, &val1);
39780 if (!SWIG_IsOK(ecode1)) {
39781 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39782 }
39783 arg1 = static_cast< wxEventType >(val1);
39784 }
39785 if (obj1) {
39786 ecode2 = SWIG_AsVal_int(obj1, &val2);
39787 if (!SWIG_IsOK(ecode2)) {
39788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39789 }
39790 arg2 = static_cast< int >(val2);
39791 }
39792 if (obj2) {
39793 {
39794 arg3 = &temp3;
39795 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39796 }
39797 }
39798 if (obj3) {
39799 ecode4 = SWIG_AsVal_int(obj3, &val4);
39800 if (!SWIG_IsOK(ecode4)) {
39801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39802 }
39803 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39804 }
39805 {
39806 PyThreadState* __tstate = wxPyBeginAllowThreads();
39807 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39808 wxPyEndAllowThreads(__tstate);
39809 if (PyErr_Occurred()) SWIG_fail;
39810 }
39811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39812 return resultobj;
39813 fail:
39814 return NULL;
39815 }
39816
39817
39818 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39819 PyObject *resultobj = 0;
39820 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39821 wxPoint result;
39822 void *argp1 = 0 ;
39823 int res1 = 0 ;
39824 PyObject *swig_obj[1] ;
39825
39826 if (!args) SWIG_fail;
39827 swig_obj[0] = args;
39828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39829 if (!SWIG_IsOK(res1)) {
39830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39831 }
39832 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39833 {
39834 PyThreadState* __tstate = wxPyBeginAllowThreads();
39835 result = ((wxHelpEvent const *)arg1)->GetPosition();
39836 wxPyEndAllowThreads(__tstate);
39837 if (PyErr_Occurred()) SWIG_fail;
39838 }
39839 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39840 return resultobj;
39841 fail:
39842 return NULL;
39843 }
39844
39845
39846 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39847 PyObject *resultobj = 0;
39848 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39849 wxPoint *arg2 = 0 ;
39850 void *argp1 = 0 ;
39851 int res1 = 0 ;
39852 wxPoint temp2 ;
39853 PyObject * obj0 = 0 ;
39854 PyObject * obj1 = 0 ;
39855 char * kwnames[] = {
39856 (char *) "self",(char *) "pos", NULL
39857 };
39858
39859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39861 if (!SWIG_IsOK(res1)) {
39862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39863 }
39864 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39865 {
39866 arg2 = &temp2;
39867 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39868 }
39869 {
39870 PyThreadState* __tstate = wxPyBeginAllowThreads();
39871 (arg1)->SetPosition((wxPoint const &)*arg2);
39872 wxPyEndAllowThreads(__tstate);
39873 if (PyErr_Occurred()) SWIG_fail;
39874 }
39875 resultobj = SWIG_Py_Void();
39876 return resultobj;
39877 fail:
39878 return NULL;
39879 }
39880
39881
39882 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39883 PyObject *resultobj = 0;
39884 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39885 wxString *result = 0 ;
39886 void *argp1 = 0 ;
39887 int res1 = 0 ;
39888 PyObject *swig_obj[1] ;
39889
39890 if (!args) SWIG_fail;
39891 swig_obj[0] = args;
39892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39893 if (!SWIG_IsOK(res1)) {
39894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39895 }
39896 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39897 {
39898 PyThreadState* __tstate = wxPyBeginAllowThreads();
39899 {
39900 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39901 result = (wxString *) &_result_ref;
39902 }
39903 wxPyEndAllowThreads(__tstate);
39904 if (PyErr_Occurred()) SWIG_fail;
39905 }
39906 {
39907 #if wxUSE_UNICODE
39908 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39909 #else
39910 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39911 #endif
39912 }
39913 return resultobj;
39914 fail:
39915 return NULL;
39916 }
39917
39918
39919 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39920 PyObject *resultobj = 0;
39921 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39922 wxString *arg2 = 0 ;
39923 void *argp1 = 0 ;
39924 int res1 = 0 ;
39925 bool temp2 = false ;
39926 PyObject * obj0 = 0 ;
39927 PyObject * obj1 = 0 ;
39928 char * kwnames[] = {
39929 (char *) "self",(char *) "link", NULL
39930 };
39931
39932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39934 if (!SWIG_IsOK(res1)) {
39935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39936 }
39937 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39938 {
39939 arg2 = wxString_in_helper(obj1);
39940 if (arg2 == NULL) SWIG_fail;
39941 temp2 = true;
39942 }
39943 {
39944 PyThreadState* __tstate = wxPyBeginAllowThreads();
39945 (arg1)->SetLink((wxString const &)*arg2);
39946 wxPyEndAllowThreads(__tstate);
39947 if (PyErr_Occurred()) SWIG_fail;
39948 }
39949 resultobj = SWIG_Py_Void();
39950 {
39951 if (temp2)
39952 delete arg2;
39953 }
39954 return resultobj;
39955 fail:
39956 {
39957 if (temp2)
39958 delete arg2;
39959 }
39960 return NULL;
39961 }
39962
39963
39964 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39965 PyObject *resultobj = 0;
39966 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39967 wxString *result = 0 ;
39968 void *argp1 = 0 ;
39969 int res1 = 0 ;
39970 PyObject *swig_obj[1] ;
39971
39972 if (!args) SWIG_fail;
39973 swig_obj[0] = args;
39974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39975 if (!SWIG_IsOK(res1)) {
39976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39977 }
39978 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39979 {
39980 PyThreadState* __tstate = wxPyBeginAllowThreads();
39981 {
39982 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39983 result = (wxString *) &_result_ref;
39984 }
39985 wxPyEndAllowThreads(__tstate);
39986 if (PyErr_Occurred()) SWIG_fail;
39987 }
39988 {
39989 #if wxUSE_UNICODE
39990 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39991 #else
39992 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39993 #endif
39994 }
39995 return resultobj;
39996 fail:
39997 return NULL;
39998 }
39999
40000
40001 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40002 PyObject *resultobj = 0;
40003 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40004 wxString *arg2 = 0 ;
40005 void *argp1 = 0 ;
40006 int res1 = 0 ;
40007 bool temp2 = false ;
40008 PyObject * obj0 = 0 ;
40009 PyObject * obj1 = 0 ;
40010 char * kwnames[] = {
40011 (char *) "self",(char *) "target", NULL
40012 };
40013
40014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
40015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40016 if (!SWIG_IsOK(res1)) {
40017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40018 }
40019 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40020 {
40021 arg2 = wxString_in_helper(obj1);
40022 if (arg2 == NULL) SWIG_fail;
40023 temp2 = true;
40024 }
40025 {
40026 PyThreadState* __tstate = wxPyBeginAllowThreads();
40027 (arg1)->SetTarget((wxString const &)*arg2);
40028 wxPyEndAllowThreads(__tstate);
40029 if (PyErr_Occurred()) SWIG_fail;
40030 }
40031 resultobj = SWIG_Py_Void();
40032 {
40033 if (temp2)
40034 delete arg2;
40035 }
40036 return resultobj;
40037 fail:
40038 {
40039 if (temp2)
40040 delete arg2;
40041 }
40042 return NULL;
40043 }
40044
40045
40046 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40047 PyObject *resultobj = 0;
40048 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40049 wxHelpEvent::Origin result;
40050 void *argp1 = 0 ;
40051 int res1 = 0 ;
40052 PyObject *swig_obj[1] ;
40053
40054 if (!args) SWIG_fail;
40055 swig_obj[0] = args;
40056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40057 if (!SWIG_IsOK(res1)) {
40058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40059 }
40060 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40061 {
40062 PyThreadState* __tstate = wxPyBeginAllowThreads();
40063 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
40064 wxPyEndAllowThreads(__tstate);
40065 if (PyErr_Occurred()) SWIG_fail;
40066 }
40067 resultobj = SWIG_From_int(static_cast< int >(result));
40068 return resultobj;
40069 fail:
40070 return NULL;
40071 }
40072
40073
40074 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40075 PyObject *resultobj = 0;
40076 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40077 wxHelpEvent::Origin arg2 ;
40078 void *argp1 = 0 ;
40079 int res1 = 0 ;
40080 int val2 ;
40081 int ecode2 = 0 ;
40082 PyObject * obj0 = 0 ;
40083 PyObject * obj1 = 0 ;
40084 char * kwnames[] = {
40085 (char *) "self",(char *) "origin", NULL
40086 };
40087
40088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
40089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40090 if (!SWIG_IsOK(res1)) {
40091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40092 }
40093 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40094 ecode2 = SWIG_AsVal_int(obj1, &val2);
40095 if (!SWIG_IsOK(ecode2)) {
40096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
40097 }
40098 arg2 = static_cast< wxHelpEvent::Origin >(val2);
40099 {
40100 PyThreadState* __tstate = wxPyBeginAllowThreads();
40101 (arg1)->SetOrigin(arg2);
40102 wxPyEndAllowThreads(__tstate);
40103 if (PyErr_Occurred()) SWIG_fail;
40104 }
40105 resultobj = SWIG_Py_Void();
40106 return resultobj;
40107 fail:
40108 return NULL;
40109 }
40110
40111
40112 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40113 PyObject *obj;
40114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40115 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
40116 return SWIG_Py_Void();
40117 }
40118
40119 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40120 return SWIG_Python_InitShadowInstance(args);
40121 }
40122
40123 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40124 PyObject *resultobj = 0;
40125 wxWindow *arg1 = (wxWindow *) NULL ;
40126 bool arg2 = (bool) true ;
40127 wxContextHelp *result = 0 ;
40128 void *argp1 = 0 ;
40129 int res1 = 0 ;
40130 bool val2 ;
40131 int ecode2 = 0 ;
40132 PyObject * obj0 = 0 ;
40133 PyObject * obj1 = 0 ;
40134 char * kwnames[] = {
40135 (char *) "window",(char *) "doNow", NULL
40136 };
40137
40138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40139 if (obj0) {
40140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40141 if (!SWIG_IsOK(res1)) {
40142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
40143 }
40144 arg1 = reinterpret_cast< wxWindow * >(argp1);
40145 }
40146 if (obj1) {
40147 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40148 if (!SWIG_IsOK(ecode2)) {
40149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
40150 }
40151 arg2 = static_cast< bool >(val2);
40152 }
40153 {
40154 if (!wxPyCheckForApp()) SWIG_fail;
40155 PyThreadState* __tstate = wxPyBeginAllowThreads();
40156 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
40157 wxPyEndAllowThreads(__tstate);
40158 if (PyErr_Occurred()) SWIG_fail;
40159 }
40160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
40161 return resultobj;
40162 fail:
40163 return NULL;
40164 }
40165
40166
40167 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40168 PyObject *resultobj = 0;
40169 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40170 void *argp1 = 0 ;
40171 int res1 = 0 ;
40172 PyObject *swig_obj[1] ;
40173
40174 if (!args) SWIG_fail;
40175 swig_obj[0] = args;
40176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
40177 if (!SWIG_IsOK(res1)) {
40178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40179 }
40180 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40181 {
40182 PyThreadState* __tstate = wxPyBeginAllowThreads();
40183 delete arg1;
40184
40185 wxPyEndAllowThreads(__tstate);
40186 if (PyErr_Occurred()) SWIG_fail;
40187 }
40188 resultobj = SWIG_Py_Void();
40189 return resultobj;
40190 fail:
40191 return NULL;
40192 }
40193
40194
40195 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40196 PyObject *resultobj = 0;
40197 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40198 wxWindow *arg2 = (wxWindow *) NULL ;
40199 bool result;
40200 void *argp1 = 0 ;
40201 int res1 = 0 ;
40202 void *argp2 = 0 ;
40203 int res2 = 0 ;
40204 PyObject * obj0 = 0 ;
40205 PyObject * obj1 = 0 ;
40206 char * kwnames[] = {
40207 (char *) "self",(char *) "window", NULL
40208 };
40209
40210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40212 if (!SWIG_IsOK(res1)) {
40213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40214 }
40215 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40216 if (obj1) {
40217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40218 if (!SWIG_IsOK(res2)) {
40219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40220 }
40221 arg2 = reinterpret_cast< wxWindow * >(argp2);
40222 }
40223 {
40224 PyThreadState* __tstate = wxPyBeginAllowThreads();
40225 result = (bool)(arg1)->BeginContextHelp(arg2);
40226 wxPyEndAllowThreads(__tstate);
40227 if (PyErr_Occurred()) SWIG_fail;
40228 }
40229 {
40230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40231 }
40232 return resultobj;
40233 fail:
40234 return NULL;
40235 }
40236
40237
40238 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40239 PyObject *resultobj = 0;
40240 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40241 bool result;
40242 void *argp1 = 0 ;
40243 int res1 = 0 ;
40244 PyObject *swig_obj[1] ;
40245
40246 if (!args) SWIG_fail;
40247 swig_obj[0] = args;
40248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40249 if (!SWIG_IsOK(res1)) {
40250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40251 }
40252 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40253 {
40254 PyThreadState* __tstate = wxPyBeginAllowThreads();
40255 result = (bool)(arg1)->EndContextHelp();
40256 wxPyEndAllowThreads(__tstate);
40257 if (PyErr_Occurred()) SWIG_fail;
40258 }
40259 {
40260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40261 }
40262 return resultobj;
40263 fail:
40264 return NULL;
40265 }
40266
40267
40268 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40269 PyObject *obj;
40270 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40271 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40272 return SWIG_Py_Void();
40273 }
40274
40275 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40276 return SWIG_Python_InitShadowInstance(args);
40277 }
40278
40279 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40280 PyObject *resultobj = 0;
40281 wxWindow *arg1 = (wxWindow *) 0 ;
40282 int arg2 = (int) wxID_CONTEXT_HELP ;
40283 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40284 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40285 wxSize const &arg4_defvalue = wxDefaultSize ;
40286 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40287 long arg5 = (long) wxBU_AUTODRAW ;
40288 wxContextHelpButton *result = 0 ;
40289 void *argp1 = 0 ;
40290 int res1 = 0 ;
40291 int val2 ;
40292 int ecode2 = 0 ;
40293 wxPoint temp3 ;
40294 wxSize temp4 ;
40295 long val5 ;
40296 int ecode5 = 0 ;
40297 PyObject * obj0 = 0 ;
40298 PyObject * obj1 = 0 ;
40299 PyObject * obj2 = 0 ;
40300 PyObject * obj3 = 0 ;
40301 PyObject * obj4 = 0 ;
40302 char * kwnames[] = {
40303 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40304 };
40305
40306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40308 if (!SWIG_IsOK(res1)) {
40309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40310 }
40311 arg1 = reinterpret_cast< wxWindow * >(argp1);
40312 if (obj1) {
40313 ecode2 = SWIG_AsVal_int(obj1, &val2);
40314 if (!SWIG_IsOK(ecode2)) {
40315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40316 }
40317 arg2 = static_cast< int >(val2);
40318 }
40319 if (obj2) {
40320 {
40321 arg3 = &temp3;
40322 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40323 }
40324 }
40325 if (obj3) {
40326 {
40327 arg4 = &temp4;
40328 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
40329 }
40330 }
40331 if (obj4) {
40332 ecode5 = SWIG_AsVal_long(obj4, &val5);
40333 if (!SWIG_IsOK(ecode5)) {
40334 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40335 }
40336 arg5 = static_cast< long >(val5);
40337 }
40338 {
40339 if (!wxPyCheckForApp()) SWIG_fail;
40340 PyThreadState* __tstate = wxPyBeginAllowThreads();
40341 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40342 wxPyEndAllowThreads(__tstate);
40343 if (PyErr_Occurred()) SWIG_fail;
40344 }
40345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40346 return resultobj;
40347 fail:
40348 return NULL;
40349 }
40350
40351
40352 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40353 PyObject *obj;
40354 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40355 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40356 return SWIG_Py_Void();
40357 }
40358
40359 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40360 return SWIG_Python_InitShadowInstance(args);
40361 }
40362
40363 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40364 PyObject *resultobj = 0;
40365 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40366 void *argp1 = 0 ;
40367 int res1 = 0 ;
40368 PyObject *swig_obj[1] ;
40369
40370 if (!args) SWIG_fail;
40371 swig_obj[0] = args;
40372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40373 if (!SWIG_IsOK(res1)) {
40374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40375 }
40376 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40377 {
40378 PyThreadState* __tstate = wxPyBeginAllowThreads();
40379 delete arg1;
40380
40381 wxPyEndAllowThreads(__tstate);
40382 if (PyErr_Occurred()) SWIG_fail;
40383 }
40384 resultobj = SWIG_Py_Void();
40385 return resultobj;
40386 fail:
40387 return NULL;
40388 }
40389
40390
40391 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40392 PyObject *resultobj = 0;
40393 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40394 wxHelpProvider *result = 0 ;
40395 int res1 = 0 ;
40396 PyObject * obj0 = 0 ;
40397 char * kwnames[] = {
40398 (char *) "helpProvider", NULL
40399 };
40400
40401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40402 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40403 if (!SWIG_IsOK(res1)) {
40404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40405 }
40406 {
40407 PyThreadState* __tstate = wxPyBeginAllowThreads();
40408 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40409 wxPyEndAllowThreads(__tstate);
40410 if (PyErr_Occurred()) SWIG_fail;
40411 }
40412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40413 return resultobj;
40414 fail:
40415 return NULL;
40416 }
40417
40418
40419 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40420 PyObject *resultobj = 0;
40421 wxHelpProvider *result = 0 ;
40422
40423 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40424 {
40425 PyThreadState* __tstate = wxPyBeginAllowThreads();
40426 result = (wxHelpProvider *)wxHelpProvider::Get();
40427 wxPyEndAllowThreads(__tstate);
40428 if (PyErr_Occurred()) SWIG_fail;
40429 }
40430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40431 return resultobj;
40432 fail:
40433 return NULL;
40434 }
40435
40436
40437 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40438 PyObject *resultobj = 0;
40439 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40440 wxWindow *arg2 = (wxWindow *) 0 ;
40441 wxString result;
40442 void *argp1 = 0 ;
40443 int res1 = 0 ;
40444 void *argp2 = 0 ;
40445 int res2 = 0 ;
40446 PyObject * obj0 = 0 ;
40447 PyObject * obj1 = 0 ;
40448 char * kwnames[] = {
40449 (char *) "self",(char *) "window", NULL
40450 };
40451
40452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40454 if (!SWIG_IsOK(res1)) {
40455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40456 }
40457 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40458 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40459 if (!SWIG_IsOK(res2)) {
40460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40461 }
40462 arg2 = reinterpret_cast< wxWindow * >(argp2);
40463 {
40464 PyThreadState* __tstate = wxPyBeginAllowThreads();
40465 result = (arg1)->GetHelp((wxWindow const *)arg2);
40466 wxPyEndAllowThreads(__tstate);
40467 if (PyErr_Occurred()) SWIG_fail;
40468 }
40469 {
40470 #if wxUSE_UNICODE
40471 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40472 #else
40473 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40474 #endif
40475 }
40476 return resultobj;
40477 fail:
40478 return NULL;
40479 }
40480
40481
40482 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40483 PyObject *resultobj = 0;
40484 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40485 wxWindow *arg2 = (wxWindow *) 0 ;
40486 bool result;
40487 void *argp1 = 0 ;
40488 int res1 = 0 ;
40489 void *argp2 = 0 ;
40490 int res2 = 0 ;
40491 PyObject * obj0 = 0 ;
40492 PyObject * obj1 = 0 ;
40493 char * kwnames[] = {
40494 (char *) "self",(char *) "window", NULL
40495 };
40496
40497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40499 if (!SWIG_IsOK(res1)) {
40500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40501 }
40502 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40503 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40504 if (!SWIG_IsOK(res2)) {
40505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40506 }
40507 arg2 = reinterpret_cast< wxWindow * >(argp2);
40508 {
40509 PyThreadState* __tstate = wxPyBeginAllowThreads();
40510 result = (bool)(arg1)->ShowHelp(arg2);
40511 wxPyEndAllowThreads(__tstate);
40512 if (PyErr_Occurred()) SWIG_fail;
40513 }
40514 {
40515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40516 }
40517 return resultobj;
40518 fail:
40519 return NULL;
40520 }
40521
40522
40523 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40524 PyObject *resultobj = 0;
40525 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40526 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40527 wxPoint *arg3 = 0 ;
40528 wxHelpEvent::Origin arg4 ;
40529 bool result;
40530 void *argp1 = 0 ;
40531 int res1 = 0 ;
40532 void *argp2 = 0 ;
40533 int res2 = 0 ;
40534 wxPoint temp3 ;
40535 int val4 ;
40536 int ecode4 = 0 ;
40537 PyObject * obj0 = 0 ;
40538 PyObject * obj1 = 0 ;
40539 PyObject * obj2 = 0 ;
40540 PyObject * obj3 = 0 ;
40541 char * kwnames[] = {
40542 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40543 };
40544
40545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40547 if (!SWIG_IsOK(res1)) {
40548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40549 }
40550 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40551 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40552 if (!SWIG_IsOK(res2)) {
40553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40554 }
40555 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40556 {
40557 arg3 = &temp3;
40558 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40559 }
40560 ecode4 = SWIG_AsVal_int(obj3, &val4);
40561 if (!SWIG_IsOK(ecode4)) {
40562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40563 }
40564 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40565 {
40566 PyThreadState* __tstate = wxPyBeginAllowThreads();
40567 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40568 wxPyEndAllowThreads(__tstate);
40569 if (PyErr_Occurred()) SWIG_fail;
40570 }
40571 {
40572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40573 }
40574 return resultobj;
40575 fail:
40576 return NULL;
40577 }
40578
40579
40580 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40581 PyObject *resultobj = 0;
40582 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40583 wxWindow *arg2 = (wxWindow *) 0 ;
40584 wxString *arg3 = 0 ;
40585 void *argp1 = 0 ;
40586 int res1 = 0 ;
40587 void *argp2 = 0 ;
40588 int res2 = 0 ;
40589 bool temp3 = false ;
40590 PyObject * obj0 = 0 ;
40591 PyObject * obj1 = 0 ;
40592 PyObject * obj2 = 0 ;
40593 char * kwnames[] = {
40594 (char *) "self",(char *) "window",(char *) "text", NULL
40595 };
40596
40597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40599 if (!SWIG_IsOK(res1)) {
40600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40601 }
40602 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40603 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40604 if (!SWIG_IsOK(res2)) {
40605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40606 }
40607 arg2 = reinterpret_cast< wxWindow * >(argp2);
40608 {
40609 arg3 = wxString_in_helper(obj2);
40610 if (arg3 == NULL) SWIG_fail;
40611 temp3 = true;
40612 }
40613 {
40614 PyThreadState* __tstate = wxPyBeginAllowThreads();
40615 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40616 wxPyEndAllowThreads(__tstate);
40617 if (PyErr_Occurred()) SWIG_fail;
40618 }
40619 resultobj = SWIG_Py_Void();
40620 {
40621 if (temp3)
40622 delete arg3;
40623 }
40624 return resultobj;
40625 fail:
40626 {
40627 if (temp3)
40628 delete arg3;
40629 }
40630 return NULL;
40631 }
40632
40633
40634 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40635 PyObject *resultobj = 0;
40636 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40637 int arg2 ;
40638 wxString *arg3 = 0 ;
40639 void *argp1 = 0 ;
40640 int res1 = 0 ;
40641 int val2 ;
40642 int ecode2 = 0 ;
40643 bool temp3 = false ;
40644 PyObject * obj0 = 0 ;
40645 PyObject * obj1 = 0 ;
40646 PyObject * obj2 = 0 ;
40647 char * kwnames[] = {
40648 (char *) "self",(char *) "id",(char *) "text", NULL
40649 };
40650
40651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40653 if (!SWIG_IsOK(res1)) {
40654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40655 }
40656 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40657 ecode2 = SWIG_AsVal_int(obj1, &val2);
40658 if (!SWIG_IsOK(ecode2)) {
40659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40660 }
40661 arg2 = static_cast< int >(val2);
40662 {
40663 arg3 = wxString_in_helper(obj2);
40664 if (arg3 == NULL) SWIG_fail;
40665 temp3 = true;
40666 }
40667 {
40668 PyThreadState* __tstate = wxPyBeginAllowThreads();
40669 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40670 wxPyEndAllowThreads(__tstate);
40671 if (PyErr_Occurred()) SWIG_fail;
40672 }
40673 resultobj = SWIG_Py_Void();
40674 {
40675 if (temp3)
40676 delete arg3;
40677 }
40678 return resultobj;
40679 fail:
40680 {
40681 if (temp3)
40682 delete arg3;
40683 }
40684 return NULL;
40685 }
40686
40687
40688 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40689 PyObject *resultobj = 0;
40690 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40691 wxWindow *arg2 = (wxWindow *) 0 ;
40692 void *argp1 = 0 ;
40693 int res1 = 0 ;
40694 void *argp2 = 0 ;
40695 int res2 = 0 ;
40696 PyObject * obj0 = 0 ;
40697 PyObject * obj1 = 0 ;
40698 char * kwnames[] = {
40699 (char *) "self",(char *) "window", NULL
40700 };
40701
40702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40704 if (!SWIG_IsOK(res1)) {
40705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40706 }
40707 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40708 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40709 if (!SWIG_IsOK(res2)) {
40710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40711 }
40712 arg2 = reinterpret_cast< wxWindow * >(argp2);
40713 {
40714 PyThreadState* __tstate = wxPyBeginAllowThreads();
40715 (arg1)->RemoveHelp(arg2);
40716 wxPyEndAllowThreads(__tstate);
40717 if (PyErr_Occurred()) SWIG_fail;
40718 }
40719 resultobj = SWIG_Py_Void();
40720 return resultobj;
40721 fail:
40722 return NULL;
40723 }
40724
40725
40726 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40727 PyObject *resultobj = 0;
40728 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40729 void *argp1 = 0 ;
40730 int res1 = 0 ;
40731 PyObject *swig_obj[1] ;
40732
40733 if (!args) SWIG_fail;
40734 swig_obj[0] = args;
40735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40736 if (!SWIG_IsOK(res1)) {
40737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40738 }
40739 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40740 {
40741 PyThreadState* __tstate = wxPyBeginAllowThreads();
40742 wxHelpProvider_Destroy(arg1);
40743 wxPyEndAllowThreads(__tstate);
40744 if (PyErr_Occurred()) SWIG_fail;
40745 }
40746 resultobj = SWIG_Py_Void();
40747 return resultobj;
40748 fail:
40749 return NULL;
40750 }
40751
40752
40753 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40754 PyObject *obj;
40755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40756 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40757 return SWIG_Py_Void();
40758 }
40759
40760 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40761 PyObject *resultobj = 0;
40762 wxSimpleHelpProvider *result = 0 ;
40763
40764 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40765 {
40766 PyThreadState* __tstate = wxPyBeginAllowThreads();
40767 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40768 wxPyEndAllowThreads(__tstate);
40769 if (PyErr_Occurred()) SWIG_fail;
40770 }
40771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40772 return resultobj;
40773 fail:
40774 return NULL;
40775 }
40776
40777
40778 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40779 PyObject *obj;
40780 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40781 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40782 return SWIG_Py_Void();
40783 }
40784
40785 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40786 return SWIG_Python_InitShadowInstance(args);
40787 }
40788
40789 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40790 PyObject *resultobj = 0;
40791 wxBitmap *arg1 = 0 ;
40792 wxCursor const &arg2_defvalue = wxNullCursor ;
40793 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40794 wxGenericDragImage *result = 0 ;
40795 void *argp1 = 0 ;
40796 int res1 = 0 ;
40797 void *argp2 = 0 ;
40798 int res2 = 0 ;
40799 PyObject * obj0 = 0 ;
40800 PyObject * obj1 = 0 ;
40801 char * kwnames[] = {
40802 (char *) "image",(char *) "cursor", NULL
40803 };
40804
40805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40806 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40807 if (!SWIG_IsOK(res1)) {
40808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40809 }
40810 if (!argp1) {
40811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40812 }
40813 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40814 if (obj1) {
40815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40816 if (!SWIG_IsOK(res2)) {
40817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40818 }
40819 if (!argp2) {
40820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40821 }
40822 arg2 = reinterpret_cast< wxCursor * >(argp2);
40823 }
40824 {
40825 if (!wxPyCheckForApp()) SWIG_fail;
40826 PyThreadState* __tstate = wxPyBeginAllowThreads();
40827 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40828 wxPyEndAllowThreads(__tstate);
40829 if (PyErr_Occurred()) SWIG_fail;
40830 }
40831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40832 return resultobj;
40833 fail:
40834 return NULL;
40835 }
40836
40837
40838 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40839 PyObject *resultobj = 0;
40840 wxIcon *arg1 = 0 ;
40841 wxCursor const &arg2_defvalue = wxNullCursor ;
40842 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40843 wxGenericDragImage *result = 0 ;
40844 void *argp1 = 0 ;
40845 int res1 = 0 ;
40846 void *argp2 = 0 ;
40847 int res2 = 0 ;
40848 PyObject * obj0 = 0 ;
40849 PyObject * obj1 = 0 ;
40850 char * kwnames[] = {
40851 (char *) "image",(char *) "cursor", NULL
40852 };
40853
40854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40855 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40856 if (!SWIG_IsOK(res1)) {
40857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40858 }
40859 if (!argp1) {
40860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40861 }
40862 arg1 = reinterpret_cast< wxIcon * >(argp1);
40863 if (obj1) {
40864 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40865 if (!SWIG_IsOK(res2)) {
40866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40867 }
40868 if (!argp2) {
40869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40870 }
40871 arg2 = reinterpret_cast< wxCursor * >(argp2);
40872 }
40873 {
40874 if (!wxPyCheckForApp()) SWIG_fail;
40875 PyThreadState* __tstate = wxPyBeginAllowThreads();
40876 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40877 wxPyEndAllowThreads(__tstate);
40878 if (PyErr_Occurred()) SWIG_fail;
40879 }
40880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40881 return resultobj;
40882 fail:
40883 return NULL;
40884 }
40885
40886
40887 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40888 PyObject *resultobj = 0;
40889 wxString *arg1 = 0 ;
40890 wxCursor const &arg2_defvalue = wxNullCursor ;
40891 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40892 wxGenericDragImage *result = 0 ;
40893 bool temp1 = false ;
40894 void *argp2 = 0 ;
40895 int res2 = 0 ;
40896 PyObject * obj0 = 0 ;
40897 PyObject * obj1 = 0 ;
40898 char * kwnames[] = {
40899 (char *) "str",(char *) "cursor", NULL
40900 };
40901
40902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40903 {
40904 arg1 = wxString_in_helper(obj0);
40905 if (arg1 == NULL) SWIG_fail;
40906 temp1 = true;
40907 }
40908 if (obj1) {
40909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40910 if (!SWIG_IsOK(res2)) {
40911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40912 }
40913 if (!argp2) {
40914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40915 }
40916 arg2 = reinterpret_cast< wxCursor * >(argp2);
40917 }
40918 {
40919 if (!wxPyCheckForApp()) SWIG_fail;
40920 PyThreadState* __tstate = wxPyBeginAllowThreads();
40921 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40922 wxPyEndAllowThreads(__tstate);
40923 if (PyErr_Occurred()) SWIG_fail;
40924 }
40925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40926 {
40927 if (temp1)
40928 delete arg1;
40929 }
40930 return resultobj;
40931 fail:
40932 {
40933 if (temp1)
40934 delete arg1;
40935 }
40936 return NULL;
40937 }
40938
40939
40940 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40941 PyObject *resultobj = 0;
40942 wxPyTreeCtrl *arg1 = 0 ;
40943 wxTreeItemId *arg2 = 0 ;
40944 wxGenericDragImage *result = 0 ;
40945 void *argp1 = 0 ;
40946 int res1 = 0 ;
40947 void *argp2 = 0 ;
40948 int res2 = 0 ;
40949 PyObject * obj0 = 0 ;
40950 PyObject * obj1 = 0 ;
40951 char * kwnames[] = {
40952 (char *) "treeCtrl",(char *) "id", NULL
40953 };
40954
40955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40956 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40957 if (!SWIG_IsOK(res1)) {
40958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40959 }
40960 if (!argp1) {
40961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40962 }
40963 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40965 if (!SWIG_IsOK(res2)) {
40966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40967 }
40968 if (!argp2) {
40969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40970 }
40971 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40972 {
40973 if (!wxPyCheckForApp()) SWIG_fail;
40974 PyThreadState* __tstate = wxPyBeginAllowThreads();
40975 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40976 wxPyEndAllowThreads(__tstate);
40977 if (PyErr_Occurred()) SWIG_fail;
40978 }
40979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40980 return resultobj;
40981 fail:
40982 return NULL;
40983 }
40984
40985
40986 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40987 PyObject *resultobj = 0;
40988 wxPyListCtrl *arg1 = 0 ;
40989 long arg2 ;
40990 wxGenericDragImage *result = 0 ;
40991 void *argp1 = 0 ;
40992 int res1 = 0 ;
40993 long val2 ;
40994 int ecode2 = 0 ;
40995 PyObject * obj0 = 0 ;
40996 PyObject * obj1 = 0 ;
40997 char * kwnames[] = {
40998 (char *) "listCtrl",(char *) "id", NULL
40999 };
41000
41001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
41002 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
41003 if (!SWIG_IsOK(res1)) {
41004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41005 }
41006 if (!argp1) {
41007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41008 }
41009 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
41010 ecode2 = SWIG_AsVal_long(obj1, &val2);
41011 if (!SWIG_IsOK(ecode2)) {
41012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
41013 }
41014 arg2 = static_cast< long >(val2);
41015 {
41016 if (!wxPyCheckForApp()) SWIG_fail;
41017 PyThreadState* __tstate = wxPyBeginAllowThreads();
41018 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
41019 wxPyEndAllowThreads(__tstate);
41020 if (PyErr_Occurred()) SWIG_fail;
41021 }
41022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41023 return resultobj;
41024 fail:
41025 return NULL;
41026 }
41027
41028
41029 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41030 PyObject *resultobj = 0;
41031 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41032 void *argp1 = 0 ;
41033 int res1 = 0 ;
41034 PyObject *swig_obj[1] ;
41035
41036 if (!args) SWIG_fail;
41037 swig_obj[0] = args;
41038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
41039 if (!SWIG_IsOK(res1)) {
41040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41041 }
41042 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41043 {
41044 PyThreadState* __tstate = wxPyBeginAllowThreads();
41045 delete arg1;
41046
41047 wxPyEndAllowThreads(__tstate);
41048 if (PyErr_Occurred()) SWIG_fail;
41049 }
41050 resultobj = SWIG_Py_Void();
41051 return resultobj;
41052 fail:
41053 return NULL;
41054 }
41055
41056
41057 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41058 PyObject *resultobj = 0;
41059 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41060 wxBitmap *arg2 = (wxBitmap *) 0 ;
41061 void *argp1 = 0 ;
41062 int res1 = 0 ;
41063 void *argp2 = 0 ;
41064 int res2 = 0 ;
41065 PyObject * obj0 = 0 ;
41066 PyObject * obj1 = 0 ;
41067 char * kwnames[] = {
41068 (char *) "self",(char *) "bitmap", NULL
41069 };
41070
41071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
41072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41073 if (!SWIG_IsOK(res1)) {
41074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41075 }
41076 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41077 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
41078 if (!SWIG_IsOK(res2)) {
41079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
41080 }
41081 arg2 = reinterpret_cast< wxBitmap * >(argp2);
41082 {
41083 PyThreadState* __tstate = wxPyBeginAllowThreads();
41084 (arg1)->SetBackingBitmap(arg2);
41085 wxPyEndAllowThreads(__tstate);
41086 if (PyErr_Occurred()) SWIG_fail;
41087 }
41088 resultobj = SWIG_Py_Void();
41089 return resultobj;
41090 fail:
41091 return NULL;
41092 }
41093
41094
41095 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41096 PyObject *resultobj = 0;
41097 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41098 wxPoint *arg2 = 0 ;
41099 wxWindow *arg3 = (wxWindow *) 0 ;
41100 bool arg4 = (bool) false ;
41101 wxRect *arg5 = (wxRect *) NULL ;
41102 bool result;
41103 void *argp1 = 0 ;
41104 int res1 = 0 ;
41105 wxPoint temp2 ;
41106 void *argp3 = 0 ;
41107 int res3 = 0 ;
41108 bool val4 ;
41109 int ecode4 = 0 ;
41110 void *argp5 = 0 ;
41111 int res5 = 0 ;
41112 PyObject * obj0 = 0 ;
41113 PyObject * obj1 = 0 ;
41114 PyObject * obj2 = 0 ;
41115 PyObject * obj3 = 0 ;
41116 PyObject * obj4 = 0 ;
41117 char * kwnames[] = {
41118 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
41119 };
41120
41121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41123 if (!SWIG_IsOK(res1)) {
41124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41125 }
41126 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41127 {
41128 arg2 = &temp2;
41129 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41130 }
41131 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41132 if (!SWIG_IsOK(res3)) {
41133 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
41134 }
41135 arg3 = reinterpret_cast< wxWindow * >(argp3);
41136 if (obj3) {
41137 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41138 if (!SWIG_IsOK(ecode4)) {
41139 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
41140 }
41141 arg4 = static_cast< bool >(val4);
41142 }
41143 if (obj4) {
41144 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
41145 if (!SWIG_IsOK(res5)) {
41146 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
41147 }
41148 arg5 = reinterpret_cast< wxRect * >(argp5);
41149 }
41150 {
41151 PyThreadState* __tstate = wxPyBeginAllowThreads();
41152 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
41153 wxPyEndAllowThreads(__tstate);
41154 if (PyErr_Occurred()) SWIG_fail;
41155 }
41156 {
41157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41158 }
41159 return resultobj;
41160 fail:
41161 return NULL;
41162 }
41163
41164
41165 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41166 PyObject *resultobj = 0;
41167 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41168 wxPoint *arg2 = 0 ;
41169 wxWindow *arg3 = (wxWindow *) 0 ;
41170 wxWindow *arg4 = (wxWindow *) 0 ;
41171 bool result;
41172 void *argp1 = 0 ;
41173 int res1 = 0 ;
41174 wxPoint temp2 ;
41175 void *argp3 = 0 ;
41176 int res3 = 0 ;
41177 void *argp4 = 0 ;
41178 int res4 = 0 ;
41179 PyObject * obj0 = 0 ;
41180 PyObject * obj1 = 0 ;
41181 PyObject * obj2 = 0 ;
41182 PyObject * obj3 = 0 ;
41183 char * kwnames[] = {
41184 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
41185 };
41186
41187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41189 if (!SWIG_IsOK(res1)) {
41190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41191 }
41192 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41193 {
41194 arg2 = &temp2;
41195 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41196 }
41197 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41198 if (!SWIG_IsOK(res3)) {
41199 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
41200 }
41201 arg3 = reinterpret_cast< wxWindow * >(argp3);
41202 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
41203 if (!SWIG_IsOK(res4)) {
41204 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
41205 }
41206 arg4 = reinterpret_cast< wxWindow * >(argp4);
41207 {
41208 PyThreadState* __tstate = wxPyBeginAllowThreads();
41209 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
41210 wxPyEndAllowThreads(__tstate);
41211 if (PyErr_Occurred()) SWIG_fail;
41212 }
41213 {
41214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41215 }
41216 return resultobj;
41217 fail:
41218 return NULL;
41219 }
41220
41221
41222 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41223 PyObject *resultobj = 0;
41224 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41225 bool result;
41226 void *argp1 = 0 ;
41227 int res1 = 0 ;
41228 PyObject *swig_obj[1] ;
41229
41230 if (!args) SWIG_fail;
41231 swig_obj[0] = args;
41232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41233 if (!SWIG_IsOK(res1)) {
41234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41235 }
41236 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41237 {
41238 PyThreadState* __tstate = wxPyBeginAllowThreads();
41239 result = (bool)(arg1)->EndDrag();
41240 wxPyEndAllowThreads(__tstate);
41241 if (PyErr_Occurred()) SWIG_fail;
41242 }
41243 {
41244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41245 }
41246 return resultobj;
41247 fail:
41248 return NULL;
41249 }
41250
41251
41252 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41253 PyObject *resultobj = 0;
41254 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41255 wxPoint *arg2 = 0 ;
41256 bool result;
41257 void *argp1 = 0 ;
41258 int res1 = 0 ;
41259 wxPoint temp2 ;
41260 PyObject * obj0 = 0 ;
41261 PyObject * obj1 = 0 ;
41262 char * kwnames[] = {
41263 (char *) "self",(char *) "pt", NULL
41264 };
41265
41266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41268 if (!SWIG_IsOK(res1)) {
41269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41270 }
41271 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41272 {
41273 arg2 = &temp2;
41274 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41275 }
41276 {
41277 PyThreadState* __tstate = wxPyBeginAllowThreads();
41278 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41279 wxPyEndAllowThreads(__tstate);
41280 if (PyErr_Occurred()) SWIG_fail;
41281 }
41282 {
41283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41284 }
41285 return resultobj;
41286 fail:
41287 return NULL;
41288 }
41289
41290
41291 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41292 PyObject *resultobj = 0;
41293 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41294 bool result;
41295 void *argp1 = 0 ;
41296 int res1 = 0 ;
41297 PyObject *swig_obj[1] ;
41298
41299 if (!args) SWIG_fail;
41300 swig_obj[0] = args;
41301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41302 if (!SWIG_IsOK(res1)) {
41303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41304 }
41305 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41306 {
41307 PyThreadState* __tstate = wxPyBeginAllowThreads();
41308 result = (bool)(arg1)->Show();
41309 wxPyEndAllowThreads(__tstate);
41310 if (PyErr_Occurred()) SWIG_fail;
41311 }
41312 {
41313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41314 }
41315 return resultobj;
41316 fail:
41317 return NULL;
41318 }
41319
41320
41321 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41322 PyObject *resultobj = 0;
41323 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41324 bool result;
41325 void *argp1 = 0 ;
41326 int res1 = 0 ;
41327 PyObject *swig_obj[1] ;
41328
41329 if (!args) SWIG_fail;
41330 swig_obj[0] = args;
41331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41332 if (!SWIG_IsOK(res1)) {
41333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41334 }
41335 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41336 {
41337 PyThreadState* __tstate = wxPyBeginAllowThreads();
41338 result = (bool)(arg1)->Hide();
41339 wxPyEndAllowThreads(__tstate);
41340 if (PyErr_Occurred()) SWIG_fail;
41341 }
41342 {
41343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41344 }
41345 return resultobj;
41346 fail:
41347 return NULL;
41348 }
41349
41350
41351 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41352 PyObject *resultobj = 0;
41353 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41354 wxPoint *arg2 = 0 ;
41355 wxRect result;
41356 void *argp1 = 0 ;
41357 int res1 = 0 ;
41358 wxPoint temp2 ;
41359 PyObject * obj0 = 0 ;
41360 PyObject * obj1 = 0 ;
41361 char * kwnames[] = {
41362 (char *) "self",(char *) "pos", NULL
41363 };
41364
41365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41367 if (!SWIG_IsOK(res1)) {
41368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41369 }
41370 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41371 {
41372 arg2 = &temp2;
41373 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41374 }
41375 {
41376 PyThreadState* __tstate = wxPyBeginAllowThreads();
41377 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41378 wxPyEndAllowThreads(__tstate);
41379 if (PyErr_Occurred()) SWIG_fail;
41380 }
41381 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41382 return resultobj;
41383 fail:
41384 return NULL;
41385 }
41386
41387
41388 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41389 PyObject *resultobj = 0;
41390 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41391 wxDC *arg2 = 0 ;
41392 wxPoint *arg3 = 0 ;
41393 bool result;
41394 void *argp1 = 0 ;
41395 int res1 = 0 ;
41396 void *argp2 = 0 ;
41397 int res2 = 0 ;
41398 wxPoint temp3 ;
41399 PyObject * obj0 = 0 ;
41400 PyObject * obj1 = 0 ;
41401 PyObject * obj2 = 0 ;
41402 char * kwnames[] = {
41403 (char *) "self",(char *) "dc",(char *) "pos", NULL
41404 };
41405
41406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41408 if (!SWIG_IsOK(res1)) {
41409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41410 }
41411 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41412 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41413 if (!SWIG_IsOK(res2)) {
41414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41415 }
41416 if (!argp2) {
41417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41418 }
41419 arg2 = reinterpret_cast< wxDC * >(argp2);
41420 {
41421 arg3 = &temp3;
41422 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41423 }
41424 {
41425 PyThreadState* __tstate = wxPyBeginAllowThreads();
41426 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41427 wxPyEndAllowThreads(__tstate);
41428 if (PyErr_Occurred()) SWIG_fail;
41429 }
41430 {
41431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41432 }
41433 return resultobj;
41434 fail:
41435 return NULL;
41436 }
41437
41438
41439 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41440 PyObject *resultobj = 0;
41441 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41442 wxDC *arg2 = 0 ;
41443 wxMemoryDC *arg3 = 0 ;
41444 wxRect *arg4 = 0 ;
41445 wxRect *arg5 = 0 ;
41446 bool result;
41447 void *argp1 = 0 ;
41448 int res1 = 0 ;
41449 void *argp2 = 0 ;
41450 int res2 = 0 ;
41451 void *argp3 = 0 ;
41452 int res3 = 0 ;
41453 wxRect temp4 ;
41454 wxRect temp5 ;
41455 PyObject * obj0 = 0 ;
41456 PyObject * obj1 = 0 ;
41457 PyObject * obj2 = 0 ;
41458 PyObject * obj3 = 0 ;
41459 PyObject * obj4 = 0 ;
41460 char * kwnames[] = {
41461 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41462 };
41463
41464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41466 if (!SWIG_IsOK(res1)) {
41467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41468 }
41469 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41470 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41471 if (!SWIG_IsOK(res2)) {
41472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41473 }
41474 if (!argp2) {
41475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41476 }
41477 arg2 = reinterpret_cast< wxDC * >(argp2);
41478 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41479 if (!SWIG_IsOK(res3)) {
41480 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41481 }
41482 if (!argp3) {
41483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41484 }
41485 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41486 {
41487 arg4 = &temp4;
41488 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41489 }
41490 {
41491 arg5 = &temp5;
41492 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41493 }
41494 {
41495 PyThreadState* __tstate = wxPyBeginAllowThreads();
41496 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41497 wxPyEndAllowThreads(__tstate);
41498 if (PyErr_Occurred()) SWIG_fail;
41499 }
41500 {
41501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41502 }
41503 return resultobj;
41504 fail:
41505 return NULL;
41506 }
41507
41508
41509 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41510 PyObject *resultobj = 0;
41511 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41512 wxPoint *arg2 = 0 ;
41513 wxPoint *arg3 = 0 ;
41514 bool arg4 ;
41515 bool arg5 ;
41516 bool result;
41517 void *argp1 = 0 ;
41518 int res1 = 0 ;
41519 wxPoint temp2 ;
41520 wxPoint temp3 ;
41521 bool val4 ;
41522 int ecode4 = 0 ;
41523 bool val5 ;
41524 int ecode5 = 0 ;
41525 PyObject * obj0 = 0 ;
41526 PyObject * obj1 = 0 ;
41527 PyObject * obj2 = 0 ;
41528 PyObject * obj3 = 0 ;
41529 PyObject * obj4 = 0 ;
41530 char * kwnames[] = {
41531 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41532 };
41533
41534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41536 if (!SWIG_IsOK(res1)) {
41537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41538 }
41539 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41540 {
41541 arg2 = &temp2;
41542 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41543 }
41544 {
41545 arg3 = &temp3;
41546 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41547 }
41548 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41549 if (!SWIG_IsOK(ecode4)) {
41550 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41551 }
41552 arg4 = static_cast< bool >(val4);
41553 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41554 if (!SWIG_IsOK(ecode5)) {
41555 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41556 }
41557 arg5 = static_cast< bool >(val5);
41558 {
41559 PyThreadState* __tstate = wxPyBeginAllowThreads();
41560 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41561 wxPyEndAllowThreads(__tstate);
41562 if (PyErr_Occurred()) SWIG_fail;
41563 }
41564 {
41565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41566 }
41567 return resultobj;
41568 fail:
41569 return NULL;
41570 }
41571
41572
41573 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41574 PyObject *obj;
41575 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41576 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41577 return SWIG_Py_Void();
41578 }
41579
41580 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41581 return SWIG_Python_InitShadowInstance(args);
41582 }
41583
41584 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41585 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41586 return 1;
41587 }
41588
41589
41590 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41591 PyObject *pyobj = 0;
41592
41593 {
41594 #if wxUSE_UNICODE
41595 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41596 #else
41597 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41598 #endif
41599 }
41600 return pyobj;
41601 }
41602
41603
41604 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41605 PyObject *resultobj = 0;
41606 wxWindow *arg1 = (wxWindow *) 0 ;
41607 int arg2 = (int) -1 ;
41608 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41609 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41610 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41611 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41612 wxSize const &arg5_defvalue = wxDefaultSize ;
41613 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41614 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41615 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41616 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41617 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41618 wxString *arg8 = (wxString *) &arg8_defvalue ;
41619 wxDatePickerCtrl *result = 0 ;
41620 void *argp1 = 0 ;
41621 int res1 = 0 ;
41622 int val2 ;
41623 int ecode2 = 0 ;
41624 void *argp3 = 0 ;
41625 int res3 = 0 ;
41626 wxPoint temp4 ;
41627 wxSize temp5 ;
41628 long val6 ;
41629 int ecode6 = 0 ;
41630 void *argp7 = 0 ;
41631 int res7 = 0 ;
41632 bool temp8 = false ;
41633 PyObject * obj0 = 0 ;
41634 PyObject * obj1 = 0 ;
41635 PyObject * obj2 = 0 ;
41636 PyObject * obj3 = 0 ;
41637 PyObject * obj4 = 0 ;
41638 PyObject * obj5 = 0 ;
41639 PyObject * obj6 = 0 ;
41640 PyObject * obj7 = 0 ;
41641 char * kwnames[] = {
41642 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41643 };
41644
41645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41647 if (!SWIG_IsOK(res1)) {
41648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41649 }
41650 arg1 = reinterpret_cast< wxWindow * >(argp1);
41651 if (obj1) {
41652 ecode2 = SWIG_AsVal_int(obj1, &val2);
41653 if (!SWIG_IsOK(ecode2)) {
41654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41655 }
41656 arg2 = static_cast< int >(val2);
41657 }
41658 if (obj2) {
41659 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41660 if (!SWIG_IsOK(res3)) {
41661 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41662 }
41663 if (!argp3) {
41664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41665 }
41666 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41667 }
41668 if (obj3) {
41669 {
41670 arg4 = &temp4;
41671 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41672 }
41673 }
41674 if (obj4) {
41675 {
41676 arg5 = &temp5;
41677 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41678 }
41679 }
41680 if (obj5) {
41681 ecode6 = SWIG_AsVal_long(obj5, &val6);
41682 if (!SWIG_IsOK(ecode6)) {
41683 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41684 }
41685 arg6 = static_cast< long >(val6);
41686 }
41687 if (obj6) {
41688 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41689 if (!SWIG_IsOK(res7)) {
41690 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41691 }
41692 if (!argp7) {
41693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41694 }
41695 arg7 = reinterpret_cast< wxValidator * >(argp7);
41696 }
41697 if (obj7) {
41698 {
41699 arg8 = wxString_in_helper(obj7);
41700 if (arg8 == NULL) SWIG_fail;
41701 temp8 = true;
41702 }
41703 }
41704 {
41705 if (!wxPyCheckForApp()) SWIG_fail;
41706 PyThreadState* __tstate = wxPyBeginAllowThreads();
41707 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41708 wxPyEndAllowThreads(__tstate);
41709 if (PyErr_Occurred()) SWIG_fail;
41710 }
41711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41712 {
41713 if (temp8)
41714 delete arg8;
41715 }
41716 return resultobj;
41717 fail:
41718 {
41719 if (temp8)
41720 delete arg8;
41721 }
41722 return NULL;
41723 }
41724
41725
41726 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41727 PyObject *resultobj = 0;
41728 wxDatePickerCtrl *result = 0 ;
41729
41730 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41731 {
41732 if (!wxPyCheckForApp()) SWIG_fail;
41733 PyThreadState* __tstate = wxPyBeginAllowThreads();
41734 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41735 wxPyEndAllowThreads(__tstate);
41736 if (PyErr_Occurred()) SWIG_fail;
41737 }
41738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41739 return resultobj;
41740 fail:
41741 return NULL;
41742 }
41743
41744
41745 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41746 PyObject *resultobj = 0;
41747 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41748 wxWindow *arg2 = (wxWindow *) 0 ;
41749 int arg3 = (int) -1 ;
41750 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41751 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41752 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41753 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41754 wxSize const &arg6_defvalue = wxDefaultSize ;
41755 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41756 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41757 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41758 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41759 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41760 wxString *arg9 = (wxString *) &arg9_defvalue ;
41761 bool result;
41762 void *argp1 = 0 ;
41763 int res1 = 0 ;
41764 void *argp2 = 0 ;
41765 int res2 = 0 ;
41766 int val3 ;
41767 int ecode3 = 0 ;
41768 void *argp4 = 0 ;
41769 int res4 = 0 ;
41770 wxPoint temp5 ;
41771 wxSize temp6 ;
41772 long val7 ;
41773 int ecode7 = 0 ;
41774 void *argp8 = 0 ;
41775 int res8 = 0 ;
41776 bool temp9 = false ;
41777 PyObject * obj0 = 0 ;
41778 PyObject * obj1 = 0 ;
41779 PyObject * obj2 = 0 ;
41780 PyObject * obj3 = 0 ;
41781 PyObject * obj4 = 0 ;
41782 PyObject * obj5 = 0 ;
41783 PyObject * obj6 = 0 ;
41784 PyObject * obj7 = 0 ;
41785 PyObject * obj8 = 0 ;
41786 char * kwnames[] = {
41787 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41788 };
41789
41790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41792 if (!SWIG_IsOK(res1)) {
41793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41794 }
41795 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41796 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41797 if (!SWIG_IsOK(res2)) {
41798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41799 }
41800 arg2 = reinterpret_cast< wxWindow * >(argp2);
41801 if (obj2) {
41802 ecode3 = SWIG_AsVal_int(obj2, &val3);
41803 if (!SWIG_IsOK(ecode3)) {
41804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41805 }
41806 arg3 = static_cast< int >(val3);
41807 }
41808 if (obj3) {
41809 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41810 if (!SWIG_IsOK(res4)) {
41811 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41812 }
41813 if (!argp4) {
41814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41815 }
41816 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41817 }
41818 if (obj4) {
41819 {
41820 arg5 = &temp5;
41821 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41822 }
41823 }
41824 if (obj5) {
41825 {
41826 arg6 = &temp6;
41827 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41828 }
41829 }
41830 if (obj6) {
41831 ecode7 = SWIG_AsVal_long(obj6, &val7);
41832 if (!SWIG_IsOK(ecode7)) {
41833 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41834 }
41835 arg7 = static_cast< long >(val7);
41836 }
41837 if (obj7) {
41838 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41839 if (!SWIG_IsOK(res8)) {
41840 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41841 }
41842 if (!argp8) {
41843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41844 }
41845 arg8 = reinterpret_cast< wxValidator * >(argp8);
41846 }
41847 if (obj8) {
41848 {
41849 arg9 = wxString_in_helper(obj8);
41850 if (arg9 == NULL) SWIG_fail;
41851 temp9 = true;
41852 }
41853 }
41854 {
41855 PyThreadState* __tstate = wxPyBeginAllowThreads();
41856 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41857 wxPyEndAllowThreads(__tstate);
41858 if (PyErr_Occurred()) SWIG_fail;
41859 }
41860 {
41861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41862 }
41863 {
41864 if (temp9)
41865 delete arg9;
41866 }
41867 return resultobj;
41868 fail:
41869 {
41870 if (temp9)
41871 delete arg9;
41872 }
41873 return NULL;
41874 }
41875
41876
41877 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41878 PyObject *resultobj = 0;
41879 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41880 wxDateTime *arg2 = 0 ;
41881 void *argp1 = 0 ;
41882 int res1 = 0 ;
41883 void *argp2 = 0 ;
41884 int res2 = 0 ;
41885 PyObject * obj0 = 0 ;
41886 PyObject * obj1 = 0 ;
41887 char * kwnames[] = {
41888 (char *) "self",(char *) "dt", NULL
41889 };
41890
41891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41893 if (!SWIG_IsOK(res1)) {
41894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41895 }
41896 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41897 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41898 if (!SWIG_IsOK(res2)) {
41899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41900 }
41901 if (!argp2) {
41902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41903 }
41904 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41905 {
41906 PyThreadState* __tstate = wxPyBeginAllowThreads();
41907 (arg1)->SetValue((wxDateTime const &)*arg2);
41908 wxPyEndAllowThreads(__tstate);
41909 if (PyErr_Occurred()) SWIG_fail;
41910 }
41911 resultobj = SWIG_Py_Void();
41912 return resultobj;
41913 fail:
41914 return NULL;
41915 }
41916
41917
41918 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41919 PyObject *resultobj = 0;
41920 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41921 wxDateTime result;
41922 void *argp1 = 0 ;
41923 int res1 = 0 ;
41924 PyObject *swig_obj[1] ;
41925
41926 if (!args) SWIG_fail;
41927 swig_obj[0] = args;
41928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41929 if (!SWIG_IsOK(res1)) {
41930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41931 }
41932 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41933 {
41934 PyThreadState* __tstate = wxPyBeginAllowThreads();
41935 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41936 wxPyEndAllowThreads(__tstate);
41937 if (PyErr_Occurred()) SWIG_fail;
41938 }
41939 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41940 return resultobj;
41941 fail:
41942 return NULL;
41943 }
41944
41945
41946 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41947 PyObject *resultobj = 0;
41948 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41949 wxDateTime *arg2 = 0 ;
41950 wxDateTime *arg3 = 0 ;
41951 void *argp1 = 0 ;
41952 int res1 = 0 ;
41953 void *argp2 = 0 ;
41954 int res2 = 0 ;
41955 void *argp3 = 0 ;
41956 int res3 = 0 ;
41957 PyObject * obj0 = 0 ;
41958 PyObject * obj1 = 0 ;
41959 PyObject * obj2 = 0 ;
41960 char * kwnames[] = {
41961 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41962 };
41963
41964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41966 if (!SWIG_IsOK(res1)) {
41967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41968 }
41969 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41971 if (!SWIG_IsOK(res2)) {
41972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41973 }
41974 if (!argp2) {
41975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41976 }
41977 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41978 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41979 if (!SWIG_IsOK(res3)) {
41980 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41981 }
41982 if (!argp3) {
41983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41984 }
41985 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41986 {
41987 PyThreadState* __tstate = wxPyBeginAllowThreads();
41988 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41989 wxPyEndAllowThreads(__tstate);
41990 if (PyErr_Occurred()) SWIG_fail;
41991 }
41992 resultobj = SWIG_Py_Void();
41993 return resultobj;
41994 fail:
41995 return NULL;
41996 }
41997
41998
41999 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42000 PyObject *resultobj = 0;
42001 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42002 wxDateTime result;
42003 void *argp1 = 0 ;
42004 int res1 = 0 ;
42005 PyObject *swig_obj[1] ;
42006
42007 if (!args) SWIG_fail;
42008 swig_obj[0] = args;
42009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42010 if (!SWIG_IsOK(res1)) {
42011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42012 }
42013 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42014 {
42015 PyThreadState* __tstate = wxPyBeginAllowThreads();
42016 result = wxDatePickerCtrl_GetLowerLimit(arg1);
42017 wxPyEndAllowThreads(__tstate);
42018 if (PyErr_Occurred()) SWIG_fail;
42019 }
42020 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42021 return resultobj;
42022 fail:
42023 return NULL;
42024 }
42025
42026
42027 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42028 PyObject *resultobj = 0;
42029 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42030 wxDateTime result;
42031 void *argp1 = 0 ;
42032 int res1 = 0 ;
42033 PyObject *swig_obj[1] ;
42034
42035 if (!args) SWIG_fail;
42036 swig_obj[0] = args;
42037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42038 if (!SWIG_IsOK(res1)) {
42039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42040 }
42041 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42042 {
42043 PyThreadState* __tstate = wxPyBeginAllowThreads();
42044 result = wxDatePickerCtrl_GetUpperLimit(arg1);
42045 wxPyEndAllowThreads(__tstate);
42046 if (PyErr_Occurred()) SWIG_fail;
42047 }
42048 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42049 return resultobj;
42050 fail:
42051 return NULL;
42052 }
42053
42054
42055 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42056 PyObject *obj;
42057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42058 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
42059 return SWIG_Py_Void();
42060 }
42061
42062 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42063 return SWIG_Python_InitShadowInstance(args);
42064 }
42065
42066 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
42067 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
42068 return 1;
42069 }
42070
42071
42072 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
42073 PyObject *pyobj = 0;
42074
42075 {
42076 #if wxUSE_UNICODE
42077 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42078 #else
42079 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42080 #endif
42081 }
42082 return pyobj;
42083 }
42084
42085
42086 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42087 PyObject *resultobj = 0;
42088 wxWindow *arg1 = (wxWindow *) 0 ;
42089 int arg2 ;
42090 wxString *arg3 = 0 ;
42091 wxString *arg4 = 0 ;
42092 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42093 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42094 wxSize const &arg6_defvalue = wxDefaultSize ;
42095 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42096 long arg7 = (long) wxHL_DEFAULT_STYLE ;
42097 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
42098 wxString *arg8 = (wxString *) &arg8_defvalue ;
42099 wxHyperlinkCtrl *result = 0 ;
42100 void *argp1 = 0 ;
42101 int res1 = 0 ;
42102 int val2 ;
42103 int ecode2 = 0 ;
42104 bool temp3 = false ;
42105 bool temp4 = false ;
42106 wxPoint temp5 ;
42107 wxSize temp6 ;
42108 long val7 ;
42109 int ecode7 = 0 ;
42110 bool temp8 = false ;
42111 PyObject * obj0 = 0 ;
42112 PyObject * obj1 = 0 ;
42113 PyObject * obj2 = 0 ;
42114 PyObject * obj3 = 0 ;
42115 PyObject * obj4 = 0 ;
42116 PyObject * obj5 = 0 ;
42117 PyObject * obj6 = 0 ;
42118 PyObject * obj7 = 0 ;
42119 char * kwnames[] = {
42120 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42121 };
42122
42123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42125 if (!SWIG_IsOK(res1)) {
42126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42127 }
42128 arg1 = reinterpret_cast< wxWindow * >(argp1);
42129 ecode2 = SWIG_AsVal_int(obj1, &val2);
42130 if (!SWIG_IsOK(ecode2)) {
42131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
42132 }
42133 arg2 = static_cast< int >(val2);
42134 {
42135 arg3 = wxString_in_helper(obj2);
42136 if (arg3 == NULL) SWIG_fail;
42137 temp3 = true;
42138 }
42139 {
42140 arg4 = wxString_in_helper(obj3);
42141 if (arg4 == NULL) SWIG_fail;
42142 temp4 = true;
42143 }
42144 if (obj4) {
42145 {
42146 arg5 = &temp5;
42147 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42148 }
42149 }
42150 if (obj5) {
42151 {
42152 arg6 = &temp6;
42153 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42154 }
42155 }
42156 if (obj6) {
42157 ecode7 = SWIG_AsVal_long(obj6, &val7);
42158 if (!SWIG_IsOK(ecode7)) {
42159 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
42160 }
42161 arg7 = static_cast< long >(val7);
42162 }
42163 if (obj7) {
42164 {
42165 arg8 = wxString_in_helper(obj7);
42166 if (arg8 == NULL) SWIG_fail;
42167 temp8 = true;
42168 }
42169 }
42170 {
42171 if (!wxPyCheckForApp()) SWIG_fail;
42172 PyThreadState* __tstate = wxPyBeginAllowThreads();
42173 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
42174 wxPyEndAllowThreads(__tstate);
42175 if (PyErr_Occurred()) SWIG_fail;
42176 }
42177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
42178 {
42179 if (temp3)
42180 delete arg3;
42181 }
42182 {
42183 if (temp4)
42184 delete arg4;
42185 }
42186 {
42187 if (temp8)
42188 delete arg8;
42189 }
42190 return resultobj;
42191 fail:
42192 {
42193 if (temp3)
42194 delete arg3;
42195 }
42196 {
42197 if (temp4)
42198 delete arg4;
42199 }
42200 {
42201 if (temp8)
42202 delete arg8;
42203 }
42204 return NULL;
42205 }
42206
42207
42208 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42209 PyObject *resultobj = 0;
42210 wxHyperlinkCtrl *result = 0 ;
42211
42212 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
42213 {
42214 if (!wxPyCheckForApp()) SWIG_fail;
42215 PyThreadState* __tstate = wxPyBeginAllowThreads();
42216 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
42217 wxPyEndAllowThreads(__tstate);
42218 if (PyErr_Occurred()) SWIG_fail;
42219 }
42220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
42221 return resultobj;
42222 fail:
42223 return NULL;
42224 }
42225
42226
42227 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42228 PyObject *resultobj = 0;
42229 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42230 wxWindow *arg2 = (wxWindow *) 0 ;
42231 int arg3 ;
42232 wxString *arg4 = 0 ;
42233 wxString *arg5 = 0 ;
42234 wxPoint const &arg6_defvalue = wxDefaultPosition ;
42235 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
42236 wxSize const &arg7_defvalue = wxDefaultSize ;
42237 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
42238 long arg8 = (long) wxHL_DEFAULT_STYLE ;
42239 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
42240 wxString *arg9 = (wxString *) &arg9_defvalue ;
42241 bool result;
42242 void *argp1 = 0 ;
42243 int res1 = 0 ;
42244 void *argp2 = 0 ;
42245 int res2 = 0 ;
42246 int val3 ;
42247 int ecode3 = 0 ;
42248 bool temp4 = false ;
42249 bool temp5 = false ;
42250 wxPoint temp6 ;
42251 wxSize temp7 ;
42252 long val8 ;
42253 int ecode8 = 0 ;
42254 bool temp9 = false ;
42255 PyObject * obj0 = 0 ;
42256 PyObject * obj1 = 0 ;
42257 PyObject * obj2 = 0 ;
42258 PyObject * obj3 = 0 ;
42259 PyObject * obj4 = 0 ;
42260 PyObject * obj5 = 0 ;
42261 PyObject * obj6 = 0 ;
42262 PyObject * obj7 = 0 ;
42263 PyObject * obj8 = 0 ;
42264 char * kwnames[] = {
42265 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42266 };
42267
42268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42270 if (!SWIG_IsOK(res1)) {
42271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42272 }
42273 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42274 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42275 if (!SWIG_IsOK(res2)) {
42276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42277 }
42278 arg2 = reinterpret_cast< wxWindow * >(argp2);
42279 ecode3 = SWIG_AsVal_int(obj2, &val3);
42280 if (!SWIG_IsOK(ecode3)) {
42281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42282 }
42283 arg3 = static_cast< int >(val3);
42284 {
42285 arg4 = wxString_in_helper(obj3);
42286 if (arg4 == NULL) SWIG_fail;
42287 temp4 = true;
42288 }
42289 {
42290 arg5 = wxString_in_helper(obj4);
42291 if (arg5 == NULL) SWIG_fail;
42292 temp5 = true;
42293 }
42294 if (obj5) {
42295 {
42296 arg6 = &temp6;
42297 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42298 }
42299 }
42300 if (obj6) {
42301 {
42302 arg7 = &temp7;
42303 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42304 }
42305 }
42306 if (obj7) {
42307 ecode8 = SWIG_AsVal_long(obj7, &val8);
42308 if (!SWIG_IsOK(ecode8)) {
42309 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42310 }
42311 arg8 = static_cast< long >(val8);
42312 }
42313 if (obj8) {
42314 {
42315 arg9 = wxString_in_helper(obj8);
42316 if (arg9 == NULL) SWIG_fail;
42317 temp9 = true;
42318 }
42319 }
42320 {
42321 PyThreadState* __tstate = wxPyBeginAllowThreads();
42322 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42323 wxPyEndAllowThreads(__tstate);
42324 if (PyErr_Occurred()) SWIG_fail;
42325 }
42326 {
42327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42328 }
42329 {
42330 if (temp4)
42331 delete arg4;
42332 }
42333 {
42334 if (temp5)
42335 delete arg5;
42336 }
42337 {
42338 if (temp9)
42339 delete arg9;
42340 }
42341 return resultobj;
42342 fail:
42343 {
42344 if (temp4)
42345 delete arg4;
42346 }
42347 {
42348 if (temp5)
42349 delete arg5;
42350 }
42351 {
42352 if (temp9)
42353 delete arg9;
42354 }
42355 return NULL;
42356 }
42357
42358
42359 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42360 PyObject *resultobj = 0;
42361 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42362 wxColour result;
42363 void *argp1 = 0 ;
42364 int res1 = 0 ;
42365 PyObject *swig_obj[1] ;
42366
42367 if (!args) SWIG_fail;
42368 swig_obj[0] = args;
42369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42370 if (!SWIG_IsOK(res1)) {
42371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42372 }
42373 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42374 {
42375 PyThreadState* __tstate = wxPyBeginAllowThreads();
42376 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42377 wxPyEndAllowThreads(__tstate);
42378 if (PyErr_Occurred()) SWIG_fail;
42379 }
42380 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42381 return resultobj;
42382 fail:
42383 return NULL;
42384 }
42385
42386
42387 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42388 PyObject *resultobj = 0;
42389 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42390 wxColour *arg2 = 0 ;
42391 void *argp1 = 0 ;
42392 int res1 = 0 ;
42393 wxColour temp2 ;
42394 PyObject * obj0 = 0 ;
42395 PyObject * obj1 = 0 ;
42396 char * kwnames[] = {
42397 (char *) "self",(char *) "colour", NULL
42398 };
42399
42400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42402 if (!SWIG_IsOK(res1)) {
42403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42404 }
42405 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42406 {
42407 arg2 = &temp2;
42408 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42409 }
42410 {
42411 PyThreadState* __tstate = wxPyBeginAllowThreads();
42412 (arg1)->SetHoverColour((wxColour const &)*arg2);
42413 wxPyEndAllowThreads(__tstate);
42414 if (PyErr_Occurred()) SWIG_fail;
42415 }
42416 resultobj = SWIG_Py_Void();
42417 return resultobj;
42418 fail:
42419 return NULL;
42420 }
42421
42422
42423 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42424 PyObject *resultobj = 0;
42425 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42426 wxColour result;
42427 void *argp1 = 0 ;
42428 int res1 = 0 ;
42429 PyObject *swig_obj[1] ;
42430
42431 if (!args) SWIG_fail;
42432 swig_obj[0] = args;
42433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42434 if (!SWIG_IsOK(res1)) {
42435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42436 }
42437 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42438 {
42439 PyThreadState* __tstate = wxPyBeginAllowThreads();
42440 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42441 wxPyEndAllowThreads(__tstate);
42442 if (PyErr_Occurred()) SWIG_fail;
42443 }
42444 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42445 return resultobj;
42446 fail:
42447 return NULL;
42448 }
42449
42450
42451 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42452 PyObject *resultobj = 0;
42453 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42454 wxColour *arg2 = 0 ;
42455 void *argp1 = 0 ;
42456 int res1 = 0 ;
42457 wxColour temp2 ;
42458 PyObject * obj0 = 0 ;
42459 PyObject * obj1 = 0 ;
42460 char * kwnames[] = {
42461 (char *) "self",(char *) "colour", NULL
42462 };
42463
42464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42466 if (!SWIG_IsOK(res1)) {
42467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42468 }
42469 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42470 {
42471 arg2 = &temp2;
42472 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42473 }
42474 {
42475 PyThreadState* __tstate = wxPyBeginAllowThreads();
42476 (arg1)->SetNormalColour((wxColour const &)*arg2);
42477 wxPyEndAllowThreads(__tstate);
42478 if (PyErr_Occurred()) SWIG_fail;
42479 }
42480 resultobj = SWIG_Py_Void();
42481 return resultobj;
42482 fail:
42483 return NULL;
42484 }
42485
42486
42487 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42488 PyObject *resultobj = 0;
42489 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42490 wxColour result;
42491 void *argp1 = 0 ;
42492 int res1 = 0 ;
42493 PyObject *swig_obj[1] ;
42494
42495 if (!args) SWIG_fail;
42496 swig_obj[0] = args;
42497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42498 if (!SWIG_IsOK(res1)) {
42499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42500 }
42501 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42502 {
42503 PyThreadState* __tstate = wxPyBeginAllowThreads();
42504 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42505 wxPyEndAllowThreads(__tstate);
42506 if (PyErr_Occurred()) SWIG_fail;
42507 }
42508 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42509 return resultobj;
42510 fail:
42511 return NULL;
42512 }
42513
42514
42515 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42516 PyObject *resultobj = 0;
42517 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42518 wxColour *arg2 = 0 ;
42519 void *argp1 = 0 ;
42520 int res1 = 0 ;
42521 wxColour temp2 ;
42522 PyObject * obj0 = 0 ;
42523 PyObject * obj1 = 0 ;
42524 char * kwnames[] = {
42525 (char *) "self",(char *) "colour", NULL
42526 };
42527
42528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42530 if (!SWIG_IsOK(res1)) {
42531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42532 }
42533 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42534 {
42535 arg2 = &temp2;
42536 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42537 }
42538 {
42539 PyThreadState* __tstate = wxPyBeginAllowThreads();
42540 (arg1)->SetVisitedColour((wxColour const &)*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_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42552 PyObject *resultobj = 0;
42553 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42554 wxString 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_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42564 }
42565 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42566 {
42567 PyThreadState* __tstate = wxPyBeginAllowThreads();
42568 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42569 wxPyEndAllowThreads(__tstate);
42570 if (PyErr_Occurred()) SWIG_fail;
42571 }
42572 {
42573 #if wxUSE_UNICODE
42574 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42575 #else
42576 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42577 #endif
42578 }
42579 return resultobj;
42580 fail:
42581 return NULL;
42582 }
42583
42584
42585 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42586 PyObject *resultobj = 0;
42587 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42588 wxString *arg2 = 0 ;
42589 void *argp1 = 0 ;
42590 int res1 = 0 ;
42591 bool temp2 = false ;
42592 PyObject * obj0 = 0 ;
42593 PyObject * obj1 = 0 ;
42594 char * kwnames[] = {
42595 (char *) "self",(char *) "url", NULL
42596 };
42597
42598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42600 if (!SWIG_IsOK(res1)) {
42601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42602 }
42603 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42604 {
42605 arg2 = wxString_in_helper(obj1);
42606 if (arg2 == NULL) SWIG_fail;
42607 temp2 = true;
42608 }
42609 {
42610 PyThreadState* __tstate = wxPyBeginAllowThreads();
42611 (arg1)->SetURL((wxString const &)*arg2);
42612 wxPyEndAllowThreads(__tstate);
42613 if (PyErr_Occurred()) SWIG_fail;
42614 }
42615 resultobj = SWIG_Py_Void();
42616 {
42617 if (temp2)
42618 delete arg2;
42619 }
42620 return resultobj;
42621 fail:
42622 {
42623 if (temp2)
42624 delete arg2;
42625 }
42626 return NULL;
42627 }
42628
42629
42630 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42631 PyObject *resultobj = 0;
42632 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42633 bool arg2 = (bool) true ;
42634 void *argp1 = 0 ;
42635 int res1 = 0 ;
42636 bool val2 ;
42637 int ecode2 = 0 ;
42638 PyObject * obj0 = 0 ;
42639 PyObject * obj1 = 0 ;
42640 char * kwnames[] = {
42641 (char *) "self",(char *) "visited", NULL
42642 };
42643
42644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42646 if (!SWIG_IsOK(res1)) {
42647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42648 }
42649 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42650 if (obj1) {
42651 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42652 if (!SWIG_IsOK(ecode2)) {
42653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42654 }
42655 arg2 = static_cast< bool >(val2);
42656 }
42657 {
42658 PyThreadState* __tstate = wxPyBeginAllowThreads();
42659 (arg1)->SetVisited(arg2);
42660 wxPyEndAllowThreads(__tstate);
42661 if (PyErr_Occurred()) SWIG_fail;
42662 }
42663 resultobj = SWIG_Py_Void();
42664 return resultobj;
42665 fail:
42666 return NULL;
42667 }
42668
42669
42670 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42671 PyObject *resultobj = 0;
42672 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42673 bool result;
42674 void *argp1 = 0 ;
42675 int res1 = 0 ;
42676 PyObject *swig_obj[1] ;
42677
42678 if (!args) SWIG_fail;
42679 swig_obj[0] = args;
42680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42681 if (!SWIG_IsOK(res1)) {
42682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42683 }
42684 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42685 {
42686 PyThreadState* __tstate = wxPyBeginAllowThreads();
42687 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42688 wxPyEndAllowThreads(__tstate);
42689 if (PyErr_Occurred()) SWIG_fail;
42690 }
42691 {
42692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42693 }
42694 return resultobj;
42695 fail:
42696 return NULL;
42697 }
42698
42699
42700 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42701 PyObject *obj;
42702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42703 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42704 return SWIG_Py_Void();
42705 }
42706
42707 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42708 return SWIG_Python_InitShadowInstance(args);
42709 }
42710
42711 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42712 PyObject *resultobj = 0;
42713 wxObject *arg1 = (wxObject *) 0 ;
42714 int arg2 ;
42715 wxString *arg3 = 0 ;
42716 wxHyperlinkEvent *result = 0 ;
42717 void *argp1 = 0 ;
42718 int res1 = 0 ;
42719 int val2 ;
42720 int ecode2 = 0 ;
42721 bool temp3 = false ;
42722 PyObject * obj0 = 0 ;
42723 PyObject * obj1 = 0 ;
42724 PyObject * obj2 = 0 ;
42725 char * kwnames[] = {
42726 (char *) "generator",(char *) "id",(char *) "url", NULL
42727 };
42728
42729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42731 if (!SWIG_IsOK(res1)) {
42732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42733 }
42734 arg1 = reinterpret_cast< wxObject * >(argp1);
42735 ecode2 = SWIG_AsVal_int(obj1, &val2);
42736 if (!SWIG_IsOK(ecode2)) {
42737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42738 }
42739 arg2 = static_cast< int >(val2);
42740 {
42741 arg3 = wxString_in_helper(obj2);
42742 if (arg3 == NULL) SWIG_fail;
42743 temp3 = true;
42744 }
42745 {
42746 PyThreadState* __tstate = wxPyBeginAllowThreads();
42747 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42748 wxPyEndAllowThreads(__tstate);
42749 if (PyErr_Occurred()) SWIG_fail;
42750 }
42751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42752 {
42753 if (temp3)
42754 delete arg3;
42755 }
42756 return resultobj;
42757 fail:
42758 {
42759 if (temp3)
42760 delete arg3;
42761 }
42762 return NULL;
42763 }
42764
42765
42766 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42767 PyObject *resultobj = 0;
42768 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42769 wxString result;
42770 void *argp1 = 0 ;
42771 int res1 = 0 ;
42772 PyObject *swig_obj[1] ;
42773
42774 if (!args) SWIG_fail;
42775 swig_obj[0] = args;
42776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42777 if (!SWIG_IsOK(res1)) {
42778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42779 }
42780 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42781 {
42782 PyThreadState* __tstate = wxPyBeginAllowThreads();
42783 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42784 wxPyEndAllowThreads(__tstate);
42785 if (PyErr_Occurred()) SWIG_fail;
42786 }
42787 {
42788 #if wxUSE_UNICODE
42789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42790 #else
42791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42792 #endif
42793 }
42794 return resultobj;
42795 fail:
42796 return NULL;
42797 }
42798
42799
42800 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42801 PyObject *resultobj = 0;
42802 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42803 wxString *arg2 = 0 ;
42804 void *argp1 = 0 ;
42805 int res1 = 0 ;
42806 bool temp2 = false ;
42807 PyObject * obj0 = 0 ;
42808 PyObject * obj1 = 0 ;
42809 char * kwnames[] = {
42810 (char *) "self",(char *) "url", NULL
42811 };
42812
42813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42815 if (!SWIG_IsOK(res1)) {
42816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42817 }
42818 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42819 {
42820 arg2 = wxString_in_helper(obj1);
42821 if (arg2 == NULL) SWIG_fail;
42822 temp2 = true;
42823 }
42824 {
42825 PyThreadState* __tstate = wxPyBeginAllowThreads();
42826 (arg1)->SetURL((wxString const &)*arg2);
42827 wxPyEndAllowThreads(__tstate);
42828 if (PyErr_Occurred()) SWIG_fail;
42829 }
42830 resultobj = SWIG_Py_Void();
42831 {
42832 if (temp2)
42833 delete arg2;
42834 }
42835 return resultobj;
42836 fail:
42837 {
42838 if (temp2)
42839 delete arg2;
42840 }
42841 return NULL;
42842 }
42843
42844
42845 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42846 PyObject *obj;
42847 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42848 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42849 return SWIG_Py_Void();
42850 }
42851
42852 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42853 return SWIG_Python_InitShadowInstance(args);
42854 }
42855
42856 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42857 PyObject *resultobj = 0;
42858 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42859 wxWindow *arg2 = (wxWindow *) 0 ;
42860 int arg3 ;
42861 wxString const &arg4_defvalue = wxEmptyString ;
42862 wxString *arg4 = (wxString *) &arg4_defvalue ;
42863 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42864 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42865 wxSize const &arg6_defvalue = wxDefaultSize ;
42866 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42867 long arg7 = (long) 0 ;
42868 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42869 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42870 wxString const &arg9_defvalue = wxButtonNameStr ;
42871 wxString *arg9 = (wxString *) &arg9_defvalue ;
42872 bool result;
42873 void *argp1 = 0 ;
42874 int res1 = 0 ;
42875 void *argp2 = 0 ;
42876 int res2 = 0 ;
42877 int val3 ;
42878 int ecode3 = 0 ;
42879 bool temp4 = false ;
42880 wxPoint temp5 ;
42881 wxSize temp6 ;
42882 long val7 ;
42883 int ecode7 = 0 ;
42884 void *argp8 = 0 ;
42885 int res8 = 0 ;
42886 bool temp9 = false ;
42887 PyObject * obj0 = 0 ;
42888 PyObject * obj1 = 0 ;
42889 PyObject * obj2 = 0 ;
42890 PyObject * obj3 = 0 ;
42891 PyObject * obj4 = 0 ;
42892 PyObject * obj5 = 0 ;
42893 PyObject * obj6 = 0 ;
42894 PyObject * obj7 = 0 ;
42895 PyObject * obj8 = 0 ;
42896 char * kwnames[] = {
42897 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42898 };
42899
42900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42902 if (!SWIG_IsOK(res1)) {
42903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42904 }
42905 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42906 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42907 if (!SWIG_IsOK(res2)) {
42908 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42909 }
42910 arg2 = reinterpret_cast< wxWindow * >(argp2);
42911 ecode3 = SWIG_AsVal_int(obj2, &val3);
42912 if (!SWIG_IsOK(ecode3)) {
42913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42914 }
42915 arg3 = static_cast< int >(val3);
42916 if (obj3) {
42917 {
42918 arg4 = wxString_in_helper(obj3);
42919 if (arg4 == NULL) SWIG_fail;
42920 temp4 = true;
42921 }
42922 }
42923 if (obj4) {
42924 {
42925 arg5 = &temp5;
42926 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42927 }
42928 }
42929 if (obj5) {
42930 {
42931 arg6 = &temp6;
42932 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42933 }
42934 }
42935 if (obj6) {
42936 ecode7 = SWIG_AsVal_long(obj6, &val7);
42937 if (!SWIG_IsOK(ecode7)) {
42938 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42939 }
42940 arg7 = static_cast< long >(val7);
42941 }
42942 if (obj7) {
42943 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42944 if (!SWIG_IsOK(res8)) {
42945 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42946 }
42947 if (!argp8) {
42948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42949 }
42950 arg8 = reinterpret_cast< wxValidator * >(argp8);
42951 }
42952 if (obj8) {
42953 {
42954 arg9 = wxString_in_helper(obj8);
42955 if (arg9 == NULL) SWIG_fail;
42956 temp9 = true;
42957 }
42958 }
42959 {
42960 PyThreadState* __tstate = wxPyBeginAllowThreads();
42961 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42962 wxPyEndAllowThreads(__tstate);
42963 if (PyErr_Occurred()) SWIG_fail;
42964 }
42965 {
42966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42967 }
42968 {
42969 if (temp4)
42970 delete arg4;
42971 }
42972 {
42973 if (temp9)
42974 delete arg9;
42975 }
42976 return resultobj;
42977 fail:
42978 {
42979 if (temp4)
42980 delete arg4;
42981 }
42982 {
42983 if (temp9)
42984 delete arg9;
42985 }
42986 return NULL;
42987 }
42988
42989
42990 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42991 PyObject *resultobj = 0;
42992 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42993 int arg2 ;
42994 void *argp1 = 0 ;
42995 int res1 = 0 ;
42996 int val2 ;
42997 int ecode2 = 0 ;
42998 PyObject * obj0 = 0 ;
42999 PyObject * obj1 = 0 ;
43000 char * kwnames[] = {
43001 (char *) "self",(char *) "newmargin", NULL
43002 };
43003
43004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
43005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43006 if (!SWIG_IsOK(res1)) {
43007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43008 }
43009 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43010 ecode2 = SWIG_AsVal_int(obj1, &val2);
43011 if (!SWIG_IsOK(ecode2)) {
43012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
43013 }
43014 arg2 = static_cast< int >(val2);
43015 {
43016 PyThreadState* __tstate = wxPyBeginAllowThreads();
43017 (arg1)->SetInternalMargin(arg2);
43018 wxPyEndAllowThreads(__tstate);
43019 if (PyErr_Occurred()) SWIG_fail;
43020 }
43021 resultobj = SWIG_Py_Void();
43022 return resultobj;
43023 fail:
43024 return NULL;
43025 }
43026
43027
43028 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43029 PyObject *resultobj = 0;
43030 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43031 int result;
43032 void *argp1 = 0 ;
43033 int res1 = 0 ;
43034 PyObject *swig_obj[1] ;
43035
43036 if (!args) SWIG_fail;
43037 swig_obj[0] = args;
43038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43039 if (!SWIG_IsOK(res1)) {
43040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43041 }
43042 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43043 {
43044 PyThreadState* __tstate = wxPyBeginAllowThreads();
43045 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
43046 wxPyEndAllowThreads(__tstate);
43047 if (PyErr_Occurred()) SWIG_fail;
43048 }
43049 resultobj = SWIG_From_int(static_cast< int >(result));
43050 return resultobj;
43051 fail:
43052 return NULL;
43053 }
43054
43055
43056 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43057 PyObject *resultobj = 0;
43058 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43059 int arg2 ;
43060 void *argp1 = 0 ;
43061 int res1 = 0 ;
43062 int val2 ;
43063 int ecode2 = 0 ;
43064 PyObject * obj0 = 0 ;
43065 PyObject * obj1 = 0 ;
43066 char * kwnames[] = {
43067 (char *) "self",(char *) "prop", NULL
43068 };
43069
43070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43072 if (!SWIG_IsOK(res1)) {
43073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43074 }
43075 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43076 ecode2 = SWIG_AsVal_int(obj1, &val2);
43077 if (!SWIG_IsOK(ecode2)) {
43078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43079 }
43080 arg2 = static_cast< int >(val2);
43081 {
43082 PyThreadState* __tstate = wxPyBeginAllowThreads();
43083 (arg1)->SetTextCtrlProportion(arg2);
43084 wxPyEndAllowThreads(__tstate);
43085 if (PyErr_Occurred()) SWIG_fail;
43086 }
43087 resultobj = SWIG_Py_Void();
43088 return resultobj;
43089 fail:
43090 return NULL;
43091 }
43092
43093
43094 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43095 PyObject *resultobj = 0;
43096 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43097 int result;
43098 void *argp1 = 0 ;
43099 int res1 = 0 ;
43100 PyObject *swig_obj[1] ;
43101
43102 if (!args) SWIG_fail;
43103 swig_obj[0] = args;
43104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43105 if (!SWIG_IsOK(res1)) {
43106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43107 }
43108 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43109 {
43110 PyThreadState* __tstate = wxPyBeginAllowThreads();
43111 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
43112 wxPyEndAllowThreads(__tstate);
43113 if (PyErr_Occurred()) SWIG_fail;
43114 }
43115 resultobj = SWIG_From_int(static_cast< int >(result));
43116 return resultobj;
43117 fail:
43118 return NULL;
43119 }
43120
43121
43122 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43123 PyObject *resultobj = 0;
43124 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43125 int arg2 ;
43126 void *argp1 = 0 ;
43127 int res1 = 0 ;
43128 int val2 ;
43129 int ecode2 = 0 ;
43130 PyObject * obj0 = 0 ;
43131 PyObject * obj1 = 0 ;
43132 char * kwnames[] = {
43133 (char *) "self",(char *) "prop", NULL
43134 };
43135
43136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43138 if (!SWIG_IsOK(res1)) {
43139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43140 }
43141 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43142 ecode2 = SWIG_AsVal_int(obj1, &val2);
43143 if (!SWIG_IsOK(ecode2)) {
43144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43145 }
43146 arg2 = static_cast< int >(val2);
43147 {
43148 PyThreadState* __tstate = wxPyBeginAllowThreads();
43149 (arg1)->SetPickerCtrlProportion(arg2);
43150 wxPyEndAllowThreads(__tstate);
43151 if (PyErr_Occurred()) SWIG_fail;
43152 }
43153 resultobj = SWIG_Py_Void();
43154 return resultobj;
43155 fail:
43156 return NULL;
43157 }
43158
43159
43160 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43161 PyObject *resultobj = 0;
43162 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43163 int result;
43164 void *argp1 = 0 ;
43165 int res1 = 0 ;
43166 PyObject *swig_obj[1] ;
43167
43168 if (!args) SWIG_fail;
43169 swig_obj[0] = args;
43170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43171 if (!SWIG_IsOK(res1)) {
43172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43173 }
43174 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43175 {
43176 PyThreadState* __tstate = wxPyBeginAllowThreads();
43177 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
43178 wxPyEndAllowThreads(__tstate);
43179 if (PyErr_Occurred()) SWIG_fail;
43180 }
43181 resultobj = SWIG_From_int(static_cast< int >(result));
43182 return resultobj;
43183 fail:
43184 return NULL;
43185 }
43186
43187
43188 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43189 PyObject *resultobj = 0;
43190 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43191 bool result;
43192 void *argp1 = 0 ;
43193 int res1 = 0 ;
43194 PyObject *swig_obj[1] ;
43195
43196 if (!args) SWIG_fail;
43197 swig_obj[0] = args;
43198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43199 if (!SWIG_IsOK(res1)) {
43200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43201 }
43202 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43203 {
43204 PyThreadState* __tstate = wxPyBeginAllowThreads();
43205 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
43206 wxPyEndAllowThreads(__tstate);
43207 if (PyErr_Occurred()) SWIG_fail;
43208 }
43209 {
43210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43211 }
43212 return resultobj;
43213 fail:
43214 return NULL;
43215 }
43216
43217
43218 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43219 PyObject *resultobj = 0;
43220 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43221 bool arg2 = (bool) true ;
43222 void *argp1 = 0 ;
43223 int res1 = 0 ;
43224 bool val2 ;
43225 int ecode2 = 0 ;
43226 PyObject * obj0 = 0 ;
43227 PyObject * obj1 = 0 ;
43228 char * kwnames[] = {
43229 (char *) "self",(char *) "grow", NULL
43230 };
43231
43232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43234 if (!SWIG_IsOK(res1)) {
43235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43236 }
43237 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43238 if (obj1) {
43239 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43240 if (!SWIG_IsOK(ecode2)) {
43241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43242 }
43243 arg2 = static_cast< bool >(val2);
43244 }
43245 {
43246 PyThreadState* __tstate = wxPyBeginAllowThreads();
43247 (arg1)->SetTextCtrlGrowable(arg2);
43248 wxPyEndAllowThreads(__tstate);
43249 if (PyErr_Occurred()) SWIG_fail;
43250 }
43251 resultobj = SWIG_Py_Void();
43252 return resultobj;
43253 fail:
43254 return NULL;
43255 }
43256
43257
43258 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43259 PyObject *resultobj = 0;
43260 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43261 bool result;
43262 void *argp1 = 0 ;
43263 int res1 = 0 ;
43264 PyObject *swig_obj[1] ;
43265
43266 if (!args) SWIG_fail;
43267 swig_obj[0] = args;
43268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43269 if (!SWIG_IsOK(res1)) {
43270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43271 }
43272 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43273 {
43274 PyThreadState* __tstate = wxPyBeginAllowThreads();
43275 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43276 wxPyEndAllowThreads(__tstate);
43277 if (PyErr_Occurred()) SWIG_fail;
43278 }
43279 {
43280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43281 }
43282 return resultobj;
43283 fail:
43284 return NULL;
43285 }
43286
43287
43288 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43289 PyObject *resultobj = 0;
43290 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43291 bool arg2 = (bool) true ;
43292 void *argp1 = 0 ;
43293 int res1 = 0 ;
43294 bool val2 ;
43295 int ecode2 = 0 ;
43296 PyObject * obj0 = 0 ;
43297 PyObject * obj1 = 0 ;
43298 char * kwnames[] = {
43299 (char *) "self",(char *) "grow", NULL
43300 };
43301
43302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43304 if (!SWIG_IsOK(res1)) {
43305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43306 }
43307 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43308 if (obj1) {
43309 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43310 if (!SWIG_IsOK(ecode2)) {
43311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43312 }
43313 arg2 = static_cast< bool >(val2);
43314 }
43315 {
43316 PyThreadState* __tstate = wxPyBeginAllowThreads();
43317 (arg1)->SetPickerCtrlGrowable(arg2);
43318 wxPyEndAllowThreads(__tstate);
43319 if (PyErr_Occurred()) SWIG_fail;
43320 }
43321 resultobj = SWIG_Py_Void();
43322 return resultobj;
43323 fail:
43324 return NULL;
43325 }
43326
43327
43328 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43329 PyObject *resultobj = 0;
43330 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43331 bool result;
43332 void *argp1 = 0 ;
43333 int res1 = 0 ;
43334 PyObject *swig_obj[1] ;
43335
43336 if (!args) SWIG_fail;
43337 swig_obj[0] = args;
43338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43339 if (!SWIG_IsOK(res1)) {
43340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43341 }
43342 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43343 {
43344 PyThreadState* __tstate = wxPyBeginAllowThreads();
43345 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43346 wxPyEndAllowThreads(__tstate);
43347 if (PyErr_Occurred()) SWIG_fail;
43348 }
43349 {
43350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43351 }
43352 return resultobj;
43353 fail:
43354 return NULL;
43355 }
43356
43357
43358 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43359 PyObject *resultobj = 0;
43360 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43361 wxTextCtrl *result = 0 ;
43362 void *argp1 = 0 ;
43363 int res1 = 0 ;
43364 PyObject *swig_obj[1] ;
43365
43366 if (!args) SWIG_fail;
43367 swig_obj[0] = args;
43368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43369 if (!SWIG_IsOK(res1)) {
43370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43371 }
43372 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43373 {
43374 PyThreadState* __tstate = wxPyBeginAllowThreads();
43375 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43376 wxPyEndAllowThreads(__tstate);
43377 if (PyErr_Occurred()) SWIG_fail;
43378 }
43379 {
43380 resultobj = wxPyMake_wxObject(result, 0);
43381 }
43382 return resultobj;
43383 fail:
43384 return NULL;
43385 }
43386
43387
43388 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43389 PyObject *resultobj = 0;
43390 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43391 wxControl *result = 0 ;
43392 void *argp1 = 0 ;
43393 int res1 = 0 ;
43394 PyObject *swig_obj[1] ;
43395
43396 if (!args) SWIG_fail;
43397 swig_obj[0] = args;
43398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43399 if (!SWIG_IsOK(res1)) {
43400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43401 }
43402 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43403 {
43404 PyThreadState* __tstate = wxPyBeginAllowThreads();
43405 result = (wxControl *)(arg1)->GetPickerCtrl();
43406 wxPyEndAllowThreads(__tstate);
43407 if (PyErr_Occurred()) SWIG_fail;
43408 }
43409 {
43410 resultobj = wxPyMake_wxObject(result, 0);
43411 }
43412 return resultobj;
43413 fail:
43414 return NULL;
43415 }
43416
43417
43418 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43419 PyObject *obj;
43420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43421 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43422 return SWIG_Py_Void();
43423 }
43424
43425 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43426 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43427 return 1;
43428 }
43429
43430
43431 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43432 PyObject *pyobj = 0;
43433
43434 {
43435 #if wxUSE_UNICODE
43436 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43437 #else
43438 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43439 #endif
43440 }
43441 return pyobj;
43442 }
43443
43444
43445 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43446 PyObject *resultobj = 0;
43447 wxWindow *arg1 = (wxWindow *) 0 ;
43448 int arg2 = (int) -1 ;
43449 wxColour const &arg3_defvalue = *wxBLACK ;
43450 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43451 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43452 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43453 wxSize const &arg5_defvalue = wxDefaultSize ;
43454 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43455 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43456 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43457 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43458 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43459 wxString *arg8 = (wxString *) &arg8_defvalue ;
43460 wxColourPickerCtrl *result = 0 ;
43461 void *argp1 = 0 ;
43462 int res1 = 0 ;
43463 int val2 ;
43464 int ecode2 = 0 ;
43465 wxColour temp3 ;
43466 wxPoint temp4 ;
43467 wxSize temp5 ;
43468 long val6 ;
43469 int ecode6 = 0 ;
43470 void *argp7 = 0 ;
43471 int res7 = 0 ;
43472 bool temp8 = false ;
43473 PyObject * obj0 = 0 ;
43474 PyObject * obj1 = 0 ;
43475 PyObject * obj2 = 0 ;
43476 PyObject * obj3 = 0 ;
43477 PyObject * obj4 = 0 ;
43478 PyObject * obj5 = 0 ;
43479 PyObject * obj6 = 0 ;
43480 PyObject * obj7 = 0 ;
43481 char * kwnames[] = {
43482 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43483 };
43484
43485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43487 if (!SWIG_IsOK(res1)) {
43488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43489 }
43490 arg1 = reinterpret_cast< wxWindow * >(argp1);
43491 if (obj1) {
43492 ecode2 = SWIG_AsVal_int(obj1, &val2);
43493 if (!SWIG_IsOK(ecode2)) {
43494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43495 }
43496 arg2 = static_cast< int >(val2);
43497 }
43498 if (obj2) {
43499 {
43500 arg3 = &temp3;
43501 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43502 }
43503 }
43504 if (obj3) {
43505 {
43506 arg4 = &temp4;
43507 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43508 }
43509 }
43510 if (obj4) {
43511 {
43512 arg5 = &temp5;
43513 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43514 }
43515 }
43516 if (obj5) {
43517 ecode6 = SWIG_AsVal_long(obj5, &val6);
43518 if (!SWIG_IsOK(ecode6)) {
43519 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43520 }
43521 arg6 = static_cast< long >(val6);
43522 }
43523 if (obj6) {
43524 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43525 if (!SWIG_IsOK(res7)) {
43526 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43527 }
43528 if (!argp7) {
43529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43530 }
43531 arg7 = reinterpret_cast< wxValidator * >(argp7);
43532 }
43533 if (obj7) {
43534 {
43535 arg8 = wxString_in_helper(obj7);
43536 if (arg8 == NULL) SWIG_fail;
43537 temp8 = true;
43538 }
43539 }
43540 {
43541 if (!wxPyCheckForApp()) SWIG_fail;
43542 PyThreadState* __tstate = wxPyBeginAllowThreads();
43543 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43544 wxPyEndAllowThreads(__tstate);
43545 if (PyErr_Occurred()) SWIG_fail;
43546 }
43547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43548 {
43549 if (temp8)
43550 delete arg8;
43551 }
43552 return resultobj;
43553 fail:
43554 {
43555 if (temp8)
43556 delete arg8;
43557 }
43558 return NULL;
43559 }
43560
43561
43562 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43563 PyObject *resultobj = 0;
43564 wxColourPickerCtrl *result = 0 ;
43565
43566 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43567 {
43568 if (!wxPyCheckForApp()) SWIG_fail;
43569 PyThreadState* __tstate = wxPyBeginAllowThreads();
43570 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43571 wxPyEndAllowThreads(__tstate);
43572 if (PyErr_Occurred()) SWIG_fail;
43573 }
43574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43575 return resultobj;
43576 fail:
43577 return NULL;
43578 }
43579
43580
43581 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43582 PyObject *resultobj = 0;
43583 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43584 wxWindow *arg2 = (wxWindow *) 0 ;
43585 int arg3 ;
43586 wxColour const &arg4_defvalue = *wxBLACK ;
43587 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43588 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43589 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43590 wxSize const &arg6_defvalue = wxDefaultSize ;
43591 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43592 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43593 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43594 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43595 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43596 wxString *arg9 = (wxString *) &arg9_defvalue ;
43597 bool result;
43598 void *argp1 = 0 ;
43599 int res1 = 0 ;
43600 void *argp2 = 0 ;
43601 int res2 = 0 ;
43602 int val3 ;
43603 int ecode3 = 0 ;
43604 wxColour temp4 ;
43605 wxPoint temp5 ;
43606 wxSize temp6 ;
43607 long val7 ;
43608 int ecode7 = 0 ;
43609 void *argp8 = 0 ;
43610 int res8 = 0 ;
43611 bool temp9 = false ;
43612 PyObject * obj0 = 0 ;
43613 PyObject * obj1 = 0 ;
43614 PyObject * obj2 = 0 ;
43615 PyObject * obj3 = 0 ;
43616 PyObject * obj4 = 0 ;
43617 PyObject * obj5 = 0 ;
43618 PyObject * obj6 = 0 ;
43619 PyObject * obj7 = 0 ;
43620 PyObject * obj8 = 0 ;
43621 char * kwnames[] = {
43622 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43623 };
43624
43625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43627 if (!SWIG_IsOK(res1)) {
43628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43629 }
43630 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43631 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43632 if (!SWIG_IsOK(res2)) {
43633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43634 }
43635 arg2 = reinterpret_cast< wxWindow * >(argp2);
43636 ecode3 = SWIG_AsVal_int(obj2, &val3);
43637 if (!SWIG_IsOK(ecode3)) {
43638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43639 }
43640 arg3 = static_cast< int >(val3);
43641 if (obj3) {
43642 {
43643 arg4 = &temp4;
43644 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43645 }
43646 }
43647 if (obj4) {
43648 {
43649 arg5 = &temp5;
43650 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43651 }
43652 }
43653 if (obj5) {
43654 {
43655 arg6 = &temp6;
43656 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43657 }
43658 }
43659 if (obj6) {
43660 ecode7 = SWIG_AsVal_long(obj6, &val7);
43661 if (!SWIG_IsOK(ecode7)) {
43662 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43663 }
43664 arg7 = static_cast< long >(val7);
43665 }
43666 if (obj7) {
43667 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43668 if (!SWIG_IsOK(res8)) {
43669 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43670 }
43671 if (!argp8) {
43672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43673 }
43674 arg8 = reinterpret_cast< wxValidator * >(argp8);
43675 }
43676 if (obj8) {
43677 {
43678 arg9 = wxString_in_helper(obj8);
43679 if (arg9 == NULL) SWIG_fail;
43680 temp9 = true;
43681 }
43682 }
43683 {
43684 PyThreadState* __tstate = wxPyBeginAllowThreads();
43685 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43686 wxPyEndAllowThreads(__tstate);
43687 if (PyErr_Occurred()) SWIG_fail;
43688 }
43689 {
43690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43691 }
43692 {
43693 if (temp9)
43694 delete arg9;
43695 }
43696 return resultobj;
43697 fail:
43698 {
43699 if (temp9)
43700 delete arg9;
43701 }
43702 return NULL;
43703 }
43704
43705
43706 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43707 PyObject *resultobj = 0;
43708 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43709 wxColour result;
43710 void *argp1 = 0 ;
43711 int res1 = 0 ;
43712 PyObject *swig_obj[1] ;
43713
43714 if (!args) SWIG_fail;
43715 swig_obj[0] = args;
43716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43717 if (!SWIG_IsOK(res1)) {
43718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43719 }
43720 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43721 {
43722 PyThreadState* __tstate = wxPyBeginAllowThreads();
43723 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43724 wxPyEndAllowThreads(__tstate);
43725 if (PyErr_Occurred()) SWIG_fail;
43726 }
43727 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43728 return resultobj;
43729 fail:
43730 return NULL;
43731 }
43732
43733
43734 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43735 PyObject *resultobj = 0;
43736 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43737 wxColour *arg2 = 0 ;
43738 void *argp1 = 0 ;
43739 int res1 = 0 ;
43740 wxColour temp2 ;
43741 PyObject * obj0 = 0 ;
43742 PyObject * obj1 = 0 ;
43743 char * kwnames[] = {
43744 (char *) "self",(char *) "col", NULL
43745 };
43746
43747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43749 if (!SWIG_IsOK(res1)) {
43750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43751 }
43752 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43753 {
43754 arg2 = &temp2;
43755 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43756 }
43757 {
43758 PyThreadState* __tstate = wxPyBeginAllowThreads();
43759 (arg1)->SetColour((wxColour const &)*arg2);
43760 wxPyEndAllowThreads(__tstate);
43761 if (PyErr_Occurred()) SWIG_fail;
43762 }
43763 resultobj = SWIG_Py_Void();
43764 return resultobj;
43765 fail:
43766 return NULL;
43767 }
43768
43769
43770 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43771 PyObject *obj;
43772 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43773 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43774 return SWIG_Py_Void();
43775 }
43776
43777 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43778 return SWIG_Python_InitShadowInstance(args);
43779 }
43780
43781 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43782 PyObject *resultobj = 0;
43783 wxObject *arg1 = (wxObject *) 0 ;
43784 int arg2 ;
43785 wxColour *arg3 = 0 ;
43786 wxColourPickerEvent *result = 0 ;
43787 void *argp1 = 0 ;
43788 int res1 = 0 ;
43789 int val2 ;
43790 int ecode2 = 0 ;
43791 wxColour temp3 ;
43792 PyObject * obj0 = 0 ;
43793 PyObject * obj1 = 0 ;
43794 PyObject * obj2 = 0 ;
43795 char * kwnames[] = {
43796 (char *) "generator",(char *) "id",(char *) "col", NULL
43797 };
43798
43799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43801 if (!SWIG_IsOK(res1)) {
43802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43803 }
43804 arg1 = reinterpret_cast< wxObject * >(argp1);
43805 ecode2 = SWIG_AsVal_int(obj1, &val2);
43806 if (!SWIG_IsOK(ecode2)) {
43807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43808 }
43809 arg2 = static_cast< int >(val2);
43810 {
43811 arg3 = &temp3;
43812 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43813 }
43814 {
43815 PyThreadState* __tstate = wxPyBeginAllowThreads();
43816 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43817 wxPyEndAllowThreads(__tstate);
43818 if (PyErr_Occurred()) SWIG_fail;
43819 }
43820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43821 return resultobj;
43822 fail:
43823 return NULL;
43824 }
43825
43826
43827 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43828 PyObject *resultobj = 0;
43829 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43830 wxColour result;
43831 void *argp1 = 0 ;
43832 int res1 = 0 ;
43833 PyObject *swig_obj[1] ;
43834
43835 if (!args) SWIG_fail;
43836 swig_obj[0] = args;
43837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43838 if (!SWIG_IsOK(res1)) {
43839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43840 }
43841 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43842 {
43843 PyThreadState* __tstate = wxPyBeginAllowThreads();
43844 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43845 wxPyEndAllowThreads(__tstate);
43846 if (PyErr_Occurred()) SWIG_fail;
43847 }
43848 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43849 return resultobj;
43850 fail:
43851 return NULL;
43852 }
43853
43854
43855 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43856 PyObject *resultobj = 0;
43857 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43858 wxColour *arg2 = 0 ;
43859 void *argp1 = 0 ;
43860 int res1 = 0 ;
43861 wxColour temp2 ;
43862 PyObject * obj0 = 0 ;
43863 PyObject * obj1 = 0 ;
43864 char * kwnames[] = {
43865 (char *) "self",(char *) "c", NULL
43866 };
43867
43868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43870 if (!SWIG_IsOK(res1)) {
43871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43872 }
43873 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43874 {
43875 arg2 = &temp2;
43876 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43877 }
43878 {
43879 PyThreadState* __tstate = wxPyBeginAllowThreads();
43880 (arg1)->SetColour((wxColour const &)*arg2);
43881 wxPyEndAllowThreads(__tstate);
43882 if (PyErr_Occurred()) SWIG_fail;
43883 }
43884 resultobj = SWIG_Py_Void();
43885 return resultobj;
43886 fail:
43887 return NULL;
43888 }
43889
43890
43891 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43892 PyObject *obj;
43893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43894 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43895 return SWIG_Py_Void();
43896 }
43897
43898 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43899 return SWIG_Python_InitShadowInstance(args);
43900 }
43901
43902 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43903 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43904 return 1;
43905 }
43906
43907
43908 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43909 PyObject *pyobj = 0;
43910
43911 {
43912 #if wxUSE_UNICODE
43913 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43914 #else
43915 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43916 #endif
43917 }
43918 return pyobj;
43919 }
43920
43921
43922 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43923 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43924 return 1;
43925 }
43926
43927
43928 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43929 PyObject *pyobj = 0;
43930
43931 {
43932 #if wxUSE_UNICODE
43933 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43934 #else
43935 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43936 #endif
43937 }
43938 return pyobj;
43939 }
43940
43941
43942 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43943 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43944 return 1;
43945 }
43946
43947
43948 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43949 PyObject *pyobj = 0;
43950
43951 {
43952 #if wxUSE_UNICODE
43953 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43954 #else
43955 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43956 #endif
43957 }
43958 return pyobj;
43959 }
43960
43961
43962 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43963 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43964 return 1;
43965 }
43966
43967
43968 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43969 PyObject *pyobj = 0;
43970
43971 {
43972 #if wxUSE_UNICODE
43973 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43974 #else
43975 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43976 #endif
43977 }
43978 return pyobj;
43979 }
43980
43981
43982 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43983 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43984 return 1;
43985 }
43986
43987
43988 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43989 PyObject *pyobj = 0;
43990
43991 {
43992 #if wxUSE_UNICODE
43993 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43994 #else
43995 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43996 #endif
43997 }
43998 return pyobj;
43999 }
44000
44001
44002 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44003 PyObject *resultobj = 0;
44004 wxWindow *arg1 = (wxWindow *) 0 ;
44005 int arg2 = (int) -1 ;
44006 wxString const &arg3_defvalue = wxPyEmptyString ;
44007 wxString *arg3 = (wxString *) &arg3_defvalue ;
44008 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
44009 wxString *arg4 = (wxString *) &arg4_defvalue ;
44010 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44011 wxString *arg5 = (wxString *) &arg5_defvalue ;
44012 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44013 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44014 wxSize const &arg7_defvalue = wxDefaultSize ;
44015 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44016 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
44017 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44018 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44019 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
44020 wxString *arg10 = (wxString *) &arg10_defvalue ;
44021 wxFilePickerCtrl *result = 0 ;
44022 void *argp1 = 0 ;
44023 int res1 = 0 ;
44024 int val2 ;
44025 int ecode2 = 0 ;
44026 bool temp3 = false ;
44027 bool temp4 = false ;
44028 bool temp5 = false ;
44029 wxPoint temp6 ;
44030 wxSize temp7 ;
44031 long val8 ;
44032 int ecode8 = 0 ;
44033 void *argp9 = 0 ;
44034 int res9 = 0 ;
44035 bool temp10 = false ;
44036 PyObject * obj0 = 0 ;
44037 PyObject * obj1 = 0 ;
44038 PyObject * obj2 = 0 ;
44039 PyObject * obj3 = 0 ;
44040 PyObject * obj4 = 0 ;
44041 PyObject * obj5 = 0 ;
44042 PyObject * obj6 = 0 ;
44043 PyObject * obj7 = 0 ;
44044 PyObject * obj8 = 0 ;
44045 PyObject * obj9 = 0 ;
44046 char * kwnames[] = {
44047 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44048 };
44049
44050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44052 if (!SWIG_IsOK(res1)) {
44053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44054 }
44055 arg1 = reinterpret_cast< wxWindow * >(argp1);
44056 if (obj1) {
44057 ecode2 = SWIG_AsVal_int(obj1, &val2);
44058 if (!SWIG_IsOK(ecode2)) {
44059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
44060 }
44061 arg2 = static_cast< int >(val2);
44062 }
44063 if (obj2) {
44064 {
44065 arg3 = wxString_in_helper(obj2);
44066 if (arg3 == NULL) SWIG_fail;
44067 temp3 = true;
44068 }
44069 }
44070 if (obj3) {
44071 {
44072 arg4 = wxString_in_helper(obj3);
44073 if (arg4 == NULL) SWIG_fail;
44074 temp4 = true;
44075 }
44076 }
44077 if (obj4) {
44078 {
44079 arg5 = wxString_in_helper(obj4);
44080 if (arg5 == NULL) SWIG_fail;
44081 temp5 = true;
44082 }
44083 }
44084 if (obj5) {
44085 {
44086 arg6 = &temp6;
44087 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44088 }
44089 }
44090 if (obj6) {
44091 {
44092 arg7 = &temp7;
44093 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44094 }
44095 }
44096 if (obj7) {
44097 ecode8 = SWIG_AsVal_long(obj7, &val8);
44098 if (!SWIG_IsOK(ecode8)) {
44099 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
44100 }
44101 arg8 = static_cast< long >(val8);
44102 }
44103 if (obj8) {
44104 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44105 if (!SWIG_IsOK(res9)) {
44106 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44107 }
44108 if (!argp9) {
44109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44110 }
44111 arg9 = reinterpret_cast< wxValidator * >(argp9);
44112 }
44113 if (obj9) {
44114 {
44115 arg10 = wxString_in_helper(obj9);
44116 if (arg10 == NULL) SWIG_fail;
44117 temp10 = true;
44118 }
44119 }
44120 {
44121 if (!wxPyCheckForApp()) SWIG_fail;
44122 PyThreadState* __tstate = wxPyBeginAllowThreads();
44123 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);
44124 wxPyEndAllowThreads(__tstate);
44125 if (PyErr_Occurred()) SWIG_fail;
44126 }
44127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
44128 {
44129 if (temp3)
44130 delete arg3;
44131 }
44132 {
44133 if (temp4)
44134 delete arg4;
44135 }
44136 {
44137 if (temp5)
44138 delete arg5;
44139 }
44140 {
44141 if (temp10)
44142 delete arg10;
44143 }
44144 return resultobj;
44145 fail:
44146 {
44147 if (temp3)
44148 delete arg3;
44149 }
44150 {
44151 if (temp4)
44152 delete arg4;
44153 }
44154 {
44155 if (temp5)
44156 delete arg5;
44157 }
44158 {
44159 if (temp10)
44160 delete arg10;
44161 }
44162 return NULL;
44163 }
44164
44165
44166 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44167 PyObject *resultobj = 0;
44168 wxFilePickerCtrl *result = 0 ;
44169
44170 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
44171 {
44172 if (!wxPyCheckForApp()) SWIG_fail;
44173 PyThreadState* __tstate = wxPyBeginAllowThreads();
44174 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
44175 wxPyEndAllowThreads(__tstate);
44176 if (PyErr_Occurred()) SWIG_fail;
44177 }
44178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
44179 return resultobj;
44180 fail:
44181 return NULL;
44182 }
44183
44184
44185 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44186 PyObject *resultobj = 0;
44187 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44188 wxWindow *arg2 = (wxWindow *) 0 ;
44189 int arg3 = (int) -1 ;
44190 wxString const &arg4_defvalue = wxPyEmptyString ;
44191 wxString *arg4 = (wxString *) &arg4_defvalue ;
44192 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
44193 wxString *arg5 = (wxString *) &arg5_defvalue ;
44194 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44195 wxString *arg6 = (wxString *) &arg6_defvalue ;
44196 wxPoint const &arg7_defvalue = wxDefaultPosition ;
44197 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
44198 wxSize const &arg8_defvalue = wxDefaultSize ;
44199 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
44200 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
44201 wxValidator const &arg10_defvalue = wxDefaultValidator ;
44202 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
44203 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
44204 wxString *arg11 = (wxString *) &arg11_defvalue ;
44205 bool result;
44206 void *argp1 = 0 ;
44207 int res1 = 0 ;
44208 void *argp2 = 0 ;
44209 int res2 = 0 ;
44210 int val3 ;
44211 int ecode3 = 0 ;
44212 bool temp4 = false ;
44213 bool temp5 = false ;
44214 bool temp6 = false ;
44215 wxPoint temp7 ;
44216 wxSize temp8 ;
44217 long val9 ;
44218 int ecode9 = 0 ;
44219 void *argp10 = 0 ;
44220 int res10 = 0 ;
44221 bool temp11 = false ;
44222 PyObject * obj0 = 0 ;
44223 PyObject * obj1 = 0 ;
44224 PyObject * obj2 = 0 ;
44225 PyObject * obj3 = 0 ;
44226 PyObject * obj4 = 0 ;
44227 PyObject * obj5 = 0 ;
44228 PyObject * obj6 = 0 ;
44229 PyObject * obj7 = 0 ;
44230 PyObject * obj8 = 0 ;
44231 PyObject * obj9 = 0 ;
44232 PyObject * obj10 = 0 ;
44233 char * kwnames[] = {
44234 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44235 };
44236
44237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
44238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44239 if (!SWIG_IsOK(res1)) {
44240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44241 }
44242 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44243 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44244 if (!SWIG_IsOK(res2)) {
44245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44246 }
44247 arg2 = reinterpret_cast< wxWindow * >(argp2);
44248 if (obj2) {
44249 ecode3 = SWIG_AsVal_int(obj2, &val3);
44250 if (!SWIG_IsOK(ecode3)) {
44251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44252 }
44253 arg3 = static_cast< int >(val3);
44254 }
44255 if (obj3) {
44256 {
44257 arg4 = wxString_in_helper(obj3);
44258 if (arg4 == NULL) SWIG_fail;
44259 temp4 = true;
44260 }
44261 }
44262 if (obj4) {
44263 {
44264 arg5 = wxString_in_helper(obj4);
44265 if (arg5 == NULL) SWIG_fail;
44266 temp5 = true;
44267 }
44268 }
44269 if (obj5) {
44270 {
44271 arg6 = wxString_in_helper(obj5);
44272 if (arg6 == NULL) SWIG_fail;
44273 temp6 = true;
44274 }
44275 }
44276 if (obj6) {
44277 {
44278 arg7 = &temp7;
44279 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44280 }
44281 }
44282 if (obj7) {
44283 {
44284 arg8 = &temp8;
44285 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44286 }
44287 }
44288 if (obj8) {
44289 ecode9 = SWIG_AsVal_long(obj8, &val9);
44290 if (!SWIG_IsOK(ecode9)) {
44291 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44292 }
44293 arg9 = static_cast< long >(val9);
44294 }
44295 if (obj9) {
44296 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44297 if (!SWIG_IsOK(res10)) {
44298 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44299 }
44300 if (!argp10) {
44301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44302 }
44303 arg10 = reinterpret_cast< wxValidator * >(argp10);
44304 }
44305 if (obj10) {
44306 {
44307 arg11 = wxString_in_helper(obj10);
44308 if (arg11 == NULL) SWIG_fail;
44309 temp11 = true;
44310 }
44311 }
44312 {
44313 PyThreadState* __tstate = wxPyBeginAllowThreads();
44314 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);
44315 wxPyEndAllowThreads(__tstate);
44316 if (PyErr_Occurred()) SWIG_fail;
44317 }
44318 {
44319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44320 }
44321 {
44322 if (temp4)
44323 delete arg4;
44324 }
44325 {
44326 if (temp5)
44327 delete arg5;
44328 }
44329 {
44330 if (temp6)
44331 delete arg6;
44332 }
44333 {
44334 if (temp11)
44335 delete arg11;
44336 }
44337 return resultobj;
44338 fail:
44339 {
44340 if (temp4)
44341 delete arg4;
44342 }
44343 {
44344 if (temp5)
44345 delete arg5;
44346 }
44347 {
44348 if (temp6)
44349 delete arg6;
44350 }
44351 {
44352 if (temp11)
44353 delete arg11;
44354 }
44355 return NULL;
44356 }
44357
44358
44359 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44360 PyObject *resultobj = 0;
44361 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44362 wxString result;
44363 void *argp1 = 0 ;
44364 int res1 = 0 ;
44365 PyObject *swig_obj[1] ;
44366
44367 if (!args) SWIG_fail;
44368 swig_obj[0] = args;
44369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44370 if (!SWIG_IsOK(res1)) {
44371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44372 }
44373 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44374 {
44375 PyThreadState* __tstate = wxPyBeginAllowThreads();
44376 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44377 wxPyEndAllowThreads(__tstate);
44378 if (PyErr_Occurred()) SWIG_fail;
44379 }
44380 {
44381 #if wxUSE_UNICODE
44382 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44383 #else
44384 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44385 #endif
44386 }
44387 return resultobj;
44388 fail:
44389 return NULL;
44390 }
44391
44392
44393 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44394 PyObject *resultobj = 0;
44395 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44396 wxString *arg2 = 0 ;
44397 void *argp1 = 0 ;
44398 int res1 = 0 ;
44399 bool temp2 = false ;
44400 PyObject * obj0 = 0 ;
44401 PyObject * obj1 = 0 ;
44402 char * kwnames[] = {
44403 (char *) "self",(char *) "str", NULL
44404 };
44405
44406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44408 if (!SWIG_IsOK(res1)) {
44409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44410 }
44411 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44412 {
44413 arg2 = wxString_in_helper(obj1);
44414 if (arg2 == NULL) SWIG_fail;
44415 temp2 = true;
44416 }
44417 {
44418 PyThreadState* __tstate = wxPyBeginAllowThreads();
44419 (arg1)->SetPath((wxString const &)*arg2);
44420 wxPyEndAllowThreads(__tstate);
44421 if (PyErr_Occurred()) SWIG_fail;
44422 }
44423 resultobj = SWIG_Py_Void();
44424 {
44425 if (temp2)
44426 delete arg2;
44427 }
44428 return resultobj;
44429 fail:
44430 {
44431 if (temp2)
44432 delete arg2;
44433 }
44434 return NULL;
44435 }
44436
44437
44438 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44439 PyObject *resultobj = 0;
44440 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44441 wxString *arg2 = 0 ;
44442 bool result;
44443 void *argp1 = 0 ;
44444 int res1 = 0 ;
44445 bool temp2 = false ;
44446 PyObject * obj0 = 0 ;
44447 PyObject * obj1 = 0 ;
44448 char * kwnames[] = {
44449 (char *) "self",(char *) "path", NULL
44450 };
44451
44452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44454 if (!SWIG_IsOK(res1)) {
44455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44456 }
44457 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44458 {
44459 arg2 = wxString_in_helper(obj1);
44460 if (arg2 == NULL) SWIG_fail;
44461 temp2 = true;
44462 }
44463 {
44464 PyThreadState* __tstate = wxPyBeginAllowThreads();
44465 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44466 wxPyEndAllowThreads(__tstate);
44467 if (PyErr_Occurred()) SWIG_fail;
44468 }
44469 {
44470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44471 }
44472 {
44473 if (temp2)
44474 delete arg2;
44475 }
44476 return resultobj;
44477 fail:
44478 {
44479 if (temp2)
44480 delete arg2;
44481 }
44482 return NULL;
44483 }
44484
44485
44486 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44487 PyObject *resultobj = 0;
44488 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44489 wxString result;
44490 void *argp1 = 0 ;
44491 int res1 = 0 ;
44492 PyObject *swig_obj[1] ;
44493
44494 if (!args) SWIG_fail;
44495 swig_obj[0] = args;
44496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44497 if (!SWIG_IsOK(res1)) {
44498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44499 }
44500 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44501 {
44502 PyThreadState* __tstate = wxPyBeginAllowThreads();
44503 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44504 wxPyEndAllowThreads(__tstate);
44505 if (PyErr_Occurred()) SWIG_fail;
44506 }
44507 {
44508 #if wxUSE_UNICODE
44509 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44510 #else
44511 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44512 #endif
44513 }
44514 return resultobj;
44515 fail:
44516 return NULL;
44517 }
44518
44519
44520 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44521 PyObject *obj;
44522 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44523 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44524 return SWIG_Py_Void();
44525 }
44526
44527 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44528 return SWIG_Python_InitShadowInstance(args);
44529 }
44530
44531 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44532 PyObject *resultobj = 0;
44533 wxWindow *arg1 = (wxWindow *) 0 ;
44534 int arg2 = (int) -1 ;
44535 wxString const &arg3_defvalue = wxPyEmptyString ;
44536 wxString *arg3 = (wxString *) &arg3_defvalue ;
44537 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44538 wxString *arg4 = (wxString *) &arg4_defvalue ;
44539 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44540 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44541 wxSize const &arg6_defvalue = wxDefaultSize ;
44542 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44543 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44544 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44545 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44546 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44547 wxString *arg9 = (wxString *) &arg9_defvalue ;
44548 wxDirPickerCtrl *result = 0 ;
44549 void *argp1 = 0 ;
44550 int res1 = 0 ;
44551 int val2 ;
44552 int ecode2 = 0 ;
44553 bool temp3 = false ;
44554 bool temp4 = false ;
44555 wxPoint temp5 ;
44556 wxSize temp6 ;
44557 long val7 ;
44558 int ecode7 = 0 ;
44559 void *argp8 = 0 ;
44560 int res8 = 0 ;
44561 bool temp9 = false ;
44562 PyObject * obj0 = 0 ;
44563 PyObject * obj1 = 0 ;
44564 PyObject * obj2 = 0 ;
44565 PyObject * obj3 = 0 ;
44566 PyObject * obj4 = 0 ;
44567 PyObject * obj5 = 0 ;
44568 PyObject * obj6 = 0 ;
44569 PyObject * obj7 = 0 ;
44570 PyObject * obj8 = 0 ;
44571 char * kwnames[] = {
44572 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44573 };
44574
44575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44577 if (!SWIG_IsOK(res1)) {
44578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44579 }
44580 arg1 = reinterpret_cast< wxWindow * >(argp1);
44581 if (obj1) {
44582 ecode2 = SWIG_AsVal_int(obj1, &val2);
44583 if (!SWIG_IsOK(ecode2)) {
44584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44585 }
44586 arg2 = static_cast< int >(val2);
44587 }
44588 if (obj2) {
44589 {
44590 arg3 = wxString_in_helper(obj2);
44591 if (arg3 == NULL) SWIG_fail;
44592 temp3 = true;
44593 }
44594 }
44595 if (obj3) {
44596 {
44597 arg4 = wxString_in_helper(obj3);
44598 if (arg4 == NULL) SWIG_fail;
44599 temp4 = true;
44600 }
44601 }
44602 if (obj4) {
44603 {
44604 arg5 = &temp5;
44605 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44606 }
44607 }
44608 if (obj5) {
44609 {
44610 arg6 = &temp6;
44611 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44612 }
44613 }
44614 if (obj6) {
44615 ecode7 = SWIG_AsVal_long(obj6, &val7);
44616 if (!SWIG_IsOK(ecode7)) {
44617 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44618 }
44619 arg7 = static_cast< long >(val7);
44620 }
44621 if (obj7) {
44622 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44623 if (!SWIG_IsOK(res8)) {
44624 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44625 }
44626 if (!argp8) {
44627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44628 }
44629 arg8 = reinterpret_cast< wxValidator * >(argp8);
44630 }
44631 if (obj8) {
44632 {
44633 arg9 = wxString_in_helper(obj8);
44634 if (arg9 == NULL) SWIG_fail;
44635 temp9 = true;
44636 }
44637 }
44638 {
44639 if (!wxPyCheckForApp()) SWIG_fail;
44640 PyThreadState* __tstate = wxPyBeginAllowThreads();
44641 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);
44642 wxPyEndAllowThreads(__tstate);
44643 if (PyErr_Occurred()) SWIG_fail;
44644 }
44645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44646 {
44647 if (temp3)
44648 delete arg3;
44649 }
44650 {
44651 if (temp4)
44652 delete arg4;
44653 }
44654 {
44655 if (temp9)
44656 delete arg9;
44657 }
44658 return resultobj;
44659 fail:
44660 {
44661 if (temp3)
44662 delete arg3;
44663 }
44664 {
44665 if (temp4)
44666 delete arg4;
44667 }
44668 {
44669 if (temp9)
44670 delete arg9;
44671 }
44672 return NULL;
44673 }
44674
44675
44676 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44677 PyObject *resultobj = 0;
44678 wxDirPickerCtrl *result = 0 ;
44679
44680 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44681 {
44682 if (!wxPyCheckForApp()) SWIG_fail;
44683 PyThreadState* __tstate = wxPyBeginAllowThreads();
44684 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44685 wxPyEndAllowThreads(__tstate);
44686 if (PyErr_Occurred()) SWIG_fail;
44687 }
44688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44689 return resultobj;
44690 fail:
44691 return NULL;
44692 }
44693
44694
44695 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44696 PyObject *resultobj = 0;
44697 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44698 wxWindow *arg2 = (wxWindow *) 0 ;
44699 int arg3 = (int) -1 ;
44700 wxString const &arg4_defvalue = wxPyEmptyString ;
44701 wxString *arg4 = (wxString *) &arg4_defvalue ;
44702 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44703 wxString *arg5 = (wxString *) &arg5_defvalue ;
44704 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44705 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44706 wxSize const &arg7_defvalue = wxDefaultSize ;
44707 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44708 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44709 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44710 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44711 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44712 wxString *arg10 = (wxString *) &arg10_defvalue ;
44713 bool result;
44714 void *argp1 = 0 ;
44715 int res1 = 0 ;
44716 void *argp2 = 0 ;
44717 int res2 = 0 ;
44718 int val3 ;
44719 int ecode3 = 0 ;
44720 bool temp4 = false ;
44721 bool temp5 = false ;
44722 wxPoint temp6 ;
44723 wxSize temp7 ;
44724 long val8 ;
44725 int ecode8 = 0 ;
44726 void *argp9 = 0 ;
44727 int res9 = 0 ;
44728 bool temp10 = false ;
44729 PyObject * obj0 = 0 ;
44730 PyObject * obj1 = 0 ;
44731 PyObject * obj2 = 0 ;
44732 PyObject * obj3 = 0 ;
44733 PyObject * obj4 = 0 ;
44734 PyObject * obj5 = 0 ;
44735 PyObject * obj6 = 0 ;
44736 PyObject * obj7 = 0 ;
44737 PyObject * obj8 = 0 ;
44738 PyObject * obj9 = 0 ;
44739 char * kwnames[] = {
44740 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44741 };
44742
44743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44745 if (!SWIG_IsOK(res1)) {
44746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44747 }
44748 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44749 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44750 if (!SWIG_IsOK(res2)) {
44751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44752 }
44753 arg2 = reinterpret_cast< wxWindow * >(argp2);
44754 if (obj2) {
44755 ecode3 = SWIG_AsVal_int(obj2, &val3);
44756 if (!SWIG_IsOK(ecode3)) {
44757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44758 }
44759 arg3 = static_cast< int >(val3);
44760 }
44761 if (obj3) {
44762 {
44763 arg4 = wxString_in_helper(obj3);
44764 if (arg4 == NULL) SWIG_fail;
44765 temp4 = true;
44766 }
44767 }
44768 if (obj4) {
44769 {
44770 arg5 = wxString_in_helper(obj4);
44771 if (arg5 == NULL) SWIG_fail;
44772 temp5 = true;
44773 }
44774 }
44775 if (obj5) {
44776 {
44777 arg6 = &temp6;
44778 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44779 }
44780 }
44781 if (obj6) {
44782 {
44783 arg7 = &temp7;
44784 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44785 }
44786 }
44787 if (obj7) {
44788 ecode8 = SWIG_AsVal_long(obj7, &val8);
44789 if (!SWIG_IsOK(ecode8)) {
44790 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44791 }
44792 arg8 = static_cast< long >(val8);
44793 }
44794 if (obj8) {
44795 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44796 if (!SWIG_IsOK(res9)) {
44797 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44798 }
44799 if (!argp9) {
44800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44801 }
44802 arg9 = reinterpret_cast< wxValidator * >(argp9);
44803 }
44804 if (obj9) {
44805 {
44806 arg10 = wxString_in_helper(obj9);
44807 if (arg10 == NULL) SWIG_fail;
44808 temp10 = true;
44809 }
44810 }
44811 {
44812 PyThreadState* __tstate = wxPyBeginAllowThreads();
44813 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);
44814 wxPyEndAllowThreads(__tstate);
44815 if (PyErr_Occurred()) SWIG_fail;
44816 }
44817 {
44818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44819 }
44820 {
44821 if (temp4)
44822 delete arg4;
44823 }
44824 {
44825 if (temp5)
44826 delete arg5;
44827 }
44828 {
44829 if (temp10)
44830 delete arg10;
44831 }
44832 return resultobj;
44833 fail:
44834 {
44835 if (temp4)
44836 delete arg4;
44837 }
44838 {
44839 if (temp5)
44840 delete arg5;
44841 }
44842 {
44843 if (temp10)
44844 delete arg10;
44845 }
44846 return NULL;
44847 }
44848
44849
44850 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44851 PyObject *resultobj = 0;
44852 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44853 wxString result;
44854 void *argp1 = 0 ;
44855 int res1 = 0 ;
44856 PyObject *swig_obj[1] ;
44857
44858 if (!args) SWIG_fail;
44859 swig_obj[0] = args;
44860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44861 if (!SWIG_IsOK(res1)) {
44862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44863 }
44864 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44865 {
44866 PyThreadState* __tstate = wxPyBeginAllowThreads();
44867 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44868 wxPyEndAllowThreads(__tstate);
44869 if (PyErr_Occurred()) SWIG_fail;
44870 }
44871 {
44872 #if wxUSE_UNICODE
44873 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44874 #else
44875 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44876 #endif
44877 }
44878 return resultobj;
44879 fail:
44880 return NULL;
44881 }
44882
44883
44884 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44885 PyObject *resultobj = 0;
44886 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44887 wxString *arg2 = 0 ;
44888 void *argp1 = 0 ;
44889 int res1 = 0 ;
44890 bool temp2 = false ;
44891 PyObject * obj0 = 0 ;
44892 PyObject * obj1 = 0 ;
44893 char * kwnames[] = {
44894 (char *) "self",(char *) "str", NULL
44895 };
44896
44897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44899 if (!SWIG_IsOK(res1)) {
44900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44901 }
44902 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44903 {
44904 arg2 = wxString_in_helper(obj1);
44905 if (arg2 == NULL) SWIG_fail;
44906 temp2 = true;
44907 }
44908 {
44909 PyThreadState* __tstate = wxPyBeginAllowThreads();
44910 (arg1)->SetPath((wxString const &)*arg2);
44911 wxPyEndAllowThreads(__tstate);
44912 if (PyErr_Occurred()) SWIG_fail;
44913 }
44914 resultobj = SWIG_Py_Void();
44915 {
44916 if (temp2)
44917 delete arg2;
44918 }
44919 return resultobj;
44920 fail:
44921 {
44922 if (temp2)
44923 delete arg2;
44924 }
44925 return NULL;
44926 }
44927
44928
44929 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44930 PyObject *resultobj = 0;
44931 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44932 wxString *arg2 = 0 ;
44933 bool result;
44934 void *argp1 = 0 ;
44935 int res1 = 0 ;
44936 bool temp2 = false ;
44937 PyObject * obj0 = 0 ;
44938 PyObject * obj1 = 0 ;
44939 char * kwnames[] = {
44940 (char *) "self",(char *) "path", NULL
44941 };
44942
44943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44945 if (!SWIG_IsOK(res1)) {
44946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44947 }
44948 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44949 {
44950 arg2 = wxString_in_helper(obj1);
44951 if (arg2 == NULL) SWIG_fail;
44952 temp2 = true;
44953 }
44954 {
44955 PyThreadState* __tstate = wxPyBeginAllowThreads();
44956 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44957 wxPyEndAllowThreads(__tstate);
44958 if (PyErr_Occurred()) SWIG_fail;
44959 }
44960 {
44961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44962 }
44963 {
44964 if (temp2)
44965 delete arg2;
44966 }
44967 return resultobj;
44968 fail:
44969 {
44970 if (temp2)
44971 delete arg2;
44972 }
44973 return NULL;
44974 }
44975
44976
44977 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44978 PyObject *resultobj = 0;
44979 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44980 wxString result;
44981 void *argp1 = 0 ;
44982 int res1 = 0 ;
44983 PyObject *swig_obj[1] ;
44984
44985 if (!args) SWIG_fail;
44986 swig_obj[0] = args;
44987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44988 if (!SWIG_IsOK(res1)) {
44989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44990 }
44991 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44992 {
44993 PyThreadState* __tstate = wxPyBeginAllowThreads();
44994 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44995 wxPyEndAllowThreads(__tstate);
44996 if (PyErr_Occurred()) SWIG_fail;
44997 }
44998 {
44999 #if wxUSE_UNICODE
45000 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45001 #else
45002 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45003 #endif
45004 }
45005 return resultobj;
45006 fail:
45007 return NULL;
45008 }
45009
45010
45011 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45012 PyObject *obj;
45013 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45014 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
45015 return SWIG_Py_Void();
45016 }
45017
45018 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45019 return SWIG_Python_InitShadowInstance(args);
45020 }
45021
45022 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45023 PyObject *resultobj = 0;
45024 wxEventType arg1 ;
45025 wxObject *arg2 = (wxObject *) 0 ;
45026 int arg3 ;
45027 wxString *arg4 = 0 ;
45028 wxFileDirPickerEvent *result = 0 ;
45029 int val1 ;
45030 int ecode1 = 0 ;
45031 void *argp2 = 0 ;
45032 int res2 = 0 ;
45033 int val3 ;
45034 int ecode3 = 0 ;
45035 bool temp4 = false ;
45036 PyObject * obj0 = 0 ;
45037 PyObject * obj1 = 0 ;
45038 PyObject * obj2 = 0 ;
45039 PyObject * obj3 = 0 ;
45040 char * kwnames[] = {
45041 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
45042 };
45043
45044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
45045 ecode1 = SWIG_AsVal_int(obj0, &val1);
45046 if (!SWIG_IsOK(ecode1)) {
45047 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
45048 }
45049 arg1 = static_cast< wxEventType >(val1);
45050 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
45051 if (!SWIG_IsOK(res2)) {
45052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
45053 }
45054 arg2 = reinterpret_cast< wxObject * >(argp2);
45055 ecode3 = SWIG_AsVal_int(obj2, &val3);
45056 if (!SWIG_IsOK(ecode3)) {
45057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
45058 }
45059 arg3 = static_cast< int >(val3);
45060 {
45061 arg4 = wxString_in_helper(obj3);
45062 if (arg4 == NULL) SWIG_fail;
45063 temp4 = true;
45064 }
45065 {
45066 PyThreadState* __tstate = wxPyBeginAllowThreads();
45067 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
45068 wxPyEndAllowThreads(__tstate);
45069 if (PyErr_Occurred()) SWIG_fail;
45070 }
45071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
45072 {
45073 if (temp4)
45074 delete arg4;
45075 }
45076 return resultobj;
45077 fail:
45078 {
45079 if (temp4)
45080 delete arg4;
45081 }
45082 return NULL;
45083 }
45084
45085
45086 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45087 PyObject *resultobj = 0;
45088 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45089 wxString result;
45090 void *argp1 = 0 ;
45091 int res1 = 0 ;
45092 PyObject *swig_obj[1] ;
45093
45094 if (!args) SWIG_fail;
45095 swig_obj[0] = args;
45096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45097 if (!SWIG_IsOK(res1)) {
45098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
45099 }
45100 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45101 {
45102 PyThreadState* __tstate = wxPyBeginAllowThreads();
45103 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
45104 wxPyEndAllowThreads(__tstate);
45105 if (PyErr_Occurred()) SWIG_fail;
45106 }
45107 {
45108 #if wxUSE_UNICODE
45109 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45110 #else
45111 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45112 #endif
45113 }
45114 return resultobj;
45115 fail:
45116 return NULL;
45117 }
45118
45119
45120 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45121 PyObject *resultobj = 0;
45122 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45123 wxString *arg2 = 0 ;
45124 void *argp1 = 0 ;
45125 int res1 = 0 ;
45126 bool temp2 = false ;
45127 PyObject * obj0 = 0 ;
45128 PyObject * obj1 = 0 ;
45129 char * kwnames[] = {
45130 (char *) "self",(char *) "p", NULL
45131 };
45132
45133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45135 if (!SWIG_IsOK(res1)) {
45136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
45137 }
45138 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45139 {
45140 arg2 = wxString_in_helper(obj1);
45141 if (arg2 == NULL) SWIG_fail;
45142 temp2 = true;
45143 }
45144 {
45145 PyThreadState* __tstate = wxPyBeginAllowThreads();
45146 (arg1)->SetPath((wxString const &)*arg2);
45147 wxPyEndAllowThreads(__tstate);
45148 if (PyErr_Occurred()) SWIG_fail;
45149 }
45150 resultobj = SWIG_Py_Void();
45151 {
45152 if (temp2)
45153 delete arg2;
45154 }
45155 return resultobj;
45156 fail:
45157 {
45158 if (temp2)
45159 delete arg2;
45160 }
45161 return NULL;
45162 }
45163
45164
45165 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45166 PyObject *obj;
45167 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45168 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
45169 return SWIG_Py_Void();
45170 }
45171
45172 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45173 return SWIG_Python_InitShadowInstance(args);
45174 }
45175
45176 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
45177 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
45178 return 1;
45179 }
45180
45181
45182 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
45183 PyObject *pyobj = 0;
45184
45185 {
45186 #if wxUSE_UNICODE
45187 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45188 #else
45189 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45190 #endif
45191 }
45192 return pyobj;
45193 }
45194
45195
45196 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45197 PyObject *resultobj = 0;
45198 wxWindow *arg1 = (wxWindow *) 0 ;
45199 int arg2 = (int) -1 ;
45200 wxFont const &arg3_defvalue = wxNullFont ;
45201 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
45202 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45203 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45204 wxSize const &arg5_defvalue = wxDefaultSize ;
45205 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45206 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
45207 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45208 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45209 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
45210 wxString *arg8 = (wxString *) &arg8_defvalue ;
45211 wxFontPickerCtrl *result = 0 ;
45212 void *argp1 = 0 ;
45213 int res1 = 0 ;
45214 int val2 ;
45215 int ecode2 = 0 ;
45216 void *argp3 = 0 ;
45217 int res3 = 0 ;
45218 wxPoint temp4 ;
45219 wxSize temp5 ;
45220 long val6 ;
45221 int ecode6 = 0 ;
45222 void *argp7 = 0 ;
45223 int res7 = 0 ;
45224 bool temp8 = false ;
45225 PyObject * obj0 = 0 ;
45226 PyObject * obj1 = 0 ;
45227 PyObject * obj2 = 0 ;
45228 PyObject * obj3 = 0 ;
45229 PyObject * obj4 = 0 ;
45230 PyObject * obj5 = 0 ;
45231 PyObject * obj6 = 0 ;
45232 PyObject * obj7 = 0 ;
45233 char * kwnames[] = {
45234 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45235 };
45236
45237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45239 if (!SWIG_IsOK(res1)) {
45240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
45241 }
45242 arg1 = reinterpret_cast< wxWindow * >(argp1);
45243 if (obj1) {
45244 ecode2 = SWIG_AsVal_int(obj1, &val2);
45245 if (!SWIG_IsOK(ecode2)) {
45246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
45247 }
45248 arg2 = static_cast< int >(val2);
45249 }
45250 if (obj2) {
45251 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45252 if (!SWIG_IsOK(res3)) {
45253 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45254 }
45255 if (!argp3) {
45256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45257 }
45258 arg3 = reinterpret_cast< wxFont * >(argp3);
45259 }
45260 if (obj3) {
45261 {
45262 arg4 = &temp4;
45263 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45264 }
45265 }
45266 if (obj4) {
45267 {
45268 arg5 = &temp5;
45269 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45270 }
45271 }
45272 if (obj5) {
45273 ecode6 = SWIG_AsVal_long(obj5, &val6);
45274 if (!SWIG_IsOK(ecode6)) {
45275 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45276 }
45277 arg6 = static_cast< long >(val6);
45278 }
45279 if (obj6) {
45280 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45281 if (!SWIG_IsOK(res7)) {
45282 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45283 }
45284 if (!argp7) {
45285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45286 }
45287 arg7 = reinterpret_cast< wxValidator * >(argp7);
45288 }
45289 if (obj7) {
45290 {
45291 arg8 = wxString_in_helper(obj7);
45292 if (arg8 == NULL) SWIG_fail;
45293 temp8 = true;
45294 }
45295 }
45296 {
45297 if (!wxPyCheckForApp()) SWIG_fail;
45298 PyThreadState* __tstate = wxPyBeginAllowThreads();
45299 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45300 wxPyEndAllowThreads(__tstate);
45301 if (PyErr_Occurred()) SWIG_fail;
45302 }
45303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45304 {
45305 if (temp8)
45306 delete arg8;
45307 }
45308 return resultobj;
45309 fail:
45310 {
45311 if (temp8)
45312 delete arg8;
45313 }
45314 return NULL;
45315 }
45316
45317
45318 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45319 PyObject *resultobj = 0;
45320 wxFontPickerCtrl *result = 0 ;
45321
45322 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45323 {
45324 if (!wxPyCheckForApp()) SWIG_fail;
45325 PyThreadState* __tstate = wxPyBeginAllowThreads();
45326 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45327 wxPyEndAllowThreads(__tstate);
45328 if (PyErr_Occurred()) SWIG_fail;
45329 }
45330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45331 return resultobj;
45332 fail:
45333 return NULL;
45334 }
45335
45336
45337 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45338 PyObject *resultobj = 0;
45339 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45340 wxWindow *arg2 = (wxWindow *) 0 ;
45341 int arg3 = (int) -1 ;
45342 wxFont const &arg4_defvalue = wxNullFont ;
45343 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45344 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45345 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45346 wxSize const &arg6_defvalue = wxDefaultSize ;
45347 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45348 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45349 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45350 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45351 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45352 wxString *arg9 = (wxString *) &arg9_defvalue ;
45353 bool result;
45354 void *argp1 = 0 ;
45355 int res1 = 0 ;
45356 void *argp2 = 0 ;
45357 int res2 = 0 ;
45358 int val3 ;
45359 int ecode3 = 0 ;
45360 void *argp4 = 0 ;
45361 int res4 = 0 ;
45362 wxPoint temp5 ;
45363 wxSize temp6 ;
45364 long val7 ;
45365 int ecode7 = 0 ;
45366 void *argp8 = 0 ;
45367 int res8 = 0 ;
45368 bool temp9 = false ;
45369 PyObject * obj0 = 0 ;
45370 PyObject * obj1 = 0 ;
45371 PyObject * obj2 = 0 ;
45372 PyObject * obj3 = 0 ;
45373 PyObject * obj4 = 0 ;
45374 PyObject * obj5 = 0 ;
45375 PyObject * obj6 = 0 ;
45376 PyObject * obj7 = 0 ;
45377 PyObject * obj8 = 0 ;
45378 char * kwnames[] = {
45379 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45380 };
45381
45382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45384 if (!SWIG_IsOK(res1)) {
45385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45386 }
45387 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45388 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45389 if (!SWIG_IsOK(res2)) {
45390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45391 }
45392 arg2 = reinterpret_cast< wxWindow * >(argp2);
45393 if (obj2) {
45394 ecode3 = SWIG_AsVal_int(obj2, &val3);
45395 if (!SWIG_IsOK(ecode3)) {
45396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45397 }
45398 arg3 = static_cast< int >(val3);
45399 }
45400 if (obj3) {
45401 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45402 if (!SWIG_IsOK(res4)) {
45403 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45404 }
45405 if (!argp4) {
45406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45407 }
45408 arg4 = reinterpret_cast< wxFont * >(argp4);
45409 }
45410 if (obj4) {
45411 {
45412 arg5 = &temp5;
45413 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45414 }
45415 }
45416 if (obj5) {
45417 {
45418 arg6 = &temp6;
45419 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45420 }
45421 }
45422 if (obj6) {
45423 ecode7 = SWIG_AsVal_long(obj6, &val7);
45424 if (!SWIG_IsOK(ecode7)) {
45425 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45426 }
45427 arg7 = static_cast< long >(val7);
45428 }
45429 if (obj7) {
45430 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45431 if (!SWIG_IsOK(res8)) {
45432 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45433 }
45434 if (!argp8) {
45435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45436 }
45437 arg8 = reinterpret_cast< wxValidator * >(argp8);
45438 }
45439 if (obj8) {
45440 {
45441 arg9 = wxString_in_helper(obj8);
45442 if (arg9 == NULL) SWIG_fail;
45443 temp9 = true;
45444 }
45445 }
45446 {
45447 PyThreadState* __tstate = wxPyBeginAllowThreads();
45448 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45449 wxPyEndAllowThreads(__tstate);
45450 if (PyErr_Occurred()) SWIG_fail;
45451 }
45452 {
45453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45454 }
45455 {
45456 if (temp9)
45457 delete arg9;
45458 }
45459 return resultobj;
45460 fail:
45461 {
45462 if (temp9)
45463 delete arg9;
45464 }
45465 return NULL;
45466 }
45467
45468
45469 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45470 PyObject *resultobj = 0;
45471 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45472 wxFont result;
45473 void *argp1 = 0 ;
45474 int res1 = 0 ;
45475 PyObject *swig_obj[1] ;
45476
45477 if (!args) SWIG_fail;
45478 swig_obj[0] = args;
45479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45480 if (!SWIG_IsOK(res1)) {
45481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45482 }
45483 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45484 {
45485 PyThreadState* __tstate = wxPyBeginAllowThreads();
45486 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45487 wxPyEndAllowThreads(__tstate);
45488 if (PyErr_Occurred()) SWIG_fail;
45489 }
45490 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45491 return resultobj;
45492 fail:
45493 return NULL;
45494 }
45495
45496
45497 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45498 PyObject *resultobj = 0;
45499 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45500 wxFont *arg2 = 0 ;
45501 void *argp1 = 0 ;
45502 int res1 = 0 ;
45503 void *argp2 = 0 ;
45504 int res2 = 0 ;
45505 PyObject * obj0 = 0 ;
45506 PyObject * obj1 = 0 ;
45507 char * kwnames[] = {
45508 (char *) "self",(char *) "f", NULL
45509 };
45510
45511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45513 if (!SWIG_IsOK(res1)) {
45514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45515 }
45516 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45518 if (!SWIG_IsOK(res2)) {
45519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45520 }
45521 if (!argp2) {
45522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45523 }
45524 arg2 = reinterpret_cast< wxFont * >(argp2);
45525 {
45526 PyThreadState* __tstate = wxPyBeginAllowThreads();
45527 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45528 wxPyEndAllowThreads(__tstate);
45529 if (PyErr_Occurred()) SWIG_fail;
45530 }
45531 resultobj = SWIG_Py_Void();
45532 return resultobj;
45533 fail:
45534 return NULL;
45535 }
45536
45537
45538 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45539 PyObject *resultobj = 0;
45540 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45541 unsigned int arg2 ;
45542 void *argp1 = 0 ;
45543 int res1 = 0 ;
45544 unsigned int val2 ;
45545 int ecode2 = 0 ;
45546 PyObject * obj0 = 0 ;
45547 PyObject * obj1 = 0 ;
45548 char * kwnames[] = {
45549 (char *) "self",(char *) "max", NULL
45550 };
45551
45552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45554 if (!SWIG_IsOK(res1)) {
45555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45556 }
45557 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45558 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45559 if (!SWIG_IsOK(ecode2)) {
45560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45561 }
45562 arg2 = static_cast< unsigned int >(val2);
45563 {
45564 PyThreadState* __tstate = wxPyBeginAllowThreads();
45565 (arg1)->SetMaxPointSize(arg2);
45566 wxPyEndAllowThreads(__tstate);
45567 if (PyErr_Occurred()) SWIG_fail;
45568 }
45569 resultobj = SWIG_Py_Void();
45570 return resultobj;
45571 fail:
45572 return NULL;
45573 }
45574
45575
45576 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45577 PyObject *resultobj = 0;
45578 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45579 unsigned int result;
45580 void *argp1 = 0 ;
45581 int res1 = 0 ;
45582 PyObject *swig_obj[1] ;
45583
45584 if (!args) SWIG_fail;
45585 swig_obj[0] = args;
45586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45587 if (!SWIG_IsOK(res1)) {
45588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45589 }
45590 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45591 {
45592 PyThreadState* __tstate = wxPyBeginAllowThreads();
45593 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45594 wxPyEndAllowThreads(__tstate);
45595 if (PyErr_Occurred()) SWIG_fail;
45596 }
45597 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45598 return resultobj;
45599 fail:
45600 return NULL;
45601 }
45602
45603
45604 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45605 PyObject *obj;
45606 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45607 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45608 return SWIG_Py_Void();
45609 }
45610
45611 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45612 return SWIG_Python_InitShadowInstance(args);
45613 }
45614
45615 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45616 PyObject *resultobj = 0;
45617 wxObject *arg1 = (wxObject *) 0 ;
45618 int arg2 ;
45619 wxFont *arg3 = 0 ;
45620 wxFontPickerEvent *result = 0 ;
45621 void *argp1 = 0 ;
45622 int res1 = 0 ;
45623 int val2 ;
45624 int ecode2 = 0 ;
45625 void *argp3 = 0 ;
45626 int res3 = 0 ;
45627 PyObject * obj0 = 0 ;
45628 PyObject * obj1 = 0 ;
45629 PyObject * obj2 = 0 ;
45630 char * kwnames[] = {
45631 (char *) "generator",(char *) "id",(char *) "f", NULL
45632 };
45633
45634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45636 if (!SWIG_IsOK(res1)) {
45637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45638 }
45639 arg1 = reinterpret_cast< wxObject * >(argp1);
45640 ecode2 = SWIG_AsVal_int(obj1, &val2);
45641 if (!SWIG_IsOK(ecode2)) {
45642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45643 }
45644 arg2 = static_cast< int >(val2);
45645 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45646 if (!SWIG_IsOK(res3)) {
45647 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45648 }
45649 if (!argp3) {
45650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45651 }
45652 arg3 = reinterpret_cast< wxFont * >(argp3);
45653 {
45654 PyThreadState* __tstate = wxPyBeginAllowThreads();
45655 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45656 wxPyEndAllowThreads(__tstate);
45657 if (PyErr_Occurred()) SWIG_fail;
45658 }
45659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45660 return resultobj;
45661 fail:
45662 return NULL;
45663 }
45664
45665
45666 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45667 PyObject *resultobj = 0;
45668 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45669 wxFont result;
45670 void *argp1 = 0 ;
45671 int res1 = 0 ;
45672 PyObject *swig_obj[1] ;
45673
45674 if (!args) SWIG_fail;
45675 swig_obj[0] = args;
45676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45677 if (!SWIG_IsOK(res1)) {
45678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45679 }
45680 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45681 {
45682 PyThreadState* __tstate = wxPyBeginAllowThreads();
45683 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45684 wxPyEndAllowThreads(__tstate);
45685 if (PyErr_Occurred()) SWIG_fail;
45686 }
45687 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45688 return resultobj;
45689 fail:
45690 return NULL;
45691 }
45692
45693
45694 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45695 PyObject *resultobj = 0;
45696 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45697 wxFont *arg2 = 0 ;
45698 void *argp1 = 0 ;
45699 int res1 = 0 ;
45700 void *argp2 = 0 ;
45701 int res2 = 0 ;
45702 PyObject * obj0 = 0 ;
45703 PyObject * obj1 = 0 ;
45704 char * kwnames[] = {
45705 (char *) "self",(char *) "c", NULL
45706 };
45707
45708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45710 if (!SWIG_IsOK(res1)) {
45711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45712 }
45713 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45715 if (!SWIG_IsOK(res2)) {
45716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45717 }
45718 if (!argp2) {
45719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45720 }
45721 arg2 = reinterpret_cast< wxFont * >(argp2);
45722 {
45723 PyThreadState* __tstate = wxPyBeginAllowThreads();
45724 (arg1)->SetFont((wxFont const &)*arg2);
45725 wxPyEndAllowThreads(__tstate);
45726 if (PyErr_Occurred()) SWIG_fail;
45727 }
45728 resultobj = SWIG_Py_Void();
45729 return resultobj;
45730 fail:
45731 return NULL;
45732 }
45733
45734
45735 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45736 PyObject *obj;
45737 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45738 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45739 return SWIG_Py_Void();
45740 }
45741
45742 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45743 return SWIG_Python_InitShadowInstance(args);
45744 }
45745
45746 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45747 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45748 return 1;
45749 }
45750
45751
45752 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45753 PyObject *pyobj = 0;
45754
45755 {
45756 #if wxUSE_UNICODE
45757 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45758 #else
45759 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45760 #endif
45761 }
45762 return pyobj;
45763 }
45764
45765
45766 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45767 PyObject *resultobj = 0;
45768 wxWindow *arg1 = (wxWindow *) 0 ;
45769 int arg2 = (int) -1 ;
45770 wxString const &arg3_defvalue = wxPyEmptyString ;
45771 wxString *arg3 = (wxString *) &arg3_defvalue ;
45772 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45773 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45774 wxSize const &arg5_defvalue = wxDefaultSize ;
45775 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45776 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45777 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45778 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45779 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45780 wxString *arg8 = (wxString *) &arg8_defvalue ;
45781 wxCollapsiblePane *result = 0 ;
45782 void *argp1 = 0 ;
45783 int res1 = 0 ;
45784 int val2 ;
45785 int ecode2 = 0 ;
45786 bool temp3 = false ;
45787 wxPoint temp4 ;
45788 wxSize temp5 ;
45789 long val6 ;
45790 int ecode6 = 0 ;
45791 void *argp7 = 0 ;
45792 int res7 = 0 ;
45793 bool temp8 = false ;
45794 PyObject * obj0 = 0 ;
45795 PyObject * obj1 = 0 ;
45796 PyObject * obj2 = 0 ;
45797 PyObject * obj3 = 0 ;
45798 PyObject * obj4 = 0 ;
45799 PyObject * obj5 = 0 ;
45800 PyObject * obj6 = 0 ;
45801 PyObject * obj7 = 0 ;
45802 char * kwnames[] = {
45803 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45804 };
45805
45806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45808 if (!SWIG_IsOK(res1)) {
45809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45810 }
45811 arg1 = reinterpret_cast< wxWindow * >(argp1);
45812 if (obj1) {
45813 ecode2 = SWIG_AsVal_int(obj1, &val2);
45814 if (!SWIG_IsOK(ecode2)) {
45815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45816 }
45817 arg2 = static_cast< int >(val2);
45818 }
45819 if (obj2) {
45820 {
45821 arg3 = wxString_in_helper(obj2);
45822 if (arg3 == NULL) SWIG_fail;
45823 temp3 = true;
45824 }
45825 }
45826 if (obj3) {
45827 {
45828 arg4 = &temp4;
45829 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45830 }
45831 }
45832 if (obj4) {
45833 {
45834 arg5 = &temp5;
45835 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45836 }
45837 }
45838 if (obj5) {
45839 ecode6 = SWIG_AsVal_long(obj5, &val6);
45840 if (!SWIG_IsOK(ecode6)) {
45841 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45842 }
45843 arg6 = static_cast< long >(val6);
45844 }
45845 if (obj6) {
45846 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45847 if (!SWIG_IsOK(res7)) {
45848 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45849 }
45850 if (!argp7) {
45851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45852 }
45853 arg7 = reinterpret_cast< wxValidator * >(argp7);
45854 }
45855 if (obj7) {
45856 {
45857 arg8 = wxString_in_helper(obj7);
45858 if (arg8 == NULL) SWIG_fail;
45859 temp8 = true;
45860 }
45861 }
45862 {
45863 if (!wxPyCheckForApp()) SWIG_fail;
45864 PyThreadState* __tstate = wxPyBeginAllowThreads();
45865 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45866 wxPyEndAllowThreads(__tstate);
45867 if (PyErr_Occurred()) SWIG_fail;
45868 }
45869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45870 {
45871 if (temp3)
45872 delete arg3;
45873 }
45874 {
45875 if (temp8)
45876 delete arg8;
45877 }
45878 return resultobj;
45879 fail:
45880 {
45881 if (temp3)
45882 delete arg3;
45883 }
45884 {
45885 if (temp8)
45886 delete arg8;
45887 }
45888 return NULL;
45889 }
45890
45891
45892 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45893 PyObject *resultobj = 0;
45894 wxCollapsiblePane *result = 0 ;
45895
45896 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45897 {
45898 if (!wxPyCheckForApp()) SWIG_fail;
45899 PyThreadState* __tstate = wxPyBeginAllowThreads();
45900 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45901 wxPyEndAllowThreads(__tstate);
45902 if (PyErr_Occurred()) SWIG_fail;
45903 }
45904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45905 return resultobj;
45906 fail:
45907 return NULL;
45908 }
45909
45910
45911 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45912 PyObject *resultobj = 0;
45913 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45914 wxWindow *arg2 = (wxWindow *) 0 ;
45915 int arg3 = (int) -1 ;
45916 wxString const &arg4_defvalue = wxPyEmptyString ;
45917 wxString *arg4 = (wxString *) &arg4_defvalue ;
45918 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45919 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45920 wxSize const &arg6_defvalue = wxDefaultSize ;
45921 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45922 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45923 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45924 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45925 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45926 wxString *arg9 = (wxString *) &arg9_defvalue ;
45927 bool result;
45928 void *argp1 = 0 ;
45929 int res1 = 0 ;
45930 void *argp2 = 0 ;
45931 int res2 = 0 ;
45932 int val3 ;
45933 int ecode3 = 0 ;
45934 bool temp4 = false ;
45935 wxPoint temp5 ;
45936 wxSize temp6 ;
45937 long val7 ;
45938 int ecode7 = 0 ;
45939 void *argp8 = 0 ;
45940 int res8 = 0 ;
45941 bool temp9 = false ;
45942 PyObject * obj0 = 0 ;
45943 PyObject * obj1 = 0 ;
45944 PyObject * obj2 = 0 ;
45945 PyObject * obj3 = 0 ;
45946 PyObject * obj4 = 0 ;
45947 PyObject * obj5 = 0 ;
45948 PyObject * obj6 = 0 ;
45949 PyObject * obj7 = 0 ;
45950 PyObject * obj8 = 0 ;
45951 char * kwnames[] = {
45952 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45953 };
45954
45955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45957 if (!SWIG_IsOK(res1)) {
45958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45959 }
45960 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45961 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45962 if (!SWIG_IsOK(res2)) {
45963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45964 }
45965 arg2 = reinterpret_cast< wxWindow * >(argp2);
45966 if (obj2) {
45967 ecode3 = SWIG_AsVal_int(obj2, &val3);
45968 if (!SWIG_IsOK(ecode3)) {
45969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45970 }
45971 arg3 = static_cast< int >(val3);
45972 }
45973 if (obj3) {
45974 {
45975 arg4 = wxString_in_helper(obj3);
45976 if (arg4 == NULL) SWIG_fail;
45977 temp4 = true;
45978 }
45979 }
45980 if (obj4) {
45981 {
45982 arg5 = &temp5;
45983 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45984 }
45985 }
45986 if (obj5) {
45987 {
45988 arg6 = &temp6;
45989 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45990 }
45991 }
45992 if (obj6) {
45993 ecode7 = SWIG_AsVal_long(obj6, &val7);
45994 if (!SWIG_IsOK(ecode7)) {
45995 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45996 }
45997 arg7 = static_cast< long >(val7);
45998 }
45999 if (obj7) {
46000 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46001 if (!SWIG_IsOK(res8)) {
46002 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46003 }
46004 if (!argp8) {
46005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46006 }
46007 arg8 = reinterpret_cast< wxValidator * >(argp8);
46008 }
46009 if (obj8) {
46010 {
46011 arg9 = wxString_in_helper(obj8);
46012 if (arg9 == NULL) SWIG_fail;
46013 temp9 = true;
46014 }
46015 }
46016 {
46017 PyThreadState* __tstate = wxPyBeginAllowThreads();
46018 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46019 wxPyEndAllowThreads(__tstate);
46020 if (PyErr_Occurred()) SWIG_fail;
46021 }
46022 {
46023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46024 }
46025 {
46026 if (temp4)
46027 delete arg4;
46028 }
46029 {
46030 if (temp9)
46031 delete arg9;
46032 }
46033 return resultobj;
46034 fail:
46035 {
46036 if (temp4)
46037 delete arg4;
46038 }
46039 {
46040 if (temp9)
46041 delete arg9;
46042 }
46043 return NULL;
46044 }
46045
46046
46047 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46048 PyObject *resultobj = 0;
46049 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46050 bool arg2 = (bool) true ;
46051 void *argp1 = 0 ;
46052 int res1 = 0 ;
46053 bool val2 ;
46054 int ecode2 = 0 ;
46055 PyObject * obj0 = 0 ;
46056 PyObject * obj1 = 0 ;
46057 char * kwnames[] = {
46058 (char *) "self",(char *) "collapse", NULL
46059 };
46060
46061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
46062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46063 if (!SWIG_IsOK(res1)) {
46064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46065 }
46066 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46067 if (obj1) {
46068 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46069 if (!SWIG_IsOK(ecode2)) {
46070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
46071 }
46072 arg2 = static_cast< bool >(val2);
46073 }
46074 {
46075 PyThreadState* __tstate = wxPyBeginAllowThreads();
46076 (arg1)->Collapse(arg2);
46077 wxPyEndAllowThreads(__tstate);
46078 if (PyErr_Occurred()) SWIG_fail;
46079 }
46080 resultobj = SWIG_Py_Void();
46081 return resultobj;
46082 fail:
46083 return NULL;
46084 }
46085
46086
46087 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46088 PyObject *resultobj = 0;
46089 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46090 void *argp1 = 0 ;
46091 int res1 = 0 ;
46092 PyObject *swig_obj[1] ;
46093
46094 if (!args) SWIG_fail;
46095 swig_obj[0] = args;
46096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46097 if (!SWIG_IsOK(res1)) {
46098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46099 }
46100 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46101 {
46102 PyThreadState* __tstate = wxPyBeginAllowThreads();
46103 (arg1)->Expand();
46104 wxPyEndAllowThreads(__tstate);
46105 if (PyErr_Occurred()) SWIG_fail;
46106 }
46107 resultobj = SWIG_Py_Void();
46108 return resultobj;
46109 fail:
46110 return NULL;
46111 }
46112
46113
46114 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46115 PyObject *resultobj = 0;
46116 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46117 bool result;
46118 void *argp1 = 0 ;
46119 int res1 = 0 ;
46120 PyObject *swig_obj[1] ;
46121
46122 if (!args) SWIG_fail;
46123 swig_obj[0] = args;
46124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46125 if (!SWIG_IsOK(res1)) {
46126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46127 }
46128 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46129 {
46130 PyThreadState* __tstate = wxPyBeginAllowThreads();
46131 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
46132 wxPyEndAllowThreads(__tstate);
46133 if (PyErr_Occurred()) SWIG_fail;
46134 }
46135 {
46136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46137 }
46138 return resultobj;
46139 fail:
46140 return NULL;
46141 }
46142
46143
46144 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46145 PyObject *resultobj = 0;
46146 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 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_wxCollapsiblePane, 0 | 0 );
46155 if (!SWIG_IsOK(res1)) {
46156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46157 }
46158 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46159 {
46160 PyThreadState* __tstate = wxPyBeginAllowThreads();
46161 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
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_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46175 PyObject *resultobj = 0;
46176 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46177 wxWindow *result = 0 ;
46178 void *argp1 = 0 ;
46179 int res1 = 0 ;
46180 PyObject *swig_obj[1] ;
46181
46182 if (!args) SWIG_fail;
46183 swig_obj[0] = args;
46184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46185 if (!SWIG_IsOK(res1)) {
46186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46187 }
46188 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46189 {
46190 PyThreadState* __tstate = wxPyBeginAllowThreads();
46191 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
46192 wxPyEndAllowThreads(__tstate);
46193 if (PyErr_Occurred()) SWIG_fail;
46194 }
46195 {
46196 resultobj = wxPyMake_wxObject(result, 0);
46197 }
46198 return resultobj;
46199 fail:
46200 return NULL;
46201 }
46202
46203
46204 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46205 PyObject *obj;
46206 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46207 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
46208 return SWIG_Py_Void();
46209 }
46210
46211 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46212 return SWIG_Python_InitShadowInstance(args);
46213 }
46214
46215 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46216 PyObject *resultobj = 0;
46217 wxObject *arg1 = (wxObject *) 0 ;
46218 int arg2 ;
46219 bool arg3 ;
46220 wxCollapsiblePaneEvent *result = 0 ;
46221 void *argp1 = 0 ;
46222 int res1 = 0 ;
46223 int val2 ;
46224 int ecode2 = 0 ;
46225 bool val3 ;
46226 int ecode3 = 0 ;
46227 PyObject * obj0 = 0 ;
46228 PyObject * obj1 = 0 ;
46229 PyObject * obj2 = 0 ;
46230 char * kwnames[] = {
46231 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
46232 };
46233
46234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
46236 if (!SWIG_IsOK(res1)) {
46237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
46238 }
46239 arg1 = reinterpret_cast< wxObject * >(argp1);
46240 ecode2 = SWIG_AsVal_int(obj1, &val2);
46241 if (!SWIG_IsOK(ecode2)) {
46242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
46243 }
46244 arg2 = static_cast< int >(val2);
46245 ecode3 = SWIG_AsVal_bool(obj2, &val3);
46246 if (!SWIG_IsOK(ecode3)) {
46247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
46248 }
46249 arg3 = static_cast< bool >(val3);
46250 {
46251 PyThreadState* __tstate = wxPyBeginAllowThreads();
46252 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
46253 wxPyEndAllowThreads(__tstate);
46254 if (PyErr_Occurred()) SWIG_fail;
46255 }
46256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
46257 return resultobj;
46258 fail:
46259 return NULL;
46260 }
46261
46262
46263 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46264 PyObject *resultobj = 0;
46265 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46266 bool result;
46267 void *argp1 = 0 ;
46268 int res1 = 0 ;
46269 PyObject *swig_obj[1] ;
46270
46271 if (!args) SWIG_fail;
46272 swig_obj[0] = args;
46273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46274 if (!SWIG_IsOK(res1)) {
46275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
46276 }
46277 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46278 {
46279 PyThreadState* __tstate = wxPyBeginAllowThreads();
46280 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
46281 wxPyEndAllowThreads(__tstate);
46282 if (PyErr_Occurred()) SWIG_fail;
46283 }
46284 {
46285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46286 }
46287 return resultobj;
46288 fail:
46289 return NULL;
46290 }
46291
46292
46293 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46294 PyObject *resultobj = 0;
46295 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46296 bool arg2 ;
46297 void *argp1 = 0 ;
46298 int res1 = 0 ;
46299 bool val2 ;
46300 int ecode2 = 0 ;
46301 PyObject * obj0 = 0 ;
46302 PyObject * obj1 = 0 ;
46303 char * kwnames[] = {
46304 (char *) "self",(char *) "c", NULL
46305 };
46306
46307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
46308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46309 if (!SWIG_IsOK(res1)) {
46310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
46311 }
46312 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46313 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46314 if (!SWIG_IsOK(ecode2)) {
46315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
46316 }
46317 arg2 = static_cast< bool >(val2);
46318 {
46319 PyThreadState* __tstate = wxPyBeginAllowThreads();
46320 (arg1)->SetCollapsed(arg2);
46321 wxPyEndAllowThreads(__tstate);
46322 if (PyErr_Occurred()) SWIG_fail;
46323 }
46324 resultobj = SWIG_Py_Void();
46325 return resultobj;
46326 fail:
46327 return NULL;
46328 }
46329
46330
46331 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46332 PyObject *obj;
46333 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46334 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46335 return SWIG_Py_Void();
46336 }
46337
46338 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46339 return SWIG_Python_InitShadowInstance(args);
46340 }
46341
46342 SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
46343 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
46344 return 1;
46345 }
46346
46347
46348 SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
46349 PyObject *pyobj = 0;
46350
46351 {
46352 #if wxUSE_UNICODE
46353 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46354 #else
46355 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46356 #endif
46357 }
46358 return pyobj;
46359 }
46360
46361
46362 SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46363 PyObject *resultobj = 0;
46364 wxWindow *arg1 = (wxWindow *) 0 ;
46365 int arg2 = (int) -1 ;
46366 wxString const &arg3_defvalue = wxEmptyString ;
46367 wxString *arg3 = (wxString *) &arg3_defvalue ;
46368 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46369 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46370 wxSize const &arg5_defvalue = wxDefaultSize ;
46371 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46372 long arg6 = (long) 0 ;
46373 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46374 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46375 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
46376 wxString *arg8 = (wxString *) &arg8_defvalue ;
46377 wxSearchCtrl *result = 0 ;
46378 void *argp1 = 0 ;
46379 int res1 = 0 ;
46380 int val2 ;
46381 int ecode2 = 0 ;
46382 bool temp3 = false ;
46383 wxPoint temp4 ;
46384 wxSize temp5 ;
46385 long val6 ;
46386 int ecode6 = 0 ;
46387 void *argp7 = 0 ;
46388 int res7 = 0 ;
46389 bool temp8 = false ;
46390 PyObject * obj0 = 0 ;
46391 PyObject * obj1 = 0 ;
46392 PyObject * obj2 = 0 ;
46393 PyObject * obj3 = 0 ;
46394 PyObject * obj4 = 0 ;
46395 PyObject * obj5 = 0 ;
46396 PyObject * obj6 = 0 ;
46397 PyObject * obj7 = 0 ;
46398 char * kwnames[] = {
46399 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46400 };
46401
46402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46404 if (!SWIG_IsOK(res1)) {
46405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46406 }
46407 arg1 = reinterpret_cast< wxWindow * >(argp1);
46408 if (obj1) {
46409 ecode2 = SWIG_AsVal_int(obj1, &val2);
46410 if (!SWIG_IsOK(ecode2)) {
46411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46412 }
46413 arg2 = static_cast< int >(val2);
46414 }
46415 if (obj2) {
46416 {
46417 arg3 = wxString_in_helper(obj2);
46418 if (arg3 == NULL) SWIG_fail;
46419 temp3 = true;
46420 }
46421 }
46422 if (obj3) {
46423 {
46424 arg4 = &temp4;
46425 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46426 }
46427 }
46428 if (obj4) {
46429 {
46430 arg5 = &temp5;
46431 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46432 }
46433 }
46434 if (obj5) {
46435 ecode6 = SWIG_AsVal_long(obj5, &val6);
46436 if (!SWIG_IsOK(ecode6)) {
46437 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46438 }
46439 arg6 = static_cast< long >(val6);
46440 }
46441 if (obj6) {
46442 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46443 if (!SWIG_IsOK(res7)) {
46444 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46445 }
46446 if (!argp7) {
46447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46448 }
46449 arg7 = reinterpret_cast< wxValidator * >(argp7);
46450 }
46451 if (obj7) {
46452 {
46453 arg8 = wxString_in_helper(obj7);
46454 if (arg8 == NULL) SWIG_fail;
46455 temp8 = true;
46456 }
46457 }
46458 {
46459 if (!wxPyCheckForApp()) SWIG_fail;
46460 PyThreadState* __tstate = wxPyBeginAllowThreads();
46461 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46462 wxPyEndAllowThreads(__tstate);
46463 if (PyErr_Occurred()) SWIG_fail;
46464 }
46465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46466 {
46467 if (temp3)
46468 delete arg3;
46469 }
46470 {
46471 if (temp8)
46472 delete arg8;
46473 }
46474 return resultobj;
46475 fail:
46476 {
46477 if (temp3)
46478 delete arg3;
46479 }
46480 {
46481 if (temp8)
46482 delete arg8;
46483 }
46484 return NULL;
46485 }
46486
46487
46488 SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46489 PyObject *resultobj = 0;
46490 wxSearchCtrl *result = 0 ;
46491
46492 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46493 {
46494 if (!wxPyCheckForApp()) SWIG_fail;
46495 PyThreadState* __tstate = wxPyBeginAllowThreads();
46496 result = (wxSearchCtrl *)new wxSearchCtrl();
46497 wxPyEndAllowThreads(__tstate);
46498 if (PyErr_Occurred()) SWIG_fail;
46499 }
46500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46501 return resultobj;
46502 fail:
46503 return NULL;
46504 }
46505
46506
46507 SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46508 PyObject *resultobj = 0;
46509 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46510 wxWindow *arg2 = (wxWindow *) 0 ;
46511 int arg3 = (int) -1 ;
46512 wxString const &arg4_defvalue = wxEmptyString ;
46513 wxString *arg4 = (wxString *) &arg4_defvalue ;
46514 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46515 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46516 wxSize const &arg6_defvalue = wxDefaultSize ;
46517 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46518 long arg7 = (long) 0 ;
46519 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46520 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46521 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46522 wxString *arg9 = (wxString *) &arg9_defvalue ;
46523 bool result;
46524 void *argp1 = 0 ;
46525 int res1 = 0 ;
46526 void *argp2 = 0 ;
46527 int res2 = 0 ;
46528 int val3 ;
46529 int ecode3 = 0 ;
46530 bool temp4 = false ;
46531 wxPoint temp5 ;
46532 wxSize temp6 ;
46533 long val7 ;
46534 int ecode7 = 0 ;
46535 void *argp8 = 0 ;
46536 int res8 = 0 ;
46537 bool temp9 = false ;
46538 PyObject * obj0 = 0 ;
46539 PyObject * obj1 = 0 ;
46540 PyObject * obj2 = 0 ;
46541 PyObject * obj3 = 0 ;
46542 PyObject * obj4 = 0 ;
46543 PyObject * obj5 = 0 ;
46544 PyObject * obj6 = 0 ;
46545 PyObject * obj7 = 0 ;
46546 PyObject * obj8 = 0 ;
46547 char * kwnames[] = {
46548 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46549 };
46550
46551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46553 if (!SWIG_IsOK(res1)) {
46554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46555 }
46556 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46557 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46558 if (!SWIG_IsOK(res2)) {
46559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46560 }
46561 arg2 = reinterpret_cast< wxWindow * >(argp2);
46562 if (obj2) {
46563 ecode3 = SWIG_AsVal_int(obj2, &val3);
46564 if (!SWIG_IsOK(ecode3)) {
46565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46566 }
46567 arg3 = static_cast< int >(val3);
46568 }
46569 if (obj3) {
46570 {
46571 arg4 = wxString_in_helper(obj3);
46572 if (arg4 == NULL) SWIG_fail;
46573 temp4 = true;
46574 }
46575 }
46576 if (obj4) {
46577 {
46578 arg5 = &temp5;
46579 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46580 }
46581 }
46582 if (obj5) {
46583 {
46584 arg6 = &temp6;
46585 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46586 }
46587 }
46588 if (obj6) {
46589 ecode7 = SWIG_AsVal_long(obj6, &val7);
46590 if (!SWIG_IsOK(ecode7)) {
46591 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46592 }
46593 arg7 = static_cast< long >(val7);
46594 }
46595 if (obj7) {
46596 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46597 if (!SWIG_IsOK(res8)) {
46598 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46599 }
46600 if (!argp8) {
46601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46602 }
46603 arg8 = reinterpret_cast< wxValidator * >(argp8);
46604 }
46605 if (obj8) {
46606 {
46607 arg9 = wxString_in_helper(obj8);
46608 if (arg9 == NULL) SWIG_fail;
46609 temp9 = true;
46610 }
46611 }
46612 {
46613 PyThreadState* __tstate = wxPyBeginAllowThreads();
46614 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46615 wxPyEndAllowThreads(__tstate);
46616 if (PyErr_Occurred()) SWIG_fail;
46617 }
46618 {
46619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46620 }
46621 {
46622 if (temp4)
46623 delete arg4;
46624 }
46625 {
46626 if (temp9)
46627 delete arg9;
46628 }
46629 return resultobj;
46630 fail:
46631 {
46632 if (temp4)
46633 delete arg4;
46634 }
46635 {
46636 if (temp9)
46637 delete arg9;
46638 }
46639 return NULL;
46640 }
46641
46642
46643 SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46644 PyObject *resultobj = 0;
46645 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46646 wxMenu *arg2 = (wxMenu *) 0 ;
46647 void *argp1 = 0 ;
46648 int res1 = 0 ;
46649 void *argp2 = 0 ;
46650 int res2 = 0 ;
46651 PyObject * obj0 = 0 ;
46652 PyObject * obj1 = 0 ;
46653 char * kwnames[] = {
46654 (char *) "self",(char *) "menu", NULL
46655 };
46656
46657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46659 if (!SWIG_IsOK(res1)) {
46660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46661 }
46662 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46663 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46664 if (!SWIG_IsOK(res2)) {
46665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46666 }
46667 arg2 = reinterpret_cast< wxMenu * >(argp2);
46668 {
46669 PyThreadState* __tstate = wxPyBeginAllowThreads();
46670 (arg1)->SetMenu(arg2);
46671 wxPyEndAllowThreads(__tstate);
46672 if (PyErr_Occurred()) SWIG_fail;
46673 }
46674 resultobj = SWIG_Py_Void();
46675 return resultobj;
46676 fail:
46677 return NULL;
46678 }
46679
46680
46681 SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46682 PyObject *resultobj = 0;
46683 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46684 wxMenu *result = 0 ;
46685 void *argp1 = 0 ;
46686 int res1 = 0 ;
46687 PyObject *swig_obj[1] ;
46688
46689 if (!args) SWIG_fail;
46690 swig_obj[0] = args;
46691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46692 if (!SWIG_IsOK(res1)) {
46693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46694 }
46695 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46696 {
46697 PyThreadState* __tstate = wxPyBeginAllowThreads();
46698 result = (wxMenu *)(arg1)->GetMenu();
46699 wxPyEndAllowThreads(__tstate);
46700 if (PyErr_Occurred()) SWIG_fail;
46701 }
46702 {
46703 resultobj = wxPyMake_wxObject(result, 0);
46704 }
46705 return resultobj;
46706 fail:
46707 return NULL;
46708 }
46709
46710
46711 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46712 PyObject *resultobj = 0;
46713 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46714 bool arg2 ;
46715 void *argp1 = 0 ;
46716 int res1 = 0 ;
46717 bool val2 ;
46718 int ecode2 = 0 ;
46719 PyObject * obj0 = 0 ;
46720 PyObject * obj1 = 0 ;
46721 char * kwnames[] = {
46722 (char *) "self",(char *) "show", NULL
46723 };
46724
46725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail;
46726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46727 if (!SWIG_IsOK(res1)) {
46728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46729 }
46730 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46731 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46732 if (!SWIG_IsOK(ecode2)) {
46733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'");
46734 }
46735 arg2 = static_cast< bool >(val2);
46736 {
46737 PyThreadState* __tstate = wxPyBeginAllowThreads();
46738 (arg1)->ShowSearchButton(arg2);
46739 wxPyEndAllowThreads(__tstate);
46740 if (PyErr_Occurred()) SWIG_fail;
46741 }
46742 resultobj = SWIG_Py_Void();
46743 return resultobj;
46744 fail:
46745 return NULL;
46746 }
46747
46748
46749 SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46750 PyObject *resultobj = 0;
46751 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46752 bool result;
46753 void *argp1 = 0 ;
46754 int res1 = 0 ;
46755 PyObject *swig_obj[1] ;
46756
46757 if (!args) SWIG_fail;
46758 swig_obj[0] = args;
46759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46760 if (!SWIG_IsOK(res1)) {
46761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46762 }
46763 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46764 {
46765 PyThreadState* __tstate = wxPyBeginAllowThreads();
46766 result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible();
46767 wxPyEndAllowThreads(__tstate);
46768 if (PyErr_Occurred()) SWIG_fail;
46769 }
46770 {
46771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46772 }
46773 return resultobj;
46774 fail:
46775 return NULL;
46776 }
46777
46778
46779 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46780 PyObject *resultobj = 0;
46781 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46782 bool arg2 ;
46783 void *argp1 = 0 ;
46784 int res1 = 0 ;
46785 bool val2 ;
46786 int ecode2 = 0 ;
46787 PyObject * obj0 = 0 ;
46788 PyObject * obj1 = 0 ;
46789 char * kwnames[] = {
46790 (char *) "self",(char *) "show", NULL
46791 };
46792
46793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
46794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46795 if (!SWIG_IsOK(res1)) {
46796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46797 }
46798 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46799 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46800 if (!SWIG_IsOK(ecode2)) {
46801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'");
46802 }
46803 arg2 = static_cast< bool >(val2);
46804 {
46805 PyThreadState* __tstate = wxPyBeginAllowThreads();
46806 (arg1)->ShowCancelButton(arg2);
46807 wxPyEndAllowThreads(__tstate);
46808 if (PyErr_Occurred()) SWIG_fail;
46809 }
46810 resultobj = SWIG_Py_Void();
46811 return resultobj;
46812 fail:
46813 return NULL;
46814 }
46815
46816
46817 SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46818 PyObject *resultobj = 0;
46819 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46820 bool result;
46821 void *argp1 = 0 ;
46822 int res1 = 0 ;
46823 PyObject *swig_obj[1] ;
46824
46825 if (!args) SWIG_fail;
46826 swig_obj[0] = args;
46827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46828 if (!SWIG_IsOK(res1)) {
46829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46830 }
46831 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46832 {
46833 PyThreadState* __tstate = wxPyBeginAllowThreads();
46834 result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible();
46835 wxPyEndAllowThreads(__tstate);
46836 if (PyErr_Occurred()) SWIG_fail;
46837 }
46838 {
46839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46840 }
46841 return resultobj;
46842 fail:
46843 return NULL;
46844 }
46845
46846
46847 SWIGINTERN PyObject *_wrap_SearchCtrl_SetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46848 PyObject *resultobj = 0;
46849 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46850 wxString *arg2 = 0 ;
46851 void *argp1 = 0 ;
46852 int res1 = 0 ;
46853 bool temp2 = false ;
46854 PyObject * obj0 = 0 ;
46855 PyObject * obj1 = 0 ;
46856 char * kwnames[] = {
46857 (char *) "self",(char *) "text", NULL
46858 };
46859
46860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetDescriptiveText",kwnames,&obj0,&obj1)) SWIG_fail;
46861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46862 if (!SWIG_IsOK(res1)) {
46863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46864 }
46865 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46866 {
46867 arg2 = wxString_in_helper(obj1);
46868 if (arg2 == NULL) SWIG_fail;
46869 temp2 = true;
46870 }
46871 {
46872 PyThreadState* __tstate = wxPyBeginAllowThreads();
46873 (arg1)->SetDescriptiveText((wxString const &)*arg2);
46874 wxPyEndAllowThreads(__tstate);
46875 if (PyErr_Occurred()) SWIG_fail;
46876 }
46877 resultobj = SWIG_Py_Void();
46878 {
46879 if (temp2)
46880 delete arg2;
46881 }
46882 return resultobj;
46883 fail:
46884 {
46885 if (temp2)
46886 delete arg2;
46887 }
46888 return NULL;
46889 }
46890
46891
46892 SWIGINTERN PyObject *_wrap_SearchCtrl_GetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46893 PyObject *resultobj = 0;
46894 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46895 wxString result;
46896 void *argp1 = 0 ;
46897 int res1 = 0 ;
46898 PyObject *swig_obj[1] ;
46899
46900 if (!args) SWIG_fail;
46901 swig_obj[0] = args;
46902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46903 if (!SWIG_IsOK(res1)) {
46904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46905 }
46906 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46907 {
46908 PyThreadState* __tstate = wxPyBeginAllowThreads();
46909 result = ((wxSearchCtrl const *)arg1)->GetDescriptiveText();
46910 wxPyEndAllowThreads(__tstate);
46911 if (PyErr_Occurred()) SWIG_fail;
46912 }
46913 {
46914 #if wxUSE_UNICODE
46915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
46916 #else
46917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
46918 #endif
46919 }
46920 return resultobj;
46921 fail:
46922 return NULL;
46923 }
46924
46925
46926 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46927 PyObject *resultobj = 0;
46928 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46929 wxBitmap *arg2 = 0 ;
46930 void *argp1 = 0 ;
46931 int res1 = 0 ;
46932 void *argp2 = 0 ;
46933 int res2 = 0 ;
46934 PyObject * obj0 = 0 ;
46935 PyObject * obj1 = 0 ;
46936 char * kwnames[] = {
46937 (char *) "self",(char *)"arg2", NULL
46938 };
46939
46940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46942 if (!SWIG_IsOK(res1)) {
46943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46944 }
46945 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46946 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46947 if (!SWIG_IsOK(res2)) {
46948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46949 }
46950 if (!argp2) {
46951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46952 }
46953 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46954 {
46955 PyThreadState* __tstate = wxPyBeginAllowThreads();
46956 wxSearchCtrl_SetSearchBitmap(arg1,(wxBitmap const &)*arg2);
46957 wxPyEndAllowThreads(__tstate);
46958 if (PyErr_Occurred()) SWIG_fail;
46959 }
46960 resultobj = SWIG_Py_Void();
46961 return resultobj;
46962 fail:
46963 return NULL;
46964 }
46965
46966
46967 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46968 PyObject *resultobj = 0;
46969 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46970 wxBitmap *arg2 = 0 ;
46971 void *argp1 = 0 ;
46972 int res1 = 0 ;
46973 void *argp2 = 0 ;
46974 int res2 = 0 ;
46975 PyObject * obj0 = 0 ;
46976 PyObject * obj1 = 0 ;
46977 char * kwnames[] = {
46978 (char *) "self",(char *)"arg2", NULL
46979 };
46980
46981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46983 if (!SWIG_IsOK(res1)) {
46984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46985 }
46986 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46988 if (!SWIG_IsOK(res2)) {
46989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46990 }
46991 if (!argp2) {
46992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46993 }
46994 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46995 {
46996 PyThreadState* __tstate = wxPyBeginAllowThreads();
46997 wxSearchCtrl_SetSearchMenuBitmap(arg1,(wxBitmap const &)*arg2);
46998 wxPyEndAllowThreads(__tstate);
46999 if (PyErr_Occurred()) SWIG_fail;
47000 }
47001 resultobj = SWIG_Py_Void();
47002 return resultobj;
47003 fail:
47004 return NULL;
47005 }
47006
47007
47008 SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47009 PyObject *resultobj = 0;
47010 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47011 wxBitmap *arg2 = 0 ;
47012 void *argp1 = 0 ;
47013 int res1 = 0 ;
47014 void *argp2 = 0 ;
47015 int res2 = 0 ;
47016 PyObject * obj0 = 0 ;
47017 PyObject * obj1 = 0 ;
47018 char * kwnames[] = {
47019 (char *) "self",(char *)"arg2", NULL
47020 };
47021
47022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47024 if (!SWIG_IsOK(res1)) {
47025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47026 }
47027 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47028 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47029 if (!SWIG_IsOK(res2)) {
47030 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47031 }
47032 if (!argp2) {
47033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47034 }
47035 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47036 {
47037 PyThreadState* __tstate = wxPyBeginAllowThreads();
47038 wxSearchCtrl_SetCancelBitmap(arg1,(wxBitmap const &)*arg2);
47039 wxPyEndAllowThreads(__tstate);
47040 if (PyErr_Occurred()) SWIG_fail;
47041 }
47042 resultobj = SWIG_Py_Void();
47043 return resultobj;
47044 fail:
47045 return NULL;
47046 }
47047
47048
47049 SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47050 PyObject *obj;
47051 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
47052 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
47053 return SWIG_Py_Void();
47054 }
47055
47056 SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47057 return SWIG_Python_InitShadowInstance(args);
47058 }
47059
47060 static PyMethodDef SwigMethods[] = {
47061 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
47062 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
47063 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47064 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
47065 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
47066 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47067 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
47068 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
47069 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
47070 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
47071 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47072 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
47073 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
47074 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
47075 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
47076 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
47077 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
47078 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
47079 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47080 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47081 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
47082 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47083 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
47084 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
47085 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
47086 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
47087 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
47088 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
47089 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47090 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
47091 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
47092 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47093 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
47094 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
47095 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
47096 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
47097 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47098 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
47099 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
47100 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
47101 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
47102 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47103 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
47104 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47105 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
47106 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
47107 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
47108 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
47109 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47110 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
47111 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47112 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
47113 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
47114 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
47115 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47116 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
47117 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
47118 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47119 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
47120 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
47121 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47122 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47123 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
47124 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47125 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
47126 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
47127 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
47128 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
47129 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
47130 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
47131 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
47132 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
47133 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
47134 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47135 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
47136 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
47137 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
47138 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
47139 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47140 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47141 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
47142 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47143 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
47144 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
47145 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
47146 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47147 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
47148 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
47149 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
47150 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47151 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
47152 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
47153 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
47154 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
47155 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47156 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47157 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
47158 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
47159 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
47160 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
47161 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47162 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
47163 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
47164 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47165 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
47166 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
47167 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
47168 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
47169 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47170 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
47171 { (char *)"StaticText_IsEllipsized", (PyCFunction)_wrap_StaticText_IsEllipsized, METH_O, NULL},
47172 { (char *)"StaticText_RemoveMarkup", (PyCFunction) _wrap_StaticText_RemoveMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
47173 { (char *)"StaticText_EscapeMarkup", (PyCFunction) _wrap_StaticText_EscapeMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
47174 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47175 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
47176 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
47177 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47178 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
47179 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47180 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
47181 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47182 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47183 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47184 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
47185 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
47186 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47187 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
47188 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47189 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
47190 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
47191 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47192 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47193 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47194 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47195 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
47196 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
47197 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47198 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
47199 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
47200 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
47201 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47202 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47203 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
47204 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47205 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47206 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47207 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47208 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47209 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
47210 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
47211 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47212 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
47213 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47214 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
47215 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
47216 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
47217 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
47218 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47219 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
47220 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
47221 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
47222 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47223 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47224 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47225 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
47226 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
47227 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47228 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47229 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
47230 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
47231 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
47232 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
47233 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
47234 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
47235 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
47236 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
47237 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
47238 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
47239 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
47240 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
47241 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
47242 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
47243 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
47244 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
47245 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
47246 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
47247 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
47248 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
47249 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
47250 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
47251 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47252 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
47253 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47254 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
47255 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47256 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
47257 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
47258 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47259 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
47260 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
47261 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
47262 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
47263 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
47264 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
47265 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
47266 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
47267 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
47268 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
47269 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47270 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47271 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
47272 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
47273 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
47274 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
47275 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
47276 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
47277 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
47278 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
47279 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
47280 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47281 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47282 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47283 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
47284 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47285 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
47286 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47287 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47288 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
47289 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
47290 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
47291 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
47292 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
47293 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
47294 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
47295 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
47296 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
47297 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
47298 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
47299 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47300 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
47301 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
47302 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
47303 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47304 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
47305 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47306 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
47307 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
47308 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
47309 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47310 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47311 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
47312 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
47313 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47314 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
47315 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
47316 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
47317 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
47318 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
47319 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
47320 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
47321 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47322 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
47323 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
47324 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
47325 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
47326 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
47327 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47328 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47329 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
47330 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
47331 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
47332 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
47333 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47334 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
47335 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
47336 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
47337 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47338 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47339 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47340 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47341 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
47342 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47343 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
47344 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
47345 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47346 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
47347 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47348 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
47349 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47350 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
47351 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47352 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
47353 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
47354 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47355 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47356 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
47357 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
47358 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47359 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
47360 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47361 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
47362 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
47363 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
47364 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
47365 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47366 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47367 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
47368 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
47369 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47370 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
47371 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
47372 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47373 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
47374 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
47375 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
47376 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47377 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
47378 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
47379 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
47380 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47381 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47382 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47383 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47384 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47385 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47386 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
47387 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
47388 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
47389 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
47390 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47391 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
47392 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47393 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47394 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
47395 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
47396 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
47397 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
47398 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47399 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
47400 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47401 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47402 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
47403 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
47404 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47405 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47406 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
47407 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47408 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
47409 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
47410 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
47411 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
47412 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
47413 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
47414 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
47415 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
47416 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
47417 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
47418 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
47419 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47420 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47421 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
47422 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
47423 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
47424 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
47425 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47426 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47427 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
47428 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47429 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
47430 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
47431 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
47432 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
47433 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
47434 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
47435 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47436 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47437 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47438 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47439 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
47440 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47441 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47442 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47443 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
47444 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
47445 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
47446 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
47447 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47448 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
47449 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
47450 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
47451 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
47452 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
47453 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
47454 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
47455 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
47456 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
47457 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47458 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47459 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47461 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47462 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
47463 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47464 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
47465 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47466 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
47467 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47468 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
47469 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
47470 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
47471 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
47472 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47473 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
47474 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
47475 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
47476 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
47477 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47478 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47479 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47480 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47481 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47482 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47483 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47484 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47485 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47486 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47487 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47488 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47489 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47490 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47491 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47492 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47493 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47494 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47495 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47496 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47497 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47498 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47499 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47500 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47501 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47502 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47503 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47504 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47505 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47506 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47507 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47508 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47509 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47510 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47511 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47512 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47513 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47514 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47515 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47516 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47517 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47518 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47519 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47520 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47521 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47522 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47523 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47524 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47525 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47526 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47527 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47528 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47529 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47530 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47531 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47532 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47533 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47534 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47535 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47536 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47537 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47538 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47539 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47540 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47541 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47542 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47543 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47544 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47545 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47546 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47547 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47548 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47549 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47550 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47551 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47552 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47553 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47554 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47555 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47556 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47557 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47558 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47559 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47560 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47561 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47562 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47563 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47564 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47565 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47566 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47567 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47568 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47569 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47570 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47571 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47572 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47573 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47574 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47575 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47576 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47577 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47578 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47579 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47580 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47581 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47582 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47583 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47584 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47585 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47586 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47587 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47588 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47589 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47590 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47591 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47592 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47593 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47594 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47595 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47596 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47597 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47598 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47599 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47600 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47601 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47602 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47603 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47604 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47605 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47606 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47607 { (char *)"ToolBar_SetToolNormalBitmap", (PyCFunction) _wrap_ToolBar_SetToolNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47608 { (char *)"ToolBar_SetToolDisabledBitmap", (PyCFunction) _wrap_ToolBar_SetToolDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47609 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47610 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47611 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47612 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47613 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47614 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47615 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47616 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47617 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47618 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47619 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47620 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47621 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47622 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47623 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47624 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47625 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47626 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47627 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47628 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47629 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47630 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47631 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47632 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47633 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47634 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47635 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47636 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47637 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47638 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47639 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47640 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47641 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47642 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47643 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47644 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47645 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47646 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47647 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47648 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47649 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47650 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47651 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47652 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47653 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47654 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47655 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47656 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47657 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47658 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47659 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47660 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47661 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47662 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47663 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47664 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47665 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47666 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47667 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47668 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47669 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47670 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47671 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47672 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47673 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47674 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47675 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47676 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47677 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47678 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47679 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47680 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47681 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47682 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47683 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47684 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47685 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47686 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47687 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47688 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47689 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47690 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47691 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47692 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47693 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47694 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47695 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47696 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47697 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47698 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47699 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47700 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47701 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47702 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47703 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47704 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47705 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47706 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47707 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47708 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47709 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47710 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47711 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47712 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47713 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47714 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47715 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47716 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47717 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47718 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47719 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47720 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47721 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47722 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47723 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47724 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47725 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47726 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47727 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47728 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47729 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47730 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47731 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47732 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47733 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47734 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47735 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47736 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47737 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47738 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47739 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47740 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47741 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47742 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47743 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47744 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47745 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47746 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47747 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47748 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47749 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47750 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47751 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47752 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47753 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47754 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47755 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47756 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47757 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47758 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47759 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47760 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47761 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47762 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
47763 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47764 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47765 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47766 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47767 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47768 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47769 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47770 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47771 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47772 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47773 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47774 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47775 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47776 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47777 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47778 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47779 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47780 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47781 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47782 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47783 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47784 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47785 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47786 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47787 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47788 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47789 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47790 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47791 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47792 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47793 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47794 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47795 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47796 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47797 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47798 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47799 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47800 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47801 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47802 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47803 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47804 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47805 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47806 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47807 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47808 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47809 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47810 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47811 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47812 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
47813 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
47814 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47815 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47816 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47817 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47818 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47819 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47820 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47821 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47822 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47823 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47824 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47825 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47826 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47827 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47828 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47829 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47830 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47831 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47832 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47833 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47834 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47835 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47836 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47837 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47838 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47839 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47840 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47841 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47842 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47843 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47844 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47845 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47846 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47847 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47848 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47849 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47850 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47851 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47852 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47853 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47854 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47855 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47856 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47857 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47858 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47859 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47860 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47861 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47862 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47863 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47864 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47865 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47866 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47867 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47868 { (char *)"TreeCtrl_IsEmpty", (PyCFunction)_wrap_TreeCtrl_IsEmpty, METH_O, NULL},
47869 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47870 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47871 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47872 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47873 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47874 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47875 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47876 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47877 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47878 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47879 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47880 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47881 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47882 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47883 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47884 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47885 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47886 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47887 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47888 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47889 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47890 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
47891 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47892 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
47893 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47894 { (char *)"TreeCtrl_CollapseAllChildren", (PyCFunction) _wrap_TreeCtrl_CollapseAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47895 { (char *)"TreeCtrl_CollapseAll", (PyCFunction)_wrap_TreeCtrl_CollapseAll, METH_O, NULL},
47896 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47897 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47898 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47899 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47900 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47901 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47902 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47903 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47904 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47905 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47906 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47907 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47908 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47909 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47910 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47911 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47912 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
47913 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47914 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47915 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47916 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47917 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47918 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
47919 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
47920 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47921 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47922 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47923 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47924 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47925 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
47926 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
47927 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
47928 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
47929 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
47930 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
47931 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
47932 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
47933 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
47934 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
47935 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
47936 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
47937 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
47938 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
47939 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47940 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
47941 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47942 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
47943 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
47944 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
47945 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
47946 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
47947 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47948 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
47949 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47950 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
47951 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
47952 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
47953 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
47954 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
47955 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
47956 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
47957 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
47958 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
47959 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
47960 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
47961 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
47962 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47963 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
47964 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47965 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
47966 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
47967 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
47968 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
47969 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
47970 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
47971 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
47972 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
47973 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47974 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
47975 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47976 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
47977 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
47978 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
47979 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
47980 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
47981 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
47982 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
47983 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47984 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
47985 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47986 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47987 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47988 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47989 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
47990 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47991 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
47992 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
47993 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
47994 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
47995 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
47996 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
47997 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47998 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
47999 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
48000 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
48001 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
48002 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48003 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
48004 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
48005 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
48006 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
48007 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
48008 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
48009 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
48010 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48011 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
48012 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48013 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
48014 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
48015 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48016 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
48017 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48018 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
48019 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
48020 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
48021 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
48022 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
48023 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
48024 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
48025 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48026 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
48027 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48028 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
48029 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
48030 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
48031 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
48032 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
48033 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
48034 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
48035 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48036 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
48037 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
48038 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
48039 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
48040 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48041 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
48042 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48043 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
48044 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
48045 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
48046 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
48047 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
48048 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48049 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
48050 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48051 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
48052 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
48053 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48054 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
48055 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48056 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
48057 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
48058 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
48059 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
48060 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48061 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
48062 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48063 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
48064 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48065 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
48066 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
48067 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48068 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
48069 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48070 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
48071 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
48072 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48073 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
48074 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48075 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
48076 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48077 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48078 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
48079 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
48080 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
48081 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48082 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
48083 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48084 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
48085 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48086 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48087 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
48088 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
48089 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
48090 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48091 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
48092 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48093 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
48094 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
48095 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48096 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
48097 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48098 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
48099 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
48100 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
48101 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
48102 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
48103 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
48104 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48105 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
48106 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
48107 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
48108 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
48109 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
48110 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
48111 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48112 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
48113 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
48114 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
48115 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
48116 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
48117 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
48118 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
48119 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48120 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
48121 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
48122 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
48123 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
48124 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48125 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
48126 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48127 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
48128 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
48129 { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL},
48130 { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL},
48131 { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
48132 { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL},
48133 { (char *)"SearchCtrl_SetDescriptiveText", (PyCFunction) _wrap_SearchCtrl_SetDescriptiveText, METH_VARARGS | METH_KEYWORDS, NULL},
48134 { (char *)"SearchCtrl_GetDescriptiveText", (PyCFunction)_wrap_SearchCtrl_GetDescriptiveText, METH_O, NULL},
48135 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48136 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48137 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48138 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
48139 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
48140 { NULL, NULL, 0, NULL }
48141 };
48142
48143
48144 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
48145
48146 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
48147 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
48148 }
48149 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
48150 return (void *)((wxEvent *) ((wxMenuEvent *) x));
48151 }
48152 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
48153 return (void *)((wxEvent *) ((wxCloseEvent *) x));
48154 }
48155 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
48156 return (void *)((wxEvent *) ((wxMouseEvent *) x));
48157 }
48158 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
48159 return (void *)((wxEvent *) ((wxEraseEvent *) x));
48160 }
48161 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
48162 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48163 }
48164 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
48165 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48166 }
48167 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
48168 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
48169 }
48170 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
48171 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
48172 }
48173 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
48174 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48175 }
48176 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
48177 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
48178 }
48179 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
48180 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
48181 }
48182 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
48183 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
48184 }
48185 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
48186 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
48187 }
48188 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
48189 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
48190 }
48191 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
48192 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
48193 }
48194 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
48195 return (void *)((wxEvent *) ((wxPyEvent *) x));
48196 }
48197 static void *_p_wxListEventTo_p_wxEvent(void *x) {
48198 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48199 }
48200 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
48201 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48202 }
48203 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
48204 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48205 }
48206 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
48207 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48208 }
48209 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
48210 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48211 }
48212 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
48213 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48214 }
48215 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
48216 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
48217 }
48218 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
48219 return (void *)((wxEvent *) ((wxIdleEvent *) x));
48220 }
48221 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
48222 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
48223 }
48224 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
48225 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
48226 }
48227 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
48228 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
48229 }
48230 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
48231 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
48232 }
48233 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
48234 return (void *)((wxEvent *) ((wxActivateEvent *) x));
48235 }
48236 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
48237 return (void *)((wxEvent *) ((wxSizeEvent *) x));
48238 }
48239 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
48240 return (void *)((wxEvent *) ((wxMoveEvent *) x));
48241 }
48242 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
48243 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
48244 }
48245 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
48246 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48247 }
48248 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
48249 return (void *)((wxEvent *) ((wxPaintEvent *) x));
48250 }
48251 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
48252 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
48253 }
48254 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
48255 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
48256 }
48257 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
48258 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
48259 }
48260 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
48261 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
48262 }
48263 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
48264 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
48265 }
48266 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
48267 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48268 }
48269 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
48270 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
48271 }
48272 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
48273 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
48274 }
48275 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
48276 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
48277 }
48278 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
48279 return (void *)((wxEvent *) ((wxFocusEvent *) x));
48280 }
48281 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
48282 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
48283 }
48284 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
48285 return (void *)((wxEvent *) ((wxShowEvent *) x));
48286 }
48287 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
48288 return (void *)((wxEvent *) ((wxCommandEvent *) x));
48289 }
48290 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
48291 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
48292 }
48293 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
48294 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48295 }
48296 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
48297 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
48298 }
48299 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
48300 return (void *)((wxEvent *) ((wxKeyEvent *) x));
48301 }
48302 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
48303 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
48304 }
48305 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
48306 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48307 }
48308 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
48309 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
48310 }
48311 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
48312 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
48313 }
48314 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
48315 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
48316 }
48317 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
48318 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
48319 }
48320 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
48321 return (void *)((wxItemContainer *) ((wxComboBox *) x));
48322 }
48323 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
48324 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48325 }
48326 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
48327 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
48328 }
48329 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
48330 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
48331 }
48332 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
48333 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
48334 }
48335 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
48336 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48337 }
48338 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
48339 return (void *)((wxPyListCtrl *) ((wxListView *) x));
48340 }
48341 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
48342 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
48343 }
48344 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
48345 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
48346 }
48347 static void *_p_wxToolBarTo_p_wxControl(void *x) {
48348 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
48349 }
48350 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
48351 return (void *)((wxControl *) ((wxPickerBase *) x));
48352 }
48353 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
48354 return (void *)((wxControl *) ((wxToggleButton *) x));
48355 }
48356 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
48357 return (void *)((wxControl *) ((wxRadioButton *) x));
48358 }
48359 static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
48360 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
48361 }
48362 static void *_p_wxToolbookTo_p_wxControl(void *x) {
48363 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
48364 }
48365 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
48366 return (void *)((wxControl *) ((wxToolBarBase *) x));
48367 }
48368 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
48369 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48370 }
48371 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
48372 return (void *)((wxControl *) ((wxPyListCtrl *) x));
48373 }
48374 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
48375 return (void *)((wxControl *) ((wxComboBox *) x));
48376 }
48377 static void *_p_wxPyControlTo_p_wxControl(void *x) {
48378 return (void *)((wxControl *) ((wxPyControl *) x));
48379 }
48380 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
48381 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
48382 }
48383 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
48384 return (void *)((wxControl *) ((wxScrollBar *) x));
48385 }
48386 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
48387 return (void *)((wxControl *) ((wxControlWithItems *) x));
48388 }
48389 static void *_p_wxGaugeTo_p_wxControl(void *x) {
48390 return (void *)((wxControl *) ((wxGauge *) x));
48391 }
48392 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
48393 return (void *)((wxControl *) ((wxStaticLine *) x));
48394 }
48395 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
48396 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
48397 }
48398 static void *_p_wxListbookTo_p_wxControl(void *x) {
48399 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
48400 }
48401 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
48402 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
48403 }
48404 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
48405 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
48406 }
48407 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
48408 return (void *)((wxControl *) ((wxCheckBox *) x));
48409 }
48410 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
48411 return (void *)((wxControl *) ((wxRadioBox *) x));
48412 }
48413 static void *_p_wxChoiceTo_p_wxControl(void *x) {
48414 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
48415 }
48416 static void *_p_wxListBoxTo_p_wxControl(void *x) {
48417 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
48418 }
48419 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
48420 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48421 }
48422 static void *_p_wxListViewTo_p_wxControl(void *x) {
48423 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
48424 }
48425 static void *_p_wxNotebookTo_p_wxControl(void *x) {
48426 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
48427 }
48428 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
48429 return (void *)((wxControl *) ((wxStaticBitmap *) x));
48430 }
48431 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
48432 return (void *)((wxControl *) ((wxSpinCtrl *) x));
48433 }
48434 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
48435 return (void *)((wxControl *) ((wxStaticText *) x));
48436 }
48437 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
48438 return (void *)((wxControl *) ((wxStaticBox *) x));
48439 }
48440 static void *_p_wxSliderTo_p_wxControl(void *x) {
48441 return (void *)((wxControl *) ((wxSlider *) x));
48442 }
48443 static void *_p_wxTreebookTo_p_wxControl(void *x) {
48444 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
48445 }
48446 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
48447 return (void *)((wxControl *) ((wxSpinButton *) x));
48448 }
48449 static void *_p_wxButtonTo_p_wxControl(void *x) {
48450 return (void *)((wxControl *) ((wxButton *) x));
48451 }
48452 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
48453 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
48454 }
48455 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
48456 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48457 }
48458 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
48459 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
48460 }
48461 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
48462 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
48463 }
48464 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
48465 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
48466 }
48467 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
48468 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
48469 }
48470 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
48471 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
48472 }
48473 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
48474 return (void *)((wxControl *) ((wxTextCtrl *) x));
48475 }
48476 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
48477 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
48478 }
48479 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
48480 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
48481 }
48482 static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
48483 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
48484 }
48485 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48486 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48487 }
48488 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48489 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48490 }
48491 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48492 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48493 }
48494 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48495 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48496 }
48497 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48498 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48499 }
48500 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48501 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48502 }
48503 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48504 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48505 }
48506 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48507 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48508 }
48509 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48510 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48511 }
48512 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48513 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48514 }
48515 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48516 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48517 }
48518 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48519 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48520 }
48521 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48522 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48523 }
48524 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48525 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48526 }
48527 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48528 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48529 }
48530 static void *_p_wxEventBlockerTo_p_wxEvtHandler(void *x) {
48531 return (void *)((wxEvtHandler *) ((wxEventBlocker *) x));
48532 }
48533 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48534 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48535 }
48536 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48537 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48538 }
48539 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48540 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48541 }
48542 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48543 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48544 }
48545 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48546 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48547 }
48548 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48549 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48550 }
48551 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48552 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48553 }
48554 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48555 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48556 }
48557 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48558 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48559 }
48560 static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48561 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48562 }
48563 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48564 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48565 }
48566 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48567 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48568 }
48569 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48570 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48571 }
48572 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48573 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
48574 }
48575 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48576 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48577 }
48578 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48579 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48580 }
48581 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48582 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48583 }
48584 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48585 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48586 }
48587 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48588 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48589 }
48590 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48591 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48592 }
48593 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48594 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48595 }
48596 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48597 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48598 }
48599 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48600 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48601 }
48602 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48603 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48604 }
48605 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48606 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48607 }
48608 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48609 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48610 }
48611 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48612 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48613 }
48614 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48615 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48616 }
48617 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48618 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48619 }
48620 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48621 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48622 }
48623 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48624 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48625 }
48626 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48627 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48628 }
48629 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48630 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48631 }
48632 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48633 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48634 }
48635 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48636 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48637 }
48638 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48639 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48640 }
48641 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48642 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48643 }
48644 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48645 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48646 }
48647 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48648 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48649 }
48650 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48651 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48652 }
48653 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48654 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48655 }
48656 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48657 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48658 }
48659 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48660 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48661 }
48662 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48663 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48664 }
48665 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48666 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48667 }
48668 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48669 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48670 }
48671 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48672 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48673 }
48674 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48675 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48676 }
48677 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48678 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48679 }
48680 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48681 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48682 }
48683 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48684 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48685 }
48686 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48687 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48688 }
48689 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48690 return (void *)((wxButton *) ((wxBitmapButton *) x));
48691 }
48692 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48693 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48694 }
48695 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48696 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48697 }
48698 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48699 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48700 }
48701 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48702 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48703 }
48704 static void *_p_wxToolbookTo_p_wxObject(void *x) {
48705 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48706 }
48707 static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
48708 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
48709 }
48710 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48711 return (void *)((wxObject *) ((wxSizerItem *) x));
48712 }
48713 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48714 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48715 }
48716 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48717 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48718 }
48719 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48720 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48721 }
48722 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48723 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48724 }
48725 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48726 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48727 }
48728 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48729 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48730 }
48731 static void *_p_wxSizerTo_p_wxObject(void *x) {
48732 return (void *)((wxObject *) ((wxSizer *) x));
48733 }
48734 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48735 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48736 }
48737 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48738 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48739 }
48740 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48741 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48742 }
48743 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48744 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48745 }
48746 static void *_p_wxEventTo_p_wxObject(void *x) {
48747 return (void *)((wxObject *) ((wxEvent *) x));
48748 }
48749 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48750 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48751 }
48752 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48753 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48754 }
48755 static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48756 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48757 }
48758 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48759 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48760 }
48761 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48762 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48763 }
48764 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48765 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48766 }
48767 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48768 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48769 }
48770 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48771 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48772 }
48773 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48774 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48775 }
48776 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48777 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48778 }
48779 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48780 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48781 }
48782 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48783 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48784 }
48785 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48786 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48787 }
48788 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48789 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48790 }
48791 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48792 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48793 }
48794 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48795 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48796 }
48797 static void *_p_wxControlTo_p_wxObject(void *x) {
48798 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48799 }
48800 static void *_p_wxPyControlTo_p_wxObject(void *x) {
48801 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48802 }
48803 static void *_p_wxGaugeTo_p_wxObject(void *x) {
48804 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48805 }
48806 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48807 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48808 }
48809 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48810 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48811 }
48812 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48813 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48814 }
48815 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48816 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48817 }
48818 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48819 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48820 }
48821 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48822 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48823 }
48824 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48825 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48826 }
48827 static void *_p_wxChoiceTo_p_wxObject(void *x) {
48828 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48829 }
48830 static void *_p_wxFSFileTo_p_wxObject(void *x) {
48831 return (void *)((wxObject *) ((wxFSFile *) x));
48832 }
48833 static void *_p_wxPySizerTo_p_wxObject(void *x) {
48834 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48835 }
48836 static void *_p_wxTreebookTo_p_wxObject(void *x) {
48837 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48838 }
48839 static void *_p_wxListViewTo_p_wxObject(void *x) {
48840 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48841 }
48842 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48843 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48844 }
48845 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48846 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48847 }
48848 static void *_p_wxNotebookTo_p_wxObject(void *x) {
48849 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48850 }
48851 static void *_p_wxPyEventTo_p_wxObject(void *x) {
48852 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48853 }
48854 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48855 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48856 }
48857 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48858 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48859 }
48860 static void *_p_wxListbookTo_p_wxObject(void *x) {
48861 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48862 }
48863 static void *_p_wxShowEventTo_p_wxObject(void *x) {
48864 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
48865 }
48866 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
48867 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48868 }
48869 static void *_p_wxSliderTo_p_wxObject(void *x) {
48870 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48871 }
48872 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48873 return (void *)((wxObject *) ((wxMenuItem *) x));
48874 }
48875 static void *_p_wxDateEventTo_p_wxObject(void *x) {
48876 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48877 }
48878 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48879 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48880 }
48881 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48882 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48883 }
48884 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48885 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48886 }
48887 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48888 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48889 }
48890 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48891 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48892 }
48893 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48894 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48895 }
48896 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48897 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48898 }
48899 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48900 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48901 }
48902 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48903 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48904 }
48905 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48906 return (void *)((wxObject *) ((wxContextHelp *) x));
48907 }
48908 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48909 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48910 }
48911 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48912 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48913 }
48914 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48915 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48916 }
48917 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48918 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48919 }
48920 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48921 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48922 }
48923 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48924 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
48925 }
48926 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
48927 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
48928 }
48929 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
48930 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
48931 }
48932 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
48933 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
48934 }
48935 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
48936 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
48937 }
48938 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
48939 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
48940 }
48941 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
48942 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
48943 }
48944 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
48945 return (void *)((wxObject *) ((wxImageHandler *) x));
48946 }
48947 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
48948 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
48949 }
48950 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
48951 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
48952 }
48953 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
48954 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
48955 }
48956 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
48957 return (void *)((wxObject *) ((wxEvtHandler *) x));
48958 }
48959 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
48960 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
48961 }
48962 static void *_p_wxListEventTo_p_wxObject(void *x) {
48963 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48964 }
48965 static void *_p_wxListBoxTo_p_wxObject(void *x) {
48966 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48967 }
48968 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
48969 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48970 }
48971 static void *_p_wxButtonTo_p_wxObject(void *x) {
48972 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
48973 }
48974 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
48975 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48976 }
48977 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
48978 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
48979 }
48980 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
48981 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48982 }
48983 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
48984 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
48985 }
48986 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
48987 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
48988 }
48989 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
48990 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
48991 }
48992 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
48993 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
48994 }
48995 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
48996 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
48997 }
48998 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
48999 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
49000 }
49001 static void *_p_wxListItemTo_p_wxObject(void *x) {
49002 return (void *)((wxObject *) ((wxListItem *) x));
49003 }
49004 static void *_p_wxImageTo_p_wxObject(void *x) {
49005 return (void *)((wxObject *) ((wxImage *) x));
49006 }
49007 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
49008 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
49009 }
49010 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
49011 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
49012 }
49013 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
49014 return (void *)((wxObject *) ((wxGenericDragImage *) x));
49015 }
49016 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
49017 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
49018 }
49019 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
49020 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49021 }
49022 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
49023 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49024 }
49025 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
49026 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49027 }
49028 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
49029 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49030 }
49031 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
49032 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49033 }
49034 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
49035 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49036 }
49037 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
49038 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
49039 }
49040 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
49041 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
49042 }
49043 static void *_p_wxWindowTo_p_wxObject(void *x) {
49044 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
49045 }
49046 static void *_p_wxMenuTo_p_wxObject(void *x) {
49047 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
49048 }
49049 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
49050 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
49051 }
49052 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
49053 return (void *)((wxObject *) ((wxFileSystem *) x));
49054 }
49055 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
49056 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
49057 }
49058 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
49059 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
49060 }
49061 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
49062 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
49063 }
49064 static void *_p_wxPyAppTo_p_wxObject(void *x) {
49065 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
49066 }
49067 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
49068 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
49069 }
49070 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
49071 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
49072 }
49073 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
49074 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
49075 }
49076 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
49077 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49078 }
49079 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
49080 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
49081 }
49082 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
49083 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
49084 }
49085 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
49086 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
49087 }
49088 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
49089 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
49090 }
49091 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
49092 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
49093 }
49094 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
49095 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
49096 }
49097 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
49098 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
49099 }
49100 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
49101 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
49102 }
49103 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
49104 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49105 }
49106 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
49107 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49108 }
49109 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
49110 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49111 }
49112 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
49113 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49114 }
49115 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
49116 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
49117 }
49118 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
49119 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
49120 }
49121 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
49122 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
49123 }
49124 static void *_p_wxToolBarTo_p_wxObject(void *x) {
49125 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49126 }
49127 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
49128 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
49129 }
49130 static void *_p_wxValidatorTo_p_wxObject(void *x) {
49131 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
49132 }
49133 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
49134 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
49135 }
49136 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
49137 return (void *)((wxWindow *) ((wxMenuBar *) x));
49138 }
49139 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
49140 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
49141 }
49142 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
49143 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49144 }
49145 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
49146 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
49147 }
49148 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
49149 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
49150 }
49151 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
49152 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
49153 }
49154 static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
49155 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
49156 }
49157 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
49158 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
49159 }
49160 static void *_p_wxControlTo_p_wxWindow(void *x) {
49161 return (void *)((wxWindow *) ((wxControl *) x));
49162 }
49163 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
49164 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
49165 }
49166 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
49167 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
49168 }
49169 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
49170 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
49171 }
49172 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
49173 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
49174 }
49175 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
49176 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
49177 }
49178 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
49179 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
49180 }
49181 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
49182 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
49183 }
49184 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
49185 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
49186 }
49187 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
49188 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
49189 }
49190 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
49191 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
49192 }
49193 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
49194 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
49195 }
49196 static void *_p_wxListbookTo_p_wxWindow(void *x) {
49197 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
49198 }
49199 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
49200 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
49201 }
49202 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
49203 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
49204 }
49205 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
49206 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
49207 }
49208 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
49209 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
49210 }
49211 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
49212 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
49213 }
49214 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
49215 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
49216 }
49217 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
49218 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
49219 }
49220 static void *_p_wxListViewTo_p_wxWindow(void *x) {
49221 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
49222 }
49223 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
49224 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
49225 }
49226 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
49227 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
49228 }
49229 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
49230 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
49231 }
49232 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
49233 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
49234 }
49235 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
49236 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
49237 }
49238 static void *_p_wxSliderTo_p_wxWindow(void *x) {
49239 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
49240 }
49241 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
49242 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
49243 }
49244 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
49245 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
49246 }
49247 static void *_p_wxButtonTo_p_wxWindow(void *x) {
49248 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
49249 }
49250 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
49251 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
49252 }
49253 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
49254 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49255 }
49256 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
49257 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
49258 }
49259 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
49260 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49261 }
49262 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
49263 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49264 }
49265 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
49266 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49267 }
49268 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
49269 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49270 }
49271 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
49272 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
49273 }
49274 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49275 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49276 }
49277 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49278 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49279 }
49280 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49281 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49282 }
49283 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49284 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49285 }
49286 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49287 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49288 }
49289 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
49290 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49291 }
49292 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
49293 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
49294 }
49295 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
49296 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
49297 }
49298 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
49299 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
49300 }
49301 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
49302 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
49303 }
49304 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
49305 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
49306 }
49307 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
49308 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
49309 }
49310 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
49311 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
49312 }
49313 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
49314 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
49315 }
49316 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
49317 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
49318 }
49319 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
49320 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
49321 }
49322 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
49323 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49324 }
49325 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
49326 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49327 }
49328 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
49329 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49330 }
49331 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
49332 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49333 }
49334 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
49335 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49336 }
49337 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
49338 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
49339 }
49340 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
49341 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
49342 }
49343 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
49344 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
49345 }
49346 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
49347 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
49348 }
49349 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
49350 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49351 }
49352 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
49353 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
49354 }
49355 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
49356 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
49357 }
49358 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
49359 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
49360 }
49361 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
49362 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
49363 }
49364 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
49365 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
49366 }
49367 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
49368 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
49369 }
49370 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
49371 return (void *)((wxControlWithItems *) ((wxChoice *) x));
49372 }
49373 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
49374 return (void *)((wxControlWithItems *) ((wxListBox *) x));
49375 }
49376 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
49377 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
49378 }
49379 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
49380 return (void *)((wxValidator *) ((wxPyValidator *) x));
49381 }
49382 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
49383 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
49384 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};
49385 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
49386 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
49387 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
49388 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
49389 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
49390 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
49391 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
49392 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
49393 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
49394 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
49395 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
49396 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
49397 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
49398 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
49399 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
49400 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
49401 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
49402 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
49403 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
49404 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
49405 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
49406 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
49407 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
49408 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
49409 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
49410 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
49411 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
49412 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
49413 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
49414 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
49415 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
49416 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
49417 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
49418 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
49419 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
49420 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
49421 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
49422 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
49423 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
49424 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
49425 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
49426 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
49427 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
49428 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
49429 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
49430 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
49431 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
49432 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
49433 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
49434 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
49435 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
49436 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
49437 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
49438 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
49439 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
49440 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
49441 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
49442 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
49443 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
49444 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
49445 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
49446 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
49447 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
49448 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
49449 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
49450 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
49451 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
49452 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
49453 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
49454 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
49455 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
49456 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
49457 static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
49458 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
49459 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
49460 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
49461 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
49462 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
49463 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
49464 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
49465 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
49466 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
49467 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
49468 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
49469 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
49470 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
49471 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
49472 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
49473 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
49474 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
49475 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
49476 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
49477 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
49478 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
49479 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
49480 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
49481 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
49482 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
49483 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
49484 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
49485 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
49486 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
49487 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
49488 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
49489 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
49490 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
49491 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
49492 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
49493 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
49494 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49495 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49496 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49497 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49498 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49499 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49500 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49501 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49502 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49503 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
49504 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49505 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
49506 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49507 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
49508 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
49509 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49510 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49511 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49512 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
49513 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
49514 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
49515 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49516 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
49517 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
49518 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
49519 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
49520 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49521 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49522 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
49523 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
49524 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49525 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49526 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49527 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49528 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49529 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49530 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49531 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49532 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
49533 static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
49534 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49535 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49536 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49537 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49538 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49539 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49540 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49541 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49542 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49543 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49544 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49545 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49546 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49547 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49548 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49549 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49550 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49551 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49552 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49553 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
49554 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49555 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49556 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49557 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49558 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49559 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49560 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
49561 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
49562
49563 static swig_type_info *swig_type_initial[] = {
49564 &_swigt__p_bool,
49565 &_swigt__p_char,
49566 &_swigt__p_form_ops_t,
49567 &_swigt__p_int,
49568 &_swigt__p_long,
49569 &_swigt__p_unsigned_char,
49570 &_swigt__p_unsigned_int,
49571 &_swigt__p_unsigned_long,
49572 &_swigt__p_void,
49573 &_swigt__p_wxANIHandler,
49574 &_swigt__p_wxAcceleratorTable,
49575 &_swigt__p_wxActivateEvent,
49576 &_swigt__p_wxArrayInt,
49577 &_swigt__p_wxArrayString,
49578 &_swigt__p_wxBMPHandler,
49579 &_swigt__p_wxBitmap,
49580 &_swigt__p_wxBitmapButton,
49581 &_swigt__p_wxBookCtrlBase,
49582 &_swigt__p_wxBookCtrlBaseEvent,
49583 &_swigt__p_wxBoxSizer,
49584 &_swigt__p_wxButton,
49585 &_swigt__p_wxCURHandler,
49586 &_swigt__p_wxCheckBox,
49587 &_swigt__p_wxCheckListBox,
49588 &_swigt__p_wxChildFocusEvent,
49589 &_swigt__p_wxChoice,
49590 &_swigt__p_wxChoicebook,
49591 &_swigt__p_wxChoicebookEvent,
49592 &_swigt__p_wxClipboardTextEvent,
49593 &_swigt__p_wxCloseEvent,
49594 &_swigt__p_wxCollapsiblePane,
49595 &_swigt__p_wxCollapsiblePaneEvent,
49596 &_swigt__p_wxColour,
49597 &_swigt__p_wxColourPickerCtrl,
49598 &_swigt__p_wxColourPickerEvent,
49599 &_swigt__p_wxComboBox,
49600 &_swigt__p_wxCommandEvent,
49601 &_swigt__p_wxContextHelp,
49602 &_swigt__p_wxContextHelpButton,
49603 &_swigt__p_wxContextMenuEvent,
49604 &_swigt__p_wxControl,
49605 &_swigt__p_wxControlWithItems,
49606 &_swigt__p_wxCursor,
49607 &_swigt__p_wxDC,
49608 &_swigt__p_wxDateEvent,
49609 &_swigt__p_wxDatePickerCtrl,
49610 &_swigt__p_wxDateTime,
49611 &_swigt__p_wxDirFilterListCtrl,
49612 &_swigt__p_wxDirPickerCtrl,
49613 &_swigt__p_wxDisplayChangedEvent,
49614 &_swigt__p_wxDropFilesEvent,
49615 &_swigt__p_wxDuplexMode,
49616 &_swigt__p_wxEraseEvent,
49617 &_swigt__p_wxEvent,
49618 &_swigt__p_wxEventBlocker,
49619 &_swigt__p_wxEvtHandler,
49620 &_swigt__p_wxFSFile,
49621 &_swigt__p_wxFileDirPickerEvent,
49622 &_swigt__p_wxFilePickerCtrl,
49623 &_swigt__p_wxFileSystem,
49624 &_swigt__p_wxFlexGridSizer,
49625 &_swigt__p_wxFocusEvent,
49626 &_swigt__p_wxFont,
49627 &_swigt__p_wxFontPickerCtrl,
49628 &_swigt__p_wxFontPickerEvent,
49629 &_swigt__p_wxGBSizerItem,
49630 &_swigt__p_wxGIFHandler,
49631 &_swigt__p_wxGauge,
49632 &_swigt__p_wxGenericDirCtrl,
49633 &_swigt__p_wxGenericDragImage,
49634 &_swigt__p_wxGridBagSizer,
49635 &_swigt__p_wxGridSizer,
49636 &_swigt__p_wxHelpEvent,
49637 &_swigt__p_wxHelpProvider,
49638 &_swigt__p_wxHyperlinkCtrl,
49639 &_swigt__p_wxHyperlinkEvent,
49640 &_swigt__p_wxICOHandler,
49641 &_swigt__p_wxIcon,
49642 &_swigt__p_wxIconizeEvent,
49643 &_swigt__p_wxIdleEvent,
49644 &_swigt__p_wxImage,
49645 &_swigt__p_wxImageHandler,
49646 &_swigt__p_wxImageList,
49647 &_swigt__p_wxIndividualLayoutConstraint,
49648 &_swigt__p_wxInitDialogEvent,
49649 &_swigt__p_wxItemContainer,
49650 &_swigt__p_wxJPEGHandler,
49651 &_swigt__p_wxKeyEvent,
49652 &_swigt__p_wxLayoutConstraints,
49653 &_swigt__p_wxListBox,
49654 &_swigt__p_wxListEvent,
49655 &_swigt__p_wxListItem,
49656 &_swigt__p_wxListItemAttr,
49657 &_swigt__p_wxListView,
49658 &_swigt__p_wxListbook,
49659 &_swigt__p_wxListbookEvent,
49660 &_swigt__p_wxMaximizeEvent,
49661 &_swigt__p_wxMemoryDC,
49662 &_swigt__p_wxMenu,
49663 &_swigt__p_wxMenuBar,
49664 &_swigt__p_wxMenuEvent,
49665 &_swigt__p_wxMenuItem,
49666 &_swigt__p_wxMouseCaptureChangedEvent,
49667 &_swigt__p_wxMouseCaptureLostEvent,
49668 &_swigt__p_wxMouseEvent,
49669 &_swigt__p_wxMoveEvent,
49670 &_swigt__p_wxNavigationKeyEvent,
49671 &_swigt__p_wxNcPaintEvent,
49672 &_swigt__p_wxNotebook,
49673 &_swigt__p_wxNotebookEvent,
49674 &_swigt__p_wxNotifyEvent,
49675 &_swigt__p_wxObject,
49676 &_swigt__p_wxPCXHandler,
49677 &_swigt__p_wxPNGHandler,
49678 &_swigt__p_wxPNMHandler,
49679 &_swigt__p_wxPaintEvent,
49680 &_swigt__p_wxPaletteChangedEvent,
49681 &_swigt__p_wxPaperSize,
49682 &_swigt__p_wxPickerBase,
49683 &_swigt__p_wxPoint,
49684 &_swigt__p_wxPyApp,
49685 &_swigt__p_wxPyCommandEvent,
49686 &_swigt__p_wxPyControl,
49687 &_swigt__p_wxPyEvent,
49688 &_swigt__p_wxPyImageHandler,
49689 &_swigt__p_wxPyListCtrl,
49690 &_swigt__p_wxPySizer,
49691 &_swigt__p_wxPyTreeCtrl,
49692 &_swigt__p_wxPyTreeItemData,
49693 &_swigt__p_wxPyValidator,
49694 &_swigt__p_wxQueryNewPaletteEvent,
49695 &_swigt__p_wxRadioBox,
49696 &_swigt__p_wxRadioButton,
49697 &_swigt__p_wxRect,
49698 &_swigt__p_wxScrollBar,
49699 &_swigt__p_wxScrollEvent,
49700 &_swigt__p_wxScrollWinEvent,
49701 &_swigt__p_wxSearchCtrl,
49702 &_swigt__p_wxSetCursorEvent,
49703 &_swigt__p_wxShowEvent,
49704 &_swigt__p_wxSimpleHelpProvider,
49705 &_swigt__p_wxSize,
49706 &_swigt__p_wxSizeEvent,
49707 &_swigt__p_wxSizer,
49708 &_swigt__p_wxSizerItem,
49709 &_swigt__p_wxSlider,
49710 &_swigt__p_wxSpinButton,
49711 &_swigt__p_wxSpinCtrl,
49712 &_swigt__p_wxSpinEvent,
49713 &_swigt__p_wxStaticBitmap,
49714 &_swigt__p_wxStaticBox,
49715 &_swigt__p_wxStaticBoxSizer,
49716 &_swigt__p_wxStaticLine,
49717 &_swigt__p_wxStaticText,
49718 &_swigt__p_wxStdDialogButtonSizer,
49719 &_swigt__p_wxString,
49720 &_swigt__p_wxSysColourChangedEvent,
49721 &_swigt__p_wxTGAHandler,
49722 &_swigt__p_wxTIFFHandler,
49723 &_swigt__p_wxTextAttr,
49724 &_swigt__p_wxTextCtrl,
49725 &_swigt__p_wxTextUrlEvent,
49726 &_swigt__p_wxToggleButton,
49727 &_swigt__p_wxToolBar,
49728 &_swigt__p_wxToolBarBase,
49729 &_swigt__p_wxToolBarToolBase,
49730 &_swigt__p_wxToolbook,
49731 &_swigt__p_wxToolbookEvent,
49732 &_swigt__p_wxTreeEvent,
49733 &_swigt__p_wxTreeItemId,
49734 &_swigt__p_wxTreebook,
49735 &_swigt__p_wxTreebookEvent,
49736 &_swigt__p_wxUpdateUIEvent,
49737 &_swigt__p_wxValidator,
49738 &_swigt__p_wxVisualAttributes,
49739 &_swigt__p_wxWindow,
49740 &_swigt__p_wxWindowBase,
49741 &_swigt__p_wxWindowCreateEvent,
49742 &_swigt__p_wxWindowDestroyEvent,
49743 &_swigt__p_wxXPMHandler,
49744 };
49745
49746 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49747 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49748 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49749 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49750 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49751 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49752 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49753 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49754 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49755 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49756 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49757 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49758 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}};
49759 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}};
49760 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}};
49761 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}};
49762 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49763 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49764 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
49765 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49766 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49767 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49768 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
49769 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
49770 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49771 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49772 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49773 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
49774 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
49775 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49776 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49777 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49778 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49779 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49780 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49781 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
49782 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}};
49783 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49784 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
49785 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
49786 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
49787 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49788 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49789 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49790 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49791 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
49792 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49793 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49794 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49795 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49796 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49797 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49798 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49799 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
49800 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
49801 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49802 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49803 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49804 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49805 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49806 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
49807 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
49808 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49809 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49810 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49811 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49812 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49813 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49814 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49815 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49816 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49817 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49818 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
49819 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}};
49820 static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
49821 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49822 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49823 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
49824 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
49825 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49826 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49827 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
49828 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49829 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49830 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49831 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49832 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49833 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49834 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}};
49835 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49836 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
49837 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49838 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49839 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}};
49840 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49841 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}};
49842 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49843 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49844 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49845 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49846 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49847 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49848 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
49849 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
49850 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49851 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49852 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49853 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}};
49854 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
49855 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49856 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49857 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49858 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49859 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49860 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
49861 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
49862 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49863 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49864 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
49865 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
49866 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
49867 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
49868 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
49869 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
49870 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
49871 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
49872 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
49873 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49874 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49875 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
49876 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49877 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49878 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49879 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
49880 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
49881 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
49882 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
49883 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49884 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
49885 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
49886 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
49887 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}};
49888 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49889 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49890 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}};
49891 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49892 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49893 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49894 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49895 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49896 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
49897 static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
49898 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49899 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49900 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49901 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49902 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49903 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49904 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49905 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49906 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49907 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49908 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49909 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
49910 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxTextCtrl, 0, 0},{0, 0, 0, 0}};
49911 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49912 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49913 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49914 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}};
49915 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49916 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49917 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49918 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49919 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49920 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49921 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49922 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}};
49923 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
49924 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
49925 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
49926
49927 static swig_cast_info *swig_cast_initial[] = {
49928 _swigc__p_bool,
49929 _swigc__p_char,
49930 _swigc__p_form_ops_t,
49931 _swigc__p_int,
49932 _swigc__p_long,
49933 _swigc__p_unsigned_char,
49934 _swigc__p_unsigned_int,
49935 _swigc__p_unsigned_long,
49936 _swigc__p_void,
49937 _swigc__p_wxANIHandler,
49938 _swigc__p_wxAcceleratorTable,
49939 _swigc__p_wxActivateEvent,
49940 _swigc__p_wxArrayInt,
49941 _swigc__p_wxArrayString,
49942 _swigc__p_wxBMPHandler,
49943 _swigc__p_wxBitmap,
49944 _swigc__p_wxBitmapButton,
49945 _swigc__p_wxBookCtrlBase,
49946 _swigc__p_wxBookCtrlBaseEvent,
49947 _swigc__p_wxBoxSizer,
49948 _swigc__p_wxButton,
49949 _swigc__p_wxCURHandler,
49950 _swigc__p_wxCheckBox,
49951 _swigc__p_wxCheckListBox,
49952 _swigc__p_wxChildFocusEvent,
49953 _swigc__p_wxChoice,
49954 _swigc__p_wxChoicebook,
49955 _swigc__p_wxChoicebookEvent,
49956 _swigc__p_wxClipboardTextEvent,
49957 _swigc__p_wxCloseEvent,
49958 _swigc__p_wxCollapsiblePane,
49959 _swigc__p_wxCollapsiblePaneEvent,
49960 _swigc__p_wxColour,
49961 _swigc__p_wxColourPickerCtrl,
49962 _swigc__p_wxColourPickerEvent,
49963 _swigc__p_wxComboBox,
49964 _swigc__p_wxCommandEvent,
49965 _swigc__p_wxContextHelp,
49966 _swigc__p_wxContextHelpButton,
49967 _swigc__p_wxContextMenuEvent,
49968 _swigc__p_wxControl,
49969 _swigc__p_wxControlWithItems,
49970 _swigc__p_wxCursor,
49971 _swigc__p_wxDC,
49972 _swigc__p_wxDateEvent,
49973 _swigc__p_wxDatePickerCtrl,
49974 _swigc__p_wxDateTime,
49975 _swigc__p_wxDirFilterListCtrl,
49976 _swigc__p_wxDirPickerCtrl,
49977 _swigc__p_wxDisplayChangedEvent,
49978 _swigc__p_wxDropFilesEvent,
49979 _swigc__p_wxDuplexMode,
49980 _swigc__p_wxEraseEvent,
49981 _swigc__p_wxEvent,
49982 _swigc__p_wxEventBlocker,
49983 _swigc__p_wxEvtHandler,
49984 _swigc__p_wxFSFile,
49985 _swigc__p_wxFileDirPickerEvent,
49986 _swigc__p_wxFilePickerCtrl,
49987 _swigc__p_wxFileSystem,
49988 _swigc__p_wxFlexGridSizer,
49989 _swigc__p_wxFocusEvent,
49990 _swigc__p_wxFont,
49991 _swigc__p_wxFontPickerCtrl,
49992 _swigc__p_wxFontPickerEvent,
49993 _swigc__p_wxGBSizerItem,
49994 _swigc__p_wxGIFHandler,
49995 _swigc__p_wxGauge,
49996 _swigc__p_wxGenericDirCtrl,
49997 _swigc__p_wxGenericDragImage,
49998 _swigc__p_wxGridBagSizer,
49999 _swigc__p_wxGridSizer,
50000 _swigc__p_wxHelpEvent,
50001 _swigc__p_wxHelpProvider,
50002 _swigc__p_wxHyperlinkCtrl,
50003 _swigc__p_wxHyperlinkEvent,
50004 _swigc__p_wxICOHandler,
50005 _swigc__p_wxIcon,
50006 _swigc__p_wxIconizeEvent,
50007 _swigc__p_wxIdleEvent,
50008 _swigc__p_wxImage,
50009 _swigc__p_wxImageHandler,
50010 _swigc__p_wxImageList,
50011 _swigc__p_wxIndividualLayoutConstraint,
50012 _swigc__p_wxInitDialogEvent,
50013 _swigc__p_wxItemContainer,
50014 _swigc__p_wxJPEGHandler,
50015 _swigc__p_wxKeyEvent,
50016 _swigc__p_wxLayoutConstraints,
50017 _swigc__p_wxListBox,
50018 _swigc__p_wxListEvent,
50019 _swigc__p_wxListItem,
50020 _swigc__p_wxListItemAttr,
50021 _swigc__p_wxListView,
50022 _swigc__p_wxListbook,
50023 _swigc__p_wxListbookEvent,
50024 _swigc__p_wxMaximizeEvent,
50025 _swigc__p_wxMemoryDC,
50026 _swigc__p_wxMenu,
50027 _swigc__p_wxMenuBar,
50028 _swigc__p_wxMenuEvent,
50029 _swigc__p_wxMenuItem,
50030 _swigc__p_wxMouseCaptureChangedEvent,
50031 _swigc__p_wxMouseCaptureLostEvent,
50032 _swigc__p_wxMouseEvent,
50033 _swigc__p_wxMoveEvent,
50034 _swigc__p_wxNavigationKeyEvent,
50035 _swigc__p_wxNcPaintEvent,
50036 _swigc__p_wxNotebook,
50037 _swigc__p_wxNotebookEvent,
50038 _swigc__p_wxNotifyEvent,
50039 _swigc__p_wxObject,
50040 _swigc__p_wxPCXHandler,
50041 _swigc__p_wxPNGHandler,
50042 _swigc__p_wxPNMHandler,
50043 _swigc__p_wxPaintEvent,
50044 _swigc__p_wxPaletteChangedEvent,
50045 _swigc__p_wxPaperSize,
50046 _swigc__p_wxPickerBase,
50047 _swigc__p_wxPoint,
50048 _swigc__p_wxPyApp,
50049 _swigc__p_wxPyCommandEvent,
50050 _swigc__p_wxPyControl,
50051 _swigc__p_wxPyEvent,
50052 _swigc__p_wxPyImageHandler,
50053 _swigc__p_wxPyListCtrl,
50054 _swigc__p_wxPySizer,
50055 _swigc__p_wxPyTreeCtrl,
50056 _swigc__p_wxPyTreeItemData,
50057 _swigc__p_wxPyValidator,
50058 _swigc__p_wxQueryNewPaletteEvent,
50059 _swigc__p_wxRadioBox,
50060 _swigc__p_wxRadioButton,
50061 _swigc__p_wxRect,
50062 _swigc__p_wxScrollBar,
50063 _swigc__p_wxScrollEvent,
50064 _swigc__p_wxScrollWinEvent,
50065 _swigc__p_wxSearchCtrl,
50066 _swigc__p_wxSetCursorEvent,
50067 _swigc__p_wxShowEvent,
50068 _swigc__p_wxSimpleHelpProvider,
50069 _swigc__p_wxSize,
50070 _swigc__p_wxSizeEvent,
50071 _swigc__p_wxSizer,
50072 _swigc__p_wxSizerItem,
50073 _swigc__p_wxSlider,
50074 _swigc__p_wxSpinButton,
50075 _swigc__p_wxSpinCtrl,
50076 _swigc__p_wxSpinEvent,
50077 _swigc__p_wxStaticBitmap,
50078 _swigc__p_wxStaticBox,
50079 _swigc__p_wxStaticBoxSizer,
50080 _swigc__p_wxStaticLine,
50081 _swigc__p_wxStaticText,
50082 _swigc__p_wxStdDialogButtonSizer,
50083 _swigc__p_wxString,
50084 _swigc__p_wxSysColourChangedEvent,
50085 _swigc__p_wxTGAHandler,
50086 _swigc__p_wxTIFFHandler,
50087 _swigc__p_wxTextAttr,
50088 _swigc__p_wxTextCtrl,
50089 _swigc__p_wxTextUrlEvent,
50090 _swigc__p_wxToggleButton,
50091 _swigc__p_wxToolBar,
50092 _swigc__p_wxToolBarBase,
50093 _swigc__p_wxToolBarToolBase,
50094 _swigc__p_wxToolbook,
50095 _swigc__p_wxToolbookEvent,
50096 _swigc__p_wxTreeEvent,
50097 _swigc__p_wxTreeItemId,
50098 _swigc__p_wxTreebook,
50099 _swigc__p_wxTreebookEvent,
50100 _swigc__p_wxUpdateUIEvent,
50101 _swigc__p_wxValidator,
50102 _swigc__p_wxVisualAttributes,
50103 _swigc__p_wxWindow,
50104 _swigc__p_wxWindowBase,
50105 _swigc__p_wxWindowCreateEvent,
50106 _swigc__p_wxWindowDestroyEvent,
50107 _swigc__p_wxXPMHandler,
50108 };
50109
50110
50111 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
50112
50113 static swig_const_info swig_const_table[] = {
50114 {0, 0, 0, 0.0, 0, 0}};
50115
50116 #ifdef __cplusplus
50117 }
50118 #endif
50119 /* -----------------------------------------------------------------------------
50120 * Type initialization:
50121 * This problem is tough by the requirement that no dynamic
50122 * memory is used. Also, since swig_type_info structures store pointers to
50123 * swig_cast_info structures and swig_cast_info structures store pointers back
50124 * to swig_type_info structures, we need some lookup code at initialization.
50125 * The idea is that swig generates all the structures that are needed.
50126 * The runtime then collects these partially filled structures.
50127 * The SWIG_InitializeModule function takes these initial arrays out of
50128 * swig_module, and does all the lookup, filling in the swig_module.types
50129 * array with the correct data and linking the correct swig_cast_info
50130 * structures together.
50131 *
50132 * The generated swig_type_info structures are assigned staticly to an initial
50133 * array. We just loop though that array, and handle each type individually.
50134 * First we lookup if this type has been already loaded, and if so, use the
50135 * loaded structure instead of the generated one. Then we have to fill in the
50136 * cast linked list. The cast data is initially stored in something like a
50137 * two-dimensional array. Each row corresponds to a type (there are the same
50138 * number of rows as there are in the swig_type_initial array). Each entry in
50139 * a column is one of the swig_cast_info structures for that type.
50140 * The cast_initial array is actually an array of arrays, because each row has
50141 * a variable number of columns. So to actually build the cast linked list,
50142 * we find the array of casts associated with the type, and loop through it
50143 * adding the casts to the list. The one last trick we need to do is making
50144 * sure the type pointer in the swig_cast_info struct is correct.
50145 *
50146 * First off, we lookup the cast->type name to see if it is already loaded.
50147 * There are three cases to handle:
50148 * 1) If the cast->type has already been loaded AND the type we are adding
50149 * casting info to has not been loaded (it is in this module), THEN we
50150 * replace the cast->type pointer with the type pointer that has already
50151 * been loaded.
50152 * 2) If BOTH types (the one we are adding casting info to, and the
50153 * cast->type) are loaded, THEN the cast info has already been loaded by
50154 * the previous module so we just ignore it.
50155 * 3) Finally, if cast->type has not already been loaded, then we add that
50156 * swig_cast_info to the linked list (because the cast->type) pointer will
50157 * be correct.
50158 * ----------------------------------------------------------------------------- */
50159
50160 #ifdef __cplusplus
50161 extern "C" {
50162 #if 0
50163 } /* c-mode */
50164 #endif
50165 #endif
50166
50167 #if 0
50168 #define SWIGRUNTIME_DEBUG
50169 #endif
50170
50171 SWIGRUNTIME void
50172 SWIG_InitializeModule(void *clientdata) {
50173 size_t i;
50174 swig_module_info *module_head;
50175 static int init_run = 0;
50176
50177 clientdata = clientdata;
50178
50179 if (init_run) return;
50180 init_run = 1;
50181
50182 /* Initialize the swig_module */
50183 swig_module.type_initial = swig_type_initial;
50184 swig_module.cast_initial = swig_cast_initial;
50185
50186 /* Try and load any already created modules */
50187 module_head = SWIG_GetModule(clientdata);
50188 if (module_head) {
50189 swig_module.next = module_head->next;
50190 module_head->next = &swig_module;
50191 } else {
50192 /* This is the first module loaded */
50193 swig_module.next = &swig_module;
50194 SWIG_SetModule(clientdata, &swig_module);
50195 }
50196
50197 /* Now work on filling in swig_module.types */
50198 #ifdef SWIGRUNTIME_DEBUG
50199 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
50200 #endif
50201 for (i = 0; i < swig_module.size; ++i) {
50202 swig_type_info *type = 0;
50203 swig_type_info *ret;
50204 swig_cast_info *cast;
50205
50206 #ifdef SWIGRUNTIME_DEBUG
50207 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50208 #endif
50209
50210 /* if there is another module already loaded */
50211 if (swig_module.next != &swig_module) {
50212 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
50213 }
50214 if (type) {
50215 /* Overwrite clientdata field */
50216 #ifdef SWIGRUNTIME_DEBUG
50217 printf("SWIG_InitializeModule: found type %s\n", type->name);
50218 #endif
50219 if (swig_module.type_initial[i]->clientdata) {
50220 type->clientdata = swig_module.type_initial[i]->clientdata;
50221 #ifdef SWIGRUNTIME_DEBUG
50222 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
50223 #endif
50224 }
50225 } else {
50226 type = swig_module.type_initial[i];
50227 }
50228
50229 /* Insert casting types */
50230 cast = swig_module.cast_initial[i];
50231 while (cast->type) {
50232 /* Don't need to add information already in the list */
50233 ret = 0;
50234 #ifdef SWIGRUNTIME_DEBUG
50235 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
50236 #endif
50237 if (swig_module.next != &swig_module) {
50238 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
50239 #ifdef SWIGRUNTIME_DEBUG
50240 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
50241 #endif
50242 }
50243 if (ret) {
50244 if (type == swig_module.type_initial[i]) {
50245 #ifdef SWIGRUNTIME_DEBUG
50246 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
50247 #endif
50248 cast->type = ret;
50249 ret = 0;
50250 } else {
50251 /* Check for casting already in the list */
50252 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
50253 #ifdef SWIGRUNTIME_DEBUG
50254 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
50255 #endif
50256 if (!ocast) ret = 0;
50257 }
50258 }
50259
50260 if (!ret) {
50261 #ifdef SWIGRUNTIME_DEBUG
50262 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
50263 #endif
50264 if (type->cast) {
50265 type->cast->prev = cast;
50266 cast->next = type->cast;
50267 }
50268 type->cast = cast;
50269 }
50270 cast++;
50271 }
50272 /* Set entry in modules->types array equal to the type */
50273 swig_module.types[i] = type;
50274 }
50275 swig_module.types[i] = 0;
50276
50277 #ifdef SWIGRUNTIME_DEBUG
50278 printf("**** SWIG_InitializeModule: Cast List ******\n");
50279 for (i = 0; i < swig_module.size; ++i) {
50280 int j = 0;
50281 swig_cast_info *cast = swig_module.cast_initial[i];
50282 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50283 while (cast->type) {
50284 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
50285 cast++;
50286 ++j;
50287 }
50288 printf("---- Total casts: %d\n",j);
50289 }
50290 printf("**** SWIG_InitializeModule: Cast List ******\n");
50291 #endif
50292 }
50293
50294 /* This function will propagate the clientdata field of type to
50295 * any new swig_type_info structures that have been added into the list
50296 * of equivalent types. It is like calling
50297 * SWIG_TypeClientData(type, clientdata) a second time.
50298 */
50299 SWIGRUNTIME void
50300 SWIG_PropagateClientData(void) {
50301 size_t i;
50302 swig_cast_info *equiv;
50303 static int init_run = 0;
50304
50305 if (init_run) return;
50306 init_run = 1;
50307
50308 for (i = 0; i < swig_module.size; i++) {
50309 if (swig_module.types[i]->clientdata) {
50310 equiv = swig_module.types[i]->cast;
50311 while (equiv) {
50312 if (!equiv->converter) {
50313 if (equiv->type && !equiv->type->clientdata)
50314 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
50315 }
50316 equiv = equiv->next;
50317 }
50318 }
50319 }
50320 }
50321
50322 #ifdef __cplusplus
50323 #if 0
50324 {
50325 /* c-mode */
50326 #endif
50327 }
50328 #endif
50329
50330
50331
50332 #ifdef __cplusplus
50333 extern "C" {
50334 #endif
50335
50336 /* Python-specific SWIG API */
50337 #define SWIG_newvarlink() SWIG_Python_newvarlink()
50338 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
50339 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
50340
50341 /* -----------------------------------------------------------------------------
50342 * global variable support code.
50343 * ----------------------------------------------------------------------------- */
50344
50345 typedef struct swig_globalvar {
50346 char *name; /* Name of global variable */
50347 PyObject *(*get_attr)(void); /* Return the current value */
50348 int (*set_attr)(PyObject *); /* Set the value */
50349 struct swig_globalvar *next;
50350 } swig_globalvar;
50351
50352 typedef struct swig_varlinkobject {
50353 PyObject_HEAD
50354 swig_globalvar *vars;
50355 } swig_varlinkobject;
50356
50357 SWIGINTERN PyObject *
50358 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
50359 return PyString_FromString("<Swig global variables>");
50360 }
50361
50362 SWIGINTERN PyObject *
50363 swig_varlink_str(swig_varlinkobject *v) {
50364 PyObject *str = PyString_FromString("(");
50365 swig_globalvar *var;
50366 for (var = v->vars; var; var=var->next) {
50367 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
50368 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
50369 }
50370 PyString_ConcatAndDel(&str,PyString_FromString(")"));
50371 return str;
50372 }
50373
50374 SWIGINTERN int
50375 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
50376 PyObject *str = swig_varlink_str(v);
50377 fprintf(fp,"Swig global variables ");
50378 fprintf(fp,"%s\n", PyString_AsString(str));
50379 Py_DECREF(str);
50380 return 0;
50381 }
50382
50383 SWIGINTERN void
50384 swig_varlink_dealloc(swig_varlinkobject *v) {
50385 swig_globalvar *var = v->vars;
50386 while (var) {
50387 swig_globalvar *n = var->next;
50388 free(var->name);
50389 free(var);
50390 var = n;
50391 }
50392 }
50393
50394 SWIGINTERN PyObject *
50395 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
50396 PyObject *res = NULL;
50397 swig_globalvar *var = v->vars;
50398 while (var) {
50399 if (strcmp(var->name,n) == 0) {
50400 res = (*var->get_attr)();
50401 break;
50402 }
50403 var = var->next;
50404 }
50405 if (res == NULL && !PyErr_Occurred()) {
50406 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50407 }
50408 return res;
50409 }
50410
50411 SWIGINTERN int
50412 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
50413 int res = 1;
50414 swig_globalvar *var = v->vars;
50415 while (var) {
50416 if (strcmp(var->name,n) == 0) {
50417 res = (*var->set_attr)(p);
50418 break;
50419 }
50420 var = var->next;
50421 }
50422 if (res == 1 && !PyErr_Occurred()) {
50423 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50424 }
50425 return res;
50426 }
50427
50428 SWIGINTERN PyTypeObject*
50429 swig_varlink_type(void) {
50430 static char varlink__doc__[] = "Swig var link object";
50431 static PyTypeObject varlink_type;
50432 static int type_init = 0;
50433 if (!type_init) {
50434 const PyTypeObject tmp
50435 = {
50436 PyObject_HEAD_INIT(NULL)
50437 0, /* Number of items in variable part (ob_size) */
50438 (char *)"swigvarlink", /* Type name (tp_name) */
50439 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
50440 0, /* Itemsize (tp_itemsize) */
50441 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
50442 (printfunc) swig_varlink_print, /* Print (tp_print) */
50443 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
50444 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
50445 0, /* tp_compare */
50446 (reprfunc) swig_varlink_repr, /* tp_repr */
50447 0, /* tp_as_number */
50448 0, /* tp_as_sequence */
50449 0, /* tp_as_mapping */
50450 0, /* tp_hash */
50451 0, /* tp_call */
50452 (reprfunc)swig_varlink_str, /* tp_str */
50453 0, /* tp_getattro */
50454 0, /* tp_setattro */
50455 0, /* tp_as_buffer */
50456 0, /* tp_flags */
50457 varlink__doc__, /* tp_doc */
50458 0, /* tp_traverse */
50459 0, /* tp_clear */
50460 0, /* tp_richcompare */
50461 0, /* tp_weaklistoffset */
50462 #if PY_VERSION_HEX >= 0x02020000
50463 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
50464 #endif
50465 #if PY_VERSION_HEX >= 0x02030000
50466 0, /* tp_del */
50467 #endif
50468 #ifdef COUNT_ALLOCS
50469 0,0,0,0 /* tp_alloc -> tp_next */
50470 #endif
50471 };
50472 varlink_type = tmp;
50473 varlink_type.ob_type = &PyType_Type;
50474 type_init = 1;
50475 }
50476 return &varlink_type;
50477 }
50478
50479 /* Create a variable linking object for use later */
50480 SWIGINTERN PyObject *
50481 SWIG_Python_newvarlink(void) {
50482 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
50483 if (result) {
50484 result->vars = 0;
50485 }
50486 return ((PyObject*) result);
50487 }
50488
50489 SWIGINTERN void
50490 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
50491 swig_varlinkobject *v = (swig_varlinkobject *) p;
50492 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
50493 if (gv) {
50494 size_t size = strlen(name)+1;
50495 gv->name = (char *)malloc(size);
50496 if (gv->name) {
50497 strncpy(gv->name,name,size);
50498 gv->get_attr = get_attr;
50499 gv->set_attr = set_attr;
50500 gv->next = v->vars;
50501 }
50502 }
50503 v->vars = gv;
50504 }
50505
50506 SWIGINTERN PyObject *
50507 SWIG_globals() {
50508 static PyObject *_SWIG_globals = 0;
50509 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50510 return _SWIG_globals;
50511 }
50512
50513 /* -----------------------------------------------------------------------------
50514 * constants/methods manipulation
50515 * ----------------------------------------------------------------------------- */
50516
50517 /* Install Constants */
50518 SWIGINTERN void
50519 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50520 PyObject *obj = 0;
50521 size_t i;
50522 for (i = 0; constants[i].type; ++i) {
50523 switch(constants[i].type) {
50524 case SWIG_PY_POINTER:
50525 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50526 break;
50527 case SWIG_PY_BINARY:
50528 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50529 break;
50530 default:
50531 obj = 0;
50532 break;
50533 }
50534 if (obj) {
50535 PyDict_SetItemString(d, constants[i].name, obj);
50536 Py_DECREF(obj);
50537 }
50538 }
50539 }
50540
50541 /* -----------------------------------------------------------------------------*/
50542 /* Fix SwigMethods to carry the callback ptrs when needed */
50543 /* -----------------------------------------------------------------------------*/
50544
50545 SWIGINTERN void
50546 SWIG_Python_FixMethods(PyMethodDef *methods,
50547 swig_const_info *const_table,
50548 swig_type_info **types,
50549 swig_type_info **types_initial) {
50550 size_t i;
50551 for (i = 0; methods[i].ml_name; ++i) {
50552 const char *c = methods[i].ml_doc;
50553 if (c && (c = strstr(c, "swig_ptr: "))) {
50554 int j;
50555 swig_const_info *ci = 0;
50556 const char *name = c + 10;
50557 for (j = 0; const_table[j].type; ++j) {
50558 if (strncmp(const_table[j].name, name,
50559 strlen(const_table[j].name)) == 0) {
50560 ci = &(const_table[j]);
50561 break;
50562 }
50563 }
50564 if (ci) {
50565 size_t shift = (ci->ptype) - types;
50566 swig_type_info *ty = types_initial[shift];
50567 size_t ldoc = (c - methods[i].ml_doc);
50568 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50569 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50570 if (ndoc) {
50571 char *buff = ndoc;
50572 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50573 if (ptr) {
50574 strncpy(buff, methods[i].ml_doc, ldoc);
50575 buff += ldoc;
50576 strncpy(buff, "swig_ptr: ", 10);
50577 buff += 10;
50578 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50579 methods[i].ml_doc = ndoc;
50580 }
50581 }
50582 }
50583 }
50584 }
50585 }
50586
50587 #ifdef __cplusplus
50588 }
50589 #endif
50590
50591 /* -----------------------------------------------------------------------------*
50592 * Partial Init method
50593 * -----------------------------------------------------------------------------*/
50594
50595 #ifdef __cplusplus
50596 extern "C"
50597 #endif
50598 SWIGEXPORT void SWIG_init(void) {
50599 PyObject *m, *d;
50600
50601 /* Fix SwigMethods to carry the callback ptrs when needed */
50602 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50603
50604 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50605 d = PyModule_GetDict(m);
50606
50607 SWIG_InitializeModule(0);
50608 SWIG_InstallConstants(d,swig_const_table);
50609
50610
50611 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50612 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50613 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50614 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50615 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50616 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50617 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50618 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50619 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50620 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50621 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50622 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50623 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50624 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50625 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50626 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50627 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50628 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50629 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50630 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50631 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50632 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
50633 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50634 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50635 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
50636 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
50637 SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
50638 SWIG_Python_SetConstant(d, "ST_MARKUP",SWIG_From_int(static_cast< int >(wxST_MARKUP)));
50639 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_START",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_START)));
50640 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_MIDDLE",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_MIDDLE)));
50641 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_END",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_END)));
50642 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50643 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50644 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50645 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50646 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50647 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50648 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50649 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50650 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50651 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50652 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50653 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50654 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50655 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50656 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50657 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50658 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50659 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50660 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50661 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
50662 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50663 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50664 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50665 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50666 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50667 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50668 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50669 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50670 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50671 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50672 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50673 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50674 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50675 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50676 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50677 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50678 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50679 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50680 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50681 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50682 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50683 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50684 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50685 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50686 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50687 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50688 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
50689 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
50690 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50691 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50692 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50693 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50694 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50695 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50696 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50697 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50698 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50699 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50700 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50701 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50702 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50703 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50704 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50705 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50706 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50707 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50708 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50709 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50710 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50711 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50712 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50713 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50714 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50715 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50716 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50717 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50718 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50719 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50720 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50721 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50722 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50723 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50724 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50725 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
50726 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
50727 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50728 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50729 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50730 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50731 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
50732 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50733 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50734 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50735 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50736 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50737 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50738 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50739 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50740 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50741 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50742 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
50743 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
50744 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50745 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50746 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50747 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50748 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50749 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50750 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50751 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50752 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50753 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50754 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50755 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50756 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50757 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50758 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50759 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50760 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50761 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50762 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50763 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50764 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50765 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50766 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50767 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50768 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50769 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50770 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50771 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50772 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
50773 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50774 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50775 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50776 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
50777 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50778 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50779 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50780 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50781 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50782 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50783 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50784 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50785 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
50786 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
50787 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50788 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50789 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50790 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50791 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50792 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50793 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50794 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50795 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50796 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50797 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50798 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50799 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50800 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50801 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50802 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50803 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50804 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50805 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50806 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50807 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50808 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50809 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50810 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50811 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50812 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50813 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50814 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50815 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50816 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50817 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50818 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50819 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50820 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50821 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50822 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50823 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50824 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50825 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50826 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50827 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50828 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50829 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50830 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50831 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50832 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50833 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
50834 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
50835 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50836 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50837 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50838 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50839 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50840 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50841 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50842 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50843 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50844 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50845 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50846 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50847 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50848 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50849 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50850 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50851 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50852 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50853 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50854 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50855 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50856 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50857 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50858 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50859 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50860 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50861 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50862 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50863 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
50864 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
50865 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
50866 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
50867 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
50868 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
50869 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
50870 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
50871 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
50872 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
50873 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
50874 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
50875 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
50876 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
50877
50878 // Map renamed classes back to their common name for OOR
50879 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
50880
50881 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
50882 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50883 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50884 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50885 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50886 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50887 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50888 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50889 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50890 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50891 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50892 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50893 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50894 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50895 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
50896 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50897 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50898 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50899 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50900 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50901 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50902 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50903 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50904 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50905 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50906 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50907 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50908 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50909 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50910 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50911 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50912 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50913 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50914 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50915 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50916 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50917 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50918 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50919 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50920 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50921 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50922 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50923 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50924 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
50925 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
50926 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
50927 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
50928 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
50929 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
50930 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
50931 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
50932 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
50933 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
50934 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
50935 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
50936 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
50937
50938 // Map renamed classes back to their common name for OOR
50939 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
50940 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
50941
50942 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
50943 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
50944 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
50945 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
50946 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
50947 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
50948 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
50949 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
50950 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
50951 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
50952 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
50953
50954 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
50955
50956 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
50957 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
50958 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
50959 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
50960 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
50961 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
50962 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
50963 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
50964 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
50965 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
50966 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
50967 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
50968 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
50969 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
50970 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
50971 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
50972 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
50973 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
50974 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
50975 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
50976 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
50977 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
50978 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
50979 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
50980 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
50981 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
50982 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
50983 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
50984 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
50985 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
50986 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
50987 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
50988 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
50989 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
50990 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
50991 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
50992 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
50993 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
50994 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
50995 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
50996 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
50997 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
50998 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
50999 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
51000 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
51001 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
51002 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
51003 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
51004 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN));
51005 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN));
51006 }
51007