]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
0c8b0466662cf0ea0429a7ebb3bf404c0033158e
[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_wxEvtHandler swig_types[54]
2521 #define SWIGTYPE_p_wxFSFile swig_types[55]
2522 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524 #define SWIGTYPE_p_wxFileSystem swig_types[58]
2525 #define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526 #define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527 #define SWIGTYPE_p_wxFont swig_types[61]
2528 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529 #define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530 #define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531 #define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532 #define SWIGTYPE_p_wxGauge swig_types[66]
2533 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534 #define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535 #define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536 #define SWIGTYPE_p_wxGridSizer swig_types[70]
2537 #define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538 #define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544 #define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545 #define SWIGTYPE_p_wxImage swig_types[79]
2546 #define SWIGTYPE_p_wxImageHandler swig_types[80]
2547 #define SWIGTYPE_p_wxImageList swig_types[81]
2548 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549 #define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550 #define SWIGTYPE_p_wxItemContainer swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554 #define SWIGTYPE_p_wxListBox swig_types[88]
2555 #define SWIGTYPE_p_wxListEvent swig_types[89]
2556 #define SWIGTYPE_p_wxListItem swig_types[90]
2557 #define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558 #define SWIGTYPE_p_wxListView swig_types[92]
2559 #define SWIGTYPE_p_wxListbook swig_types[93]
2560 #define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561 #define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563 #define SWIGTYPE_p_wxMenu swig_types[97]
2564 #define SWIGTYPE_p_wxMenuBar swig_types[98]
2565 #define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMenuItem swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNotebook swig_types[107]
2574 #define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxObject swig_types[110]
2577 #define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578 #define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579 #define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582 #define SWIGTYPE_p_wxPaperSize swig_types[116]
2583 #define SWIGTYPE_p_wxPickerBase swig_types[117]
2584 #define SWIGTYPE_p_wxPoint swig_types[118]
2585 #define SWIGTYPE_p_wxPyApp swig_types[119]
2586 #define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyControl swig_types[121]
2588 #define SWIGTYPE_p_wxPyEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590 #define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591 #define SWIGTYPE_p_wxPySizer swig_types[125]
2592 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593 #define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594 #define SWIGTYPE_p_wxPyValidator swig_types[128]
2595 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596 #define SWIGTYPE_p_wxRadioBox swig_types[130]
2597 #define SWIGTYPE_p_wxRadioButton swig_types[131]
2598 #define SWIGTYPE_p_wxRect swig_types[132]
2599 #define SWIGTYPE_p_wxScrollBar swig_types[133]
2600 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSearchCtrl swig_types[136]
2603 #define SWIGTYPE_p_wxSetCursorEvent swig_types[137]
2604 #define SWIGTYPE_p_wxShowEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[139]
2606 #define SWIGTYPE_p_wxSize swig_types[140]
2607 #define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608 #define SWIGTYPE_p_wxSizer swig_types[142]
2609 #define SWIGTYPE_p_wxSizerItem swig_types[143]
2610 #define SWIGTYPE_p_wxSlider swig_types[144]
2611 #define SWIGTYPE_p_wxSpinButton swig_types[145]
2612 #define SWIGTYPE_p_wxSpinCtrl swig_types[146]
2613 #define SWIGTYPE_p_wxSpinEvent swig_types[147]
2614 #define SWIGTYPE_p_wxStaticBitmap swig_types[148]
2615 #define SWIGTYPE_p_wxStaticBox swig_types[149]
2616 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[150]
2617 #define SWIGTYPE_p_wxStaticLine swig_types[151]
2618 #define SWIGTYPE_p_wxStaticText swig_types[152]
2619 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[153]
2620 #define SWIGTYPE_p_wxString swig_types[154]
2621 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[155]
2622 #define SWIGTYPE_p_wxTGAHandler swig_types[156]
2623 #define SWIGTYPE_p_wxTIFFHandler swig_types[157]
2624 #define SWIGTYPE_p_wxTextAttr swig_types[158]
2625 #define SWIGTYPE_p_wxTextCtrl swig_types[159]
2626 #define SWIGTYPE_p_wxTextUrlEvent swig_types[160]
2627 #define SWIGTYPE_p_wxToggleButton swig_types[161]
2628 #define SWIGTYPE_p_wxToolBar swig_types[162]
2629 #define SWIGTYPE_p_wxToolBarBase swig_types[163]
2630 #define SWIGTYPE_p_wxToolBarToolBase swig_types[164]
2631 #define SWIGTYPE_p_wxToolbook swig_types[165]
2632 #define SWIGTYPE_p_wxToolbookEvent swig_types[166]
2633 #define SWIGTYPE_p_wxTreeEvent swig_types[167]
2634 #define SWIGTYPE_p_wxTreeItemId swig_types[168]
2635 #define SWIGTYPE_p_wxTreebook swig_types[169]
2636 #define SWIGTYPE_p_wxTreebookEvent swig_types[170]
2637 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[171]
2638 #define SWIGTYPE_p_wxValidator swig_types[172]
2639 #define SWIGTYPE_p_wxVisualAttributes swig_types[173]
2640 #define SWIGTYPE_p_wxWindow swig_types[174]
2641 #define SWIGTYPE_p_wxWindowBase swig_types[175]
2642 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[176]
2643 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[177]
2644 #define SWIGTYPE_p_wxXPMHandler swig_types[178]
2645 static swig_type_info *swig_types[180];
2646 static swig_module_info swig_module = {swig_types, 179, 0, 0, 0, 0};
2647 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2648 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2649
2650 /* -------- TYPES TABLE (END) -------- */
2651
2652 #if (PY_VERSION_HEX <= 0x02000000)
2653 # if !defined(SWIG_PYTHON_CLASSIC)
2654 # error "This python version requires to use swig with the '-classic' option"
2655 # endif
2656 #endif
2657 #if (PY_VERSION_HEX <= 0x02020000)
2658 # error "This python version requires to use swig with the '-nomodern' option"
2659 #endif
2660 #if (PY_VERSION_HEX <= 0x02020000)
2661 # error "This python version requires to use swig with the '-nomodernargs' option"
2662 #endif
2663 #ifndef METH_O
2664 # error "This python version requires to use swig with the '-nofastunpack' option"
2665 #endif
2666
2667 /*-----------------------------------------------
2668 @(target):= _controls_.so
2669 ------------------------------------------------*/
2670 #define SWIG_init init_controls_
2671
2672 #define SWIG_name "_controls_"
2673
2674 #define SWIGVERSION 0x010329
2675
2676
2677 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2678 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2679
2680
2681 #include <stdexcept>
2682
2683
2684 namespace swig {
2685 class PyObject_ptr {
2686 protected:
2687 PyObject *_obj;
2688
2689 public:
2690 PyObject_ptr() :_obj(0)
2691 {
2692 }
2693
2694 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2695 {
2696 Py_XINCREF(_obj);
2697 }
2698
2699 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2700 {
2701 if (initial_ref) Py_XINCREF(_obj);
2702 }
2703
2704 PyObject_ptr & operator=(const PyObject_ptr& item)
2705 {
2706 Py_XINCREF(item._obj);
2707 Py_XDECREF(_obj);
2708 _obj = item._obj;
2709 return *this;
2710 }
2711
2712 ~PyObject_ptr()
2713 {
2714 Py_XDECREF(_obj);
2715 }
2716
2717 operator PyObject *() const
2718 {
2719 return _obj;
2720 }
2721
2722 PyObject *operator->() const
2723 {
2724 return _obj;
2725 }
2726 };
2727 }
2728
2729
2730 namespace swig {
2731 struct PyObject_var : PyObject_ptr {
2732 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2733
2734 PyObject_var & operator = (PyObject* obj)
2735 {
2736 Py_XDECREF(_obj);
2737 _obj = obj;
2738 return *this;
2739 }
2740 };
2741 }
2742
2743
2744 #include "wx/wxPython/wxPython.h"
2745 #include "wx/wxPython/pyclasses.h"
2746
2747 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2748 static const wxString wxPyEmptyString(wxEmptyString);
2749 static const wxString wxPyControlNameStr(wxControlNameStr);
2750
2751 const wxArrayString wxPyEmptyStringArray;
2752
2753 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2754
2755 #define SWIG_From_long PyInt_FromLong
2756
2757
2758 SWIGINTERNINLINE PyObject *
2759 SWIG_From_int (int value)
2760 {
2761 return SWIG_From_long (value);
2762 }
2763
2764
2765 #include <limits.h>
2766 #ifndef LLONG_MIN
2767 # define LLONG_MIN LONG_LONG_MIN
2768 #endif
2769 #ifndef LLONG_MAX
2770 # define LLONG_MAX LONG_LONG_MAX
2771 #endif
2772 #ifndef ULLONG_MAX
2773 # define ULLONG_MAX ULONG_LONG_MAX
2774 #endif
2775
2776
2777 SWIGINTERN int
2778 SWIG_AsVal_long (PyObject* obj, long* val)
2779 {
2780 if (PyNumber_Check(obj)) {
2781 if (val) *val = PyInt_AsLong(obj);
2782 return SWIG_OK;
2783 }
2784 return SWIG_TypeError;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_int (PyObject * obj, int *val)
2790 {
2791 long v;
2792 int res = SWIG_AsVal_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v < INT_MIN || v > INT_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< int >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2804
2805 SWIGINTERN int
2806 SWIG_AsVal_bool (PyObject *obj, bool *val)
2807 {
2808 if (obj == Py_True) {
2809 if (val) *val = true;
2810 return SWIG_OK;
2811 } else if (obj == Py_False) {
2812 if (val) *val = false;
2813 return SWIG_OK;
2814 } else {
2815 long v = 0;
2816 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2817 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2818 return res;
2819 }
2820 }
2821
2822 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2823 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2824 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2825 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2826 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2827 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2828 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
2829
2830 #include <wx/checklst.h>
2831
2832 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2833 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2834 if (clientData)
2835 {
2836 wxPyClientData* data = new wxPyClientData(clientData);
2837 self->Insert(item, pos, data);
2838 }
2839 else
2840 self->Insert(item, pos);
2841 }
2842
2843 SWIGINTERN int
2844 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2845 {
2846 long v = 0;
2847 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2848 return SWIG_TypeError;
2849 }
2850 else if (val)
2851 *val = (unsigned long)v;
2852 return SWIG_OK;
2853 }
2854
2855
2856 SWIGINTERN int
2857 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2858 {
2859 unsigned long v;
2860 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2861 if (SWIG_IsOK(res)) {
2862 if ((v > UINT_MAX)) {
2863 return SWIG_OverflowError;
2864 } else {
2865 if (val) *val = static_cast< unsigned int >(v);
2866 }
2867 }
2868 return res;
2869 }
2870
2871 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2873 wxArrayInt lst;
2874 self->GetSelections(lst);
2875 PyObject *tup = PyTuple_New(lst.GetCount());
2876 for (size_t i=0; i<lst.GetCount(); i++)
2877 {
2878 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2879 }
2880 wxPyEndBlockThreads(blocked);
2881 return tup;
2882 }
2883 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2884 #ifdef __WXMSW__
2885 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2886 self->GetItem(item)->SetTextColour(c);
2887 #endif
2888 }
2889 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2890 #ifdef __WXMSW__
2891 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2892 self->GetItem(item)->SetBackgroundColour(c);
2893 #endif
2894 }
2895 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2896 #ifdef __WXMSW__
2897 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2898 self->GetItem(item)->SetFont(f);
2899 #endif
2900 }
2901 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2902 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2903 self->AppendText(text);
2904 }
2905 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2906 return self->GetValue().Mid(from, to - from);
2907 }
2908 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2909 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2910 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2911 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2912 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2913
2914 SWIGINTERNINLINE PyObject*
2915 SWIG_From_unsigned_SS_long (unsigned long value)
2916 {
2917 return (value > LONG_MAX) ?
2918 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2919 }
2920
2921
2922 SWIGINTERNINLINE PyObject *
2923 SWIG_From_size_t (size_t value)
2924 {
2925 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2926 }
2927
2928
2929 SWIGINTERNINLINE PyObject *
2930 SWIG_From_unsigned_SS_int (unsigned int value)
2931 {
2932 return SWIG_From_unsigned_SS_long (value);
2933 }
2934
2935
2936 #include <wx/slider.h>
2937
2938
2939 static const wxString wxPySliderNameStr(wxSliderNameStr);
2940 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2941
2942 #if !wxUSE_TOGGLEBTN
2943 // implement dummy items for platforms that don't have this class
2944
2945 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2946
2947 class wxToggleButton : public wxControl
2948 {
2949 public:
2950 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2951 const wxPoint&, const wxSize&, long,
2952 const wxValidator&, const wxString&)
2953 { wxPyRaiseNotImplemented(); }
2954
2955 wxToggleButton()
2956 { wxPyRaiseNotImplemented(); }
2957 };
2958 #endif
2959
2960 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2961
2962 SWIGINTERNINLINE int
2963 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2964 {
2965 unsigned long v;
2966 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2967 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2968 return res;
2969 }
2970
2971 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2972 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2973 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2974 if (udata) {
2975 Py_INCREF(udata->m_obj);
2976 return udata->m_obj;
2977 } else {
2978 Py_INCREF(Py_None);
2979 return Py_None;
2980 }
2981 }
2982 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2983 self->SetClientData(new wxPyUserData(clientData));
2984 }
2985 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){
2986 wxPyUserData* udata = NULL;
2987 if (clientData && clientData != Py_None)
2988 udata = new wxPyUserData(clientData);
2989 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2990 shortHelp, longHelp, udata);
2991 }
2992 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){
2993 wxPyUserData* udata = NULL;
2994 if (clientData && clientData != Py_None)
2995 udata = new wxPyUserData(clientData);
2996 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2997 shortHelp, longHelp, udata);
2998 }
2999 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
3000 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3001 if (udata) {
3002 Py_INCREF(udata->m_obj);
3003 return udata->m_obj;
3004 } else {
3005 Py_INCREF(Py_None);
3006 return Py_None;
3007 }
3008 }
3009 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3010 self->SetToolClientData(id, new wxPyUserData(clientData));
3011 }
3012
3013 #include <wx/listctrl.h>
3014
3015 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3016 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3017 // Python aware sorting function for wxPyListCtrl
3018 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3019 int retval = 0;
3020 PyObject* func = (PyObject*)funcPtr;
3021 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3022
3023 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3024 PyObject* result = PyEval_CallObject(func, args);
3025 Py_DECREF(args);
3026 if (result) {
3027 retval = PyInt_AsLong(result);
3028 Py_DECREF(result);
3029 }
3030
3031 wxPyEndBlockThreads(blocked);
3032 return retval;
3033 }
3034
3035 // C++ Version of a Python aware class
3036 class wxPyListCtrl : public wxListCtrl {
3037 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3038 public:
3039 wxPyListCtrl() : wxListCtrl() {}
3040 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3041 const wxPoint& pos,
3042 const wxSize& size,
3043 long style,
3044 const wxValidator& validator,
3045 const wxString& name) :
3046 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3047
3048 bool Create(wxWindow* parent, wxWindowID id,
3049 const wxPoint& pos,
3050 const wxSize& size,
3051 long style,
3052 const wxValidator& validator,
3053 const wxString& name) {
3054 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3055 }
3056
3057 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3058 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3059
3060 // use the virtual version to avoid a confusing assert in the base class
3061 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3062 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3063
3064 PYPRIVATE;
3065 };
3066
3067 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3068
3069 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3070 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3071 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3072 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3073
3074
3075 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3076 wxListItem item;
3077 item.SetMask( wxLIST_MASK_STATE |
3078 wxLIST_MASK_TEXT |
3079 wxLIST_MASK_IMAGE |
3080 wxLIST_MASK_DATA |
3081 wxLIST_SET_ITEM |
3082 wxLIST_MASK_WIDTH |
3083 wxLIST_MASK_FORMAT
3084 );
3085 if (self->GetColumn(col, item))
3086 return new wxListItem(item);
3087 else
3088 return NULL;
3089 }
3090 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3091 wxListItem* info = new wxListItem;
3092 info->m_itemId = itemId;
3093 info->m_col = col;
3094 info->m_mask = 0xFFFF;
3095 self->GetItem(*info);
3096 return info;
3097 }
3098 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3099 wxPoint pos;
3100 self->GetItemPosition(item, pos);
3101 return pos;
3102 }
3103 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3104 wxRect rect;
3105 self->GetItemRect(item, rect, code);
3106 return rect;
3107 }
3108 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3109 if (!PyCallable_Check(func))
3110 return false;
3111 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3112 }
3113 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3114
3115 return self;
3116
3117
3118
3119 }
3120
3121 #include <wx/treectrl.h>
3122 #include "wx/wxPython/pytree.h"
3123
3124 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3125 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3126 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3127 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3128
3129 static wxTreeItemId wxNullTreeItemId;
3130
3131 // C++ version of Python aware wxTreeCtrl
3132 class wxPyTreeCtrl : public wxTreeCtrl {
3133 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3134 public:
3135 wxPyTreeCtrl() : wxTreeCtrl() {}
3136 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3137 const wxPoint& pos,
3138 const wxSize& size,
3139 long style,
3140 const wxValidator& validator,
3141 const wxString& name) :
3142 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3143
3144 bool Create(wxWindow *parent, wxWindowID id,
3145 const wxPoint& pos,
3146 const wxSize& size,
3147 long style,
3148 const wxValidator& validator,
3149 const wxString& name) {
3150 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3151 }
3152
3153
3154 int OnCompareItems(const wxTreeItemId& item1,
3155 const wxTreeItemId& item2) {
3156 int rval = 0;
3157 bool found;
3158 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3159 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3160 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3161 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3162 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3163 Py_DECREF(o1);
3164 Py_DECREF(o2);
3165 }
3166 wxPyEndBlockThreads(blocked);
3167 if (! found)
3168 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3169 return rval;
3170 }
3171 PYPRIVATE;
3172 };
3173
3174 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3175
3176
3177 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3178 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3179 if (data == NULL) {
3180 data = new wxPyTreeItemData();
3181 data->SetId(item); // set the id
3182 self->SetItemData(item, data);
3183 }
3184 return data;
3185 }
3186 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3187 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3188 if (data == NULL) {
3189 data = new wxPyTreeItemData();
3190 data->SetId(item); // set the id
3191 self->SetItemData(item, data);
3192 }
3193 return data->GetData();
3194 }
3195 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3196 data->SetId(item); // set the id
3197 self->SetItemData(item, data);
3198 }
3199 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3200 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3201 if (data == NULL) {
3202 data = new wxPyTreeItemData(obj);
3203 data->SetId(item); // set the id
3204 self->SetItemData(item, data);
3205 } else
3206 data->SetData(obj);
3207 }
3208 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3209 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3210 PyObject* rval = PyList_New(0);
3211 wxArrayTreeItemIds array;
3212 size_t num, x;
3213 num = self->GetSelections(array);
3214 for (x=0; x < num; x++) {
3215 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3216 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3217 PyList_Append(rval, item);
3218 Py_DECREF(item);
3219 }
3220 wxPyEndBlockThreads(blocked);
3221 return rval;
3222 }
3223 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3224 void* cookie = 0;
3225 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3226 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3227 PyObject* tup = PyTuple_New(2);
3228 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3229 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3230 wxPyEndBlockThreads(blocked);
3231 return tup;
3232 }
3233 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3234 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3235 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3236 PyObject* tup = PyTuple_New(2);
3237 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3238 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3239 wxPyEndBlockThreads(blocked);
3240 return tup;
3241 }
3242 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3243 wxRect rect;
3244 if (self->GetBoundingRect(item, rect, textOnly)) {
3245 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3246 wxRect* r = new wxRect(rect);
3247 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3248 wxPyEndBlockThreads(blocked);
3249 return val;
3250 }
3251 else
3252 RETURN_NONE();
3253 }
3254 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3255
3256 SWIGINTERNINLINE PyObject*
3257 SWIG_From_bool (bool value)
3258 {
3259 return PyBool_FromLong(value ? 1 : 0);
3260 }
3261
3262 // C++ version of Python aware wxControl
3263 class wxPyControl : public wxControl
3264 {
3265 DECLARE_DYNAMIC_CLASS(wxPyControl)
3266 public:
3267 wxPyControl() : wxControl() {}
3268 wxPyControl(wxWindow* parent, const wxWindowID id,
3269 const wxPoint& pos = wxDefaultPosition,
3270 const wxSize& size = wxDefaultSize,
3271 long style = 0,
3272 const wxValidator& validator=wxDefaultValidator,
3273 const wxString& name = wxPyControlNameStr)
3274 : wxControl(parent, id, pos, size, style, validator, name) {}
3275
3276
3277 bool DoEraseBackground(wxDC* dc) {
3278 #ifdef __WXMSW__
3279 return wxWindow::DoEraseBackground(dc->GetHDC());
3280 #else
3281 dc->SetBackground(wxBrush(GetBackgroundColour()));
3282 dc->Clear();
3283 return true;
3284 #endif
3285 }
3286
3287 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3288 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3289 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3290 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3291
3292 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3293 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3295
3296 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3297 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3298
3299 DEC_PYCALLBACK__(InitDialog);
3300 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3301 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3302 DEC_PYCALLBACK_BOOL_(Validate);
3303
3304 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3305 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3306 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3307
3308 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3309 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3310
3311 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3312 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3313
3314 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3315
3316 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3317
3318 PYPRIVATE;
3319 };
3320
3321 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3322
3323 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3324 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3325 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3326 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3327
3328 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3329 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3330 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3331
3332 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3333 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3334
3335 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3336 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3337 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3338 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3339
3340 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3341 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3342 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3343
3344 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3345 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3346
3347 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3348 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3349
3350 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3351
3352 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3353
3354
3355
3356 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3357
3358 #include <wx/generic/dragimgg.h>
3359
3360 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3361 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3362 wxDateTime rv;
3363 self->GetRange(&rv, NULL);
3364 return rv;
3365 }
3366 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3367 wxDateTime rv;
3368 self->GetRange(NULL, &rv);
3369 return rv;
3370 }
3371 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3372 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3373 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3374 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3375 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3376 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3377 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3378 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3379 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3380
3381 #include <wx/srchctrl.h>
3382
3383 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
3384 SWIGINTERN void wxSearchCtrl_SetSearchBitmap(wxSearchCtrl *self,wxBitmap const &){}
3385 SWIGINTERN void wxSearchCtrl_SetSearchMenuBitmap(wxSearchCtrl *self,wxBitmap const &){}
3386 SWIGINTERN void wxSearchCtrl_SetCancelBitmap(wxSearchCtrl *self,wxBitmap const &){}
3387 #ifdef __cplusplus
3388 extern "C" {
3389 #endif
3390 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3391 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3392 return 1;
3393 }
3394
3395
3396 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3397 PyObject *pyobj = 0;
3398
3399 {
3400 #if wxUSE_UNICODE
3401 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3402 #else
3403 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3404 #endif
3405 }
3406 return pyobj;
3407 }
3408
3409
3410 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3411 PyObject *resultobj = 0;
3412 wxWindow *arg1 = (wxWindow *) 0 ;
3413 int arg2 = (int) -1 ;
3414 wxString const &arg3_defvalue = wxPyEmptyString ;
3415 wxString *arg3 = (wxString *) &arg3_defvalue ;
3416 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3417 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3418 wxSize const &arg5_defvalue = wxDefaultSize ;
3419 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3420 long arg6 = (long) 0 ;
3421 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3422 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3423 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3424 wxString *arg8 = (wxString *) &arg8_defvalue ;
3425 wxButton *result = 0 ;
3426 void *argp1 = 0 ;
3427 int res1 = 0 ;
3428 int val2 ;
3429 int ecode2 = 0 ;
3430 bool temp3 = false ;
3431 wxPoint temp4 ;
3432 wxSize temp5 ;
3433 long val6 ;
3434 int ecode6 = 0 ;
3435 void *argp7 = 0 ;
3436 int res7 = 0 ;
3437 bool temp8 = false ;
3438 PyObject * obj0 = 0 ;
3439 PyObject * obj1 = 0 ;
3440 PyObject * obj2 = 0 ;
3441 PyObject * obj3 = 0 ;
3442 PyObject * obj4 = 0 ;
3443 PyObject * obj5 = 0 ;
3444 PyObject * obj6 = 0 ;
3445 PyObject * obj7 = 0 ;
3446 char * kwnames[] = {
3447 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3448 };
3449
3450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3452 if (!SWIG_IsOK(res1)) {
3453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3454 }
3455 arg1 = reinterpret_cast< wxWindow * >(argp1);
3456 if (obj1) {
3457 ecode2 = SWIG_AsVal_int(obj1, &val2);
3458 if (!SWIG_IsOK(ecode2)) {
3459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3460 }
3461 arg2 = static_cast< int >(val2);
3462 }
3463 if (obj2) {
3464 {
3465 arg3 = wxString_in_helper(obj2);
3466 if (arg3 == NULL) SWIG_fail;
3467 temp3 = true;
3468 }
3469 }
3470 if (obj3) {
3471 {
3472 arg4 = &temp4;
3473 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3474 }
3475 }
3476 if (obj4) {
3477 {
3478 arg5 = &temp5;
3479 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3480 }
3481 }
3482 if (obj5) {
3483 ecode6 = SWIG_AsVal_long(obj5, &val6);
3484 if (!SWIG_IsOK(ecode6)) {
3485 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3486 }
3487 arg6 = static_cast< long >(val6);
3488 }
3489 if (obj6) {
3490 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3491 if (!SWIG_IsOK(res7)) {
3492 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3493 }
3494 if (!argp7) {
3495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3496 }
3497 arg7 = reinterpret_cast< wxValidator * >(argp7);
3498 }
3499 if (obj7) {
3500 {
3501 arg8 = wxString_in_helper(obj7);
3502 if (arg8 == NULL) SWIG_fail;
3503 temp8 = true;
3504 }
3505 }
3506 {
3507 if (!wxPyCheckForApp()) SWIG_fail;
3508 PyThreadState* __tstate = wxPyBeginAllowThreads();
3509 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3510 wxPyEndAllowThreads(__tstate);
3511 if (PyErr_Occurred()) SWIG_fail;
3512 }
3513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3514 {
3515 if (temp3)
3516 delete arg3;
3517 }
3518 {
3519 if (temp8)
3520 delete arg8;
3521 }
3522 return resultobj;
3523 fail:
3524 {
3525 if (temp3)
3526 delete arg3;
3527 }
3528 {
3529 if (temp8)
3530 delete arg8;
3531 }
3532 return NULL;
3533 }
3534
3535
3536 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3537 PyObject *resultobj = 0;
3538 wxButton *result = 0 ;
3539
3540 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3541 {
3542 if (!wxPyCheckForApp()) SWIG_fail;
3543 PyThreadState* __tstate = wxPyBeginAllowThreads();
3544 result = (wxButton *)new wxButton();
3545 wxPyEndAllowThreads(__tstate);
3546 if (PyErr_Occurred()) SWIG_fail;
3547 }
3548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3549 return resultobj;
3550 fail:
3551 return NULL;
3552 }
3553
3554
3555 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3556 PyObject *resultobj = 0;
3557 wxButton *arg1 = (wxButton *) 0 ;
3558 wxWindow *arg2 = (wxWindow *) 0 ;
3559 int arg3 = (int) -1 ;
3560 wxString const &arg4_defvalue = wxPyEmptyString ;
3561 wxString *arg4 = (wxString *) &arg4_defvalue ;
3562 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3563 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3564 wxSize const &arg6_defvalue = wxDefaultSize ;
3565 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3566 long arg7 = (long) 0 ;
3567 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3568 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3569 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3570 wxString *arg9 = (wxString *) &arg9_defvalue ;
3571 bool result;
3572 void *argp1 = 0 ;
3573 int res1 = 0 ;
3574 void *argp2 = 0 ;
3575 int res2 = 0 ;
3576 int val3 ;
3577 int ecode3 = 0 ;
3578 bool temp4 = false ;
3579 wxPoint temp5 ;
3580 wxSize temp6 ;
3581 long val7 ;
3582 int ecode7 = 0 ;
3583 void *argp8 = 0 ;
3584 int res8 = 0 ;
3585 bool temp9 = false ;
3586 PyObject * obj0 = 0 ;
3587 PyObject * obj1 = 0 ;
3588 PyObject * obj2 = 0 ;
3589 PyObject * obj3 = 0 ;
3590 PyObject * obj4 = 0 ;
3591 PyObject * obj5 = 0 ;
3592 PyObject * obj6 = 0 ;
3593 PyObject * obj7 = 0 ;
3594 PyObject * obj8 = 0 ;
3595 char * kwnames[] = {
3596 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3597 };
3598
3599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3601 if (!SWIG_IsOK(res1)) {
3602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3603 }
3604 arg1 = reinterpret_cast< wxButton * >(argp1);
3605 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3606 if (!SWIG_IsOK(res2)) {
3607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3608 }
3609 arg2 = reinterpret_cast< wxWindow * >(argp2);
3610 if (obj2) {
3611 ecode3 = SWIG_AsVal_int(obj2, &val3);
3612 if (!SWIG_IsOK(ecode3)) {
3613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3614 }
3615 arg3 = static_cast< int >(val3);
3616 }
3617 if (obj3) {
3618 {
3619 arg4 = wxString_in_helper(obj3);
3620 if (arg4 == NULL) SWIG_fail;
3621 temp4 = true;
3622 }
3623 }
3624 if (obj4) {
3625 {
3626 arg5 = &temp5;
3627 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3628 }
3629 }
3630 if (obj5) {
3631 {
3632 arg6 = &temp6;
3633 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3634 }
3635 }
3636 if (obj6) {
3637 ecode7 = SWIG_AsVal_long(obj6, &val7);
3638 if (!SWIG_IsOK(ecode7)) {
3639 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3640 }
3641 arg7 = static_cast< long >(val7);
3642 }
3643 if (obj7) {
3644 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3645 if (!SWIG_IsOK(res8)) {
3646 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3647 }
3648 if (!argp8) {
3649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3650 }
3651 arg8 = reinterpret_cast< wxValidator * >(argp8);
3652 }
3653 if (obj8) {
3654 {
3655 arg9 = wxString_in_helper(obj8);
3656 if (arg9 == NULL) SWIG_fail;
3657 temp9 = true;
3658 }
3659 }
3660 {
3661 PyThreadState* __tstate = wxPyBeginAllowThreads();
3662 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3663 wxPyEndAllowThreads(__tstate);
3664 if (PyErr_Occurred()) SWIG_fail;
3665 }
3666 {
3667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3668 }
3669 {
3670 if (temp4)
3671 delete arg4;
3672 }
3673 {
3674 if (temp9)
3675 delete arg9;
3676 }
3677 return resultobj;
3678 fail:
3679 {
3680 if (temp4)
3681 delete arg4;
3682 }
3683 {
3684 if (temp9)
3685 delete arg9;
3686 }
3687 return NULL;
3688 }
3689
3690
3691 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3692 PyObject *resultobj = 0;
3693 wxButton *arg1 = (wxButton *) 0 ;
3694 void *argp1 = 0 ;
3695 int res1 = 0 ;
3696 PyObject *swig_obj[1] ;
3697
3698 if (!args) SWIG_fail;
3699 swig_obj[0] = args;
3700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3701 if (!SWIG_IsOK(res1)) {
3702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3703 }
3704 arg1 = reinterpret_cast< wxButton * >(argp1);
3705 {
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
3707 (arg1)->SetDefault();
3708 wxPyEndAllowThreads(__tstate);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 }
3711 resultobj = SWIG_Py_Void();
3712 return resultobj;
3713 fail:
3714 return NULL;
3715 }
3716
3717
3718 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3719 PyObject *resultobj = 0;
3720 wxSize result;
3721
3722 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3723 {
3724 PyThreadState* __tstate = wxPyBeginAllowThreads();
3725 result = wxButton::GetDefaultSize();
3726 wxPyEndAllowThreads(__tstate);
3727 if (PyErr_Occurred()) SWIG_fail;
3728 }
3729 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3730 return resultobj;
3731 fail:
3732 return NULL;
3733 }
3734
3735
3736 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3737 PyObject *resultobj = 0;
3738 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3739 SwigValueWrapper<wxVisualAttributes > result;
3740 int val1 ;
3741 int ecode1 = 0 ;
3742 PyObject * obj0 = 0 ;
3743 char * kwnames[] = {
3744 (char *) "variant", NULL
3745 };
3746
3747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3748 if (obj0) {
3749 ecode1 = SWIG_AsVal_int(obj0, &val1);
3750 if (!SWIG_IsOK(ecode1)) {
3751 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3752 }
3753 arg1 = static_cast< wxWindowVariant >(val1);
3754 }
3755 {
3756 if (!wxPyCheckForApp()) SWIG_fail;
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 result = wxButton::GetClassDefaultAttributes(arg1);
3759 wxPyEndAllowThreads(__tstate);
3760 if (PyErr_Occurred()) SWIG_fail;
3761 }
3762 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3763 return resultobj;
3764 fail:
3765 return NULL;
3766 }
3767
3768
3769 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3770 PyObject *obj;
3771 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3772 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3773 return SWIG_Py_Void();
3774 }
3775
3776 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3777 return SWIG_Python_InitShadowInstance(args);
3778 }
3779
3780 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3781 PyObject *resultobj = 0;
3782 wxWindow *arg1 = (wxWindow *) 0 ;
3783 int arg2 = (int) -1 ;
3784 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3785 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3786 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3787 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3788 wxSize const &arg5_defvalue = wxDefaultSize ;
3789 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3790 long arg6 = (long) wxBU_AUTODRAW ;
3791 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3792 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3793 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3794 wxString *arg8 = (wxString *) &arg8_defvalue ;
3795 wxBitmapButton *result = 0 ;
3796 void *argp1 = 0 ;
3797 int res1 = 0 ;
3798 int val2 ;
3799 int ecode2 = 0 ;
3800 void *argp3 = 0 ;
3801 int res3 = 0 ;
3802 wxPoint temp4 ;
3803 wxSize temp5 ;
3804 long val6 ;
3805 int ecode6 = 0 ;
3806 void *argp7 = 0 ;
3807 int res7 = 0 ;
3808 bool temp8 = false ;
3809 PyObject * obj0 = 0 ;
3810 PyObject * obj1 = 0 ;
3811 PyObject * obj2 = 0 ;
3812 PyObject * obj3 = 0 ;
3813 PyObject * obj4 = 0 ;
3814 PyObject * obj5 = 0 ;
3815 PyObject * obj6 = 0 ;
3816 PyObject * obj7 = 0 ;
3817 char * kwnames[] = {
3818 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3819 };
3820
3821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3823 if (!SWIG_IsOK(res1)) {
3824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3825 }
3826 arg1 = reinterpret_cast< wxWindow * >(argp1);
3827 if (obj1) {
3828 ecode2 = SWIG_AsVal_int(obj1, &val2);
3829 if (!SWIG_IsOK(ecode2)) {
3830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3831 }
3832 arg2 = static_cast< int >(val2);
3833 }
3834 if (obj2) {
3835 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3836 if (!SWIG_IsOK(res3)) {
3837 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3838 }
3839 if (!argp3) {
3840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3841 }
3842 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3843 }
3844 if (obj3) {
3845 {
3846 arg4 = &temp4;
3847 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3848 }
3849 }
3850 if (obj4) {
3851 {
3852 arg5 = &temp5;
3853 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3854 }
3855 }
3856 if (obj5) {
3857 ecode6 = SWIG_AsVal_long(obj5, &val6);
3858 if (!SWIG_IsOK(ecode6)) {
3859 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3860 }
3861 arg6 = static_cast< long >(val6);
3862 }
3863 if (obj6) {
3864 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3865 if (!SWIG_IsOK(res7)) {
3866 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3867 }
3868 if (!argp7) {
3869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3870 }
3871 arg7 = reinterpret_cast< wxValidator * >(argp7);
3872 }
3873 if (obj7) {
3874 {
3875 arg8 = wxString_in_helper(obj7);
3876 if (arg8 == NULL) SWIG_fail;
3877 temp8 = true;
3878 }
3879 }
3880 {
3881 if (!wxPyCheckForApp()) SWIG_fail;
3882 PyThreadState* __tstate = wxPyBeginAllowThreads();
3883 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3884 wxPyEndAllowThreads(__tstate);
3885 if (PyErr_Occurred()) SWIG_fail;
3886 }
3887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3888 {
3889 if (temp8)
3890 delete arg8;
3891 }
3892 return resultobj;
3893 fail:
3894 {
3895 if (temp8)
3896 delete arg8;
3897 }
3898 return NULL;
3899 }
3900
3901
3902 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3903 PyObject *resultobj = 0;
3904 wxBitmapButton *result = 0 ;
3905
3906 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3907 {
3908 if (!wxPyCheckForApp()) SWIG_fail;
3909 PyThreadState* __tstate = wxPyBeginAllowThreads();
3910 result = (wxBitmapButton *)new wxBitmapButton();
3911 wxPyEndAllowThreads(__tstate);
3912 if (PyErr_Occurred()) SWIG_fail;
3913 }
3914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3915 return resultobj;
3916 fail:
3917 return NULL;
3918 }
3919
3920
3921 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3922 PyObject *resultobj = 0;
3923 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3924 wxWindow *arg2 = (wxWindow *) 0 ;
3925 int arg3 = (int) -1 ;
3926 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3927 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3928 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3929 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3930 wxSize const &arg6_defvalue = wxDefaultSize ;
3931 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3932 long arg7 = (long) wxBU_AUTODRAW ;
3933 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3934 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3935 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3936 wxString *arg9 = (wxString *) &arg9_defvalue ;
3937 bool result;
3938 void *argp1 = 0 ;
3939 int res1 = 0 ;
3940 void *argp2 = 0 ;
3941 int res2 = 0 ;
3942 int val3 ;
3943 int ecode3 = 0 ;
3944 void *argp4 = 0 ;
3945 int res4 = 0 ;
3946 wxPoint temp5 ;
3947 wxSize temp6 ;
3948 long val7 ;
3949 int ecode7 = 0 ;
3950 void *argp8 = 0 ;
3951 int res8 = 0 ;
3952 bool temp9 = false ;
3953 PyObject * obj0 = 0 ;
3954 PyObject * obj1 = 0 ;
3955 PyObject * obj2 = 0 ;
3956 PyObject * obj3 = 0 ;
3957 PyObject * obj4 = 0 ;
3958 PyObject * obj5 = 0 ;
3959 PyObject * obj6 = 0 ;
3960 PyObject * obj7 = 0 ;
3961 PyObject * obj8 = 0 ;
3962 char * kwnames[] = {
3963 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3964 };
3965
3966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3968 if (!SWIG_IsOK(res1)) {
3969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3970 }
3971 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3972 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3973 if (!SWIG_IsOK(res2)) {
3974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3975 }
3976 arg2 = reinterpret_cast< wxWindow * >(argp2);
3977 if (obj2) {
3978 ecode3 = SWIG_AsVal_int(obj2, &val3);
3979 if (!SWIG_IsOK(ecode3)) {
3980 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3981 }
3982 arg3 = static_cast< int >(val3);
3983 }
3984 if (obj3) {
3985 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3986 if (!SWIG_IsOK(res4)) {
3987 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3988 }
3989 if (!argp4) {
3990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3991 }
3992 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3993 }
3994 if (obj4) {
3995 {
3996 arg5 = &temp5;
3997 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3998 }
3999 }
4000 if (obj5) {
4001 {
4002 arg6 = &temp6;
4003 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4004 }
4005 }
4006 if (obj6) {
4007 ecode7 = SWIG_AsVal_long(obj6, &val7);
4008 if (!SWIG_IsOK(ecode7)) {
4009 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4010 }
4011 arg7 = static_cast< long >(val7);
4012 }
4013 if (obj7) {
4014 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4015 if (!SWIG_IsOK(res8)) {
4016 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4017 }
4018 if (!argp8) {
4019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4020 }
4021 arg8 = reinterpret_cast< wxValidator * >(argp8);
4022 }
4023 if (obj8) {
4024 {
4025 arg9 = wxString_in_helper(obj8);
4026 if (arg9 == NULL) SWIG_fail;
4027 temp9 = true;
4028 }
4029 }
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4033 wxPyEndAllowThreads(__tstate);
4034 if (PyErr_Occurred()) SWIG_fail;
4035 }
4036 {
4037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4038 }
4039 {
4040 if (temp9)
4041 delete arg9;
4042 }
4043 return resultobj;
4044 fail:
4045 {
4046 if (temp9)
4047 delete arg9;
4048 }
4049 return NULL;
4050 }
4051
4052
4053 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4054 PyObject *resultobj = 0;
4055 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4056 wxBitmap result;
4057 void *argp1 = 0 ;
4058 int res1 = 0 ;
4059 PyObject *swig_obj[1] ;
4060
4061 if (!args) SWIG_fail;
4062 swig_obj[0] = args;
4063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4064 if (!SWIG_IsOK(res1)) {
4065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4066 }
4067 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4068 {
4069 PyThreadState* __tstate = wxPyBeginAllowThreads();
4070 result = (arg1)->GetBitmapLabel();
4071 wxPyEndAllowThreads(__tstate);
4072 if (PyErr_Occurred()) SWIG_fail;
4073 }
4074 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4075 return resultobj;
4076 fail:
4077 return NULL;
4078 }
4079
4080
4081 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4082 PyObject *resultobj = 0;
4083 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4084 wxBitmap result;
4085 void *argp1 = 0 ;
4086 int res1 = 0 ;
4087 PyObject *swig_obj[1] ;
4088
4089 if (!args) SWIG_fail;
4090 swig_obj[0] = args;
4091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4092 if (!SWIG_IsOK(res1)) {
4093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4094 }
4095 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4096 {
4097 PyThreadState* __tstate = wxPyBeginAllowThreads();
4098 result = (arg1)->GetBitmapDisabled();
4099 wxPyEndAllowThreads(__tstate);
4100 if (PyErr_Occurred()) SWIG_fail;
4101 }
4102 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4103 return resultobj;
4104 fail:
4105 return NULL;
4106 }
4107
4108
4109 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4110 PyObject *resultobj = 0;
4111 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4112 wxBitmap result;
4113 void *argp1 = 0 ;
4114 int res1 = 0 ;
4115 PyObject *swig_obj[1] ;
4116
4117 if (!args) SWIG_fail;
4118 swig_obj[0] = args;
4119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4120 if (!SWIG_IsOK(res1)) {
4121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4122 }
4123 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4124 {
4125 PyThreadState* __tstate = wxPyBeginAllowThreads();
4126 result = (arg1)->GetBitmapFocus();
4127 wxPyEndAllowThreads(__tstate);
4128 if (PyErr_Occurred()) SWIG_fail;
4129 }
4130 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4131 return resultobj;
4132 fail:
4133 return NULL;
4134 }
4135
4136
4137 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4138 PyObject *resultobj = 0;
4139 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4140 wxBitmap result;
4141 void *argp1 = 0 ;
4142 int res1 = 0 ;
4143 PyObject *swig_obj[1] ;
4144
4145 if (!args) SWIG_fail;
4146 swig_obj[0] = args;
4147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4148 if (!SWIG_IsOK(res1)) {
4149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4150 }
4151 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4152 {
4153 PyThreadState* __tstate = wxPyBeginAllowThreads();
4154 result = (arg1)->GetBitmapSelected();
4155 wxPyEndAllowThreads(__tstate);
4156 if (PyErr_Occurred()) SWIG_fail;
4157 }
4158 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4159 return resultobj;
4160 fail:
4161 return NULL;
4162 }
4163
4164
4165 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4166 PyObject *resultobj = 0;
4167 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4168 wxBitmap result;
4169 void *argp1 = 0 ;
4170 int res1 = 0 ;
4171 PyObject *swig_obj[1] ;
4172
4173 if (!args) SWIG_fail;
4174 swig_obj[0] = args;
4175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4176 if (!SWIG_IsOK(res1)) {
4177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4178 }
4179 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4180 {
4181 PyThreadState* __tstate = wxPyBeginAllowThreads();
4182 result = (arg1)->GetBitmapHover();
4183 wxPyEndAllowThreads(__tstate);
4184 if (PyErr_Occurred()) SWIG_fail;
4185 }
4186 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4187 return resultobj;
4188 fail:
4189 return NULL;
4190 }
4191
4192
4193 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4194 PyObject *resultobj = 0;
4195 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4196 wxBitmap *arg2 = 0 ;
4197 void *argp1 = 0 ;
4198 int res1 = 0 ;
4199 void *argp2 = 0 ;
4200 int res2 = 0 ;
4201 PyObject * obj0 = 0 ;
4202 PyObject * obj1 = 0 ;
4203 char * kwnames[] = {
4204 (char *) "self",(char *) "bitmap", NULL
4205 };
4206
4207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4209 if (!SWIG_IsOK(res1)) {
4210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4211 }
4212 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4214 if (!SWIG_IsOK(res2)) {
4215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4216 }
4217 if (!argp2) {
4218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4219 }
4220 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4221 {
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 resultobj = SWIG_Py_Void();
4228 return resultobj;
4229 fail:
4230 return NULL;
4231 }
4232
4233
4234 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4235 PyObject *resultobj = 0;
4236 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4237 wxBitmap *arg2 = 0 ;
4238 void *argp1 = 0 ;
4239 int res1 = 0 ;
4240 void *argp2 = 0 ;
4241 int res2 = 0 ;
4242 PyObject * obj0 = 0 ;
4243 PyObject * obj1 = 0 ;
4244 char * kwnames[] = {
4245 (char *) "self",(char *) "bitmap", NULL
4246 };
4247
4248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4250 if (!SWIG_IsOK(res1)) {
4251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4252 }
4253 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4255 if (!SWIG_IsOK(res2)) {
4256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4257 }
4258 if (!argp2) {
4259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4260 }
4261 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4262 {
4263 PyThreadState* __tstate = wxPyBeginAllowThreads();
4264 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4265 wxPyEndAllowThreads(__tstate);
4266 if (PyErr_Occurred()) SWIG_fail;
4267 }
4268 resultobj = SWIG_Py_Void();
4269 return resultobj;
4270 fail:
4271 return NULL;
4272 }
4273
4274
4275 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4276 PyObject *resultobj = 0;
4277 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4278 wxBitmap *arg2 = 0 ;
4279 void *argp1 = 0 ;
4280 int res1 = 0 ;
4281 void *argp2 = 0 ;
4282 int res2 = 0 ;
4283 PyObject * obj0 = 0 ;
4284 PyObject * obj1 = 0 ;
4285 char * kwnames[] = {
4286 (char *) "self",(char *) "bitmap", NULL
4287 };
4288
4289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4291 if (!SWIG_IsOK(res1)) {
4292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4293 }
4294 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4296 if (!SWIG_IsOK(res2)) {
4297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4298 }
4299 if (!argp2) {
4300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4301 }
4302 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4303 {
4304 PyThreadState* __tstate = wxPyBeginAllowThreads();
4305 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4306 wxPyEndAllowThreads(__tstate);
4307 if (PyErr_Occurred()) SWIG_fail;
4308 }
4309 resultobj = SWIG_Py_Void();
4310 return resultobj;
4311 fail:
4312 return NULL;
4313 }
4314
4315
4316 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4317 PyObject *resultobj = 0;
4318 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4319 wxBitmap *arg2 = 0 ;
4320 void *argp1 = 0 ;
4321 int res1 = 0 ;
4322 void *argp2 = 0 ;
4323 int res2 = 0 ;
4324 PyObject * obj0 = 0 ;
4325 PyObject * obj1 = 0 ;
4326 char * kwnames[] = {
4327 (char *) "self",(char *) "bitmap", NULL
4328 };
4329
4330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4332 if (!SWIG_IsOK(res1)) {
4333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4334 }
4335 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4337 if (!SWIG_IsOK(res2)) {
4338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4339 }
4340 if (!argp2) {
4341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4342 }
4343 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4344 {
4345 PyThreadState* __tstate = wxPyBeginAllowThreads();
4346 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4347 wxPyEndAllowThreads(__tstate);
4348 if (PyErr_Occurred()) SWIG_fail;
4349 }
4350 resultobj = SWIG_Py_Void();
4351 return resultobj;
4352 fail:
4353 return NULL;
4354 }
4355
4356
4357 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4358 PyObject *resultobj = 0;
4359 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4360 wxBitmap *arg2 = 0 ;
4361 void *argp1 = 0 ;
4362 int res1 = 0 ;
4363 void *argp2 = 0 ;
4364 int res2 = 0 ;
4365 PyObject * obj0 = 0 ;
4366 PyObject * obj1 = 0 ;
4367 char * kwnames[] = {
4368 (char *) "self",(char *) "hover", NULL
4369 };
4370
4371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4373 if (!SWIG_IsOK(res1)) {
4374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4375 }
4376 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4377 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4378 if (!SWIG_IsOK(res2)) {
4379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4380 }
4381 if (!argp2) {
4382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4383 }
4384 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4385 {
4386 PyThreadState* __tstate = wxPyBeginAllowThreads();
4387 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4388 wxPyEndAllowThreads(__tstate);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 }
4391 resultobj = SWIG_Py_Void();
4392 return resultobj;
4393 fail:
4394 return NULL;
4395 }
4396
4397
4398 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4399 PyObject *resultobj = 0;
4400 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4401 int arg2 ;
4402 int arg3 ;
4403 void *argp1 = 0 ;
4404 int res1 = 0 ;
4405 int val2 ;
4406 int ecode2 = 0 ;
4407 int val3 ;
4408 int ecode3 = 0 ;
4409 PyObject * obj0 = 0 ;
4410 PyObject * obj1 = 0 ;
4411 PyObject * obj2 = 0 ;
4412 char * kwnames[] = {
4413 (char *) "self",(char *) "x",(char *) "y", NULL
4414 };
4415
4416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4418 if (!SWIG_IsOK(res1)) {
4419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4420 }
4421 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4422 ecode2 = SWIG_AsVal_int(obj1, &val2);
4423 if (!SWIG_IsOK(ecode2)) {
4424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4425 }
4426 arg2 = static_cast< int >(val2);
4427 ecode3 = SWIG_AsVal_int(obj2, &val3);
4428 if (!SWIG_IsOK(ecode3)) {
4429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4430 }
4431 arg3 = static_cast< int >(val3);
4432 {
4433 PyThreadState* __tstate = wxPyBeginAllowThreads();
4434 (arg1)->SetMargins(arg2,arg3);
4435 wxPyEndAllowThreads(__tstate);
4436 if (PyErr_Occurred()) SWIG_fail;
4437 }
4438 resultobj = SWIG_Py_Void();
4439 return resultobj;
4440 fail:
4441 return NULL;
4442 }
4443
4444
4445 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4446 PyObject *resultobj = 0;
4447 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4448 int result;
4449 void *argp1 = 0 ;
4450 int res1 = 0 ;
4451 PyObject *swig_obj[1] ;
4452
4453 if (!args) SWIG_fail;
4454 swig_obj[0] = args;
4455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4456 if (!SWIG_IsOK(res1)) {
4457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4458 }
4459 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4460 {
4461 PyThreadState* __tstate = wxPyBeginAllowThreads();
4462 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4463 wxPyEndAllowThreads(__tstate);
4464 if (PyErr_Occurred()) SWIG_fail;
4465 }
4466 resultobj = SWIG_From_int(static_cast< int >(result));
4467 return resultobj;
4468 fail:
4469 return NULL;
4470 }
4471
4472
4473 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4474 PyObject *resultobj = 0;
4475 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4476 int result;
4477 void *argp1 = 0 ;
4478 int res1 = 0 ;
4479 PyObject *swig_obj[1] ;
4480
4481 if (!args) SWIG_fail;
4482 swig_obj[0] = args;
4483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4484 if (!SWIG_IsOK(res1)) {
4485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4486 }
4487 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4488 {
4489 PyThreadState* __tstate = wxPyBeginAllowThreads();
4490 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4491 wxPyEndAllowThreads(__tstate);
4492 if (PyErr_Occurred()) SWIG_fail;
4493 }
4494 resultobj = SWIG_From_int(static_cast< int >(result));
4495 return resultobj;
4496 fail:
4497 return NULL;
4498 }
4499
4500
4501 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4502 PyObject *obj;
4503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4504 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4505 return SWIG_Py_Void();
4506 }
4507
4508 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4509 return SWIG_Python_InitShadowInstance(args);
4510 }
4511
4512 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4513 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4514 return 1;
4515 }
4516
4517
4518 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4519 PyObject *pyobj = 0;
4520
4521 {
4522 #if wxUSE_UNICODE
4523 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4524 #else
4525 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4526 #endif
4527 }
4528 return pyobj;
4529 }
4530
4531
4532 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4533 PyObject *resultobj = 0;
4534 wxWindow *arg1 = (wxWindow *) 0 ;
4535 int arg2 = (int) -1 ;
4536 wxString const &arg3_defvalue = wxPyEmptyString ;
4537 wxString *arg3 = (wxString *) &arg3_defvalue ;
4538 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4539 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4540 wxSize const &arg5_defvalue = wxDefaultSize ;
4541 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4542 long arg6 = (long) 0 ;
4543 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4544 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4545 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4546 wxString *arg8 = (wxString *) &arg8_defvalue ;
4547 wxCheckBox *result = 0 ;
4548 void *argp1 = 0 ;
4549 int res1 = 0 ;
4550 int val2 ;
4551 int ecode2 = 0 ;
4552 bool temp3 = false ;
4553 wxPoint temp4 ;
4554 wxSize temp5 ;
4555 long val6 ;
4556 int ecode6 = 0 ;
4557 void *argp7 = 0 ;
4558 int res7 = 0 ;
4559 bool temp8 = false ;
4560 PyObject * obj0 = 0 ;
4561 PyObject * obj1 = 0 ;
4562 PyObject * obj2 = 0 ;
4563 PyObject * obj3 = 0 ;
4564 PyObject * obj4 = 0 ;
4565 PyObject * obj5 = 0 ;
4566 PyObject * obj6 = 0 ;
4567 PyObject * obj7 = 0 ;
4568 char * kwnames[] = {
4569 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4570 };
4571
4572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4574 if (!SWIG_IsOK(res1)) {
4575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4576 }
4577 arg1 = reinterpret_cast< wxWindow * >(argp1);
4578 if (obj1) {
4579 ecode2 = SWIG_AsVal_int(obj1, &val2);
4580 if (!SWIG_IsOK(ecode2)) {
4581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4582 }
4583 arg2 = static_cast< int >(val2);
4584 }
4585 if (obj2) {
4586 {
4587 arg3 = wxString_in_helper(obj2);
4588 if (arg3 == NULL) SWIG_fail;
4589 temp3 = true;
4590 }
4591 }
4592 if (obj3) {
4593 {
4594 arg4 = &temp4;
4595 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4596 }
4597 }
4598 if (obj4) {
4599 {
4600 arg5 = &temp5;
4601 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4602 }
4603 }
4604 if (obj5) {
4605 ecode6 = SWIG_AsVal_long(obj5, &val6);
4606 if (!SWIG_IsOK(ecode6)) {
4607 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4608 }
4609 arg6 = static_cast< long >(val6);
4610 }
4611 if (obj6) {
4612 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4613 if (!SWIG_IsOK(res7)) {
4614 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4615 }
4616 if (!argp7) {
4617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4618 }
4619 arg7 = reinterpret_cast< wxValidator * >(argp7);
4620 }
4621 if (obj7) {
4622 {
4623 arg8 = wxString_in_helper(obj7);
4624 if (arg8 == NULL) SWIG_fail;
4625 temp8 = true;
4626 }
4627 }
4628 {
4629 if (!wxPyCheckForApp()) SWIG_fail;
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4632 wxPyEndAllowThreads(__tstate);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4636 {
4637 if (temp3)
4638 delete arg3;
4639 }
4640 {
4641 if (temp8)
4642 delete arg8;
4643 }
4644 return resultobj;
4645 fail:
4646 {
4647 if (temp3)
4648 delete arg3;
4649 }
4650 {
4651 if (temp8)
4652 delete arg8;
4653 }
4654 return NULL;
4655 }
4656
4657
4658 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4659 PyObject *resultobj = 0;
4660 wxCheckBox *result = 0 ;
4661
4662 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4663 {
4664 if (!wxPyCheckForApp()) SWIG_fail;
4665 PyThreadState* __tstate = wxPyBeginAllowThreads();
4666 result = (wxCheckBox *)new wxCheckBox();
4667 wxPyEndAllowThreads(__tstate);
4668 if (PyErr_Occurred()) SWIG_fail;
4669 }
4670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4671 return resultobj;
4672 fail:
4673 return NULL;
4674 }
4675
4676
4677 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4678 PyObject *resultobj = 0;
4679 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4680 wxWindow *arg2 = (wxWindow *) 0 ;
4681 int arg3 = (int) -1 ;
4682 wxString const &arg4_defvalue = wxPyEmptyString ;
4683 wxString *arg4 = (wxString *) &arg4_defvalue ;
4684 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4685 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4686 wxSize const &arg6_defvalue = wxDefaultSize ;
4687 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4688 long arg7 = (long) 0 ;
4689 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4690 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4691 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4692 wxString *arg9 = (wxString *) &arg9_defvalue ;
4693 bool result;
4694 void *argp1 = 0 ;
4695 int res1 = 0 ;
4696 void *argp2 = 0 ;
4697 int res2 = 0 ;
4698 int val3 ;
4699 int ecode3 = 0 ;
4700 bool temp4 = false ;
4701 wxPoint temp5 ;
4702 wxSize temp6 ;
4703 long val7 ;
4704 int ecode7 = 0 ;
4705 void *argp8 = 0 ;
4706 int res8 = 0 ;
4707 bool temp9 = false ;
4708 PyObject * obj0 = 0 ;
4709 PyObject * obj1 = 0 ;
4710 PyObject * obj2 = 0 ;
4711 PyObject * obj3 = 0 ;
4712 PyObject * obj4 = 0 ;
4713 PyObject * obj5 = 0 ;
4714 PyObject * obj6 = 0 ;
4715 PyObject * obj7 = 0 ;
4716 PyObject * obj8 = 0 ;
4717 char * kwnames[] = {
4718 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4719 };
4720
4721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4723 if (!SWIG_IsOK(res1)) {
4724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4725 }
4726 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4727 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4728 if (!SWIG_IsOK(res2)) {
4729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4730 }
4731 arg2 = reinterpret_cast< wxWindow * >(argp2);
4732 if (obj2) {
4733 ecode3 = SWIG_AsVal_int(obj2, &val3);
4734 if (!SWIG_IsOK(ecode3)) {
4735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4736 }
4737 arg3 = static_cast< int >(val3);
4738 }
4739 if (obj3) {
4740 {
4741 arg4 = wxString_in_helper(obj3);
4742 if (arg4 == NULL) SWIG_fail;
4743 temp4 = true;
4744 }
4745 }
4746 if (obj4) {
4747 {
4748 arg5 = &temp5;
4749 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4750 }
4751 }
4752 if (obj5) {
4753 {
4754 arg6 = &temp6;
4755 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4756 }
4757 }
4758 if (obj6) {
4759 ecode7 = SWIG_AsVal_long(obj6, &val7);
4760 if (!SWIG_IsOK(ecode7)) {
4761 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4762 }
4763 arg7 = static_cast< long >(val7);
4764 }
4765 if (obj7) {
4766 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4767 if (!SWIG_IsOK(res8)) {
4768 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4769 }
4770 if (!argp8) {
4771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4772 }
4773 arg8 = reinterpret_cast< wxValidator * >(argp8);
4774 }
4775 if (obj8) {
4776 {
4777 arg9 = wxString_in_helper(obj8);
4778 if (arg9 == NULL) SWIG_fail;
4779 temp9 = true;
4780 }
4781 }
4782 {
4783 PyThreadState* __tstate = wxPyBeginAllowThreads();
4784 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4785 wxPyEndAllowThreads(__tstate);
4786 if (PyErr_Occurred()) SWIG_fail;
4787 }
4788 {
4789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4790 }
4791 {
4792 if (temp4)
4793 delete arg4;
4794 }
4795 {
4796 if (temp9)
4797 delete arg9;
4798 }
4799 return resultobj;
4800 fail:
4801 {
4802 if (temp4)
4803 delete arg4;
4804 }
4805 {
4806 if (temp9)
4807 delete arg9;
4808 }
4809 return NULL;
4810 }
4811
4812
4813 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4814 PyObject *resultobj = 0;
4815 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4816 bool result;
4817 void *argp1 = 0 ;
4818 int res1 = 0 ;
4819 PyObject *swig_obj[1] ;
4820
4821 if (!args) SWIG_fail;
4822 swig_obj[0] = args;
4823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4824 if (!SWIG_IsOK(res1)) {
4825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4826 }
4827 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4828 {
4829 PyThreadState* __tstate = wxPyBeginAllowThreads();
4830 result = (bool)(arg1)->GetValue();
4831 wxPyEndAllowThreads(__tstate);
4832 if (PyErr_Occurred()) SWIG_fail;
4833 }
4834 {
4835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4836 }
4837 return resultobj;
4838 fail:
4839 return NULL;
4840 }
4841
4842
4843 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4844 PyObject *resultobj = 0;
4845 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4846 bool result;
4847 void *argp1 = 0 ;
4848 int res1 = 0 ;
4849 PyObject *swig_obj[1] ;
4850
4851 if (!args) SWIG_fail;
4852 swig_obj[0] = args;
4853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4854 if (!SWIG_IsOK(res1)) {
4855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4856 }
4857 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4858 {
4859 PyThreadState* __tstate = wxPyBeginAllowThreads();
4860 result = (bool)(arg1)->IsChecked();
4861 wxPyEndAllowThreads(__tstate);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 {
4865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4866 }
4867 return resultobj;
4868 fail:
4869 return NULL;
4870 }
4871
4872
4873 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4874 PyObject *resultobj = 0;
4875 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4876 bool arg2 ;
4877 void *argp1 = 0 ;
4878 int res1 = 0 ;
4879 bool val2 ;
4880 int ecode2 = 0 ;
4881 PyObject * obj0 = 0 ;
4882 PyObject * obj1 = 0 ;
4883 char * kwnames[] = {
4884 (char *) "self",(char *) "state", NULL
4885 };
4886
4887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4889 if (!SWIG_IsOK(res1)) {
4890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4891 }
4892 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4893 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4894 if (!SWIG_IsOK(ecode2)) {
4895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4896 }
4897 arg2 = static_cast< bool >(val2);
4898 {
4899 PyThreadState* __tstate = wxPyBeginAllowThreads();
4900 (arg1)->SetValue(arg2);
4901 wxPyEndAllowThreads(__tstate);
4902 if (PyErr_Occurred()) SWIG_fail;
4903 }
4904 resultobj = SWIG_Py_Void();
4905 return resultobj;
4906 fail:
4907 return NULL;
4908 }
4909
4910
4911 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4912 PyObject *resultobj = 0;
4913 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4914 wxCheckBoxState result;
4915 void *argp1 = 0 ;
4916 int res1 = 0 ;
4917 PyObject *swig_obj[1] ;
4918
4919 if (!args) SWIG_fail;
4920 swig_obj[0] = args;
4921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4922 if (!SWIG_IsOK(res1)) {
4923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4924 }
4925 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4926 {
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4929 wxPyEndAllowThreads(__tstate);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 }
4932 resultobj = SWIG_From_int(static_cast< int >(result));
4933 return resultobj;
4934 fail:
4935 return NULL;
4936 }
4937
4938
4939 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4940 PyObject *resultobj = 0;
4941 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4942 wxCheckBoxState arg2 ;
4943 void *argp1 = 0 ;
4944 int res1 = 0 ;
4945 int val2 ;
4946 int ecode2 = 0 ;
4947 PyObject * obj0 = 0 ;
4948 PyObject * obj1 = 0 ;
4949 char * kwnames[] = {
4950 (char *) "self",(char *) "state", NULL
4951 };
4952
4953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4955 if (!SWIG_IsOK(res1)) {
4956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4957 }
4958 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4959 ecode2 = SWIG_AsVal_int(obj1, &val2);
4960 if (!SWIG_IsOK(ecode2)) {
4961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4962 }
4963 arg2 = static_cast< wxCheckBoxState >(val2);
4964 {
4965 PyThreadState* __tstate = wxPyBeginAllowThreads();
4966 (arg1)->Set3StateValue(arg2);
4967 wxPyEndAllowThreads(__tstate);
4968 if (PyErr_Occurred()) SWIG_fail;
4969 }
4970 resultobj = SWIG_Py_Void();
4971 return resultobj;
4972 fail:
4973 return NULL;
4974 }
4975
4976
4977 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4978 PyObject *resultobj = 0;
4979 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4980 bool result;
4981 void *argp1 = 0 ;
4982 int res1 = 0 ;
4983 PyObject *swig_obj[1] ;
4984
4985 if (!args) SWIG_fail;
4986 swig_obj[0] = args;
4987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4988 if (!SWIG_IsOK(res1)) {
4989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4990 }
4991 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4992 {
4993 PyThreadState* __tstate = wxPyBeginAllowThreads();
4994 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 }
4998 {
4999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5000 }
5001 return resultobj;
5002 fail:
5003 return NULL;
5004 }
5005
5006
5007 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5008 PyObject *resultobj = 0;
5009 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5010 bool result;
5011 void *argp1 = 0 ;
5012 int res1 = 0 ;
5013 PyObject *swig_obj[1] ;
5014
5015 if (!args) SWIG_fail;
5016 swig_obj[0] = args;
5017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5018 if (!SWIG_IsOK(res1)) {
5019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5020 }
5021 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5022 {
5023 PyThreadState* __tstate = wxPyBeginAllowThreads();
5024 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 {
5029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5030 }
5031 return resultobj;
5032 fail:
5033 return NULL;
5034 }
5035
5036
5037 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5038 PyObject *resultobj = 0;
5039 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5040 SwigValueWrapper<wxVisualAttributes > result;
5041 int val1 ;
5042 int ecode1 = 0 ;
5043 PyObject * obj0 = 0 ;
5044 char * kwnames[] = {
5045 (char *) "variant", NULL
5046 };
5047
5048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5049 if (obj0) {
5050 ecode1 = SWIG_AsVal_int(obj0, &val1);
5051 if (!SWIG_IsOK(ecode1)) {
5052 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5053 }
5054 arg1 = static_cast< wxWindowVariant >(val1);
5055 }
5056 {
5057 if (!wxPyCheckForApp()) SWIG_fail;
5058 PyThreadState* __tstate = wxPyBeginAllowThreads();
5059 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5060 wxPyEndAllowThreads(__tstate);
5061 if (PyErr_Occurred()) SWIG_fail;
5062 }
5063 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5064 return resultobj;
5065 fail:
5066 return NULL;
5067 }
5068
5069
5070 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5071 PyObject *obj;
5072 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5073 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5074 return SWIG_Py_Void();
5075 }
5076
5077 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5078 return SWIG_Python_InitShadowInstance(args);
5079 }
5080
5081 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5082 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5083 return 1;
5084 }
5085
5086
5087 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5088 PyObject *pyobj = 0;
5089
5090 {
5091 #if wxUSE_UNICODE
5092 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5093 #else
5094 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5095 #endif
5096 }
5097 return pyobj;
5098 }
5099
5100
5101 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5102 PyObject *resultobj = 0;
5103 wxWindow *arg1 = (wxWindow *) 0 ;
5104 int arg2 = (int) -1 ;
5105 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5106 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5107 wxSize const &arg4_defvalue = wxDefaultSize ;
5108 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5109 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5110 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5111 long arg6 = (long) 0 ;
5112 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5113 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5114 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5115 wxString *arg8 = (wxString *) &arg8_defvalue ;
5116 wxChoice *result = 0 ;
5117 void *argp1 = 0 ;
5118 int res1 = 0 ;
5119 int val2 ;
5120 int ecode2 = 0 ;
5121 wxPoint temp3 ;
5122 wxSize temp4 ;
5123 bool temp5 = false ;
5124 long val6 ;
5125 int ecode6 = 0 ;
5126 void *argp7 = 0 ;
5127 int res7 = 0 ;
5128 bool temp8 = false ;
5129 PyObject * obj0 = 0 ;
5130 PyObject * obj1 = 0 ;
5131 PyObject * obj2 = 0 ;
5132 PyObject * obj3 = 0 ;
5133 PyObject * obj4 = 0 ;
5134 PyObject * obj5 = 0 ;
5135 PyObject * obj6 = 0 ;
5136 PyObject * obj7 = 0 ;
5137 char * kwnames[] = {
5138 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5139 };
5140
5141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5143 if (!SWIG_IsOK(res1)) {
5144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5145 }
5146 arg1 = reinterpret_cast< wxWindow * >(argp1);
5147 if (obj1) {
5148 ecode2 = SWIG_AsVal_int(obj1, &val2);
5149 if (!SWIG_IsOK(ecode2)) {
5150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5151 }
5152 arg2 = static_cast< int >(val2);
5153 }
5154 if (obj2) {
5155 {
5156 arg3 = &temp3;
5157 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5158 }
5159 }
5160 if (obj3) {
5161 {
5162 arg4 = &temp4;
5163 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5164 }
5165 }
5166 if (obj4) {
5167 {
5168 if (! PySequence_Check(obj4)) {
5169 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5170 SWIG_fail;
5171 }
5172 arg5 = new wxArrayString;
5173 temp5 = true;
5174 int i, len=PySequence_Length(obj4);
5175 for (i=0; i<len; i++) {
5176 PyObject* item = PySequence_GetItem(obj4, i);
5177 wxString* s = wxString_in_helper(item);
5178 if (PyErr_Occurred()) SWIG_fail;
5179 arg5->Add(*s);
5180 delete s;
5181 Py_DECREF(item);
5182 }
5183 }
5184 }
5185 if (obj5) {
5186 ecode6 = SWIG_AsVal_long(obj5, &val6);
5187 if (!SWIG_IsOK(ecode6)) {
5188 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5189 }
5190 arg6 = static_cast< long >(val6);
5191 }
5192 if (obj6) {
5193 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5194 if (!SWIG_IsOK(res7)) {
5195 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5196 }
5197 if (!argp7) {
5198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5199 }
5200 arg7 = reinterpret_cast< wxValidator * >(argp7);
5201 }
5202 if (obj7) {
5203 {
5204 arg8 = wxString_in_helper(obj7);
5205 if (arg8 == NULL) SWIG_fail;
5206 temp8 = true;
5207 }
5208 }
5209 {
5210 if (!wxPyCheckForApp()) SWIG_fail;
5211 PyThreadState* __tstate = wxPyBeginAllowThreads();
5212 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5213 wxPyEndAllowThreads(__tstate);
5214 if (PyErr_Occurred()) SWIG_fail;
5215 }
5216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5217 {
5218 if (temp5) delete arg5;
5219 }
5220 {
5221 if (temp8)
5222 delete arg8;
5223 }
5224 return resultobj;
5225 fail:
5226 {
5227 if (temp5) delete arg5;
5228 }
5229 {
5230 if (temp8)
5231 delete arg8;
5232 }
5233 return NULL;
5234 }
5235
5236
5237 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5238 PyObject *resultobj = 0;
5239 wxChoice *result = 0 ;
5240
5241 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5242 {
5243 if (!wxPyCheckForApp()) SWIG_fail;
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 result = (wxChoice *)new wxChoice();
5246 wxPyEndAllowThreads(__tstate);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 }
5249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5250 return resultobj;
5251 fail:
5252 return NULL;
5253 }
5254
5255
5256 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5257 PyObject *resultobj = 0;
5258 wxChoice *arg1 = (wxChoice *) 0 ;
5259 wxWindow *arg2 = (wxWindow *) 0 ;
5260 int arg3 = (int) -1 ;
5261 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5262 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5263 wxSize const &arg5_defvalue = wxDefaultSize ;
5264 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5265 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5266 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5267 long arg7 = (long) 0 ;
5268 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5269 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5270 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5271 wxString *arg9 = (wxString *) &arg9_defvalue ;
5272 bool result;
5273 void *argp1 = 0 ;
5274 int res1 = 0 ;
5275 void *argp2 = 0 ;
5276 int res2 = 0 ;
5277 int val3 ;
5278 int ecode3 = 0 ;
5279 wxPoint temp4 ;
5280 wxSize temp5 ;
5281 bool temp6 = false ;
5282 long val7 ;
5283 int ecode7 = 0 ;
5284 void *argp8 = 0 ;
5285 int res8 = 0 ;
5286 bool temp9 = false ;
5287 PyObject * obj0 = 0 ;
5288 PyObject * obj1 = 0 ;
5289 PyObject * obj2 = 0 ;
5290 PyObject * obj3 = 0 ;
5291 PyObject * obj4 = 0 ;
5292 PyObject * obj5 = 0 ;
5293 PyObject * obj6 = 0 ;
5294 PyObject * obj7 = 0 ;
5295 PyObject * obj8 = 0 ;
5296 char * kwnames[] = {
5297 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5298 };
5299
5300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5302 if (!SWIG_IsOK(res1)) {
5303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5304 }
5305 arg1 = reinterpret_cast< wxChoice * >(argp1);
5306 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5307 if (!SWIG_IsOK(res2)) {
5308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5309 }
5310 arg2 = reinterpret_cast< wxWindow * >(argp2);
5311 if (obj2) {
5312 ecode3 = SWIG_AsVal_int(obj2, &val3);
5313 if (!SWIG_IsOK(ecode3)) {
5314 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5315 }
5316 arg3 = static_cast< int >(val3);
5317 }
5318 if (obj3) {
5319 {
5320 arg4 = &temp4;
5321 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5322 }
5323 }
5324 if (obj4) {
5325 {
5326 arg5 = &temp5;
5327 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5328 }
5329 }
5330 if (obj5) {
5331 {
5332 if (! PySequence_Check(obj5)) {
5333 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5334 SWIG_fail;
5335 }
5336 arg6 = new wxArrayString;
5337 temp6 = true;
5338 int i, len=PySequence_Length(obj5);
5339 for (i=0; i<len; i++) {
5340 PyObject* item = PySequence_GetItem(obj5, i);
5341 wxString* s = wxString_in_helper(item);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 arg6->Add(*s);
5344 delete s;
5345 Py_DECREF(item);
5346 }
5347 }
5348 }
5349 if (obj6) {
5350 ecode7 = SWIG_AsVal_long(obj6, &val7);
5351 if (!SWIG_IsOK(ecode7)) {
5352 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5353 }
5354 arg7 = static_cast< long >(val7);
5355 }
5356 if (obj7) {
5357 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5358 if (!SWIG_IsOK(res8)) {
5359 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5360 }
5361 if (!argp8) {
5362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5363 }
5364 arg8 = reinterpret_cast< wxValidator * >(argp8);
5365 }
5366 if (obj8) {
5367 {
5368 arg9 = wxString_in_helper(obj8);
5369 if (arg9 == NULL) SWIG_fail;
5370 temp9 = true;
5371 }
5372 }
5373 {
5374 PyThreadState* __tstate = wxPyBeginAllowThreads();
5375 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5376 wxPyEndAllowThreads(__tstate);
5377 if (PyErr_Occurred()) SWIG_fail;
5378 }
5379 {
5380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5381 }
5382 {
5383 if (temp6) delete arg6;
5384 }
5385 {
5386 if (temp9)
5387 delete arg9;
5388 }
5389 return resultobj;
5390 fail:
5391 {
5392 if (temp6) delete arg6;
5393 }
5394 {
5395 if (temp9)
5396 delete arg9;
5397 }
5398 return NULL;
5399 }
5400
5401
5402 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5403 PyObject *resultobj = 0;
5404 wxChoice *arg1 = (wxChoice *) 0 ;
5405 int result;
5406 void *argp1 = 0 ;
5407 int res1 = 0 ;
5408 PyObject *swig_obj[1] ;
5409
5410 if (!args) SWIG_fail;
5411 swig_obj[0] = args;
5412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5413 if (!SWIG_IsOK(res1)) {
5414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5415 }
5416 arg1 = reinterpret_cast< wxChoice * >(argp1);
5417 {
5418 PyThreadState* __tstate = wxPyBeginAllowThreads();
5419 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5420 wxPyEndAllowThreads(__tstate);
5421 if (PyErr_Occurred()) SWIG_fail;
5422 }
5423 resultobj = SWIG_From_int(static_cast< int >(result));
5424 return resultobj;
5425 fail:
5426 return NULL;
5427 }
5428
5429
5430 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5431 PyObject *resultobj = 0;
5432 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5433 SwigValueWrapper<wxVisualAttributes > result;
5434 int val1 ;
5435 int ecode1 = 0 ;
5436 PyObject * obj0 = 0 ;
5437 char * kwnames[] = {
5438 (char *) "variant", NULL
5439 };
5440
5441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5442 if (obj0) {
5443 ecode1 = SWIG_AsVal_int(obj0, &val1);
5444 if (!SWIG_IsOK(ecode1)) {
5445 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5446 }
5447 arg1 = static_cast< wxWindowVariant >(val1);
5448 }
5449 {
5450 if (!wxPyCheckForApp()) SWIG_fail;
5451 PyThreadState* __tstate = wxPyBeginAllowThreads();
5452 result = wxChoice::GetClassDefaultAttributes(arg1);
5453 wxPyEndAllowThreads(__tstate);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 }
5456 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5457 return resultobj;
5458 fail:
5459 return NULL;
5460 }
5461
5462
5463 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5464 PyObject *obj;
5465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5466 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5467 return SWIG_Py_Void();
5468 }
5469
5470 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5471 return SWIG_Python_InitShadowInstance(args);
5472 }
5473
5474 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5475 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5476 return 1;
5477 }
5478
5479
5480 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5481 PyObject *pyobj = 0;
5482
5483 {
5484 #if wxUSE_UNICODE
5485 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5486 #else
5487 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5488 #endif
5489 }
5490 return pyobj;
5491 }
5492
5493
5494 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5495 PyObject *resultobj = 0;
5496 wxWindow *arg1 = (wxWindow *) 0 ;
5497 int arg2 = (int) -1 ;
5498 wxString const &arg3_defvalue = wxPyEmptyString ;
5499 wxString *arg3 = (wxString *) &arg3_defvalue ;
5500 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5501 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5502 wxSize const &arg5_defvalue = wxDefaultSize ;
5503 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5504 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5505 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5506 long arg7 = (long) 0 ;
5507 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5508 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5509 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5510 wxString *arg9 = (wxString *) &arg9_defvalue ;
5511 wxComboBox *result = 0 ;
5512 void *argp1 = 0 ;
5513 int res1 = 0 ;
5514 int val2 ;
5515 int ecode2 = 0 ;
5516 bool temp3 = false ;
5517 wxPoint temp4 ;
5518 wxSize temp5 ;
5519 bool temp6 = false ;
5520 long val7 ;
5521 int ecode7 = 0 ;
5522 void *argp8 = 0 ;
5523 int res8 = 0 ;
5524 bool temp9 = false ;
5525 PyObject * obj0 = 0 ;
5526 PyObject * obj1 = 0 ;
5527 PyObject * obj2 = 0 ;
5528 PyObject * obj3 = 0 ;
5529 PyObject * obj4 = 0 ;
5530 PyObject * obj5 = 0 ;
5531 PyObject * obj6 = 0 ;
5532 PyObject * obj7 = 0 ;
5533 PyObject * obj8 = 0 ;
5534 char * kwnames[] = {
5535 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5536 };
5537
5538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5540 if (!SWIG_IsOK(res1)) {
5541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5542 }
5543 arg1 = reinterpret_cast< wxWindow * >(argp1);
5544 if (obj1) {
5545 ecode2 = SWIG_AsVal_int(obj1, &val2);
5546 if (!SWIG_IsOK(ecode2)) {
5547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5548 }
5549 arg2 = static_cast< int >(val2);
5550 }
5551 if (obj2) {
5552 {
5553 arg3 = wxString_in_helper(obj2);
5554 if (arg3 == NULL) SWIG_fail;
5555 temp3 = true;
5556 }
5557 }
5558 if (obj3) {
5559 {
5560 arg4 = &temp4;
5561 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5562 }
5563 }
5564 if (obj4) {
5565 {
5566 arg5 = &temp5;
5567 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5568 }
5569 }
5570 if (obj5) {
5571 {
5572 if (! PySequence_Check(obj5)) {
5573 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5574 SWIG_fail;
5575 }
5576 arg6 = new wxArrayString;
5577 temp6 = true;
5578 int i, len=PySequence_Length(obj5);
5579 for (i=0; i<len; i++) {
5580 PyObject* item = PySequence_GetItem(obj5, i);
5581 wxString* s = wxString_in_helper(item);
5582 if (PyErr_Occurred()) SWIG_fail;
5583 arg6->Add(*s);
5584 delete s;
5585 Py_DECREF(item);
5586 }
5587 }
5588 }
5589 if (obj6) {
5590 ecode7 = SWIG_AsVal_long(obj6, &val7);
5591 if (!SWIG_IsOK(ecode7)) {
5592 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5593 }
5594 arg7 = static_cast< long >(val7);
5595 }
5596 if (obj7) {
5597 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5598 if (!SWIG_IsOK(res8)) {
5599 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5600 }
5601 if (!argp8) {
5602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5603 }
5604 arg8 = reinterpret_cast< wxValidator * >(argp8);
5605 }
5606 if (obj8) {
5607 {
5608 arg9 = wxString_in_helper(obj8);
5609 if (arg9 == NULL) SWIG_fail;
5610 temp9 = true;
5611 }
5612 }
5613 {
5614 if (!wxPyCheckForApp()) SWIG_fail;
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 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);
5617 wxPyEndAllowThreads(__tstate);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5621 {
5622 if (temp3)
5623 delete arg3;
5624 }
5625 {
5626 if (temp6) delete arg6;
5627 }
5628 {
5629 if (temp9)
5630 delete arg9;
5631 }
5632 return resultobj;
5633 fail:
5634 {
5635 if (temp3)
5636 delete arg3;
5637 }
5638 {
5639 if (temp6) delete arg6;
5640 }
5641 {
5642 if (temp9)
5643 delete arg9;
5644 }
5645 return NULL;
5646 }
5647
5648
5649 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5650 PyObject *resultobj = 0;
5651 wxComboBox *result = 0 ;
5652
5653 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5654 {
5655 if (!wxPyCheckForApp()) SWIG_fail;
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 result = (wxComboBox *)new wxComboBox();
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 }
5661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5662 return resultobj;
5663 fail:
5664 return NULL;
5665 }
5666
5667
5668 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5669 PyObject *resultobj = 0;
5670 wxComboBox *arg1 = (wxComboBox *) 0 ;
5671 wxWindow *arg2 = (wxWindow *) 0 ;
5672 int arg3 = (int) -1 ;
5673 wxString const &arg4_defvalue = wxPyEmptyString ;
5674 wxString *arg4 = (wxString *) &arg4_defvalue ;
5675 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5676 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5677 wxSize const &arg6_defvalue = wxDefaultSize ;
5678 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5679 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5680 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5681 long arg8 = (long) 0 ;
5682 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5683 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5684 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5685 wxString *arg10 = (wxString *) &arg10_defvalue ;
5686 bool result;
5687 void *argp1 = 0 ;
5688 int res1 = 0 ;
5689 void *argp2 = 0 ;
5690 int res2 = 0 ;
5691 int val3 ;
5692 int ecode3 = 0 ;
5693 bool temp4 = false ;
5694 wxPoint temp5 ;
5695 wxSize temp6 ;
5696 bool temp7 = false ;
5697 long val8 ;
5698 int ecode8 = 0 ;
5699 void *argp9 = 0 ;
5700 int res9 = 0 ;
5701 bool temp10 = false ;
5702 PyObject * obj0 = 0 ;
5703 PyObject * obj1 = 0 ;
5704 PyObject * obj2 = 0 ;
5705 PyObject * obj3 = 0 ;
5706 PyObject * obj4 = 0 ;
5707 PyObject * obj5 = 0 ;
5708 PyObject * obj6 = 0 ;
5709 PyObject * obj7 = 0 ;
5710 PyObject * obj8 = 0 ;
5711 PyObject * obj9 = 0 ;
5712 char * kwnames[] = {
5713 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5714 };
5715
5716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5718 if (!SWIG_IsOK(res1)) {
5719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5720 }
5721 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5722 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5723 if (!SWIG_IsOK(res2)) {
5724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5725 }
5726 arg2 = reinterpret_cast< wxWindow * >(argp2);
5727 if (obj2) {
5728 ecode3 = SWIG_AsVal_int(obj2, &val3);
5729 if (!SWIG_IsOK(ecode3)) {
5730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5731 }
5732 arg3 = static_cast< int >(val3);
5733 }
5734 if (obj3) {
5735 {
5736 arg4 = wxString_in_helper(obj3);
5737 if (arg4 == NULL) SWIG_fail;
5738 temp4 = true;
5739 }
5740 }
5741 if (obj4) {
5742 {
5743 arg5 = &temp5;
5744 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5745 }
5746 }
5747 if (obj5) {
5748 {
5749 arg6 = &temp6;
5750 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5751 }
5752 }
5753 if (obj6) {
5754 {
5755 if (! PySequence_Check(obj6)) {
5756 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5757 SWIG_fail;
5758 }
5759 arg7 = new wxArrayString;
5760 temp7 = true;
5761 int i, len=PySequence_Length(obj6);
5762 for (i=0; i<len; i++) {
5763 PyObject* item = PySequence_GetItem(obj6, i);
5764 wxString* s = wxString_in_helper(item);
5765 if (PyErr_Occurred()) SWIG_fail;
5766 arg7->Add(*s);
5767 delete s;
5768 Py_DECREF(item);
5769 }
5770 }
5771 }
5772 if (obj7) {
5773 ecode8 = SWIG_AsVal_long(obj7, &val8);
5774 if (!SWIG_IsOK(ecode8)) {
5775 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5776 }
5777 arg8 = static_cast< long >(val8);
5778 }
5779 if (obj8) {
5780 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5781 if (!SWIG_IsOK(res9)) {
5782 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5783 }
5784 if (!argp9) {
5785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5786 }
5787 arg9 = reinterpret_cast< wxValidator * >(argp9);
5788 }
5789 if (obj9) {
5790 {
5791 arg10 = wxString_in_helper(obj9);
5792 if (arg10 == NULL) SWIG_fail;
5793 temp10 = true;
5794 }
5795 }
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 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);
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
5802 {
5803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5804 }
5805 {
5806 if (temp4)
5807 delete arg4;
5808 }
5809 {
5810 if (temp7) delete arg7;
5811 }
5812 {
5813 if (temp10)
5814 delete arg10;
5815 }
5816 return resultobj;
5817 fail:
5818 {
5819 if (temp4)
5820 delete arg4;
5821 }
5822 {
5823 if (temp7) delete arg7;
5824 }
5825 {
5826 if (temp10)
5827 delete arg10;
5828 }
5829 return NULL;
5830 }
5831
5832
5833 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5834 PyObject *resultobj = 0;
5835 wxComboBox *arg1 = (wxComboBox *) 0 ;
5836 wxString result;
5837 void *argp1 = 0 ;
5838 int res1 = 0 ;
5839 PyObject *swig_obj[1] ;
5840
5841 if (!args) SWIG_fail;
5842 swig_obj[0] = args;
5843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5844 if (!SWIG_IsOK(res1)) {
5845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5846 }
5847 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 result = ((wxComboBox const *)arg1)->GetValue();
5851 wxPyEndAllowThreads(__tstate);
5852 if (PyErr_Occurred()) SWIG_fail;
5853 }
5854 {
5855 #if wxUSE_UNICODE
5856 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5857 #else
5858 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5859 #endif
5860 }
5861 return resultobj;
5862 fail:
5863 return NULL;
5864 }
5865
5866
5867 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5868 PyObject *resultobj = 0;
5869 wxComboBox *arg1 = (wxComboBox *) 0 ;
5870 wxString *arg2 = 0 ;
5871 void *argp1 = 0 ;
5872 int res1 = 0 ;
5873 bool temp2 = false ;
5874 PyObject * obj0 = 0 ;
5875 PyObject * obj1 = 0 ;
5876 char * kwnames[] = {
5877 (char *) "self",(char *) "value", NULL
5878 };
5879
5880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5882 if (!SWIG_IsOK(res1)) {
5883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5884 }
5885 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5886 {
5887 arg2 = wxString_in_helper(obj1);
5888 if (arg2 == NULL) SWIG_fail;
5889 temp2 = true;
5890 }
5891 {
5892 PyThreadState* __tstate = wxPyBeginAllowThreads();
5893 (arg1)->SetValue((wxString const &)*arg2);
5894 wxPyEndAllowThreads(__tstate);
5895 if (PyErr_Occurred()) SWIG_fail;
5896 }
5897 resultobj = SWIG_Py_Void();
5898 {
5899 if (temp2)
5900 delete arg2;
5901 }
5902 return resultobj;
5903 fail:
5904 {
5905 if (temp2)
5906 delete arg2;
5907 }
5908 return NULL;
5909 }
5910
5911
5912 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5913 PyObject *resultobj = 0;
5914 wxComboBox *arg1 = (wxComboBox *) 0 ;
5915 void *argp1 = 0 ;
5916 int res1 = 0 ;
5917 PyObject *swig_obj[1] ;
5918
5919 if (!args) SWIG_fail;
5920 swig_obj[0] = args;
5921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5922 if (!SWIG_IsOK(res1)) {
5923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5924 }
5925 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5926 {
5927 PyThreadState* __tstate = wxPyBeginAllowThreads();
5928 (arg1)->Copy();
5929 wxPyEndAllowThreads(__tstate);
5930 if (PyErr_Occurred()) SWIG_fail;
5931 }
5932 resultobj = SWIG_Py_Void();
5933 return resultobj;
5934 fail:
5935 return NULL;
5936 }
5937
5938
5939 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5940 PyObject *resultobj = 0;
5941 wxComboBox *arg1 = (wxComboBox *) 0 ;
5942 void *argp1 = 0 ;
5943 int res1 = 0 ;
5944 PyObject *swig_obj[1] ;
5945
5946 if (!args) SWIG_fail;
5947 swig_obj[0] = args;
5948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5949 if (!SWIG_IsOK(res1)) {
5950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5951 }
5952 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5953 {
5954 PyThreadState* __tstate = wxPyBeginAllowThreads();
5955 (arg1)->Cut();
5956 wxPyEndAllowThreads(__tstate);
5957 if (PyErr_Occurred()) SWIG_fail;
5958 }
5959 resultobj = SWIG_Py_Void();
5960 return resultobj;
5961 fail:
5962 return NULL;
5963 }
5964
5965
5966 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5967 PyObject *resultobj = 0;
5968 wxComboBox *arg1 = (wxComboBox *) 0 ;
5969 void *argp1 = 0 ;
5970 int res1 = 0 ;
5971 PyObject *swig_obj[1] ;
5972
5973 if (!args) SWIG_fail;
5974 swig_obj[0] = args;
5975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5976 if (!SWIG_IsOK(res1)) {
5977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5978 }
5979 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5980 {
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 (arg1)->Paste();
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 resultobj = SWIG_Py_Void();
5987 return resultobj;
5988 fail:
5989 return NULL;
5990 }
5991
5992
5993 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5994 PyObject *resultobj = 0;
5995 wxComboBox *arg1 = (wxComboBox *) 0 ;
5996 long arg2 ;
5997 void *argp1 = 0 ;
5998 int res1 = 0 ;
5999 long val2 ;
6000 int ecode2 = 0 ;
6001 PyObject * obj0 = 0 ;
6002 PyObject * obj1 = 0 ;
6003 char * kwnames[] = {
6004 (char *) "self",(char *) "pos", NULL
6005 };
6006
6007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6009 if (!SWIG_IsOK(res1)) {
6010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6011 }
6012 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6013 ecode2 = SWIG_AsVal_long(obj1, &val2);
6014 if (!SWIG_IsOK(ecode2)) {
6015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6016 }
6017 arg2 = static_cast< long >(val2);
6018 {
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 (arg1)->SetInsertionPoint(arg2);
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 resultobj = SWIG_Py_Void();
6025 return resultobj;
6026 fail:
6027 return NULL;
6028 }
6029
6030
6031 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6032 PyObject *resultobj = 0;
6033 wxComboBox *arg1 = (wxComboBox *) 0 ;
6034 long result;
6035 void *argp1 = 0 ;
6036 int res1 = 0 ;
6037 PyObject *swig_obj[1] ;
6038
6039 if (!args) SWIG_fail;
6040 swig_obj[0] = args;
6041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6042 if (!SWIG_IsOK(res1)) {
6043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6044 }
6045 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6046 {
6047 PyThreadState* __tstate = wxPyBeginAllowThreads();
6048 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6049 wxPyEndAllowThreads(__tstate);
6050 if (PyErr_Occurred()) SWIG_fail;
6051 }
6052 resultobj = SWIG_From_long(static_cast< long >(result));
6053 return resultobj;
6054 fail:
6055 return NULL;
6056 }
6057
6058
6059 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6060 PyObject *resultobj = 0;
6061 wxComboBox *arg1 = (wxComboBox *) 0 ;
6062 long result;
6063 void *argp1 = 0 ;
6064 int res1 = 0 ;
6065 PyObject *swig_obj[1] ;
6066
6067 if (!args) SWIG_fail;
6068 swig_obj[0] = args;
6069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6070 if (!SWIG_IsOK(res1)) {
6071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6072 }
6073 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6074 {
6075 PyThreadState* __tstate = wxPyBeginAllowThreads();
6076 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 resultobj = SWIG_From_long(static_cast< long >(result));
6081 return resultobj;
6082 fail:
6083 return NULL;
6084 }
6085
6086
6087 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj = 0;
6089 wxComboBox *arg1 = (wxComboBox *) 0 ;
6090 long arg2 ;
6091 long arg3 ;
6092 wxString *arg4 = 0 ;
6093 void *argp1 = 0 ;
6094 int res1 = 0 ;
6095 long val2 ;
6096 int ecode2 = 0 ;
6097 long val3 ;
6098 int ecode3 = 0 ;
6099 bool temp4 = false ;
6100 PyObject * obj0 = 0 ;
6101 PyObject * obj1 = 0 ;
6102 PyObject * obj2 = 0 ;
6103 PyObject * obj3 = 0 ;
6104 char * kwnames[] = {
6105 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6106 };
6107
6108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6110 if (!SWIG_IsOK(res1)) {
6111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6112 }
6113 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6114 ecode2 = SWIG_AsVal_long(obj1, &val2);
6115 if (!SWIG_IsOK(ecode2)) {
6116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6117 }
6118 arg2 = static_cast< long >(val2);
6119 ecode3 = SWIG_AsVal_long(obj2, &val3);
6120 if (!SWIG_IsOK(ecode3)) {
6121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6122 }
6123 arg3 = static_cast< long >(val3);
6124 {
6125 arg4 = wxString_in_helper(obj3);
6126 if (arg4 == NULL) SWIG_fail;
6127 temp4 = true;
6128 }
6129 {
6130 PyThreadState* __tstate = wxPyBeginAllowThreads();
6131 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6132 wxPyEndAllowThreads(__tstate);
6133 if (PyErr_Occurred()) SWIG_fail;
6134 }
6135 resultobj = SWIG_Py_Void();
6136 {
6137 if (temp4)
6138 delete arg4;
6139 }
6140 return resultobj;
6141 fail:
6142 {
6143 if (temp4)
6144 delete arg4;
6145 }
6146 return NULL;
6147 }
6148
6149
6150 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6151 PyObject *resultobj = 0;
6152 wxComboBox *arg1 = (wxComboBox *) 0 ;
6153 long arg2 ;
6154 long arg3 ;
6155 void *argp1 = 0 ;
6156 int res1 = 0 ;
6157 long val2 ;
6158 int ecode2 = 0 ;
6159 long val3 ;
6160 int ecode3 = 0 ;
6161 PyObject * obj0 = 0 ;
6162 PyObject * obj1 = 0 ;
6163 PyObject * obj2 = 0 ;
6164 char * kwnames[] = {
6165 (char *) "self",(char *) "from",(char *) "to", NULL
6166 };
6167
6168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6170 if (!SWIG_IsOK(res1)) {
6171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6172 }
6173 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6174 ecode2 = SWIG_AsVal_long(obj1, &val2);
6175 if (!SWIG_IsOK(ecode2)) {
6176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6177 }
6178 arg2 = static_cast< long >(val2);
6179 ecode3 = SWIG_AsVal_long(obj2, &val3);
6180 if (!SWIG_IsOK(ecode3)) {
6181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6182 }
6183 arg3 = static_cast< long >(val3);
6184 {
6185 PyThreadState* __tstate = wxPyBeginAllowThreads();
6186 (arg1)->SetSelection(arg2,arg3);
6187 wxPyEndAllowThreads(__tstate);
6188 if (PyErr_Occurred()) SWIG_fail;
6189 }
6190 resultobj = SWIG_Py_Void();
6191 return resultobj;
6192 fail:
6193 return NULL;
6194 }
6195
6196
6197 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6198 PyObject *resultobj = 0;
6199 wxComboBox *arg1 = (wxComboBox *) 0 ;
6200 int result;
6201 void *argp1 = 0 ;
6202 int res1 = 0 ;
6203 PyObject *swig_obj[1] ;
6204
6205 if (!args) SWIG_fail;
6206 swig_obj[0] = args;
6207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6208 if (!SWIG_IsOK(res1)) {
6209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6210 }
6211 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6215 wxPyEndAllowThreads(__tstate);
6216 if (PyErr_Occurred()) SWIG_fail;
6217 }
6218 resultobj = SWIG_From_int(static_cast< int >(result));
6219 return resultobj;
6220 fail:
6221 return NULL;
6222 }
6223
6224
6225 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6226 PyObject *resultobj = 0;
6227 wxComboBox *arg1 = (wxComboBox *) 0 ;
6228 wxString *arg2 = 0 ;
6229 bool result;
6230 void *argp1 = 0 ;
6231 int res1 = 0 ;
6232 bool temp2 = false ;
6233 PyObject * obj0 = 0 ;
6234 PyObject * obj1 = 0 ;
6235 char * kwnames[] = {
6236 (char *) "self",(char *) "string", NULL
6237 };
6238
6239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6241 if (!SWIG_IsOK(res1)) {
6242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6243 }
6244 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6245 {
6246 arg2 = wxString_in_helper(obj1);
6247 if (arg2 == NULL) SWIG_fail;
6248 temp2 = true;
6249 }
6250 {
6251 PyThreadState* __tstate = wxPyBeginAllowThreads();
6252 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6253 wxPyEndAllowThreads(__tstate);
6254 if (PyErr_Occurred()) SWIG_fail;
6255 }
6256 {
6257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6258 }
6259 {
6260 if (temp2)
6261 delete arg2;
6262 }
6263 return resultobj;
6264 fail:
6265 {
6266 if (temp2)
6267 delete arg2;
6268 }
6269 return NULL;
6270 }
6271
6272
6273 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj = 0;
6275 wxComboBox *arg1 = (wxComboBox *) 0 ;
6276 bool arg2 ;
6277 void *argp1 = 0 ;
6278 int res1 = 0 ;
6279 bool val2 ;
6280 int ecode2 = 0 ;
6281 PyObject * obj0 = 0 ;
6282 PyObject * obj1 = 0 ;
6283 char * kwnames[] = {
6284 (char *) "self",(char *) "editable", NULL
6285 };
6286
6287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6289 if (!SWIG_IsOK(res1)) {
6290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6291 }
6292 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6293 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6294 if (!SWIG_IsOK(ecode2)) {
6295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6296 }
6297 arg2 = static_cast< bool >(val2);
6298 {
6299 PyThreadState* __tstate = wxPyBeginAllowThreads();
6300 (arg1)->SetEditable(arg2);
6301 wxPyEndAllowThreads(__tstate);
6302 if (PyErr_Occurred()) SWIG_fail;
6303 }
6304 resultobj = SWIG_Py_Void();
6305 return resultobj;
6306 fail:
6307 return NULL;
6308 }
6309
6310
6311 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6312 PyObject *resultobj = 0;
6313 wxComboBox *arg1 = (wxComboBox *) 0 ;
6314 void *argp1 = 0 ;
6315 int res1 = 0 ;
6316 PyObject *swig_obj[1] ;
6317
6318 if (!args) SWIG_fail;
6319 swig_obj[0] = args;
6320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6321 if (!SWIG_IsOK(res1)) {
6322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6323 }
6324 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6325 {
6326 PyThreadState* __tstate = wxPyBeginAllowThreads();
6327 (arg1)->SetInsertionPointEnd();
6328 wxPyEndAllowThreads(__tstate);
6329 if (PyErr_Occurred()) SWIG_fail;
6330 }
6331 resultobj = SWIG_Py_Void();
6332 return resultobj;
6333 fail:
6334 return NULL;
6335 }
6336
6337
6338 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6339 PyObject *resultobj = 0;
6340 wxComboBox *arg1 = (wxComboBox *) 0 ;
6341 long arg2 ;
6342 long arg3 ;
6343 void *argp1 = 0 ;
6344 int res1 = 0 ;
6345 long val2 ;
6346 int ecode2 = 0 ;
6347 long val3 ;
6348 int ecode3 = 0 ;
6349 PyObject * obj0 = 0 ;
6350 PyObject * obj1 = 0 ;
6351 PyObject * obj2 = 0 ;
6352 char * kwnames[] = {
6353 (char *) "self",(char *) "from",(char *) "to", NULL
6354 };
6355
6356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6358 if (!SWIG_IsOK(res1)) {
6359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6360 }
6361 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6362 ecode2 = SWIG_AsVal_long(obj1, &val2);
6363 if (!SWIG_IsOK(ecode2)) {
6364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6365 }
6366 arg2 = static_cast< long >(val2);
6367 ecode3 = SWIG_AsVal_long(obj2, &val3);
6368 if (!SWIG_IsOK(ecode3)) {
6369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6370 }
6371 arg3 = static_cast< long >(val3);
6372 {
6373 PyThreadState* __tstate = wxPyBeginAllowThreads();
6374 (arg1)->Remove(arg2,arg3);
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 resultobj = SWIG_Py_Void();
6379 return resultobj;
6380 fail:
6381 return NULL;
6382 }
6383
6384
6385 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6386 PyObject *resultobj = 0;
6387 wxComboBox *arg1 = (wxComboBox *) 0 ;
6388 bool result;
6389 void *argp1 = 0 ;
6390 int res1 = 0 ;
6391 PyObject *swig_obj[1] ;
6392
6393 if (!args) SWIG_fail;
6394 swig_obj[0] = args;
6395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6396 if (!SWIG_IsOK(res1)) {
6397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6398 }
6399 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6400 {
6401 PyThreadState* __tstate = wxPyBeginAllowThreads();
6402 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6403 wxPyEndAllowThreads(__tstate);
6404 if (PyErr_Occurred()) SWIG_fail;
6405 }
6406 {
6407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6408 }
6409 return resultobj;
6410 fail:
6411 return NULL;
6412 }
6413
6414
6415 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6416 PyObject *resultobj = 0;
6417 wxComboBox *arg1 = (wxComboBox *) 0 ;
6418 void *argp1 = 0 ;
6419 int res1 = 0 ;
6420 PyObject *swig_obj[1] ;
6421
6422 if (!args) SWIG_fail;
6423 swig_obj[0] = args;
6424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6425 if (!SWIG_IsOK(res1)) {
6426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6427 }
6428 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6429 {
6430 PyThreadState* __tstate = wxPyBeginAllowThreads();
6431 (arg1)->Undo();
6432 wxPyEndAllowThreads(__tstate);
6433 if (PyErr_Occurred()) SWIG_fail;
6434 }
6435 resultobj = SWIG_Py_Void();
6436 return resultobj;
6437 fail:
6438 return NULL;
6439 }
6440
6441
6442 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6443 PyObject *resultobj = 0;
6444 wxComboBox *arg1 = (wxComboBox *) 0 ;
6445 void *argp1 = 0 ;
6446 int res1 = 0 ;
6447 PyObject *swig_obj[1] ;
6448
6449 if (!args) SWIG_fail;
6450 swig_obj[0] = args;
6451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6452 if (!SWIG_IsOK(res1)) {
6453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6454 }
6455 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6456 {
6457 PyThreadState* __tstate = wxPyBeginAllowThreads();
6458 (arg1)->Redo();
6459 wxPyEndAllowThreads(__tstate);
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 resultobj = SWIG_Py_Void();
6463 return resultobj;
6464 fail:
6465 return NULL;
6466 }
6467
6468
6469 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6470 PyObject *resultobj = 0;
6471 wxComboBox *arg1 = (wxComboBox *) 0 ;
6472 void *argp1 = 0 ;
6473 int res1 = 0 ;
6474 PyObject *swig_obj[1] ;
6475
6476 if (!args) SWIG_fail;
6477 swig_obj[0] = args;
6478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6479 if (!SWIG_IsOK(res1)) {
6480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6481 }
6482 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6483 {
6484 PyThreadState* __tstate = wxPyBeginAllowThreads();
6485 (arg1)->SelectAll();
6486 wxPyEndAllowThreads(__tstate);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 resultobj = SWIG_Py_Void();
6490 return resultobj;
6491 fail:
6492 return NULL;
6493 }
6494
6495
6496 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6497 PyObject *resultobj = 0;
6498 wxComboBox *arg1 = (wxComboBox *) 0 ;
6499 bool result;
6500 void *argp1 = 0 ;
6501 int res1 = 0 ;
6502 PyObject *swig_obj[1] ;
6503
6504 if (!args) SWIG_fail;
6505 swig_obj[0] = args;
6506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6507 if (!SWIG_IsOK(res1)) {
6508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6509 }
6510 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6511 {
6512 PyThreadState* __tstate = wxPyBeginAllowThreads();
6513 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6514 wxPyEndAllowThreads(__tstate);
6515 if (PyErr_Occurred()) SWIG_fail;
6516 }
6517 {
6518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6519 }
6520 return resultobj;
6521 fail:
6522 return NULL;
6523 }
6524
6525
6526 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6527 PyObject *resultobj = 0;
6528 wxComboBox *arg1 = (wxComboBox *) 0 ;
6529 bool result;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6539 }
6540 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 result = (bool)((wxComboBox const *)arg1)->CanCut();
6544 wxPyEndAllowThreads(__tstate);
6545 if (PyErr_Occurred()) SWIG_fail;
6546 }
6547 {
6548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6549 }
6550 return resultobj;
6551 fail:
6552 return NULL;
6553 }
6554
6555
6556 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6557 PyObject *resultobj = 0;
6558 wxComboBox *arg1 = (wxComboBox *) 0 ;
6559 bool result;
6560 void *argp1 = 0 ;
6561 int res1 = 0 ;
6562 PyObject *swig_obj[1] ;
6563
6564 if (!args) SWIG_fail;
6565 swig_obj[0] = args;
6566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6567 if (!SWIG_IsOK(res1)) {
6568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6569 }
6570 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6574 wxPyEndAllowThreads(__tstate);
6575 if (PyErr_Occurred()) SWIG_fail;
6576 }
6577 {
6578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6579 }
6580 return resultobj;
6581 fail:
6582 return NULL;
6583 }
6584
6585
6586 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6587 PyObject *resultobj = 0;
6588 wxComboBox *arg1 = (wxComboBox *) 0 ;
6589 bool result;
6590 void *argp1 = 0 ;
6591 int res1 = 0 ;
6592 PyObject *swig_obj[1] ;
6593
6594 if (!args) SWIG_fail;
6595 swig_obj[0] = args;
6596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6597 if (!SWIG_IsOK(res1)) {
6598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6599 }
6600 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6601 {
6602 PyThreadState* __tstate = wxPyBeginAllowThreads();
6603 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6604 wxPyEndAllowThreads(__tstate);
6605 if (PyErr_Occurred()) SWIG_fail;
6606 }
6607 {
6608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6609 }
6610 return resultobj;
6611 fail:
6612 return NULL;
6613 }
6614
6615
6616 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6617 PyObject *resultobj = 0;
6618 wxComboBox *arg1 = (wxComboBox *) 0 ;
6619 bool result;
6620 void *argp1 = 0 ;
6621 int res1 = 0 ;
6622 PyObject *swig_obj[1] ;
6623
6624 if (!args) SWIG_fail;
6625 swig_obj[0] = args;
6626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6627 if (!SWIG_IsOK(res1)) {
6628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6629 }
6630 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6631 {
6632 PyThreadState* __tstate = wxPyBeginAllowThreads();
6633 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6634 wxPyEndAllowThreads(__tstate);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 }
6637 {
6638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6639 }
6640 return resultobj;
6641 fail:
6642 return NULL;
6643 }
6644
6645
6646 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6647 PyObject *resultobj = 0;
6648 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6649 SwigValueWrapper<wxVisualAttributes > result;
6650 int val1 ;
6651 int ecode1 = 0 ;
6652 PyObject * obj0 = 0 ;
6653 char * kwnames[] = {
6654 (char *) "variant", NULL
6655 };
6656
6657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6658 if (obj0) {
6659 ecode1 = SWIG_AsVal_int(obj0, &val1);
6660 if (!SWIG_IsOK(ecode1)) {
6661 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6662 }
6663 arg1 = static_cast< wxWindowVariant >(val1);
6664 }
6665 {
6666 if (!wxPyCheckForApp()) SWIG_fail;
6667 PyThreadState* __tstate = wxPyBeginAllowThreads();
6668 result = wxComboBox::GetClassDefaultAttributes(arg1);
6669 wxPyEndAllowThreads(__tstate);
6670 if (PyErr_Occurred()) SWIG_fail;
6671 }
6672 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6673 return resultobj;
6674 fail:
6675 return NULL;
6676 }
6677
6678
6679 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6680 PyObject *obj;
6681 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6682 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6683 return SWIG_Py_Void();
6684 }
6685
6686 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6687 return SWIG_Python_InitShadowInstance(args);
6688 }
6689
6690 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6691 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6692 return 1;
6693 }
6694
6695
6696 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6697 PyObject *pyobj = 0;
6698
6699 {
6700 #if wxUSE_UNICODE
6701 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6702 #else
6703 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6704 #endif
6705 }
6706 return pyobj;
6707 }
6708
6709
6710 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6711 PyObject *resultobj = 0;
6712 wxWindow *arg1 = (wxWindow *) 0 ;
6713 int arg2 = (int) -1 ;
6714 int arg3 = (int) 100 ;
6715 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6716 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6717 wxSize const &arg5_defvalue = wxDefaultSize ;
6718 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6719 long arg6 = (long) wxGA_HORIZONTAL ;
6720 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6721 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6722 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6723 wxString *arg8 = (wxString *) &arg8_defvalue ;
6724 wxGauge *result = 0 ;
6725 void *argp1 = 0 ;
6726 int res1 = 0 ;
6727 int val2 ;
6728 int ecode2 = 0 ;
6729 int val3 ;
6730 int ecode3 = 0 ;
6731 wxPoint temp4 ;
6732 wxSize temp5 ;
6733 long val6 ;
6734 int ecode6 = 0 ;
6735 void *argp7 = 0 ;
6736 int res7 = 0 ;
6737 bool temp8 = false ;
6738 PyObject * obj0 = 0 ;
6739 PyObject * obj1 = 0 ;
6740 PyObject * obj2 = 0 ;
6741 PyObject * obj3 = 0 ;
6742 PyObject * obj4 = 0 ;
6743 PyObject * obj5 = 0 ;
6744 PyObject * obj6 = 0 ;
6745 PyObject * obj7 = 0 ;
6746 char * kwnames[] = {
6747 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6748 };
6749
6750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6752 if (!SWIG_IsOK(res1)) {
6753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6754 }
6755 arg1 = reinterpret_cast< wxWindow * >(argp1);
6756 if (obj1) {
6757 ecode2 = SWIG_AsVal_int(obj1, &val2);
6758 if (!SWIG_IsOK(ecode2)) {
6759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6760 }
6761 arg2 = static_cast< int >(val2);
6762 }
6763 if (obj2) {
6764 ecode3 = SWIG_AsVal_int(obj2, &val3);
6765 if (!SWIG_IsOK(ecode3)) {
6766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6767 }
6768 arg3 = static_cast< int >(val3);
6769 }
6770 if (obj3) {
6771 {
6772 arg4 = &temp4;
6773 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6774 }
6775 }
6776 if (obj4) {
6777 {
6778 arg5 = &temp5;
6779 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6780 }
6781 }
6782 if (obj5) {
6783 ecode6 = SWIG_AsVal_long(obj5, &val6);
6784 if (!SWIG_IsOK(ecode6)) {
6785 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6786 }
6787 arg6 = static_cast< long >(val6);
6788 }
6789 if (obj6) {
6790 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6791 if (!SWIG_IsOK(res7)) {
6792 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6793 }
6794 if (!argp7) {
6795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6796 }
6797 arg7 = reinterpret_cast< wxValidator * >(argp7);
6798 }
6799 if (obj7) {
6800 {
6801 arg8 = wxString_in_helper(obj7);
6802 if (arg8 == NULL) SWIG_fail;
6803 temp8 = true;
6804 }
6805 }
6806 {
6807 if (!wxPyCheckForApp()) SWIG_fail;
6808 PyThreadState* __tstate = wxPyBeginAllowThreads();
6809 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6810 wxPyEndAllowThreads(__tstate);
6811 if (PyErr_Occurred()) SWIG_fail;
6812 }
6813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6814 {
6815 if (temp8)
6816 delete arg8;
6817 }
6818 return resultobj;
6819 fail:
6820 {
6821 if (temp8)
6822 delete arg8;
6823 }
6824 return NULL;
6825 }
6826
6827
6828 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6829 PyObject *resultobj = 0;
6830 wxGauge *result = 0 ;
6831
6832 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6833 {
6834 if (!wxPyCheckForApp()) SWIG_fail;
6835 PyThreadState* __tstate = wxPyBeginAllowThreads();
6836 result = (wxGauge *)new wxGauge();
6837 wxPyEndAllowThreads(__tstate);
6838 if (PyErr_Occurred()) SWIG_fail;
6839 }
6840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6841 return resultobj;
6842 fail:
6843 return NULL;
6844 }
6845
6846
6847 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6848 PyObject *resultobj = 0;
6849 wxGauge *arg1 = (wxGauge *) 0 ;
6850 wxWindow *arg2 = (wxWindow *) 0 ;
6851 int arg3 = (int) -1 ;
6852 int arg4 = (int) 100 ;
6853 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6854 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6855 wxSize const &arg6_defvalue = wxDefaultSize ;
6856 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6857 long arg7 = (long) wxGA_HORIZONTAL ;
6858 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6859 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6860 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6861 wxString *arg9 = (wxString *) &arg9_defvalue ;
6862 bool result;
6863 void *argp1 = 0 ;
6864 int res1 = 0 ;
6865 void *argp2 = 0 ;
6866 int res2 = 0 ;
6867 int val3 ;
6868 int ecode3 = 0 ;
6869 int val4 ;
6870 int ecode4 = 0 ;
6871 wxPoint temp5 ;
6872 wxSize temp6 ;
6873 long val7 ;
6874 int ecode7 = 0 ;
6875 void *argp8 = 0 ;
6876 int res8 = 0 ;
6877 bool temp9 = false ;
6878 PyObject * obj0 = 0 ;
6879 PyObject * obj1 = 0 ;
6880 PyObject * obj2 = 0 ;
6881 PyObject * obj3 = 0 ;
6882 PyObject * obj4 = 0 ;
6883 PyObject * obj5 = 0 ;
6884 PyObject * obj6 = 0 ;
6885 PyObject * obj7 = 0 ;
6886 PyObject * obj8 = 0 ;
6887 char * kwnames[] = {
6888 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6889 };
6890
6891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6893 if (!SWIG_IsOK(res1)) {
6894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6895 }
6896 arg1 = reinterpret_cast< wxGauge * >(argp1);
6897 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6898 if (!SWIG_IsOK(res2)) {
6899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6900 }
6901 arg2 = reinterpret_cast< wxWindow * >(argp2);
6902 if (obj2) {
6903 ecode3 = SWIG_AsVal_int(obj2, &val3);
6904 if (!SWIG_IsOK(ecode3)) {
6905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6906 }
6907 arg3 = static_cast< int >(val3);
6908 }
6909 if (obj3) {
6910 ecode4 = SWIG_AsVal_int(obj3, &val4);
6911 if (!SWIG_IsOK(ecode4)) {
6912 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6913 }
6914 arg4 = static_cast< int >(val4);
6915 }
6916 if (obj4) {
6917 {
6918 arg5 = &temp5;
6919 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6920 }
6921 }
6922 if (obj5) {
6923 {
6924 arg6 = &temp6;
6925 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6926 }
6927 }
6928 if (obj6) {
6929 ecode7 = SWIG_AsVal_long(obj6, &val7);
6930 if (!SWIG_IsOK(ecode7)) {
6931 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6932 }
6933 arg7 = static_cast< long >(val7);
6934 }
6935 if (obj7) {
6936 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6937 if (!SWIG_IsOK(res8)) {
6938 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6939 }
6940 if (!argp8) {
6941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6942 }
6943 arg8 = reinterpret_cast< wxValidator * >(argp8);
6944 }
6945 if (obj8) {
6946 {
6947 arg9 = wxString_in_helper(obj8);
6948 if (arg9 == NULL) SWIG_fail;
6949 temp9 = true;
6950 }
6951 }
6952 {
6953 PyThreadState* __tstate = wxPyBeginAllowThreads();
6954 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6955 wxPyEndAllowThreads(__tstate);
6956 if (PyErr_Occurred()) SWIG_fail;
6957 }
6958 {
6959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6960 }
6961 {
6962 if (temp9)
6963 delete arg9;
6964 }
6965 return resultobj;
6966 fail:
6967 {
6968 if (temp9)
6969 delete arg9;
6970 }
6971 return NULL;
6972 }
6973
6974
6975 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6976 PyObject *resultobj = 0;
6977 wxGauge *arg1 = (wxGauge *) 0 ;
6978 int arg2 ;
6979 void *argp1 = 0 ;
6980 int res1 = 0 ;
6981 int val2 ;
6982 int ecode2 = 0 ;
6983 PyObject * obj0 = 0 ;
6984 PyObject * obj1 = 0 ;
6985 char * kwnames[] = {
6986 (char *) "self",(char *) "range", NULL
6987 };
6988
6989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
6990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6991 if (!SWIG_IsOK(res1)) {
6992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
6993 }
6994 arg1 = reinterpret_cast< wxGauge * >(argp1);
6995 ecode2 = SWIG_AsVal_int(obj1, &val2);
6996 if (!SWIG_IsOK(ecode2)) {
6997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
6998 }
6999 arg2 = static_cast< int >(val2);
7000 {
7001 PyThreadState* __tstate = wxPyBeginAllowThreads();
7002 (arg1)->SetRange(arg2);
7003 wxPyEndAllowThreads(__tstate);
7004 if (PyErr_Occurred()) SWIG_fail;
7005 }
7006 resultobj = SWIG_Py_Void();
7007 return resultobj;
7008 fail:
7009 return NULL;
7010 }
7011
7012
7013 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7014 PyObject *resultobj = 0;
7015 wxGauge *arg1 = (wxGauge *) 0 ;
7016 int result;
7017 void *argp1 = 0 ;
7018 int res1 = 0 ;
7019 PyObject *swig_obj[1] ;
7020
7021 if (!args) SWIG_fail;
7022 swig_obj[0] = args;
7023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7024 if (!SWIG_IsOK(res1)) {
7025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7026 }
7027 arg1 = reinterpret_cast< wxGauge * >(argp1);
7028 {
7029 PyThreadState* __tstate = wxPyBeginAllowThreads();
7030 result = (int)((wxGauge const *)arg1)->GetRange();
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 resultobj = SWIG_From_int(static_cast< int >(result));
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj = 0;
7043 wxGauge *arg1 = (wxGauge *) 0 ;
7044 int arg2 ;
7045 void *argp1 = 0 ;
7046 int res1 = 0 ;
7047 int val2 ;
7048 int ecode2 = 0 ;
7049 PyObject * obj0 = 0 ;
7050 PyObject * obj1 = 0 ;
7051 char * kwnames[] = {
7052 (char *) "self",(char *) "pos", NULL
7053 };
7054
7055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7057 if (!SWIG_IsOK(res1)) {
7058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7059 }
7060 arg1 = reinterpret_cast< wxGauge * >(argp1);
7061 ecode2 = SWIG_AsVal_int(obj1, &val2);
7062 if (!SWIG_IsOK(ecode2)) {
7063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7064 }
7065 arg2 = static_cast< int >(val2);
7066 {
7067 PyThreadState* __tstate = wxPyBeginAllowThreads();
7068 (arg1)->SetValue(arg2);
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 resultobj = SWIG_Py_Void();
7073 return resultobj;
7074 fail:
7075 return NULL;
7076 }
7077
7078
7079 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7080 PyObject *resultobj = 0;
7081 wxGauge *arg1 = (wxGauge *) 0 ;
7082 int result;
7083 void *argp1 = 0 ;
7084 int res1 = 0 ;
7085 PyObject *swig_obj[1] ;
7086
7087 if (!args) SWIG_fail;
7088 swig_obj[0] = args;
7089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7090 if (!SWIG_IsOK(res1)) {
7091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7092 }
7093 arg1 = reinterpret_cast< wxGauge * >(argp1);
7094 {
7095 PyThreadState* __tstate = wxPyBeginAllowThreads();
7096 result = (int)((wxGauge const *)arg1)->GetValue();
7097 wxPyEndAllowThreads(__tstate);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 resultobj = SWIG_From_int(static_cast< int >(result));
7101 return resultobj;
7102 fail:
7103 return NULL;
7104 }
7105
7106
7107 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7108 PyObject *resultobj = 0;
7109 wxGauge *arg1 = (wxGauge *) 0 ;
7110 void *argp1 = 0 ;
7111 int res1 = 0 ;
7112 PyObject *swig_obj[1] ;
7113
7114 if (!args) SWIG_fail;
7115 swig_obj[0] = args;
7116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7117 if (!SWIG_IsOK(res1)) {
7118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7119 }
7120 arg1 = reinterpret_cast< wxGauge * >(argp1);
7121 {
7122 PyThreadState* __tstate = wxPyBeginAllowThreads();
7123 (arg1)->Pulse();
7124 wxPyEndAllowThreads(__tstate);
7125 if (PyErr_Occurred()) SWIG_fail;
7126 }
7127 resultobj = SWIG_Py_Void();
7128 return resultobj;
7129 fail:
7130 return NULL;
7131 }
7132
7133
7134 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7135 PyObject *resultobj = 0;
7136 wxGauge *arg1 = (wxGauge *) 0 ;
7137 bool result;
7138 void *argp1 = 0 ;
7139 int res1 = 0 ;
7140 PyObject *swig_obj[1] ;
7141
7142 if (!args) SWIG_fail;
7143 swig_obj[0] = args;
7144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7145 if (!SWIG_IsOK(res1)) {
7146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7147 }
7148 arg1 = reinterpret_cast< wxGauge * >(argp1);
7149 {
7150 PyThreadState* __tstate = wxPyBeginAllowThreads();
7151 result = (bool)((wxGauge const *)arg1)->IsVertical();
7152 wxPyEndAllowThreads(__tstate);
7153 if (PyErr_Occurred()) SWIG_fail;
7154 }
7155 {
7156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7157 }
7158 return resultobj;
7159 fail:
7160 return NULL;
7161 }
7162
7163
7164 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7165 PyObject *resultobj = 0;
7166 wxGauge *arg1 = (wxGauge *) 0 ;
7167 int arg2 ;
7168 void *argp1 = 0 ;
7169 int res1 = 0 ;
7170 int val2 ;
7171 int ecode2 = 0 ;
7172 PyObject * obj0 = 0 ;
7173 PyObject * obj1 = 0 ;
7174 char * kwnames[] = {
7175 (char *) "self",(char *) "w", NULL
7176 };
7177
7178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7180 if (!SWIG_IsOK(res1)) {
7181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7182 }
7183 arg1 = reinterpret_cast< wxGauge * >(argp1);
7184 ecode2 = SWIG_AsVal_int(obj1, &val2);
7185 if (!SWIG_IsOK(ecode2)) {
7186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7187 }
7188 arg2 = static_cast< int >(val2);
7189 {
7190 PyThreadState* __tstate = wxPyBeginAllowThreads();
7191 (arg1)->SetShadowWidth(arg2);
7192 wxPyEndAllowThreads(__tstate);
7193 if (PyErr_Occurred()) SWIG_fail;
7194 }
7195 resultobj = SWIG_Py_Void();
7196 return resultobj;
7197 fail:
7198 return NULL;
7199 }
7200
7201
7202 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7203 PyObject *resultobj = 0;
7204 wxGauge *arg1 = (wxGauge *) 0 ;
7205 int result;
7206 void *argp1 = 0 ;
7207 int res1 = 0 ;
7208 PyObject *swig_obj[1] ;
7209
7210 if (!args) SWIG_fail;
7211 swig_obj[0] = args;
7212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7213 if (!SWIG_IsOK(res1)) {
7214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7215 }
7216 arg1 = reinterpret_cast< wxGauge * >(argp1);
7217 {
7218 PyThreadState* __tstate = wxPyBeginAllowThreads();
7219 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7220 wxPyEndAllowThreads(__tstate);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 resultobj = SWIG_From_int(static_cast< int >(result));
7224 return resultobj;
7225 fail:
7226 return NULL;
7227 }
7228
7229
7230 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7231 PyObject *resultobj = 0;
7232 wxGauge *arg1 = (wxGauge *) 0 ;
7233 int arg2 ;
7234 void *argp1 = 0 ;
7235 int res1 = 0 ;
7236 int val2 ;
7237 int ecode2 = 0 ;
7238 PyObject * obj0 = 0 ;
7239 PyObject * obj1 = 0 ;
7240 char * kwnames[] = {
7241 (char *) "self",(char *) "w", NULL
7242 };
7243
7244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7246 if (!SWIG_IsOK(res1)) {
7247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7248 }
7249 arg1 = reinterpret_cast< wxGauge * >(argp1);
7250 ecode2 = SWIG_AsVal_int(obj1, &val2);
7251 if (!SWIG_IsOK(ecode2)) {
7252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7253 }
7254 arg2 = static_cast< int >(val2);
7255 {
7256 PyThreadState* __tstate = wxPyBeginAllowThreads();
7257 (arg1)->SetBezelFace(arg2);
7258 wxPyEndAllowThreads(__tstate);
7259 if (PyErr_Occurred()) SWIG_fail;
7260 }
7261 resultobj = SWIG_Py_Void();
7262 return resultobj;
7263 fail:
7264 return NULL;
7265 }
7266
7267
7268 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7269 PyObject *resultobj = 0;
7270 wxGauge *arg1 = (wxGauge *) 0 ;
7271 int result;
7272 void *argp1 = 0 ;
7273 int res1 = 0 ;
7274 PyObject *swig_obj[1] ;
7275
7276 if (!args) SWIG_fail;
7277 swig_obj[0] = args;
7278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7279 if (!SWIG_IsOK(res1)) {
7280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7281 }
7282 arg1 = reinterpret_cast< wxGauge * >(argp1);
7283 {
7284 PyThreadState* __tstate = wxPyBeginAllowThreads();
7285 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7286 wxPyEndAllowThreads(__tstate);
7287 if (PyErr_Occurred()) SWIG_fail;
7288 }
7289 resultobj = SWIG_From_int(static_cast< int >(result));
7290 return resultobj;
7291 fail:
7292 return NULL;
7293 }
7294
7295
7296 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7297 PyObject *resultobj = 0;
7298 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7299 SwigValueWrapper<wxVisualAttributes > result;
7300 int val1 ;
7301 int ecode1 = 0 ;
7302 PyObject * obj0 = 0 ;
7303 char * kwnames[] = {
7304 (char *) "variant", NULL
7305 };
7306
7307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7308 if (obj0) {
7309 ecode1 = SWIG_AsVal_int(obj0, &val1);
7310 if (!SWIG_IsOK(ecode1)) {
7311 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7312 }
7313 arg1 = static_cast< wxWindowVariant >(val1);
7314 }
7315 {
7316 if (!wxPyCheckForApp()) SWIG_fail;
7317 PyThreadState* __tstate = wxPyBeginAllowThreads();
7318 result = wxGauge::GetClassDefaultAttributes(arg1);
7319 wxPyEndAllowThreads(__tstate);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
7322 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7323 return resultobj;
7324 fail:
7325 return NULL;
7326 }
7327
7328
7329 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7330 PyObject *obj;
7331 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7332 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7333 return SWIG_Py_Void();
7334 }
7335
7336 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7337 return SWIG_Python_InitShadowInstance(args);
7338 }
7339
7340 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7341 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7342 return 1;
7343 }
7344
7345
7346 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7347 PyObject *pyobj = 0;
7348
7349 {
7350 #if wxUSE_UNICODE
7351 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7352 #else
7353 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7354 #endif
7355 }
7356 return pyobj;
7357 }
7358
7359
7360 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7361 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7362 return 1;
7363 }
7364
7365
7366 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7367 PyObject *pyobj = 0;
7368
7369 {
7370 #if wxUSE_UNICODE
7371 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7372 #else
7373 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7374 #endif
7375 }
7376 return pyobj;
7377 }
7378
7379
7380 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7381 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7382 return 1;
7383 }
7384
7385
7386 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7387 PyObject *pyobj = 0;
7388
7389 {
7390 #if wxUSE_UNICODE
7391 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7392 #else
7393 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7394 #endif
7395 }
7396 return pyobj;
7397 }
7398
7399
7400 SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7401 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7402 return 1;
7403 }
7404
7405
7406 SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7407 PyObject *pyobj = 0;
7408
7409 {
7410 #if wxUSE_UNICODE
7411 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7412 #else
7413 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7414 #endif
7415 }
7416 return pyobj;
7417 }
7418
7419
7420 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7421 PyObject *resultobj = 0;
7422 wxWindow *arg1 = (wxWindow *) 0 ;
7423 int arg2 = (int) -1 ;
7424 wxString const &arg3_defvalue = wxPyEmptyString ;
7425 wxString *arg3 = (wxString *) &arg3_defvalue ;
7426 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7427 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7428 wxSize const &arg5_defvalue = wxDefaultSize ;
7429 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7430 long arg6 = (long) 0 ;
7431 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7432 wxString *arg7 = (wxString *) &arg7_defvalue ;
7433 wxStaticBox *result = 0 ;
7434 void *argp1 = 0 ;
7435 int res1 = 0 ;
7436 int val2 ;
7437 int ecode2 = 0 ;
7438 bool temp3 = false ;
7439 wxPoint temp4 ;
7440 wxSize temp5 ;
7441 long val6 ;
7442 int ecode6 = 0 ;
7443 bool temp7 = false ;
7444 PyObject * obj0 = 0 ;
7445 PyObject * obj1 = 0 ;
7446 PyObject * obj2 = 0 ;
7447 PyObject * obj3 = 0 ;
7448 PyObject * obj4 = 0 ;
7449 PyObject * obj5 = 0 ;
7450 PyObject * obj6 = 0 ;
7451 char * kwnames[] = {
7452 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7453 };
7454
7455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7457 if (!SWIG_IsOK(res1)) {
7458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7459 }
7460 arg1 = reinterpret_cast< wxWindow * >(argp1);
7461 if (obj1) {
7462 ecode2 = SWIG_AsVal_int(obj1, &val2);
7463 if (!SWIG_IsOK(ecode2)) {
7464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7465 }
7466 arg2 = static_cast< int >(val2);
7467 }
7468 if (obj2) {
7469 {
7470 arg3 = wxString_in_helper(obj2);
7471 if (arg3 == NULL) SWIG_fail;
7472 temp3 = true;
7473 }
7474 }
7475 if (obj3) {
7476 {
7477 arg4 = &temp4;
7478 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7479 }
7480 }
7481 if (obj4) {
7482 {
7483 arg5 = &temp5;
7484 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7485 }
7486 }
7487 if (obj5) {
7488 ecode6 = SWIG_AsVal_long(obj5, &val6);
7489 if (!SWIG_IsOK(ecode6)) {
7490 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7491 }
7492 arg6 = static_cast< long >(val6);
7493 }
7494 if (obj6) {
7495 {
7496 arg7 = wxString_in_helper(obj6);
7497 if (arg7 == NULL) SWIG_fail;
7498 temp7 = true;
7499 }
7500 }
7501 {
7502 if (!wxPyCheckForApp()) SWIG_fail;
7503 PyThreadState* __tstate = wxPyBeginAllowThreads();
7504 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7505 wxPyEndAllowThreads(__tstate);
7506 if (PyErr_Occurred()) SWIG_fail;
7507 }
7508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7509 {
7510 if (temp3)
7511 delete arg3;
7512 }
7513 {
7514 if (temp7)
7515 delete arg7;
7516 }
7517 return resultobj;
7518 fail:
7519 {
7520 if (temp3)
7521 delete arg3;
7522 }
7523 {
7524 if (temp7)
7525 delete arg7;
7526 }
7527 return NULL;
7528 }
7529
7530
7531 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7532 PyObject *resultobj = 0;
7533 wxStaticBox *result = 0 ;
7534
7535 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7536 {
7537 if (!wxPyCheckForApp()) SWIG_fail;
7538 PyThreadState* __tstate = wxPyBeginAllowThreads();
7539 result = (wxStaticBox *)new wxStaticBox();
7540 wxPyEndAllowThreads(__tstate);
7541 if (PyErr_Occurred()) SWIG_fail;
7542 }
7543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7544 return resultobj;
7545 fail:
7546 return NULL;
7547 }
7548
7549
7550 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7551 PyObject *resultobj = 0;
7552 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7553 wxWindow *arg2 = (wxWindow *) 0 ;
7554 int arg3 = (int) -1 ;
7555 wxString const &arg4_defvalue = wxPyEmptyString ;
7556 wxString *arg4 = (wxString *) &arg4_defvalue ;
7557 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7558 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7559 wxSize const &arg6_defvalue = wxDefaultSize ;
7560 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7561 long arg7 = (long) 0 ;
7562 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7563 wxString *arg8 = (wxString *) &arg8_defvalue ;
7564 bool result;
7565 void *argp1 = 0 ;
7566 int res1 = 0 ;
7567 void *argp2 = 0 ;
7568 int res2 = 0 ;
7569 int val3 ;
7570 int ecode3 = 0 ;
7571 bool temp4 = false ;
7572 wxPoint temp5 ;
7573 wxSize temp6 ;
7574 long val7 ;
7575 int ecode7 = 0 ;
7576 bool temp8 = false ;
7577 PyObject * obj0 = 0 ;
7578 PyObject * obj1 = 0 ;
7579 PyObject * obj2 = 0 ;
7580 PyObject * obj3 = 0 ;
7581 PyObject * obj4 = 0 ;
7582 PyObject * obj5 = 0 ;
7583 PyObject * obj6 = 0 ;
7584 PyObject * obj7 = 0 ;
7585 char * kwnames[] = {
7586 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7587 };
7588
7589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7591 if (!SWIG_IsOK(res1)) {
7592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7593 }
7594 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7595 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7596 if (!SWIG_IsOK(res2)) {
7597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7598 }
7599 arg2 = reinterpret_cast< wxWindow * >(argp2);
7600 if (obj2) {
7601 ecode3 = SWIG_AsVal_int(obj2, &val3);
7602 if (!SWIG_IsOK(ecode3)) {
7603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7604 }
7605 arg3 = static_cast< int >(val3);
7606 }
7607 if (obj3) {
7608 {
7609 arg4 = wxString_in_helper(obj3);
7610 if (arg4 == NULL) SWIG_fail;
7611 temp4 = true;
7612 }
7613 }
7614 if (obj4) {
7615 {
7616 arg5 = &temp5;
7617 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7618 }
7619 }
7620 if (obj5) {
7621 {
7622 arg6 = &temp6;
7623 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7624 }
7625 }
7626 if (obj6) {
7627 ecode7 = SWIG_AsVal_long(obj6, &val7);
7628 if (!SWIG_IsOK(ecode7)) {
7629 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7630 }
7631 arg7 = static_cast< long >(val7);
7632 }
7633 if (obj7) {
7634 {
7635 arg8 = wxString_in_helper(obj7);
7636 if (arg8 == NULL) SWIG_fail;
7637 temp8 = true;
7638 }
7639 }
7640 {
7641 PyThreadState* __tstate = wxPyBeginAllowThreads();
7642 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7643 wxPyEndAllowThreads(__tstate);
7644 if (PyErr_Occurred()) SWIG_fail;
7645 }
7646 {
7647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7648 }
7649 {
7650 if (temp4)
7651 delete arg4;
7652 }
7653 {
7654 if (temp8)
7655 delete arg8;
7656 }
7657 return resultobj;
7658 fail:
7659 {
7660 if (temp4)
7661 delete arg4;
7662 }
7663 {
7664 if (temp8)
7665 delete arg8;
7666 }
7667 return NULL;
7668 }
7669
7670
7671 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7672 PyObject *resultobj = 0;
7673 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7674 SwigValueWrapper<wxVisualAttributes > result;
7675 int val1 ;
7676 int ecode1 = 0 ;
7677 PyObject * obj0 = 0 ;
7678 char * kwnames[] = {
7679 (char *) "variant", NULL
7680 };
7681
7682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7683 if (obj0) {
7684 ecode1 = SWIG_AsVal_int(obj0, &val1);
7685 if (!SWIG_IsOK(ecode1)) {
7686 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7687 }
7688 arg1 = static_cast< wxWindowVariant >(val1);
7689 }
7690 {
7691 if (!wxPyCheckForApp()) SWIG_fail;
7692 PyThreadState* __tstate = wxPyBeginAllowThreads();
7693 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7694 wxPyEndAllowThreads(__tstate);
7695 if (PyErr_Occurred()) SWIG_fail;
7696 }
7697 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7698 return resultobj;
7699 fail:
7700 return NULL;
7701 }
7702
7703
7704 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7705 PyObject *obj;
7706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7707 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7708 return SWIG_Py_Void();
7709 }
7710
7711 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7712 return SWIG_Python_InitShadowInstance(args);
7713 }
7714
7715 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7716 PyObject *resultobj = 0;
7717 wxWindow *arg1 = (wxWindow *) 0 ;
7718 int arg2 = (int) -1 ;
7719 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7720 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7721 wxSize const &arg4_defvalue = wxDefaultSize ;
7722 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7723 long arg5 = (long) wxLI_HORIZONTAL ;
7724 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
7725 wxString *arg6 = (wxString *) &arg6_defvalue ;
7726 wxStaticLine *result = 0 ;
7727 void *argp1 = 0 ;
7728 int res1 = 0 ;
7729 int val2 ;
7730 int ecode2 = 0 ;
7731 wxPoint temp3 ;
7732 wxSize temp4 ;
7733 long val5 ;
7734 int ecode5 = 0 ;
7735 bool temp6 = false ;
7736 PyObject * obj0 = 0 ;
7737 PyObject * obj1 = 0 ;
7738 PyObject * obj2 = 0 ;
7739 PyObject * obj3 = 0 ;
7740 PyObject * obj4 = 0 ;
7741 PyObject * obj5 = 0 ;
7742 char * kwnames[] = {
7743 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7744 };
7745
7746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7748 if (!SWIG_IsOK(res1)) {
7749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7750 }
7751 arg1 = reinterpret_cast< wxWindow * >(argp1);
7752 if (obj1) {
7753 ecode2 = SWIG_AsVal_int(obj1, &val2);
7754 if (!SWIG_IsOK(ecode2)) {
7755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7756 }
7757 arg2 = static_cast< int >(val2);
7758 }
7759 if (obj2) {
7760 {
7761 arg3 = &temp3;
7762 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7763 }
7764 }
7765 if (obj3) {
7766 {
7767 arg4 = &temp4;
7768 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7769 }
7770 }
7771 if (obj4) {
7772 ecode5 = SWIG_AsVal_long(obj4, &val5);
7773 if (!SWIG_IsOK(ecode5)) {
7774 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7775 }
7776 arg5 = static_cast< long >(val5);
7777 }
7778 if (obj5) {
7779 {
7780 arg6 = wxString_in_helper(obj5);
7781 if (arg6 == NULL) SWIG_fail;
7782 temp6 = true;
7783 }
7784 }
7785 {
7786 if (!wxPyCheckForApp()) SWIG_fail;
7787 PyThreadState* __tstate = wxPyBeginAllowThreads();
7788 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7789 wxPyEndAllowThreads(__tstate);
7790 if (PyErr_Occurred()) SWIG_fail;
7791 }
7792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7793 {
7794 if (temp6)
7795 delete arg6;
7796 }
7797 return resultobj;
7798 fail:
7799 {
7800 if (temp6)
7801 delete arg6;
7802 }
7803 return NULL;
7804 }
7805
7806
7807 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7808 PyObject *resultobj = 0;
7809 wxStaticLine *result = 0 ;
7810
7811 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7812 {
7813 if (!wxPyCheckForApp()) SWIG_fail;
7814 PyThreadState* __tstate = wxPyBeginAllowThreads();
7815 result = (wxStaticLine *)new wxStaticLine();
7816 wxPyEndAllowThreads(__tstate);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7820 return resultobj;
7821 fail:
7822 return NULL;
7823 }
7824
7825
7826 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7827 PyObject *resultobj = 0;
7828 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7829 wxWindow *arg2 = (wxWindow *) 0 ;
7830 int arg3 = (int) -1 ;
7831 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7832 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7833 wxSize const &arg5_defvalue = wxDefaultSize ;
7834 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7835 long arg6 = (long) wxLI_HORIZONTAL ;
7836 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
7837 wxString *arg7 = (wxString *) &arg7_defvalue ;
7838 bool result;
7839 void *argp1 = 0 ;
7840 int res1 = 0 ;
7841 void *argp2 = 0 ;
7842 int res2 = 0 ;
7843 int val3 ;
7844 int ecode3 = 0 ;
7845 wxPoint temp4 ;
7846 wxSize temp5 ;
7847 long val6 ;
7848 int ecode6 = 0 ;
7849 bool temp7 = false ;
7850 PyObject * obj0 = 0 ;
7851 PyObject * obj1 = 0 ;
7852 PyObject * obj2 = 0 ;
7853 PyObject * obj3 = 0 ;
7854 PyObject * obj4 = 0 ;
7855 PyObject * obj5 = 0 ;
7856 PyObject * obj6 = 0 ;
7857 char * kwnames[] = {
7858 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7859 };
7860
7861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7863 if (!SWIG_IsOK(res1)) {
7864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7865 }
7866 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7867 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7868 if (!SWIG_IsOK(res2)) {
7869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7870 }
7871 arg2 = reinterpret_cast< wxWindow * >(argp2);
7872 if (obj2) {
7873 ecode3 = SWIG_AsVal_int(obj2, &val3);
7874 if (!SWIG_IsOK(ecode3)) {
7875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7876 }
7877 arg3 = static_cast< int >(val3);
7878 }
7879 if (obj3) {
7880 {
7881 arg4 = &temp4;
7882 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7883 }
7884 }
7885 if (obj4) {
7886 {
7887 arg5 = &temp5;
7888 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7889 }
7890 }
7891 if (obj5) {
7892 ecode6 = SWIG_AsVal_long(obj5, &val6);
7893 if (!SWIG_IsOK(ecode6)) {
7894 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7895 }
7896 arg6 = static_cast< long >(val6);
7897 }
7898 if (obj6) {
7899 {
7900 arg7 = wxString_in_helper(obj6);
7901 if (arg7 == NULL) SWIG_fail;
7902 temp7 = true;
7903 }
7904 }
7905 {
7906 PyThreadState* __tstate = wxPyBeginAllowThreads();
7907 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7908 wxPyEndAllowThreads(__tstate);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 {
7912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7913 }
7914 {
7915 if (temp7)
7916 delete arg7;
7917 }
7918 return resultobj;
7919 fail:
7920 {
7921 if (temp7)
7922 delete arg7;
7923 }
7924 return NULL;
7925 }
7926
7927
7928 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7929 PyObject *resultobj = 0;
7930 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7931 bool result;
7932 void *argp1 = 0 ;
7933 int res1 = 0 ;
7934 PyObject *swig_obj[1] ;
7935
7936 if (!args) SWIG_fail;
7937 swig_obj[0] = args;
7938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7939 if (!SWIG_IsOK(res1)) {
7940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7941 }
7942 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7943 {
7944 PyThreadState* __tstate = wxPyBeginAllowThreads();
7945 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7946 wxPyEndAllowThreads(__tstate);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 {
7950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7951 }
7952 return resultobj;
7953 fail:
7954 return NULL;
7955 }
7956
7957
7958 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7959 PyObject *resultobj = 0;
7960 int result;
7961
7962 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7963 {
7964 PyThreadState* __tstate = wxPyBeginAllowThreads();
7965 result = (int)wxStaticLine::GetDefaultSize();
7966 wxPyEndAllowThreads(__tstate);
7967 if (PyErr_Occurred()) SWIG_fail;
7968 }
7969 resultobj = SWIG_From_int(static_cast< int >(result));
7970 return resultobj;
7971 fail:
7972 return NULL;
7973 }
7974
7975
7976 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7977 PyObject *resultobj = 0;
7978 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7979 SwigValueWrapper<wxVisualAttributes > result;
7980 int val1 ;
7981 int ecode1 = 0 ;
7982 PyObject * obj0 = 0 ;
7983 char * kwnames[] = {
7984 (char *) "variant", NULL
7985 };
7986
7987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7988 if (obj0) {
7989 ecode1 = SWIG_AsVal_int(obj0, &val1);
7990 if (!SWIG_IsOK(ecode1)) {
7991 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7992 }
7993 arg1 = static_cast< wxWindowVariant >(val1);
7994 }
7995 {
7996 if (!wxPyCheckForApp()) SWIG_fail;
7997 PyThreadState* __tstate = wxPyBeginAllowThreads();
7998 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7999 wxPyEndAllowThreads(__tstate);
8000 if (PyErr_Occurred()) SWIG_fail;
8001 }
8002 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8003 return resultobj;
8004 fail:
8005 return NULL;
8006 }
8007
8008
8009 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8010 PyObject *obj;
8011 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8012 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8013 return SWIG_Py_Void();
8014 }
8015
8016 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8017 return SWIG_Python_InitShadowInstance(args);
8018 }
8019
8020 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8021 PyObject *resultobj = 0;
8022 wxWindow *arg1 = (wxWindow *) 0 ;
8023 int arg2 = (int) -1 ;
8024 wxString const &arg3_defvalue = wxPyEmptyString ;
8025 wxString *arg3 = (wxString *) &arg3_defvalue ;
8026 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8027 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8028 wxSize const &arg5_defvalue = wxDefaultSize ;
8029 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8030 long arg6 = (long) 0 ;
8031 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8032 wxString *arg7 = (wxString *) &arg7_defvalue ;
8033 wxStaticText *result = 0 ;
8034 void *argp1 = 0 ;
8035 int res1 = 0 ;
8036 int val2 ;
8037 int ecode2 = 0 ;
8038 bool temp3 = false ;
8039 wxPoint temp4 ;
8040 wxSize temp5 ;
8041 long val6 ;
8042 int ecode6 = 0 ;
8043 bool temp7 = false ;
8044 PyObject * obj0 = 0 ;
8045 PyObject * obj1 = 0 ;
8046 PyObject * obj2 = 0 ;
8047 PyObject * obj3 = 0 ;
8048 PyObject * obj4 = 0 ;
8049 PyObject * obj5 = 0 ;
8050 PyObject * obj6 = 0 ;
8051 char * kwnames[] = {
8052 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8053 };
8054
8055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8057 if (!SWIG_IsOK(res1)) {
8058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8059 }
8060 arg1 = reinterpret_cast< wxWindow * >(argp1);
8061 if (obj1) {
8062 ecode2 = SWIG_AsVal_int(obj1, &val2);
8063 if (!SWIG_IsOK(ecode2)) {
8064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8065 }
8066 arg2 = static_cast< int >(val2);
8067 }
8068 if (obj2) {
8069 {
8070 arg3 = wxString_in_helper(obj2);
8071 if (arg3 == NULL) SWIG_fail;
8072 temp3 = true;
8073 }
8074 }
8075 if (obj3) {
8076 {
8077 arg4 = &temp4;
8078 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8079 }
8080 }
8081 if (obj4) {
8082 {
8083 arg5 = &temp5;
8084 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8085 }
8086 }
8087 if (obj5) {
8088 ecode6 = SWIG_AsVal_long(obj5, &val6);
8089 if (!SWIG_IsOK(ecode6)) {
8090 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8091 }
8092 arg6 = static_cast< long >(val6);
8093 }
8094 if (obj6) {
8095 {
8096 arg7 = wxString_in_helper(obj6);
8097 if (arg7 == NULL) SWIG_fail;
8098 temp7 = true;
8099 }
8100 }
8101 {
8102 if (!wxPyCheckForApp()) SWIG_fail;
8103 PyThreadState* __tstate = wxPyBeginAllowThreads();
8104 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8105 wxPyEndAllowThreads(__tstate);
8106 if (PyErr_Occurred()) SWIG_fail;
8107 }
8108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8109 {
8110 if (temp3)
8111 delete arg3;
8112 }
8113 {
8114 if (temp7)
8115 delete arg7;
8116 }
8117 return resultobj;
8118 fail:
8119 {
8120 if (temp3)
8121 delete arg3;
8122 }
8123 {
8124 if (temp7)
8125 delete arg7;
8126 }
8127 return NULL;
8128 }
8129
8130
8131 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8132 PyObject *resultobj = 0;
8133 wxStaticText *result = 0 ;
8134
8135 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8136 {
8137 if (!wxPyCheckForApp()) SWIG_fail;
8138 PyThreadState* __tstate = wxPyBeginAllowThreads();
8139 result = (wxStaticText *)new wxStaticText();
8140 wxPyEndAllowThreads(__tstate);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8144 return resultobj;
8145 fail:
8146 return NULL;
8147 }
8148
8149
8150 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj = 0;
8152 wxStaticText *arg1 = (wxStaticText *) 0 ;
8153 wxWindow *arg2 = (wxWindow *) 0 ;
8154 int arg3 = (int) -1 ;
8155 wxString const &arg4_defvalue = wxPyEmptyString ;
8156 wxString *arg4 = (wxString *) &arg4_defvalue ;
8157 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8158 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8159 wxSize const &arg6_defvalue = wxDefaultSize ;
8160 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8161 long arg7 = (long) 0 ;
8162 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8163 wxString *arg8 = (wxString *) &arg8_defvalue ;
8164 bool result;
8165 void *argp1 = 0 ;
8166 int res1 = 0 ;
8167 void *argp2 = 0 ;
8168 int res2 = 0 ;
8169 int val3 ;
8170 int ecode3 = 0 ;
8171 bool temp4 = false ;
8172 wxPoint temp5 ;
8173 wxSize temp6 ;
8174 long val7 ;
8175 int ecode7 = 0 ;
8176 bool temp8 = false ;
8177 PyObject * obj0 = 0 ;
8178 PyObject * obj1 = 0 ;
8179 PyObject * obj2 = 0 ;
8180 PyObject * obj3 = 0 ;
8181 PyObject * obj4 = 0 ;
8182 PyObject * obj5 = 0 ;
8183 PyObject * obj6 = 0 ;
8184 PyObject * obj7 = 0 ;
8185 char * kwnames[] = {
8186 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8187 };
8188
8189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8191 if (!SWIG_IsOK(res1)) {
8192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8193 }
8194 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8195 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8196 if (!SWIG_IsOK(res2)) {
8197 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8198 }
8199 arg2 = reinterpret_cast< wxWindow * >(argp2);
8200 if (obj2) {
8201 ecode3 = SWIG_AsVal_int(obj2, &val3);
8202 if (!SWIG_IsOK(ecode3)) {
8203 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8204 }
8205 arg3 = static_cast< int >(val3);
8206 }
8207 if (obj3) {
8208 {
8209 arg4 = wxString_in_helper(obj3);
8210 if (arg4 == NULL) SWIG_fail;
8211 temp4 = true;
8212 }
8213 }
8214 if (obj4) {
8215 {
8216 arg5 = &temp5;
8217 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8218 }
8219 }
8220 if (obj5) {
8221 {
8222 arg6 = &temp6;
8223 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8224 }
8225 }
8226 if (obj6) {
8227 ecode7 = SWIG_AsVal_long(obj6, &val7);
8228 if (!SWIG_IsOK(ecode7)) {
8229 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8230 }
8231 arg7 = static_cast< long >(val7);
8232 }
8233 if (obj7) {
8234 {
8235 arg8 = wxString_in_helper(obj7);
8236 if (arg8 == NULL) SWIG_fail;
8237 temp8 = true;
8238 }
8239 }
8240 {
8241 PyThreadState* __tstate = wxPyBeginAllowThreads();
8242 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8243 wxPyEndAllowThreads(__tstate);
8244 if (PyErr_Occurred()) SWIG_fail;
8245 }
8246 {
8247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8248 }
8249 {
8250 if (temp4)
8251 delete arg4;
8252 }
8253 {
8254 if (temp8)
8255 delete arg8;
8256 }
8257 return resultobj;
8258 fail:
8259 {
8260 if (temp4)
8261 delete arg4;
8262 }
8263 {
8264 if (temp8)
8265 delete arg8;
8266 }
8267 return NULL;
8268 }
8269
8270
8271 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8272 PyObject *resultobj = 0;
8273 wxStaticText *arg1 = (wxStaticText *) 0 ;
8274 int arg2 ;
8275 void *argp1 = 0 ;
8276 int res1 = 0 ;
8277 int val2 ;
8278 int ecode2 = 0 ;
8279 PyObject * obj0 = 0 ;
8280 PyObject * obj1 = 0 ;
8281 char * kwnames[] = {
8282 (char *) "self",(char *) "width", NULL
8283 };
8284
8285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8287 if (!SWIG_IsOK(res1)) {
8288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8289 }
8290 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8291 ecode2 = SWIG_AsVal_int(obj1, &val2);
8292 if (!SWIG_IsOK(ecode2)) {
8293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8294 }
8295 arg2 = static_cast< int >(val2);
8296 {
8297 PyThreadState* __tstate = wxPyBeginAllowThreads();
8298 (arg1)->Wrap(arg2);
8299 wxPyEndAllowThreads(__tstate);
8300 if (PyErr_Occurred()) SWIG_fail;
8301 }
8302 resultobj = SWIG_Py_Void();
8303 return resultobj;
8304 fail:
8305 return NULL;
8306 }
8307
8308
8309 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8310 PyObject *resultobj = 0;
8311 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8312 SwigValueWrapper<wxVisualAttributes > result;
8313 int val1 ;
8314 int ecode1 = 0 ;
8315 PyObject * obj0 = 0 ;
8316 char * kwnames[] = {
8317 (char *) "variant", NULL
8318 };
8319
8320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8321 if (obj0) {
8322 ecode1 = SWIG_AsVal_int(obj0, &val1);
8323 if (!SWIG_IsOK(ecode1)) {
8324 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8325 }
8326 arg1 = static_cast< wxWindowVariant >(val1);
8327 }
8328 {
8329 if (!wxPyCheckForApp()) SWIG_fail;
8330 PyThreadState* __tstate = wxPyBeginAllowThreads();
8331 result = wxStaticText::GetClassDefaultAttributes(arg1);
8332 wxPyEndAllowThreads(__tstate);
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8336 return resultobj;
8337 fail:
8338 return NULL;
8339 }
8340
8341
8342 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8343 PyObject *obj;
8344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8345 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8346 return SWIG_Py_Void();
8347 }
8348
8349 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8350 return SWIG_Python_InitShadowInstance(args);
8351 }
8352
8353 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8354 PyObject *resultobj = 0;
8355 wxWindow *arg1 = (wxWindow *) 0 ;
8356 int arg2 = (int) -1 ;
8357 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8358 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8359 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8360 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8361 wxSize const &arg5_defvalue = wxDefaultSize ;
8362 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8363 long arg6 = (long) 0 ;
8364 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8365 wxString *arg7 = (wxString *) &arg7_defvalue ;
8366 wxStaticBitmap *result = 0 ;
8367 void *argp1 = 0 ;
8368 int res1 = 0 ;
8369 int val2 ;
8370 int ecode2 = 0 ;
8371 void *argp3 = 0 ;
8372 int res3 = 0 ;
8373 wxPoint temp4 ;
8374 wxSize temp5 ;
8375 long val6 ;
8376 int ecode6 = 0 ;
8377 bool temp7 = false ;
8378 PyObject * obj0 = 0 ;
8379 PyObject * obj1 = 0 ;
8380 PyObject * obj2 = 0 ;
8381 PyObject * obj3 = 0 ;
8382 PyObject * obj4 = 0 ;
8383 PyObject * obj5 = 0 ;
8384 PyObject * obj6 = 0 ;
8385 char * kwnames[] = {
8386 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8387 };
8388
8389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8391 if (!SWIG_IsOK(res1)) {
8392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8393 }
8394 arg1 = reinterpret_cast< wxWindow * >(argp1);
8395 if (obj1) {
8396 ecode2 = SWIG_AsVal_int(obj1, &val2);
8397 if (!SWIG_IsOK(ecode2)) {
8398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8399 }
8400 arg2 = static_cast< int >(val2);
8401 }
8402 if (obj2) {
8403 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8404 if (!SWIG_IsOK(res3)) {
8405 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8406 }
8407 if (!argp3) {
8408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8409 }
8410 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8411 }
8412 if (obj3) {
8413 {
8414 arg4 = &temp4;
8415 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8416 }
8417 }
8418 if (obj4) {
8419 {
8420 arg5 = &temp5;
8421 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8422 }
8423 }
8424 if (obj5) {
8425 ecode6 = SWIG_AsVal_long(obj5, &val6);
8426 if (!SWIG_IsOK(ecode6)) {
8427 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8428 }
8429 arg6 = static_cast< long >(val6);
8430 }
8431 if (obj6) {
8432 {
8433 arg7 = wxString_in_helper(obj6);
8434 if (arg7 == NULL) SWIG_fail;
8435 temp7 = true;
8436 }
8437 }
8438 {
8439 if (!wxPyCheckForApp()) SWIG_fail;
8440 PyThreadState* __tstate = wxPyBeginAllowThreads();
8441 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8442 wxPyEndAllowThreads(__tstate);
8443 if (PyErr_Occurred()) SWIG_fail;
8444 }
8445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8446 {
8447 if (temp7)
8448 delete arg7;
8449 }
8450 return resultobj;
8451 fail:
8452 {
8453 if (temp7)
8454 delete arg7;
8455 }
8456 return NULL;
8457 }
8458
8459
8460 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8461 PyObject *resultobj = 0;
8462 wxStaticBitmap *result = 0 ;
8463
8464 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8465 {
8466 if (!wxPyCheckForApp()) SWIG_fail;
8467 PyThreadState* __tstate = wxPyBeginAllowThreads();
8468 result = (wxStaticBitmap *)new wxStaticBitmap();
8469 wxPyEndAllowThreads(__tstate);
8470 if (PyErr_Occurred()) SWIG_fail;
8471 }
8472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8473 return resultobj;
8474 fail:
8475 return NULL;
8476 }
8477
8478
8479 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8480 PyObject *resultobj = 0;
8481 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8482 wxWindow *arg2 = (wxWindow *) 0 ;
8483 int arg3 = (int) -1 ;
8484 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8485 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8486 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8487 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8488 wxSize const &arg6_defvalue = wxDefaultSize ;
8489 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8490 long arg7 = (long) 0 ;
8491 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8492 wxString *arg8 = (wxString *) &arg8_defvalue ;
8493 bool result;
8494 void *argp1 = 0 ;
8495 int res1 = 0 ;
8496 void *argp2 = 0 ;
8497 int res2 = 0 ;
8498 int val3 ;
8499 int ecode3 = 0 ;
8500 void *argp4 = 0 ;
8501 int res4 = 0 ;
8502 wxPoint temp5 ;
8503 wxSize temp6 ;
8504 long val7 ;
8505 int ecode7 = 0 ;
8506 bool temp8 = false ;
8507 PyObject * obj0 = 0 ;
8508 PyObject * obj1 = 0 ;
8509 PyObject * obj2 = 0 ;
8510 PyObject * obj3 = 0 ;
8511 PyObject * obj4 = 0 ;
8512 PyObject * obj5 = 0 ;
8513 PyObject * obj6 = 0 ;
8514 PyObject * obj7 = 0 ;
8515 char * kwnames[] = {
8516 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8517 };
8518
8519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8521 if (!SWIG_IsOK(res1)) {
8522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8523 }
8524 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8525 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8526 if (!SWIG_IsOK(res2)) {
8527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8528 }
8529 arg2 = reinterpret_cast< wxWindow * >(argp2);
8530 if (obj2) {
8531 ecode3 = SWIG_AsVal_int(obj2, &val3);
8532 if (!SWIG_IsOK(ecode3)) {
8533 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8534 }
8535 arg3 = static_cast< int >(val3);
8536 }
8537 if (obj3) {
8538 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8539 if (!SWIG_IsOK(res4)) {
8540 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8541 }
8542 if (!argp4) {
8543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8544 }
8545 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8546 }
8547 if (obj4) {
8548 {
8549 arg5 = &temp5;
8550 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8551 }
8552 }
8553 if (obj5) {
8554 {
8555 arg6 = &temp6;
8556 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8557 }
8558 }
8559 if (obj6) {
8560 ecode7 = SWIG_AsVal_long(obj6, &val7);
8561 if (!SWIG_IsOK(ecode7)) {
8562 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8563 }
8564 arg7 = static_cast< long >(val7);
8565 }
8566 if (obj7) {
8567 {
8568 arg8 = wxString_in_helper(obj7);
8569 if (arg8 == NULL) SWIG_fail;
8570 temp8 = true;
8571 }
8572 }
8573 {
8574 PyThreadState* __tstate = wxPyBeginAllowThreads();
8575 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8576 wxPyEndAllowThreads(__tstate);
8577 if (PyErr_Occurred()) SWIG_fail;
8578 }
8579 {
8580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8581 }
8582 {
8583 if (temp8)
8584 delete arg8;
8585 }
8586 return resultobj;
8587 fail:
8588 {
8589 if (temp8)
8590 delete arg8;
8591 }
8592 return NULL;
8593 }
8594
8595
8596 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8597 PyObject *resultobj = 0;
8598 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8599 wxBitmap result;
8600 void *argp1 = 0 ;
8601 int res1 = 0 ;
8602 PyObject *swig_obj[1] ;
8603
8604 if (!args) SWIG_fail;
8605 swig_obj[0] = args;
8606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8607 if (!SWIG_IsOK(res1)) {
8608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8609 }
8610 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8611 {
8612 PyThreadState* __tstate = wxPyBeginAllowThreads();
8613 result = (arg1)->GetBitmap();
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8618 return resultobj;
8619 fail:
8620 return NULL;
8621 }
8622
8623
8624 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8625 PyObject *resultobj = 0;
8626 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8627 wxBitmap *arg2 = 0 ;
8628 void *argp1 = 0 ;
8629 int res1 = 0 ;
8630 void *argp2 = 0 ;
8631 int res2 = 0 ;
8632 PyObject * obj0 = 0 ;
8633 PyObject * obj1 = 0 ;
8634 char * kwnames[] = {
8635 (char *) "self",(char *) "bitmap", NULL
8636 };
8637
8638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8640 if (!SWIG_IsOK(res1)) {
8641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8642 }
8643 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8645 if (!SWIG_IsOK(res2)) {
8646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8647 }
8648 if (!argp2) {
8649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8650 }
8651 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8652 {
8653 PyThreadState* __tstate = wxPyBeginAllowThreads();
8654 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8655 wxPyEndAllowThreads(__tstate);
8656 if (PyErr_Occurred()) SWIG_fail;
8657 }
8658 resultobj = SWIG_Py_Void();
8659 return resultobj;
8660 fail:
8661 return NULL;
8662 }
8663
8664
8665 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8666 PyObject *resultobj = 0;
8667 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8668 wxIcon *arg2 = 0 ;
8669 void *argp1 = 0 ;
8670 int res1 = 0 ;
8671 void *argp2 = 0 ;
8672 int res2 = 0 ;
8673 PyObject * obj0 = 0 ;
8674 PyObject * obj1 = 0 ;
8675 char * kwnames[] = {
8676 (char *) "self",(char *) "icon", NULL
8677 };
8678
8679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) 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_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8683 }
8684 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8686 if (!SWIG_IsOK(res2)) {
8687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8688 }
8689 if (!argp2) {
8690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8691 }
8692 arg2 = reinterpret_cast< wxIcon * >(argp2);
8693 {
8694 PyThreadState* __tstate = wxPyBeginAllowThreads();
8695 (arg1)->SetIcon((wxIcon const &)*arg2);
8696 wxPyEndAllowThreads(__tstate);
8697 if (PyErr_Occurred()) SWIG_fail;
8698 }
8699 resultobj = SWIG_Py_Void();
8700 return resultobj;
8701 fail:
8702 return NULL;
8703 }
8704
8705
8706 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8707 PyObject *resultobj = 0;
8708 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8709 SwigValueWrapper<wxVisualAttributes > result;
8710 int val1 ;
8711 int ecode1 = 0 ;
8712 PyObject * obj0 = 0 ;
8713 char * kwnames[] = {
8714 (char *) "variant", NULL
8715 };
8716
8717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8718 if (obj0) {
8719 ecode1 = SWIG_AsVal_int(obj0, &val1);
8720 if (!SWIG_IsOK(ecode1)) {
8721 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8722 }
8723 arg1 = static_cast< wxWindowVariant >(val1);
8724 }
8725 {
8726 if (!wxPyCheckForApp()) SWIG_fail;
8727 PyThreadState* __tstate = wxPyBeginAllowThreads();
8728 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8729 wxPyEndAllowThreads(__tstate);
8730 if (PyErr_Occurred()) SWIG_fail;
8731 }
8732 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8733 return resultobj;
8734 fail:
8735 return NULL;
8736 }
8737
8738
8739 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8740 PyObject *obj;
8741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8742 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8743 return SWIG_Py_Void();
8744 }
8745
8746 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8747 return SWIG_Python_InitShadowInstance(args);
8748 }
8749
8750 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8751 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8752 return 1;
8753 }
8754
8755
8756 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8757 PyObject *pyobj = 0;
8758
8759 {
8760 #if wxUSE_UNICODE
8761 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8762 #else
8763 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8764 #endif
8765 }
8766 return pyobj;
8767 }
8768
8769
8770 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8771 PyObject *resultobj = 0;
8772 wxWindow *arg1 = (wxWindow *) 0 ;
8773 int arg2 = (int) -1 ;
8774 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8775 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8776 wxSize const &arg4_defvalue = wxDefaultSize ;
8777 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8778 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8779 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8780 long arg6 = (long) 0 ;
8781 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8782 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8783 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8784 wxString *arg8 = (wxString *) &arg8_defvalue ;
8785 wxListBox *result = 0 ;
8786 void *argp1 = 0 ;
8787 int res1 = 0 ;
8788 int val2 ;
8789 int ecode2 = 0 ;
8790 wxPoint temp3 ;
8791 wxSize temp4 ;
8792 bool temp5 = false ;
8793 long val6 ;
8794 int ecode6 = 0 ;
8795 void *argp7 = 0 ;
8796 int res7 = 0 ;
8797 bool temp8 = false ;
8798 PyObject * obj0 = 0 ;
8799 PyObject * obj1 = 0 ;
8800 PyObject * obj2 = 0 ;
8801 PyObject * obj3 = 0 ;
8802 PyObject * obj4 = 0 ;
8803 PyObject * obj5 = 0 ;
8804 PyObject * obj6 = 0 ;
8805 PyObject * obj7 = 0 ;
8806 char * kwnames[] = {
8807 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8808 };
8809
8810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8812 if (!SWIG_IsOK(res1)) {
8813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8814 }
8815 arg1 = reinterpret_cast< wxWindow * >(argp1);
8816 if (obj1) {
8817 ecode2 = SWIG_AsVal_int(obj1, &val2);
8818 if (!SWIG_IsOK(ecode2)) {
8819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8820 }
8821 arg2 = static_cast< int >(val2);
8822 }
8823 if (obj2) {
8824 {
8825 arg3 = &temp3;
8826 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8827 }
8828 }
8829 if (obj3) {
8830 {
8831 arg4 = &temp4;
8832 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8833 }
8834 }
8835 if (obj4) {
8836 {
8837 if (! PySequence_Check(obj4)) {
8838 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8839 SWIG_fail;
8840 }
8841 arg5 = new wxArrayString;
8842 temp5 = true;
8843 int i, len=PySequence_Length(obj4);
8844 for (i=0; i<len; i++) {
8845 PyObject* item = PySequence_GetItem(obj4, i);
8846 wxString* s = wxString_in_helper(item);
8847 if (PyErr_Occurred()) SWIG_fail;
8848 arg5->Add(*s);
8849 delete s;
8850 Py_DECREF(item);
8851 }
8852 }
8853 }
8854 if (obj5) {
8855 ecode6 = SWIG_AsVal_long(obj5, &val6);
8856 if (!SWIG_IsOK(ecode6)) {
8857 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8858 }
8859 arg6 = static_cast< long >(val6);
8860 }
8861 if (obj6) {
8862 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8863 if (!SWIG_IsOK(res7)) {
8864 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8865 }
8866 if (!argp7) {
8867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8868 }
8869 arg7 = reinterpret_cast< wxValidator * >(argp7);
8870 }
8871 if (obj7) {
8872 {
8873 arg8 = wxString_in_helper(obj7);
8874 if (arg8 == NULL) SWIG_fail;
8875 temp8 = true;
8876 }
8877 }
8878 {
8879 if (!wxPyCheckForApp()) SWIG_fail;
8880 PyThreadState* __tstate = wxPyBeginAllowThreads();
8881 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8882 wxPyEndAllowThreads(__tstate);
8883 if (PyErr_Occurred()) SWIG_fail;
8884 }
8885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8886 {
8887 if (temp5) delete arg5;
8888 }
8889 {
8890 if (temp8)
8891 delete arg8;
8892 }
8893 return resultobj;
8894 fail:
8895 {
8896 if (temp5) delete arg5;
8897 }
8898 {
8899 if (temp8)
8900 delete arg8;
8901 }
8902 return NULL;
8903 }
8904
8905
8906 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8907 PyObject *resultobj = 0;
8908 wxListBox *result = 0 ;
8909
8910 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8911 {
8912 if (!wxPyCheckForApp()) SWIG_fail;
8913 PyThreadState* __tstate = wxPyBeginAllowThreads();
8914 result = (wxListBox *)new wxListBox();
8915 wxPyEndAllowThreads(__tstate);
8916 if (PyErr_Occurred()) SWIG_fail;
8917 }
8918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8919 return resultobj;
8920 fail:
8921 return NULL;
8922 }
8923
8924
8925 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8926 PyObject *resultobj = 0;
8927 wxListBox *arg1 = (wxListBox *) 0 ;
8928 wxWindow *arg2 = (wxWindow *) 0 ;
8929 int arg3 = (int) -1 ;
8930 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8931 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8932 wxSize const &arg5_defvalue = wxDefaultSize ;
8933 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8934 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8935 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8936 long arg7 = (long) 0 ;
8937 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8938 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8939 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8940 wxString *arg9 = (wxString *) &arg9_defvalue ;
8941 bool result;
8942 void *argp1 = 0 ;
8943 int res1 = 0 ;
8944 void *argp2 = 0 ;
8945 int res2 = 0 ;
8946 int val3 ;
8947 int ecode3 = 0 ;
8948 wxPoint temp4 ;
8949 wxSize temp5 ;
8950 bool temp6 = false ;
8951 long val7 ;
8952 int ecode7 = 0 ;
8953 void *argp8 = 0 ;
8954 int res8 = 0 ;
8955 bool temp9 = false ;
8956 PyObject * obj0 = 0 ;
8957 PyObject * obj1 = 0 ;
8958 PyObject * obj2 = 0 ;
8959 PyObject * obj3 = 0 ;
8960 PyObject * obj4 = 0 ;
8961 PyObject * obj5 = 0 ;
8962 PyObject * obj6 = 0 ;
8963 PyObject * obj7 = 0 ;
8964 PyObject * obj8 = 0 ;
8965 char * kwnames[] = {
8966 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8967 };
8968
8969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8971 if (!SWIG_IsOK(res1)) {
8972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8973 }
8974 arg1 = reinterpret_cast< wxListBox * >(argp1);
8975 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8976 if (!SWIG_IsOK(res2)) {
8977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8978 }
8979 arg2 = reinterpret_cast< wxWindow * >(argp2);
8980 if (obj2) {
8981 ecode3 = SWIG_AsVal_int(obj2, &val3);
8982 if (!SWIG_IsOK(ecode3)) {
8983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8984 }
8985 arg3 = static_cast< int >(val3);
8986 }
8987 if (obj3) {
8988 {
8989 arg4 = &temp4;
8990 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8991 }
8992 }
8993 if (obj4) {
8994 {
8995 arg5 = &temp5;
8996 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8997 }
8998 }
8999 if (obj5) {
9000 {
9001 if (! PySequence_Check(obj5)) {
9002 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9003 SWIG_fail;
9004 }
9005 arg6 = new wxArrayString;
9006 temp6 = true;
9007 int i, len=PySequence_Length(obj5);
9008 for (i=0; i<len; i++) {
9009 PyObject* item = PySequence_GetItem(obj5, i);
9010 wxString* s = wxString_in_helper(item);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 arg6->Add(*s);
9013 delete s;
9014 Py_DECREF(item);
9015 }
9016 }
9017 }
9018 if (obj6) {
9019 ecode7 = SWIG_AsVal_long(obj6, &val7);
9020 if (!SWIG_IsOK(ecode7)) {
9021 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9022 }
9023 arg7 = static_cast< long >(val7);
9024 }
9025 if (obj7) {
9026 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9027 if (!SWIG_IsOK(res8)) {
9028 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9029 }
9030 if (!argp8) {
9031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9032 }
9033 arg8 = reinterpret_cast< wxValidator * >(argp8);
9034 }
9035 if (obj8) {
9036 {
9037 arg9 = wxString_in_helper(obj8);
9038 if (arg9 == NULL) SWIG_fail;
9039 temp9 = true;
9040 }
9041 }
9042 {
9043 PyThreadState* __tstate = wxPyBeginAllowThreads();
9044 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9045 wxPyEndAllowThreads(__tstate);
9046 if (PyErr_Occurred()) SWIG_fail;
9047 }
9048 {
9049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9050 }
9051 {
9052 if (temp6) delete arg6;
9053 }
9054 {
9055 if (temp9)
9056 delete arg9;
9057 }
9058 return resultobj;
9059 fail:
9060 {
9061 if (temp6) delete arg6;
9062 }
9063 {
9064 if (temp9)
9065 delete arg9;
9066 }
9067 return NULL;
9068 }
9069
9070
9071 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9072 PyObject *resultobj = 0;
9073 wxListBox *arg1 = (wxListBox *) 0 ;
9074 wxString *arg2 = 0 ;
9075 int arg3 ;
9076 PyObject *arg4 = (PyObject *) NULL ;
9077 void *argp1 = 0 ;
9078 int res1 = 0 ;
9079 bool temp2 = false ;
9080 int val3 ;
9081 int ecode3 = 0 ;
9082 PyObject * obj0 = 0 ;
9083 PyObject * obj1 = 0 ;
9084 PyObject * obj2 = 0 ;
9085 PyObject * obj3 = 0 ;
9086 char * kwnames[] = {
9087 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9088 };
9089
9090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9092 if (!SWIG_IsOK(res1)) {
9093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9094 }
9095 arg1 = reinterpret_cast< wxListBox * >(argp1);
9096 {
9097 arg2 = wxString_in_helper(obj1);
9098 if (arg2 == NULL) SWIG_fail;
9099 temp2 = true;
9100 }
9101 ecode3 = SWIG_AsVal_int(obj2, &val3);
9102 if (!SWIG_IsOK(ecode3)) {
9103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9104 }
9105 arg3 = static_cast< int >(val3);
9106 if (obj3) {
9107 arg4 = obj3;
9108 }
9109 {
9110 PyThreadState* __tstate = wxPyBeginAllowThreads();
9111 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9112 wxPyEndAllowThreads(__tstate);
9113 if (PyErr_Occurred()) SWIG_fail;
9114 }
9115 resultobj = SWIG_Py_Void();
9116 {
9117 if (temp2)
9118 delete arg2;
9119 }
9120 return resultobj;
9121 fail:
9122 {
9123 if (temp2)
9124 delete arg2;
9125 }
9126 return NULL;
9127 }
9128
9129
9130 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9131 PyObject *resultobj = 0;
9132 wxListBox *arg1 = (wxListBox *) 0 ;
9133 wxArrayString *arg2 = 0 ;
9134 unsigned int arg3 ;
9135 void *argp1 = 0 ;
9136 int res1 = 0 ;
9137 bool temp2 = false ;
9138 unsigned int val3 ;
9139 int ecode3 = 0 ;
9140 PyObject * obj0 = 0 ;
9141 PyObject * obj1 = 0 ;
9142 PyObject * obj2 = 0 ;
9143 char * kwnames[] = {
9144 (char *) "self",(char *) "items",(char *) "pos", NULL
9145 };
9146
9147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9149 if (!SWIG_IsOK(res1)) {
9150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9151 }
9152 arg1 = reinterpret_cast< wxListBox * >(argp1);
9153 {
9154 if (! PySequence_Check(obj1)) {
9155 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9156 SWIG_fail;
9157 }
9158 arg2 = new wxArrayString;
9159 temp2 = true;
9160 int i, len=PySequence_Length(obj1);
9161 for (i=0; i<len; i++) {
9162 PyObject* item = PySequence_GetItem(obj1, i);
9163 wxString* s = wxString_in_helper(item);
9164 if (PyErr_Occurred()) SWIG_fail;
9165 arg2->Add(*s);
9166 delete s;
9167 Py_DECREF(item);
9168 }
9169 }
9170 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9171 if (!SWIG_IsOK(ecode3)) {
9172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9173 }
9174 arg3 = static_cast< unsigned int >(val3);
9175 {
9176 PyThreadState* __tstate = wxPyBeginAllowThreads();
9177 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9178 wxPyEndAllowThreads(__tstate);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 }
9181 resultobj = SWIG_Py_Void();
9182 {
9183 if (temp2) delete arg2;
9184 }
9185 return resultobj;
9186 fail:
9187 {
9188 if (temp2) delete arg2;
9189 }
9190 return NULL;
9191 }
9192
9193
9194 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9195 PyObject *resultobj = 0;
9196 wxListBox *arg1 = (wxListBox *) 0 ;
9197 wxArrayString *arg2 = 0 ;
9198 void *argp1 = 0 ;
9199 int res1 = 0 ;
9200 bool temp2 = false ;
9201 PyObject * obj0 = 0 ;
9202 PyObject * obj1 = 0 ;
9203 char * kwnames[] = {
9204 (char *) "self",(char *) "items", NULL
9205 };
9206
9207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9209 if (!SWIG_IsOK(res1)) {
9210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9211 }
9212 arg1 = reinterpret_cast< wxListBox * >(argp1);
9213 {
9214 if (! PySequence_Check(obj1)) {
9215 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9216 SWIG_fail;
9217 }
9218 arg2 = new wxArrayString;
9219 temp2 = true;
9220 int i, len=PySequence_Length(obj1);
9221 for (i=0; i<len; i++) {
9222 PyObject* item = PySequence_GetItem(obj1, i);
9223 wxString* s = wxString_in_helper(item);
9224 if (PyErr_Occurred()) SWIG_fail;
9225 arg2->Add(*s);
9226 delete s;
9227 Py_DECREF(item);
9228 }
9229 }
9230 {
9231 PyThreadState* __tstate = wxPyBeginAllowThreads();
9232 (arg1)->Set((wxArrayString const &)*arg2);
9233 wxPyEndAllowThreads(__tstate);
9234 if (PyErr_Occurred()) SWIG_fail;
9235 }
9236 resultobj = SWIG_Py_Void();
9237 {
9238 if (temp2) delete arg2;
9239 }
9240 return resultobj;
9241 fail:
9242 {
9243 if (temp2) delete arg2;
9244 }
9245 return NULL;
9246 }
9247
9248
9249 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9250 PyObject *resultobj = 0;
9251 wxListBox *arg1 = (wxListBox *) 0 ;
9252 int arg2 ;
9253 bool result;
9254 void *argp1 = 0 ;
9255 int res1 = 0 ;
9256 int val2 ;
9257 int ecode2 = 0 ;
9258 PyObject * obj0 = 0 ;
9259 PyObject * obj1 = 0 ;
9260 char * kwnames[] = {
9261 (char *) "self",(char *) "n", NULL
9262 };
9263
9264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9266 if (!SWIG_IsOK(res1)) {
9267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9268 }
9269 arg1 = reinterpret_cast< wxListBox * >(argp1);
9270 ecode2 = SWIG_AsVal_int(obj1, &val2);
9271 if (!SWIG_IsOK(ecode2)) {
9272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9273 }
9274 arg2 = static_cast< int >(val2);
9275 {
9276 PyThreadState* __tstate = wxPyBeginAllowThreads();
9277 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9278 wxPyEndAllowThreads(__tstate);
9279 if (PyErr_Occurred()) SWIG_fail;
9280 }
9281 {
9282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9283 }
9284 return resultobj;
9285 fail:
9286 return NULL;
9287 }
9288
9289
9290 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9291 PyObject *resultobj = 0;
9292 wxListBox *arg1 = (wxListBox *) 0 ;
9293 int arg2 ;
9294 bool arg3 = (bool) true ;
9295 void *argp1 = 0 ;
9296 int res1 = 0 ;
9297 int val2 ;
9298 int ecode2 = 0 ;
9299 bool val3 ;
9300 int ecode3 = 0 ;
9301 PyObject * obj0 = 0 ;
9302 PyObject * obj1 = 0 ;
9303 PyObject * obj2 = 0 ;
9304 char * kwnames[] = {
9305 (char *) "self",(char *) "n",(char *) "select", NULL
9306 };
9307
9308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9310 if (!SWIG_IsOK(res1)) {
9311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9312 }
9313 arg1 = reinterpret_cast< wxListBox * >(argp1);
9314 ecode2 = SWIG_AsVal_int(obj1, &val2);
9315 if (!SWIG_IsOK(ecode2)) {
9316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9317 }
9318 arg2 = static_cast< int >(val2);
9319 if (obj2) {
9320 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9321 if (!SWIG_IsOK(ecode3)) {
9322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9323 }
9324 arg3 = static_cast< bool >(val3);
9325 }
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 (arg1)->SetSelection(arg2,arg3);
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 resultobj = SWIG_Py_Void();
9333 return resultobj;
9334 fail:
9335 return NULL;
9336 }
9337
9338
9339 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9340 PyObject *resultobj = 0;
9341 wxListBox *arg1 = (wxListBox *) 0 ;
9342 int arg2 ;
9343 void *argp1 = 0 ;
9344 int res1 = 0 ;
9345 int val2 ;
9346 int ecode2 = 0 ;
9347 PyObject * obj0 = 0 ;
9348 PyObject * obj1 = 0 ;
9349 char * kwnames[] = {
9350 (char *) "self",(char *) "n", NULL
9351 };
9352
9353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9355 if (!SWIG_IsOK(res1)) {
9356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9357 }
9358 arg1 = reinterpret_cast< wxListBox * >(argp1);
9359 ecode2 = SWIG_AsVal_int(obj1, &val2);
9360 if (!SWIG_IsOK(ecode2)) {
9361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9362 }
9363 arg2 = static_cast< int >(val2);
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 (arg1)->Select(arg2);
9367 wxPyEndAllowThreads(__tstate);
9368 if (PyErr_Occurred()) SWIG_fail;
9369 }
9370 resultobj = SWIG_Py_Void();
9371 return resultobj;
9372 fail:
9373 return NULL;
9374 }
9375
9376
9377 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9378 PyObject *resultobj = 0;
9379 wxListBox *arg1 = (wxListBox *) 0 ;
9380 int arg2 ;
9381 void *argp1 = 0 ;
9382 int res1 = 0 ;
9383 int val2 ;
9384 int ecode2 = 0 ;
9385 PyObject * obj0 = 0 ;
9386 PyObject * obj1 = 0 ;
9387 char * kwnames[] = {
9388 (char *) "self",(char *) "n", NULL
9389 };
9390
9391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9393 if (!SWIG_IsOK(res1)) {
9394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9395 }
9396 arg1 = reinterpret_cast< wxListBox * >(argp1);
9397 ecode2 = SWIG_AsVal_int(obj1, &val2);
9398 if (!SWIG_IsOK(ecode2)) {
9399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9400 }
9401 arg2 = static_cast< int >(val2);
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 (arg1)->Deselect(arg2);
9405 wxPyEndAllowThreads(__tstate);
9406 if (PyErr_Occurred()) SWIG_fail;
9407 }
9408 resultobj = SWIG_Py_Void();
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj = 0;
9417 wxListBox *arg1 = (wxListBox *) 0 ;
9418 int arg2 = (int) -1 ;
9419 void *argp1 = 0 ;
9420 int res1 = 0 ;
9421 int val2 ;
9422 int ecode2 = 0 ;
9423 PyObject * obj0 = 0 ;
9424 PyObject * obj1 = 0 ;
9425 char * kwnames[] = {
9426 (char *) "self",(char *) "itemToLeaveSelected", NULL
9427 };
9428
9429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9431 if (!SWIG_IsOK(res1)) {
9432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9433 }
9434 arg1 = reinterpret_cast< wxListBox * >(argp1);
9435 if (obj1) {
9436 ecode2 = SWIG_AsVal_int(obj1, &val2);
9437 if (!SWIG_IsOK(ecode2)) {
9438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9439 }
9440 arg2 = static_cast< int >(val2);
9441 }
9442 {
9443 PyThreadState* __tstate = wxPyBeginAllowThreads();
9444 (arg1)->DeselectAll(arg2);
9445 wxPyEndAllowThreads(__tstate);
9446 if (PyErr_Occurred()) SWIG_fail;
9447 }
9448 resultobj = SWIG_Py_Void();
9449 return resultobj;
9450 fail:
9451 return NULL;
9452 }
9453
9454
9455 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9456 PyObject *resultobj = 0;
9457 wxListBox *arg1 = (wxListBox *) 0 ;
9458 wxString *arg2 = 0 ;
9459 bool arg3 = (bool) true ;
9460 bool result;
9461 void *argp1 = 0 ;
9462 int res1 = 0 ;
9463 bool temp2 = false ;
9464 bool val3 ;
9465 int ecode3 = 0 ;
9466 PyObject * obj0 = 0 ;
9467 PyObject * obj1 = 0 ;
9468 PyObject * obj2 = 0 ;
9469 char * kwnames[] = {
9470 (char *) "self",(char *) "s",(char *) "select", NULL
9471 };
9472
9473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9475 if (!SWIG_IsOK(res1)) {
9476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9477 }
9478 arg1 = reinterpret_cast< wxListBox * >(argp1);
9479 {
9480 arg2 = wxString_in_helper(obj1);
9481 if (arg2 == NULL) SWIG_fail;
9482 temp2 = true;
9483 }
9484 if (obj2) {
9485 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9486 if (!SWIG_IsOK(ecode3)) {
9487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9488 }
9489 arg3 = static_cast< bool >(val3);
9490 }
9491 {
9492 PyThreadState* __tstate = wxPyBeginAllowThreads();
9493 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9494 wxPyEndAllowThreads(__tstate);
9495 if (PyErr_Occurred()) SWIG_fail;
9496 }
9497 {
9498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9499 }
9500 {
9501 if (temp2)
9502 delete arg2;
9503 }
9504 return resultobj;
9505 fail:
9506 {
9507 if (temp2)
9508 delete arg2;
9509 }
9510 return NULL;
9511 }
9512
9513
9514 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9515 PyObject *resultobj = 0;
9516 wxListBox *arg1 = (wxListBox *) 0 ;
9517 PyObject *result = 0 ;
9518 void *argp1 = 0 ;
9519 int res1 = 0 ;
9520 PyObject *swig_obj[1] ;
9521
9522 if (!args) SWIG_fail;
9523 swig_obj[0] = args;
9524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9525 if (!SWIG_IsOK(res1)) {
9526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9527 }
9528 arg1 = reinterpret_cast< wxListBox * >(argp1);
9529 {
9530 PyThreadState* __tstate = wxPyBeginAllowThreads();
9531 result = (PyObject *)wxListBox_GetSelections(arg1);
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 resultobj = result;
9536 return resultobj;
9537 fail:
9538 return NULL;
9539 }
9540
9541
9542 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9543 PyObject *resultobj = 0;
9544 wxListBox *arg1 = (wxListBox *) 0 ;
9545 int arg2 ;
9546 void *argp1 = 0 ;
9547 int res1 = 0 ;
9548 int val2 ;
9549 int ecode2 = 0 ;
9550 PyObject * obj0 = 0 ;
9551 PyObject * obj1 = 0 ;
9552 char * kwnames[] = {
9553 (char *) "self",(char *) "n", NULL
9554 };
9555
9556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9558 if (!SWIG_IsOK(res1)) {
9559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9560 }
9561 arg1 = reinterpret_cast< wxListBox * >(argp1);
9562 ecode2 = SWIG_AsVal_int(obj1, &val2);
9563 if (!SWIG_IsOK(ecode2)) {
9564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9565 }
9566 arg2 = static_cast< int >(val2);
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 (arg1)->SetFirstItem(arg2);
9570 wxPyEndAllowThreads(__tstate);
9571 if (PyErr_Occurred()) SWIG_fail;
9572 }
9573 resultobj = SWIG_Py_Void();
9574 return resultobj;
9575 fail:
9576 return NULL;
9577 }
9578
9579
9580 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9581 PyObject *resultobj = 0;
9582 wxListBox *arg1 = (wxListBox *) 0 ;
9583 wxString *arg2 = 0 ;
9584 void *argp1 = 0 ;
9585 int res1 = 0 ;
9586 bool temp2 = false ;
9587 PyObject * obj0 = 0 ;
9588 PyObject * obj1 = 0 ;
9589 char * kwnames[] = {
9590 (char *) "self",(char *) "s", NULL
9591 };
9592
9593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9595 if (!SWIG_IsOK(res1)) {
9596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9597 }
9598 arg1 = reinterpret_cast< wxListBox * >(argp1);
9599 {
9600 arg2 = wxString_in_helper(obj1);
9601 if (arg2 == NULL) SWIG_fail;
9602 temp2 = true;
9603 }
9604 {
9605 PyThreadState* __tstate = wxPyBeginAllowThreads();
9606 (arg1)->SetFirstItem((wxString const &)*arg2);
9607 wxPyEndAllowThreads(__tstate);
9608 if (PyErr_Occurred()) SWIG_fail;
9609 }
9610 resultobj = SWIG_Py_Void();
9611 {
9612 if (temp2)
9613 delete arg2;
9614 }
9615 return resultobj;
9616 fail:
9617 {
9618 if (temp2)
9619 delete arg2;
9620 }
9621 return NULL;
9622 }
9623
9624
9625 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9626 PyObject *resultobj = 0;
9627 wxListBox *arg1 = (wxListBox *) 0 ;
9628 int arg2 ;
9629 void *argp1 = 0 ;
9630 int res1 = 0 ;
9631 int val2 ;
9632 int ecode2 = 0 ;
9633 PyObject * obj0 = 0 ;
9634 PyObject * obj1 = 0 ;
9635 char * kwnames[] = {
9636 (char *) "self",(char *) "n", NULL
9637 };
9638
9639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9641 if (!SWIG_IsOK(res1)) {
9642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9643 }
9644 arg1 = reinterpret_cast< wxListBox * >(argp1);
9645 ecode2 = SWIG_AsVal_int(obj1, &val2);
9646 if (!SWIG_IsOK(ecode2)) {
9647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9648 }
9649 arg2 = static_cast< int >(val2);
9650 {
9651 PyThreadState* __tstate = wxPyBeginAllowThreads();
9652 (arg1)->EnsureVisible(arg2);
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 resultobj = SWIG_Py_Void();
9657 return resultobj;
9658 fail:
9659 return NULL;
9660 }
9661
9662
9663 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9664 PyObject *resultobj = 0;
9665 wxListBox *arg1 = (wxListBox *) 0 ;
9666 wxString *arg2 = 0 ;
9667 void *argp1 = 0 ;
9668 int res1 = 0 ;
9669 bool temp2 = false ;
9670 PyObject * obj0 = 0 ;
9671 PyObject * obj1 = 0 ;
9672 char * kwnames[] = {
9673 (char *) "self",(char *) "s", NULL
9674 };
9675
9676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9678 if (!SWIG_IsOK(res1)) {
9679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9680 }
9681 arg1 = reinterpret_cast< wxListBox * >(argp1);
9682 {
9683 arg2 = wxString_in_helper(obj1);
9684 if (arg2 == NULL) SWIG_fail;
9685 temp2 = true;
9686 }
9687 {
9688 PyThreadState* __tstate = wxPyBeginAllowThreads();
9689 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9690 wxPyEndAllowThreads(__tstate);
9691 if (PyErr_Occurred()) SWIG_fail;
9692 }
9693 resultobj = SWIG_Py_Void();
9694 {
9695 if (temp2)
9696 delete arg2;
9697 }
9698 return resultobj;
9699 fail:
9700 {
9701 if (temp2)
9702 delete arg2;
9703 }
9704 return NULL;
9705 }
9706
9707
9708 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9709 PyObject *resultobj = 0;
9710 wxListBox *arg1 = (wxListBox *) 0 ;
9711 bool result;
9712 void *argp1 = 0 ;
9713 int res1 = 0 ;
9714 PyObject *swig_obj[1] ;
9715
9716 if (!args) SWIG_fail;
9717 swig_obj[0] = args;
9718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9719 if (!SWIG_IsOK(res1)) {
9720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9721 }
9722 arg1 = reinterpret_cast< wxListBox * >(argp1);
9723 {
9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
9725 result = (bool)((wxListBox const *)arg1)->IsSorted();
9726 wxPyEndAllowThreads(__tstate);
9727 if (PyErr_Occurred()) SWIG_fail;
9728 }
9729 {
9730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9731 }
9732 return resultobj;
9733 fail:
9734 return NULL;
9735 }
9736
9737
9738 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9739 PyObject *resultobj = 0;
9740 wxListBox *arg1 = (wxListBox *) 0 ;
9741 wxPoint *arg2 = 0 ;
9742 int result;
9743 void *argp1 = 0 ;
9744 int res1 = 0 ;
9745 wxPoint temp2 ;
9746 PyObject * obj0 = 0 ;
9747 PyObject * obj1 = 0 ;
9748 char * kwnames[] = {
9749 (char *) "self",(char *) "pt", NULL
9750 };
9751
9752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9754 if (!SWIG_IsOK(res1)) {
9755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9756 }
9757 arg1 = reinterpret_cast< wxListBox * >(argp1);
9758 {
9759 arg2 = &temp2;
9760 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9761 }
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_From_int(static_cast< int >(result));
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9776 PyObject *resultobj = 0;
9777 wxListBox *arg1 = (wxListBox *) 0 ;
9778 int arg2 ;
9779 wxColour *arg3 = 0 ;
9780 void *argp1 = 0 ;
9781 int res1 = 0 ;
9782 int val2 ;
9783 int ecode2 = 0 ;
9784 wxColour temp3 ;
9785 PyObject * obj0 = 0 ;
9786 PyObject * obj1 = 0 ;
9787 PyObject * obj2 = 0 ;
9788 char * kwnames[] = {
9789 (char *) "self",(char *) "item",(char *) "c", NULL
9790 };
9791
9792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9794 if (!SWIG_IsOK(res1)) {
9795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9796 }
9797 arg1 = reinterpret_cast< wxListBox * >(argp1);
9798 ecode2 = SWIG_AsVal_int(obj1, &val2);
9799 if (!SWIG_IsOK(ecode2)) {
9800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9801 }
9802 arg2 = static_cast< int >(val2);
9803 {
9804 arg3 = &temp3;
9805 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9806 }
9807 {
9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
9809 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9810 wxPyEndAllowThreads(__tstate);
9811 if (PyErr_Occurred()) SWIG_fail;
9812 }
9813 resultobj = SWIG_Py_Void();
9814 return resultobj;
9815 fail:
9816 return NULL;
9817 }
9818
9819
9820 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9821 PyObject *resultobj = 0;
9822 wxListBox *arg1 = (wxListBox *) 0 ;
9823 int arg2 ;
9824 wxColour *arg3 = 0 ;
9825 void *argp1 = 0 ;
9826 int res1 = 0 ;
9827 int val2 ;
9828 int ecode2 = 0 ;
9829 wxColour temp3 ;
9830 PyObject * obj0 = 0 ;
9831 PyObject * obj1 = 0 ;
9832 PyObject * obj2 = 0 ;
9833 char * kwnames[] = {
9834 (char *) "self",(char *) "item",(char *) "c", NULL
9835 };
9836
9837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9839 if (!SWIG_IsOK(res1)) {
9840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9841 }
9842 arg1 = reinterpret_cast< wxListBox * >(argp1);
9843 ecode2 = SWIG_AsVal_int(obj1, &val2);
9844 if (!SWIG_IsOK(ecode2)) {
9845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9846 }
9847 arg2 = static_cast< int >(val2);
9848 {
9849 arg3 = &temp3;
9850 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9851 }
9852 {
9853 PyThreadState* __tstate = wxPyBeginAllowThreads();
9854 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9855 wxPyEndAllowThreads(__tstate);
9856 if (PyErr_Occurred()) SWIG_fail;
9857 }
9858 resultobj = SWIG_Py_Void();
9859 return resultobj;
9860 fail:
9861 return NULL;
9862 }
9863
9864
9865 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9866 PyObject *resultobj = 0;
9867 wxListBox *arg1 = (wxListBox *) 0 ;
9868 int arg2 ;
9869 wxFont *arg3 = 0 ;
9870 void *argp1 = 0 ;
9871 int res1 = 0 ;
9872 int val2 ;
9873 int ecode2 = 0 ;
9874 void *argp3 = 0 ;
9875 int res3 = 0 ;
9876 PyObject * obj0 = 0 ;
9877 PyObject * obj1 = 0 ;
9878 PyObject * obj2 = 0 ;
9879 char * kwnames[] = {
9880 (char *) "self",(char *) "item",(char *) "f", NULL
9881 };
9882
9883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9885 if (!SWIG_IsOK(res1)) {
9886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9887 }
9888 arg1 = reinterpret_cast< wxListBox * >(argp1);
9889 ecode2 = SWIG_AsVal_int(obj1, &val2);
9890 if (!SWIG_IsOK(ecode2)) {
9891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9892 }
9893 arg2 = static_cast< int >(val2);
9894 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9895 if (!SWIG_IsOK(res3)) {
9896 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9897 }
9898 if (!argp3) {
9899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9900 }
9901 arg3 = reinterpret_cast< wxFont * >(argp3);
9902 {
9903 PyThreadState* __tstate = wxPyBeginAllowThreads();
9904 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9905 wxPyEndAllowThreads(__tstate);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 resultobj = SWIG_Py_Void();
9909 return resultobj;
9910 fail:
9911 return NULL;
9912 }
9913
9914
9915 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9916 PyObject *resultobj = 0;
9917 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9918 SwigValueWrapper<wxVisualAttributes > result;
9919 int val1 ;
9920 int ecode1 = 0 ;
9921 PyObject * obj0 = 0 ;
9922 char * kwnames[] = {
9923 (char *) "variant", NULL
9924 };
9925
9926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9927 if (obj0) {
9928 ecode1 = SWIG_AsVal_int(obj0, &val1);
9929 if (!SWIG_IsOK(ecode1)) {
9930 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9931 }
9932 arg1 = static_cast< wxWindowVariant >(val1);
9933 }
9934 {
9935 if (!wxPyCheckForApp()) SWIG_fail;
9936 PyThreadState* __tstate = wxPyBeginAllowThreads();
9937 result = wxListBox::GetClassDefaultAttributes(arg1);
9938 wxPyEndAllowThreads(__tstate);
9939 if (PyErr_Occurred()) SWIG_fail;
9940 }
9941 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9942 return resultobj;
9943 fail:
9944 return NULL;
9945 }
9946
9947
9948 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9949 PyObject *obj;
9950 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9951 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9952 return SWIG_Py_Void();
9953 }
9954
9955 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9956 return SWIG_Python_InitShadowInstance(args);
9957 }
9958
9959 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9960 PyObject *resultobj = 0;
9961 wxWindow *arg1 = (wxWindow *) 0 ;
9962 int arg2 = (int) -1 ;
9963 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9964 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9965 wxSize const &arg4_defvalue = wxDefaultSize ;
9966 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9967 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9968 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9969 long arg6 = (long) 0 ;
9970 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9971 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9972 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9973 wxString *arg8 = (wxString *) &arg8_defvalue ;
9974 wxCheckListBox *result = 0 ;
9975 void *argp1 = 0 ;
9976 int res1 = 0 ;
9977 int val2 ;
9978 int ecode2 = 0 ;
9979 wxPoint temp3 ;
9980 wxSize temp4 ;
9981 bool temp5 = false ;
9982 long val6 ;
9983 int ecode6 = 0 ;
9984 void *argp7 = 0 ;
9985 int res7 = 0 ;
9986 bool temp8 = false ;
9987 PyObject * obj0 = 0 ;
9988 PyObject * obj1 = 0 ;
9989 PyObject * obj2 = 0 ;
9990 PyObject * obj3 = 0 ;
9991 PyObject * obj4 = 0 ;
9992 PyObject * obj5 = 0 ;
9993 PyObject * obj6 = 0 ;
9994 PyObject * obj7 = 0 ;
9995 char * kwnames[] = {
9996 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9997 };
9998
9999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10001 if (!SWIG_IsOK(res1)) {
10002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10003 }
10004 arg1 = reinterpret_cast< wxWindow * >(argp1);
10005 if (obj1) {
10006 ecode2 = SWIG_AsVal_int(obj1, &val2);
10007 if (!SWIG_IsOK(ecode2)) {
10008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10009 }
10010 arg2 = static_cast< int >(val2);
10011 }
10012 if (obj2) {
10013 {
10014 arg3 = &temp3;
10015 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10016 }
10017 }
10018 if (obj3) {
10019 {
10020 arg4 = &temp4;
10021 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10022 }
10023 }
10024 if (obj4) {
10025 {
10026 if (! PySequence_Check(obj4)) {
10027 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10028 SWIG_fail;
10029 }
10030 arg5 = new wxArrayString;
10031 temp5 = true;
10032 int i, len=PySequence_Length(obj4);
10033 for (i=0; i<len; i++) {
10034 PyObject* item = PySequence_GetItem(obj4, i);
10035 wxString* s = wxString_in_helper(item);
10036 if (PyErr_Occurred()) SWIG_fail;
10037 arg5->Add(*s);
10038 delete s;
10039 Py_DECREF(item);
10040 }
10041 }
10042 }
10043 if (obj5) {
10044 ecode6 = SWIG_AsVal_long(obj5, &val6);
10045 if (!SWIG_IsOK(ecode6)) {
10046 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10047 }
10048 arg6 = static_cast< long >(val6);
10049 }
10050 if (obj6) {
10051 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10052 if (!SWIG_IsOK(res7)) {
10053 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10054 }
10055 if (!argp7) {
10056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10057 }
10058 arg7 = reinterpret_cast< wxValidator * >(argp7);
10059 }
10060 if (obj7) {
10061 {
10062 arg8 = wxString_in_helper(obj7);
10063 if (arg8 == NULL) SWIG_fail;
10064 temp8 = true;
10065 }
10066 }
10067 {
10068 if (!wxPyCheckForApp()) SWIG_fail;
10069 PyThreadState* __tstate = wxPyBeginAllowThreads();
10070 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10071 wxPyEndAllowThreads(__tstate);
10072 if (PyErr_Occurred()) SWIG_fail;
10073 }
10074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10075 {
10076 if (temp5) delete arg5;
10077 }
10078 {
10079 if (temp8)
10080 delete arg8;
10081 }
10082 return resultobj;
10083 fail:
10084 {
10085 if (temp5) delete arg5;
10086 }
10087 {
10088 if (temp8)
10089 delete arg8;
10090 }
10091 return NULL;
10092 }
10093
10094
10095 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10096 PyObject *resultobj = 0;
10097 wxCheckListBox *result = 0 ;
10098
10099 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10100 {
10101 if (!wxPyCheckForApp()) SWIG_fail;
10102 PyThreadState* __tstate = wxPyBeginAllowThreads();
10103 result = (wxCheckListBox *)new wxCheckListBox();
10104 wxPyEndAllowThreads(__tstate);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10108 return resultobj;
10109 fail:
10110 return NULL;
10111 }
10112
10113
10114 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10115 PyObject *resultobj = 0;
10116 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10117 wxWindow *arg2 = (wxWindow *) 0 ;
10118 int arg3 = (int) -1 ;
10119 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10120 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10121 wxSize const &arg5_defvalue = wxDefaultSize ;
10122 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10123 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10124 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10125 long arg7 = (long) 0 ;
10126 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10127 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10128 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10129 wxString *arg9 = (wxString *) &arg9_defvalue ;
10130 bool result;
10131 void *argp1 = 0 ;
10132 int res1 = 0 ;
10133 void *argp2 = 0 ;
10134 int res2 = 0 ;
10135 int val3 ;
10136 int ecode3 = 0 ;
10137 wxPoint temp4 ;
10138 wxSize temp5 ;
10139 bool temp6 = false ;
10140 long val7 ;
10141 int ecode7 = 0 ;
10142 void *argp8 = 0 ;
10143 int res8 = 0 ;
10144 bool temp9 = false ;
10145 PyObject * obj0 = 0 ;
10146 PyObject * obj1 = 0 ;
10147 PyObject * obj2 = 0 ;
10148 PyObject * obj3 = 0 ;
10149 PyObject * obj4 = 0 ;
10150 PyObject * obj5 = 0 ;
10151 PyObject * obj6 = 0 ;
10152 PyObject * obj7 = 0 ;
10153 PyObject * obj8 = 0 ;
10154 char * kwnames[] = {
10155 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10156 };
10157
10158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10160 if (!SWIG_IsOK(res1)) {
10161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10162 }
10163 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10164 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10165 if (!SWIG_IsOK(res2)) {
10166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10167 }
10168 arg2 = reinterpret_cast< wxWindow * >(argp2);
10169 if (obj2) {
10170 ecode3 = SWIG_AsVal_int(obj2, &val3);
10171 if (!SWIG_IsOK(ecode3)) {
10172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10173 }
10174 arg3 = static_cast< int >(val3);
10175 }
10176 if (obj3) {
10177 {
10178 arg4 = &temp4;
10179 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10180 }
10181 }
10182 if (obj4) {
10183 {
10184 arg5 = &temp5;
10185 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10186 }
10187 }
10188 if (obj5) {
10189 {
10190 if (! PySequence_Check(obj5)) {
10191 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10192 SWIG_fail;
10193 }
10194 arg6 = new wxArrayString;
10195 temp6 = true;
10196 int i, len=PySequence_Length(obj5);
10197 for (i=0; i<len; i++) {
10198 PyObject* item = PySequence_GetItem(obj5, i);
10199 wxString* s = wxString_in_helper(item);
10200 if (PyErr_Occurred()) SWIG_fail;
10201 arg6->Add(*s);
10202 delete s;
10203 Py_DECREF(item);
10204 }
10205 }
10206 }
10207 if (obj6) {
10208 ecode7 = SWIG_AsVal_long(obj6, &val7);
10209 if (!SWIG_IsOK(ecode7)) {
10210 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10211 }
10212 arg7 = static_cast< long >(val7);
10213 }
10214 if (obj7) {
10215 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10216 if (!SWIG_IsOK(res8)) {
10217 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10218 }
10219 if (!argp8) {
10220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10221 }
10222 arg8 = reinterpret_cast< wxValidator * >(argp8);
10223 }
10224 if (obj8) {
10225 {
10226 arg9 = wxString_in_helper(obj8);
10227 if (arg9 == NULL) SWIG_fail;
10228 temp9 = true;
10229 }
10230 }
10231 {
10232 PyThreadState* __tstate = wxPyBeginAllowThreads();
10233 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 {
10238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10239 }
10240 {
10241 if (temp6) delete arg6;
10242 }
10243 {
10244 if (temp9)
10245 delete arg9;
10246 }
10247 return resultobj;
10248 fail:
10249 {
10250 if (temp6) delete arg6;
10251 }
10252 {
10253 if (temp9)
10254 delete arg9;
10255 }
10256 return NULL;
10257 }
10258
10259
10260 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10261 PyObject *resultobj = 0;
10262 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10263 unsigned int arg2 ;
10264 bool result;
10265 void *argp1 = 0 ;
10266 int res1 = 0 ;
10267 unsigned int val2 ;
10268 int ecode2 = 0 ;
10269 PyObject * obj0 = 0 ;
10270 PyObject * obj1 = 0 ;
10271 char * kwnames[] = {
10272 (char *) "self",(char *) "index", NULL
10273 };
10274
10275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10277 if (!SWIG_IsOK(res1)) {
10278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10279 }
10280 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10281 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10282 if (!SWIG_IsOK(ecode2)) {
10283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10284 }
10285 arg2 = static_cast< unsigned int >(val2);
10286 {
10287 PyThreadState* __tstate = wxPyBeginAllowThreads();
10288 result = (bool)(arg1)->IsChecked(arg2);
10289 wxPyEndAllowThreads(__tstate);
10290 if (PyErr_Occurred()) SWIG_fail;
10291 }
10292 {
10293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10294 }
10295 return resultobj;
10296 fail:
10297 return NULL;
10298 }
10299
10300
10301 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10302 PyObject *resultobj = 0;
10303 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10304 unsigned int arg2 ;
10305 int arg3 = (int) true ;
10306 void *argp1 = 0 ;
10307 int res1 = 0 ;
10308 unsigned int val2 ;
10309 int ecode2 = 0 ;
10310 int val3 ;
10311 int ecode3 = 0 ;
10312 PyObject * obj0 = 0 ;
10313 PyObject * obj1 = 0 ;
10314 PyObject * obj2 = 0 ;
10315 char * kwnames[] = {
10316 (char *) "self",(char *) "index",(char *) "check", NULL
10317 };
10318
10319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10321 if (!SWIG_IsOK(res1)) {
10322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10323 }
10324 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10325 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10326 if (!SWIG_IsOK(ecode2)) {
10327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10328 }
10329 arg2 = static_cast< unsigned int >(val2);
10330 if (obj2) {
10331 ecode3 = SWIG_AsVal_int(obj2, &val3);
10332 if (!SWIG_IsOK(ecode3)) {
10333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10334 }
10335 arg3 = static_cast< int >(val3);
10336 }
10337 {
10338 PyThreadState* __tstate = wxPyBeginAllowThreads();
10339 (arg1)->Check(arg2,arg3);
10340 wxPyEndAllowThreads(__tstate);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 }
10343 resultobj = SWIG_Py_Void();
10344 return resultobj;
10345 fail:
10346 return NULL;
10347 }
10348
10349
10350 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10351 PyObject *obj;
10352 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10353 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10354 return SWIG_Py_Void();
10355 }
10356
10357 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10358 return SWIG_Python_InitShadowInstance(args);
10359 }
10360
10361 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10362 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10363 return 1;
10364 }
10365
10366
10367 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10368 PyObject *pyobj = 0;
10369
10370 {
10371 #if wxUSE_UNICODE
10372 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10373 #else
10374 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10375 #endif
10376 }
10377 return pyobj;
10378 }
10379
10380
10381 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10382 PyObject *resultobj = 0;
10383 wxColour const &arg1_defvalue = wxNullColour ;
10384 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10385 wxColour const &arg2_defvalue = wxNullColour ;
10386 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10387 wxFont const &arg3_defvalue = wxNullFont ;
10388 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10389 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10390 wxTextAttr *result = 0 ;
10391 wxColour temp1 ;
10392 wxColour temp2 ;
10393 void *argp3 = 0 ;
10394 int res3 = 0 ;
10395 int val4 ;
10396 int ecode4 = 0 ;
10397 PyObject * obj0 = 0 ;
10398 PyObject * obj1 = 0 ;
10399 PyObject * obj2 = 0 ;
10400 PyObject * obj3 = 0 ;
10401 char * kwnames[] = {
10402 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10403 };
10404
10405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10406 if (obj0) {
10407 {
10408 arg1 = &temp1;
10409 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10410 }
10411 }
10412 if (obj1) {
10413 {
10414 arg2 = &temp2;
10415 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10416 }
10417 }
10418 if (obj2) {
10419 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10420 if (!SWIG_IsOK(res3)) {
10421 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10422 }
10423 if (!argp3) {
10424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10425 }
10426 arg3 = reinterpret_cast< wxFont * >(argp3);
10427 }
10428 if (obj3) {
10429 ecode4 = SWIG_AsVal_int(obj3, &val4);
10430 if (!SWIG_IsOK(ecode4)) {
10431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10432 }
10433 arg4 = static_cast< wxTextAttrAlignment >(val4);
10434 }
10435 {
10436 PyThreadState* __tstate = wxPyBeginAllowThreads();
10437 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10438 wxPyEndAllowThreads(__tstate);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10442 return resultobj;
10443 fail:
10444 return NULL;
10445 }
10446
10447
10448 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10449 PyObject *resultobj = 0;
10450 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10451 void *argp1 = 0 ;
10452 int res1 = 0 ;
10453 PyObject *swig_obj[1] ;
10454
10455 if (!args) SWIG_fail;
10456 swig_obj[0] = args;
10457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10458 if (!SWIG_IsOK(res1)) {
10459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10460 }
10461 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10462 {
10463 PyThreadState* __tstate = wxPyBeginAllowThreads();
10464 delete arg1;
10465
10466 wxPyEndAllowThreads(__tstate);
10467 if (PyErr_Occurred()) SWIG_fail;
10468 }
10469 resultobj = SWIG_Py_Void();
10470 return resultobj;
10471 fail:
10472 return NULL;
10473 }
10474
10475
10476 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10477 PyObject *resultobj = 0;
10478 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10479 void *argp1 = 0 ;
10480 int res1 = 0 ;
10481 PyObject *swig_obj[1] ;
10482
10483 if (!args) SWIG_fail;
10484 swig_obj[0] = args;
10485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10486 if (!SWIG_IsOK(res1)) {
10487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10488 }
10489 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10490 {
10491 PyThreadState* __tstate = wxPyBeginAllowThreads();
10492 (arg1)->Init();
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
10496 resultobj = SWIG_Py_Void();
10497 return resultobj;
10498 fail:
10499 return NULL;
10500 }
10501
10502
10503 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10504 PyObject *resultobj = 0;
10505 wxTextAttr *arg1 = 0 ;
10506 wxTextAttr *arg2 = 0 ;
10507 wxTextAttr result;
10508 void *argp1 = 0 ;
10509 int res1 = 0 ;
10510 void *argp2 = 0 ;
10511 int res2 = 0 ;
10512 PyObject * obj0 = 0 ;
10513 PyObject * obj1 = 0 ;
10514 char * kwnames[] = {
10515 (char *) "base",(char *) "overlay", NULL
10516 };
10517
10518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10519 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10520 if (!SWIG_IsOK(res1)) {
10521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10522 }
10523 if (!argp1) {
10524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10525 }
10526 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10527 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10528 if (!SWIG_IsOK(res2)) {
10529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10530 }
10531 if (!argp2) {
10532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10533 }
10534 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10538 wxPyEndAllowThreads(__tstate);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 }
10541 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10542 return resultobj;
10543 fail:
10544 return NULL;
10545 }
10546
10547
10548 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10549 PyObject *resultobj = 0;
10550 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10551 wxColour *arg2 = 0 ;
10552 void *argp1 = 0 ;
10553 int res1 = 0 ;
10554 wxColour temp2 ;
10555 PyObject * obj0 = 0 ;
10556 PyObject * obj1 = 0 ;
10557 char * kwnames[] = {
10558 (char *) "self",(char *) "colText", NULL
10559 };
10560
10561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10563 if (!SWIG_IsOK(res1)) {
10564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10565 }
10566 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10567 {
10568 arg2 = &temp2;
10569 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10570 }
10571 {
10572 PyThreadState* __tstate = wxPyBeginAllowThreads();
10573 (arg1)->SetTextColour((wxColour const &)*arg2);
10574 wxPyEndAllowThreads(__tstate);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 resultobj = SWIG_Py_Void();
10578 return resultobj;
10579 fail:
10580 return NULL;
10581 }
10582
10583
10584 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10585 PyObject *resultobj = 0;
10586 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10587 wxColour *arg2 = 0 ;
10588 void *argp1 = 0 ;
10589 int res1 = 0 ;
10590 wxColour temp2 ;
10591 PyObject * obj0 = 0 ;
10592 PyObject * obj1 = 0 ;
10593 char * kwnames[] = {
10594 (char *) "self",(char *) "colBack", NULL
10595 };
10596
10597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10599 if (!SWIG_IsOK(res1)) {
10600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10601 }
10602 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10603 {
10604 arg2 = &temp2;
10605 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10606 }
10607 {
10608 PyThreadState* __tstate = wxPyBeginAllowThreads();
10609 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10610 wxPyEndAllowThreads(__tstate);
10611 if (PyErr_Occurred()) SWIG_fail;
10612 }
10613 resultobj = SWIG_Py_Void();
10614 return resultobj;
10615 fail:
10616 return NULL;
10617 }
10618
10619
10620 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10621 PyObject *resultobj = 0;
10622 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10623 wxFont *arg2 = 0 ;
10624 long arg3 = (long) wxTEXT_ATTR_FONT ;
10625 void *argp1 = 0 ;
10626 int res1 = 0 ;
10627 void *argp2 = 0 ;
10628 int res2 = 0 ;
10629 long val3 ;
10630 int ecode3 = 0 ;
10631 PyObject * obj0 = 0 ;
10632 PyObject * obj1 = 0 ;
10633 PyObject * obj2 = 0 ;
10634 char * kwnames[] = {
10635 (char *) "self",(char *) "font",(char *) "flags", NULL
10636 };
10637
10638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10640 if (!SWIG_IsOK(res1)) {
10641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10642 }
10643 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10645 if (!SWIG_IsOK(res2)) {
10646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10647 }
10648 if (!argp2) {
10649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10650 }
10651 arg2 = reinterpret_cast< wxFont * >(argp2);
10652 if (obj2) {
10653 ecode3 = SWIG_AsVal_long(obj2, &val3);
10654 if (!SWIG_IsOK(ecode3)) {
10655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10656 }
10657 arg3 = static_cast< long >(val3);
10658 }
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 resultobj = SWIG_Py_Void();
10666 return resultobj;
10667 fail:
10668 return NULL;
10669 }
10670
10671
10672 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10673 PyObject *resultobj = 0;
10674 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10675 wxTextAttrAlignment arg2 ;
10676 void *argp1 = 0 ;
10677 int res1 = 0 ;
10678 int val2 ;
10679 int ecode2 = 0 ;
10680 PyObject * obj0 = 0 ;
10681 PyObject * obj1 = 0 ;
10682 char * kwnames[] = {
10683 (char *) "self",(char *) "alignment", NULL
10684 };
10685
10686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10688 if (!SWIG_IsOK(res1)) {
10689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10690 }
10691 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10692 ecode2 = SWIG_AsVal_int(obj1, &val2);
10693 if (!SWIG_IsOK(ecode2)) {
10694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10695 }
10696 arg2 = static_cast< wxTextAttrAlignment >(val2);
10697 {
10698 PyThreadState* __tstate = wxPyBeginAllowThreads();
10699 (arg1)->SetAlignment(arg2);
10700 wxPyEndAllowThreads(__tstate);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 }
10703 resultobj = SWIG_Py_Void();
10704 return resultobj;
10705 fail:
10706 return NULL;
10707 }
10708
10709
10710 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10711 PyObject *resultobj = 0;
10712 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10713 wxArrayInt *arg2 = 0 ;
10714 void *argp1 = 0 ;
10715 int res1 = 0 ;
10716 bool temp2 = false ;
10717 PyObject * obj0 = 0 ;
10718 PyObject * obj1 = 0 ;
10719 char * kwnames[] = {
10720 (char *) "self",(char *) "tabs", NULL
10721 };
10722
10723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10725 if (!SWIG_IsOK(res1)) {
10726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10727 }
10728 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10729 {
10730 if (! PySequence_Check(obj1)) {
10731 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10732 SWIG_fail;
10733 }
10734 arg2 = new wxArrayInt;
10735 temp2 = true;
10736 int i, len=PySequence_Length(obj1);
10737 for (i=0; i<len; i++) {
10738 PyObject* item = PySequence_GetItem(obj1, i);
10739 PyObject* number = PyNumber_Int(item);
10740 if (!number) {
10741 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10742 SWIG_fail;
10743 }
10744 arg2->Add(PyInt_AS_LONG(number));
10745 Py_DECREF(item);
10746 Py_DECREF(number);
10747 }
10748 }
10749 {
10750 PyThreadState* __tstate = wxPyBeginAllowThreads();
10751 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10752 wxPyEndAllowThreads(__tstate);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 }
10755 resultobj = SWIG_Py_Void();
10756 {
10757 if (temp2) delete arg2;
10758 }
10759 return resultobj;
10760 fail:
10761 {
10762 if (temp2) delete arg2;
10763 }
10764 return NULL;
10765 }
10766
10767
10768 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10769 PyObject *resultobj = 0;
10770 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10771 int arg2 ;
10772 int arg3 = (int) 0 ;
10773 void *argp1 = 0 ;
10774 int res1 = 0 ;
10775 int val2 ;
10776 int ecode2 = 0 ;
10777 int val3 ;
10778 int ecode3 = 0 ;
10779 PyObject * obj0 = 0 ;
10780 PyObject * obj1 = 0 ;
10781 PyObject * obj2 = 0 ;
10782 char * kwnames[] = {
10783 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10784 };
10785
10786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10788 if (!SWIG_IsOK(res1)) {
10789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10790 }
10791 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10792 ecode2 = SWIG_AsVal_int(obj1, &val2);
10793 if (!SWIG_IsOK(ecode2)) {
10794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10795 }
10796 arg2 = static_cast< int >(val2);
10797 if (obj2) {
10798 ecode3 = SWIG_AsVal_int(obj2, &val3);
10799 if (!SWIG_IsOK(ecode3)) {
10800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10801 }
10802 arg3 = static_cast< int >(val3);
10803 }
10804 {
10805 PyThreadState* __tstate = wxPyBeginAllowThreads();
10806 (arg1)->SetLeftIndent(arg2,arg3);
10807 wxPyEndAllowThreads(__tstate);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 }
10810 resultobj = SWIG_Py_Void();
10811 return resultobj;
10812 fail:
10813 return NULL;
10814 }
10815
10816
10817 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10818 PyObject *resultobj = 0;
10819 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10820 int arg2 ;
10821 void *argp1 = 0 ;
10822 int res1 = 0 ;
10823 int val2 ;
10824 int ecode2 = 0 ;
10825 PyObject * obj0 = 0 ;
10826 PyObject * obj1 = 0 ;
10827 char * kwnames[] = {
10828 (char *) "self",(char *) "indent", NULL
10829 };
10830
10831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10833 if (!SWIG_IsOK(res1)) {
10834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10835 }
10836 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10837 ecode2 = SWIG_AsVal_int(obj1, &val2);
10838 if (!SWIG_IsOK(ecode2)) {
10839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10840 }
10841 arg2 = static_cast< int >(val2);
10842 {
10843 PyThreadState* __tstate = wxPyBeginAllowThreads();
10844 (arg1)->SetRightIndent(arg2);
10845 wxPyEndAllowThreads(__tstate);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 resultobj = SWIG_Py_Void();
10849 return resultobj;
10850 fail:
10851 return NULL;
10852 }
10853
10854
10855 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10856 PyObject *resultobj = 0;
10857 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10858 long arg2 ;
10859 void *argp1 = 0 ;
10860 int res1 = 0 ;
10861 long val2 ;
10862 int ecode2 = 0 ;
10863 PyObject * obj0 = 0 ;
10864 PyObject * obj1 = 0 ;
10865 char * kwnames[] = {
10866 (char *) "self",(char *) "flags", NULL
10867 };
10868
10869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10871 if (!SWIG_IsOK(res1)) {
10872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10873 }
10874 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10875 ecode2 = SWIG_AsVal_long(obj1, &val2);
10876 if (!SWIG_IsOK(ecode2)) {
10877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10878 }
10879 arg2 = static_cast< long >(val2);
10880 {
10881 PyThreadState* __tstate = wxPyBeginAllowThreads();
10882 (arg1)->SetFlags(arg2);
10883 wxPyEndAllowThreads(__tstate);
10884 if (PyErr_Occurred()) SWIG_fail;
10885 }
10886 resultobj = SWIG_Py_Void();
10887 return resultobj;
10888 fail:
10889 return NULL;
10890 }
10891
10892
10893 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10894 PyObject *resultobj = 0;
10895 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10896 bool result;
10897 void *argp1 = 0 ;
10898 int res1 = 0 ;
10899 PyObject *swig_obj[1] ;
10900
10901 if (!args) SWIG_fail;
10902 swig_obj[0] = args;
10903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10904 if (!SWIG_IsOK(res1)) {
10905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10906 }
10907 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10908 {
10909 PyThreadState* __tstate = wxPyBeginAllowThreads();
10910 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10911 wxPyEndAllowThreads(__tstate);
10912 if (PyErr_Occurred()) SWIG_fail;
10913 }
10914 {
10915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10916 }
10917 return resultobj;
10918 fail:
10919 return NULL;
10920 }
10921
10922
10923 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10924 PyObject *resultobj = 0;
10925 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10926 bool result;
10927 void *argp1 = 0 ;
10928 int res1 = 0 ;
10929 PyObject *swig_obj[1] ;
10930
10931 if (!args) SWIG_fail;
10932 swig_obj[0] = args;
10933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10934 if (!SWIG_IsOK(res1)) {
10935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10936 }
10937 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10938 {
10939 PyThreadState* __tstate = wxPyBeginAllowThreads();
10940 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10941 wxPyEndAllowThreads(__tstate);
10942 if (PyErr_Occurred()) SWIG_fail;
10943 }
10944 {
10945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10946 }
10947 return resultobj;
10948 fail:
10949 return NULL;
10950 }
10951
10952
10953 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10954 PyObject *resultobj = 0;
10955 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10956 bool result;
10957 void *argp1 = 0 ;
10958 int res1 = 0 ;
10959 PyObject *swig_obj[1] ;
10960
10961 if (!args) SWIG_fail;
10962 swig_obj[0] = args;
10963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10964 if (!SWIG_IsOK(res1)) {
10965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10966 }
10967 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10968 {
10969 PyThreadState* __tstate = wxPyBeginAllowThreads();
10970 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10971 wxPyEndAllowThreads(__tstate);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 }
10974 {
10975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10976 }
10977 return resultobj;
10978 fail:
10979 return NULL;
10980 }
10981
10982
10983 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10984 PyObject *resultobj = 0;
10985 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10986 bool result;
10987 void *argp1 = 0 ;
10988 int res1 = 0 ;
10989 PyObject *swig_obj[1] ;
10990
10991 if (!args) SWIG_fail;
10992 swig_obj[0] = args;
10993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10994 if (!SWIG_IsOK(res1)) {
10995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10996 }
10997 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10998 {
10999 PyThreadState* __tstate = wxPyBeginAllowThreads();
11000 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11001 wxPyEndAllowThreads(__tstate);
11002 if (PyErr_Occurred()) SWIG_fail;
11003 }
11004 {
11005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11006 }
11007 return resultobj;
11008 fail:
11009 return NULL;
11010 }
11011
11012
11013 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11014 PyObject *resultobj = 0;
11015 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11016 bool result;
11017 void *argp1 = 0 ;
11018 int res1 = 0 ;
11019 PyObject *swig_obj[1] ;
11020
11021 if (!args) SWIG_fail;
11022 swig_obj[0] = args;
11023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11024 if (!SWIG_IsOK(res1)) {
11025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11026 }
11027 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11028 {
11029 PyThreadState* __tstate = wxPyBeginAllowThreads();
11030 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11031 wxPyEndAllowThreads(__tstate);
11032 if (PyErr_Occurred()) SWIG_fail;
11033 }
11034 {
11035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11036 }
11037 return resultobj;
11038 fail:
11039 return NULL;
11040 }
11041
11042
11043 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11044 PyObject *resultobj = 0;
11045 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11046 bool result;
11047 void *argp1 = 0 ;
11048 int res1 = 0 ;
11049 PyObject *swig_obj[1] ;
11050
11051 if (!args) SWIG_fail;
11052 swig_obj[0] = args;
11053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11054 if (!SWIG_IsOK(res1)) {
11055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11056 }
11057 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11058 {
11059 PyThreadState* __tstate = wxPyBeginAllowThreads();
11060 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11061 wxPyEndAllowThreads(__tstate);
11062 if (PyErr_Occurred()) SWIG_fail;
11063 }
11064 {
11065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11066 }
11067 return resultobj;
11068 fail:
11069 return NULL;
11070 }
11071
11072
11073 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11074 PyObject *resultobj = 0;
11075 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11076 bool result;
11077 void *argp1 = 0 ;
11078 int res1 = 0 ;
11079 PyObject *swig_obj[1] ;
11080
11081 if (!args) SWIG_fail;
11082 swig_obj[0] = args;
11083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11084 if (!SWIG_IsOK(res1)) {
11085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11086 }
11087 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11088 {
11089 PyThreadState* __tstate = wxPyBeginAllowThreads();
11090 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11091 wxPyEndAllowThreads(__tstate);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 }
11094 {
11095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11096 }
11097 return resultobj;
11098 fail:
11099 return NULL;
11100 }
11101
11102
11103 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11104 PyObject *resultobj = 0;
11105 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11106 long arg2 ;
11107 bool result;
11108 void *argp1 = 0 ;
11109 int res1 = 0 ;
11110 long val2 ;
11111 int ecode2 = 0 ;
11112 PyObject * obj0 = 0 ;
11113 PyObject * obj1 = 0 ;
11114 char * kwnames[] = {
11115 (char *) "self",(char *) "flag", NULL
11116 };
11117
11118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11120 if (!SWIG_IsOK(res1)) {
11121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11122 }
11123 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11124 ecode2 = SWIG_AsVal_long(obj1, &val2);
11125 if (!SWIG_IsOK(ecode2)) {
11126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11127 }
11128 arg2 = static_cast< long >(val2);
11129 {
11130 PyThreadState* __tstate = wxPyBeginAllowThreads();
11131 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 }
11135 {
11136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11137 }
11138 return resultobj;
11139 fail:
11140 return NULL;
11141 }
11142
11143
11144 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11145 PyObject *resultobj = 0;
11146 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11147 wxColour *result = 0 ;
11148 void *argp1 = 0 ;
11149 int res1 = 0 ;
11150 PyObject *swig_obj[1] ;
11151
11152 if (!args) SWIG_fail;
11153 swig_obj[0] = args;
11154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11155 if (!SWIG_IsOK(res1)) {
11156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11157 }
11158 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11159 {
11160 PyThreadState* __tstate = wxPyBeginAllowThreads();
11161 {
11162 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11163 result = (wxColour *) &_result_ref;
11164 }
11165 wxPyEndAllowThreads(__tstate);
11166 if (PyErr_Occurred()) SWIG_fail;
11167 }
11168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11169 return resultobj;
11170 fail:
11171 return NULL;
11172 }
11173
11174
11175 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11176 PyObject *resultobj = 0;
11177 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11178 wxColour *result = 0 ;
11179 void *argp1 = 0 ;
11180 int res1 = 0 ;
11181 PyObject *swig_obj[1] ;
11182
11183 if (!args) SWIG_fail;
11184 swig_obj[0] = args;
11185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11186 if (!SWIG_IsOK(res1)) {
11187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11188 }
11189 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11190 {
11191 PyThreadState* __tstate = wxPyBeginAllowThreads();
11192 {
11193 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11194 result = (wxColour *) &_result_ref;
11195 }
11196 wxPyEndAllowThreads(__tstate);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 }
11199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11200 return resultobj;
11201 fail:
11202 return NULL;
11203 }
11204
11205
11206 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11207 PyObject *resultobj = 0;
11208 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11209 wxFont *result = 0 ;
11210 void *argp1 = 0 ;
11211 int res1 = 0 ;
11212 PyObject *swig_obj[1] ;
11213
11214 if (!args) SWIG_fail;
11215 swig_obj[0] = args;
11216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11217 if (!SWIG_IsOK(res1)) {
11218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11219 }
11220 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11221 {
11222 PyThreadState* __tstate = wxPyBeginAllowThreads();
11223 {
11224 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11225 result = (wxFont *) &_result_ref;
11226 }
11227 wxPyEndAllowThreads(__tstate);
11228 if (PyErr_Occurred()) SWIG_fail;
11229 }
11230 {
11231 wxFont* resultptr = new wxFont(*result);
11232 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11233 }
11234 return resultobj;
11235 fail:
11236 return NULL;
11237 }
11238
11239
11240 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11241 PyObject *resultobj = 0;
11242 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11243 wxTextAttrAlignment result;
11244 void *argp1 = 0 ;
11245 int res1 = 0 ;
11246 PyObject *swig_obj[1] ;
11247
11248 if (!args) SWIG_fail;
11249 swig_obj[0] = args;
11250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11251 if (!SWIG_IsOK(res1)) {
11252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11253 }
11254 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11255 {
11256 PyThreadState* __tstate = wxPyBeginAllowThreads();
11257 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11258 wxPyEndAllowThreads(__tstate);
11259 if (PyErr_Occurred()) SWIG_fail;
11260 }
11261 resultobj = SWIG_From_int(static_cast< int >(result));
11262 return resultobj;
11263 fail:
11264 return NULL;
11265 }
11266
11267
11268 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11269 PyObject *resultobj = 0;
11270 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11271 wxArrayInt *result = 0 ;
11272 void *argp1 = 0 ;
11273 int res1 = 0 ;
11274 PyObject *swig_obj[1] ;
11275
11276 if (!args) SWIG_fail;
11277 swig_obj[0] = args;
11278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11279 if (!SWIG_IsOK(res1)) {
11280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11281 }
11282 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 {
11286 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11287 result = (wxArrayInt *) &_result_ref;
11288 }
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 {
11293 resultobj = wxArrayInt2PyList_helper(*result);
11294 }
11295 return resultobj;
11296 fail:
11297 return NULL;
11298 }
11299
11300
11301 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11302 PyObject *resultobj = 0;
11303 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11304 long result;
11305 void *argp1 = 0 ;
11306 int res1 = 0 ;
11307 PyObject *swig_obj[1] ;
11308
11309 if (!args) SWIG_fail;
11310 swig_obj[0] = args;
11311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11312 if (!SWIG_IsOK(res1)) {
11313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11314 }
11315 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11316 {
11317 PyThreadState* __tstate = wxPyBeginAllowThreads();
11318 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11319 wxPyEndAllowThreads(__tstate);
11320 if (PyErr_Occurred()) SWIG_fail;
11321 }
11322 resultobj = SWIG_From_long(static_cast< long >(result));
11323 return resultobj;
11324 fail:
11325 return NULL;
11326 }
11327
11328
11329 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11330 PyObject *resultobj = 0;
11331 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11332 long result;
11333 void *argp1 = 0 ;
11334 int res1 = 0 ;
11335 PyObject *swig_obj[1] ;
11336
11337 if (!args) SWIG_fail;
11338 swig_obj[0] = args;
11339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11340 if (!SWIG_IsOK(res1)) {
11341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11342 }
11343 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11344 {
11345 PyThreadState* __tstate = wxPyBeginAllowThreads();
11346 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11347 wxPyEndAllowThreads(__tstate);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 }
11350 resultobj = SWIG_From_long(static_cast< long >(result));
11351 return resultobj;
11352 fail:
11353 return NULL;
11354 }
11355
11356
11357 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11358 PyObject *resultobj = 0;
11359 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11360 long result;
11361 void *argp1 = 0 ;
11362 int res1 = 0 ;
11363 PyObject *swig_obj[1] ;
11364
11365 if (!args) SWIG_fail;
11366 swig_obj[0] = args;
11367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11368 if (!SWIG_IsOK(res1)) {
11369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11370 }
11371 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11372 {
11373 PyThreadState* __tstate = wxPyBeginAllowThreads();
11374 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11375 wxPyEndAllowThreads(__tstate);
11376 if (PyErr_Occurred()) SWIG_fail;
11377 }
11378 resultobj = SWIG_From_long(static_cast< long >(result));
11379 return resultobj;
11380 fail:
11381 return NULL;
11382 }
11383
11384
11385 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11386 PyObject *resultobj = 0;
11387 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11388 long result;
11389 void *argp1 = 0 ;
11390 int res1 = 0 ;
11391 PyObject *swig_obj[1] ;
11392
11393 if (!args) SWIG_fail;
11394 swig_obj[0] = args;
11395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11396 if (!SWIG_IsOK(res1)) {
11397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11398 }
11399 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11400 {
11401 PyThreadState* __tstate = wxPyBeginAllowThreads();
11402 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11403 wxPyEndAllowThreads(__tstate);
11404 if (PyErr_Occurred()) SWIG_fail;
11405 }
11406 resultobj = SWIG_From_long(static_cast< long >(result));
11407 return resultobj;
11408 fail:
11409 return NULL;
11410 }
11411
11412
11413 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11414 PyObject *resultobj = 0;
11415 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11416 bool result;
11417 void *argp1 = 0 ;
11418 int res1 = 0 ;
11419 PyObject *swig_obj[1] ;
11420
11421 if (!args) SWIG_fail;
11422 swig_obj[0] = args;
11423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11424 if (!SWIG_IsOK(res1)) {
11425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11426 }
11427 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11428 {
11429 PyThreadState* __tstate = wxPyBeginAllowThreads();
11430 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11431 wxPyEndAllowThreads(__tstate);
11432 if (PyErr_Occurred()) SWIG_fail;
11433 }
11434 {
11435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11436 }
11437 return resultobj;
11438 fail:
11439 return NULL;
11440 }
11441
11442
11443 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11444 PyObject *resultobj = 0;
11445 wxTextAttr *arg1 = 0 ;
11446 wxTextAttr *arg2 = 0 ;
11447 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11448 wxTextAttr result;
11449 void *argp1 = 0 ;
11450 int res1 = 0 ;
11451 void *argp2 = 0 ;
11452 int res2 = 0 ;
11453 void *argp3 = 0 ;
11454 int res3 = 0 ;
11455 PyObject * obj0 = 0 ;
11456 PyObject * obj1 = 0 ;
11457 PyObject * obj2 = 0 ;
11458 char * kwnames[] = {
11459 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11460 };
11461
11462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11463 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11464 if (!SWIG_IsOK(res1)) {
11465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11466 }
11467 if (!argp1) {
11468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11469 }
11470 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11471 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11472 if (!SWIG_IsOK(res2)) {
11473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11474 }
11475 if (!argp2) {
11476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11477 }
11478 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11479 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11480 if (!SWIG_IsOK(res3)) {
11481 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11482 }
11483 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11484 {
11485 PyThreadState* __tstate = wxPyBeginAllowThreads();
11486 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11487 wxPyEndAllowThreads(__tstate);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 }
11490 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11491 return resultobj;
11492 fail:
11493 return NULL;
11494 }
11495
11496
11497 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11498 PyObject *obj;
11499 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11500 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11501 return SWIG_Py_Void();
11502 }
11503
11504 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11505 return SWIG_Python_InitShadowInstance(args);
11506 }
11507
11508 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11509 PyObject *resultobj = 0;
11510 wxWindow *arg1 = (wxWindow *) 0 ;
11511 int arg2 = (int) -1 ;
11512 wxString const &arg3_defvalue = wxPyEmptyString ;
11513 wxString *arg3 = (wxString *) &arg3_defvalue ;
11514 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11515 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11516 wxSize const &arg5_defvalue = wxDefaultSize ;
11517 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11518 long arg6 = (long) 0 ;
11519 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11520 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11521 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11522 wxString *arg8 = (wxString *) &arg8_defvalue ;
11523 wxTextCtrl *result = 0 ;
11524 void *argp1 = 0 ;
11525 int res1 = 0 ;
11526 int val2 ;
11527 int ecode2 = 0 ;
11528 bool temp3 = false ;
11529 wxPoint temp4 ;
11530 wxSize temp5 ;
11531 long val6 ;
11532 int ecode6 = 0 ;
11533 void *argp7 = 0 ;
11534 int res7 = 0 ;
11535 bool temp8 = false ;
11536 PyObject * obj0 = 0 ;
11537 PyObject * obj1 = 0 ;
11538 PyObject * obj2 = 0 ;
11539 PyObject * obj3 = 0 ;
11540 PyObject * obj4 = 0 ;
11541 PyObject * obj5 = 0 ;
11542 PyObject * obj6 = 0 ;
11543 PyObject * obj7 = 0 ;
11544 char * kwnames[] = {
11545 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11546 };
11547
11548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11550 if (!SWIG_IsOK(res1)) {
11551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11552 }
11553 arg1 = reinterpret_cast< wxWindow * >(argp1);
11554 if (obj1) {
11555 ecode2 = SWIG_AsVal_int(obj1, &val2);
11556 if (!SWIG_IsOK(ecode2)) {
11557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11558 }
11559 arg2 = static_cast< int >(val2);
11560 }
11561 if (obj2) {
11562 {
11563 arg3 = wxString_in_helper(obj2);
11564 if (arg3 == NULL) SWIG_fail;
11565 temp3 = true;
11566 }
11567 }
11568 if (obj3) {
11569 {
11570 arg4 = &temp4;
11571 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11572 }
11573 }
11574 if (obj4) {
11575 {
11576 arg5 = &temp5;
11577 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11578 }
11579 }
11580 if (obj5) {
11581 ecode6 = SWIG_AsVal_long(obj5, &val6);
11582 if (!SWIG_IsOK(ecode6)) {
11583 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11584 }
11585 arg6 = static_cast< long >(val6);
11586 }
11587 if (obj6) {
11588 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11589 if (!SWIG_IsOK(res7)) {
11590 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11591 }
11592 if (!argp7) {
11593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11594 }
11595 arg7 = reinterpret_cast< wxValidator * >(argp7);
11596 }
11597 if (obj7) {
11598 {
11599 arg8 = wxString_in_helper(obj7);
11600 if (arg8 == NULL) SWIG_fail;
11601 temp8 = true;
11602 }
11603 }
11604 {
11605 if (!wxPyCheckForApp()) SWIG_fail;
11606 PyThreadState* __tstate = wxPyBeginAllowThreads();
11607 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11608 wxPyEndAllowThreads(__tstate);
11609 if (PyErr_Occurred()) SWIG_fail;
11610 }
11611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11612 {
11613 if (temp3)
11614 delete arg3;
11615 }
11616 {
11617 if (temp8)
11618 delete arg8;
11619 }
11620 return resultobj;
11621 fail:
11622 {
11623 if (temp3)
11624 delete arg3;
11625 }
11626 {
11627 if (temp8)
11628 delete arg8;
11629 }
11630 return NULL;
11631 }
11632
11633
11634 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11635 PyObject *resultobj = 0;
11636 wxTextCtrl *result = 0 ;
11637
11638 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11639 {
11640 if (!wxPyCheckForApp()) SWIG_fail;
11641 PyThreadState* __tstate = wxPyBeginAllowThreads();
11642 result = (wxTextCtrl *)new wxTextCtrl();
11643 wxPyEndAllowThreads(__tstate);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 }
11646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11647 return resultobj;
11648 fail:
11649 return NULL;
11650 }
11651
11652
11653 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11654 PyObject *resultobj = 0;
11655 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11656 wxWindow *arg2 = (wxWindow *) 0 ;
11657 int arg3 = (int) -1 ;
11658 wxString const &arg4_defvalue = wxPyEmptyString ;
11659 wxString *arg4 = (wxString *) &arg4_defvalue ;
11660 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11661 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11662 wxSize const &arg6_defvalue = wxDefaultSize ;
11663 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11664 long arg7 = (long) 0 ;
11665 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11666 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11667 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11668 wxString *arg9 = (wxString *) &arg9_defvalue ;
11669 bool result;
11670 void *argp1 = 0 ;
11671 int res1 = 0 ;
11672 void *argp2 = 0 ;
11673 int res2 = 0 ;
11674 int val3 ;
11675 int ecode3 = 0 ;
11676 bool temp4 = false ;
11677 wxPoint temp5 ;
11678 wxSize temp6 ;
11679 long val7 ;
11680 int ecode7 = 0 ;
11681 void *argp8 = 0 ;
11682 int res8 = 0 ;
11683 bool temp9 = false ;
11684 PyObject * obj0 = 0 ;
11685 PyObject * obj1 = 0 ;
11686 PyObject * obj2 = 0 ;
11687 PyObject * obj3 = 0 ;
11688 PyObject * obj4 = 0 ;
11689 PyObject * obj5 = 0 ;
11690 PyObject * obj6 = 0 ;
11691 PyObject * obj7 = 0 ;
11692 PyObject * obj8 = 0 ;
11693 char * kwnames[] = {
11694 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11695 };
11696
11697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11699 if (!SWIG_IsOK(res1)) {
11700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11701 }
11702 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11704 if (!SWIG_IsOK(res2)) {
11705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11706 }
11707 arg2 = reinterpret_cast< wxWindow * >(argp2);
11708 if (obj2) {
11709 ecode3 = SWIG_AsVal_int(obj2, &val3);
11710 if (!SWIG_IsOK(ecode3)) {
11711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11712 }
11713 arg3 = static_cast< int >(val3);
11714 }
11715 if (obj3) {
11716 {
11717 arg4 = wxString_in_helper(obj3);
11718 if (arg4 == NULL) SWIG_fail;
11719 temp4 = true;
11720 }
11721 }
11722 if (obj4) {
11723 {
11724 arg5 = &temp5;
11725 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11726 }
11727 }
11728 if (obj5) {
11729 {
11730 arg6 = &temp6;
11731 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11732 }
11733 }
11734 if (obj6) {
11735 ecode7 = SWIG_AsVal_long(obj6, &val7);
11736 if (!SWIG_IsOK(ecode7)) {
11737 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11738 }
11739 arg7 = static_cast< long >(val7);
11740 }
11741 if (obj7) {
11742 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11743 if (!SWIG_IsOK(res8)) {
11744 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11745 }
11746 if (!argp8) {
11747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11748 }
11749 arg8 = reinterpret_cast< wxValidator * >(argp8);
11750 }
11751 if (obj8) {
11752 {
11753 arg9 = wxString_in_helper(obj8);
11754 if (arg9 == NULL) SWIG_fail;
11755 temp9 = true;
11756 }
11757 }
11758 {
11759 PyThreadState* __tstate = wxPyBeginAllowThreads();
11760 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11761 wxPyEndAllowThreads(__tstate);
11762 if (PyErr_Occurred()) SWIG_fail;
11763 }
11764 {
11765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11766 }
11767 {
11768 if (temp4)
11769 delete arg4;
11770 }
11771 {
11772 if (temp9)
11773 delete arg9;
11774 }
11775 return resultobj;
11776 fail:
11777 {
11778 if (temp4)
11779 delete arg4;
11780 }
11781 {
11782 if (temp9)
11783 delete arg9;
11784 }
11785 return NULL;
11786 }
11787
11788
11789 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11790 PyObject *resultobj = 0;
11791 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11792 wxString result;
11793 void *argp1 = 0 ;
11794 int res1 = 0 ;
11795 PyObject *swig_obj[1] ;
11796
11797 if (!args) SWIG_fail;
11798 swig_obj[0] = args;
11799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11800 if (!SWIG_IsOK(res1)) {
11801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11802 }
11803 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11804 {
11805 PyThreadState* __tstate = wxPyBeginAllowThreads();
11806 result = ((wxTextCtrl const *)arg1)->GetValue();
11807 wxPyEndAllowThreads(__tstate);
11808 if (PyErr_Occurred()) SWIG_fail;
11809 }
11810 {
11811 #if wxUSE_UNICODE
11812 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11813 #else
11814 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11815 #endif
11816 }
11817 return resultobj;
11818 fail:
11819 return NULL;
11820 }
11821
11822
11823 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11824 PyObject *resultobj = 0;
11825 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11826 wxString *arg2 = 0 ;
11827 void *argp1 = 0 ;
11828 int res1 = 0 ;
11829 bool temp2 = false ;
11830 PyObject * obj0 = 0 ;
11831 PyObject * obj1 = 0 ;
11832 char * kwnames[] = {
11833 (char *) "self",(char *) "value", NULL
11834 };
11835
11836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11838 if (!SWIG_IsOK(res1)) {
11839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11840 }
11841 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11842 {
11843 arg2 = wxString_in_helper(obj1);
11844 if (arg2 == NULL) SWIG_fail;
11845 temp2 = true;
11846 }
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 (arg1)->SetValue((wxString const &)*arg2);
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 resultobj = SWIG_Py_Void();
11854 {
11855 if (temp2)
11856 delete arg2;
11857 }
11858 return resultobj;
11859 fail:
11860 {
11861 if (temp2)
11862 delete arg2;
11863 }
11864 return NULL;
11865 }
11866
11867
11868 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11869 PyObject *resultobj = 0;
11870 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11871 bool result;
11872 void *argp1 = 0 ;
11873 int res1 = 0 ;
11874 PyObject *swig_obj[1] ;
11875
11876 if (!args) SWIG_fail;
11877 swig_obj[0] = args;
11878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11879 if (!SWIG_IsOK(res1)) {
11880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11881 }
11882 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11883 {
11884 PyThreadState* __tstate = wxPyBeginAllowThreads();
11885 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11886 wxPyEndAllowThreads(__tstate);
11887 if (PyErr_Occurred()) SWIG_fail;
11888 }
11889 {
11890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11891 }
11892 return resultobj;
11893 fail:
11894 return NULL;
11895 }
11896
11897
11898 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11899 PyObject *resultobj = 0;
11900 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11901 wxString *arg2 = 0 ;
11902 void *argp1 = 0 ;
11903 int res1 = 0 ;
11904 bool temp2 = false ;
11905 PyObject * obj0 = 0 ;
11906 PyObject * obj1 = 0 ;
11907 char * kwnames[] = {
11908 (char *) "self",(char *) "value", NULL
11909 };
11910
11911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
11912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11913 if (!SWIG_IsOK(res1)) {
11914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11915 }
11916 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11917 {
11918 arg2 = wxString_in_helper(obj1);
11919 if (arg2 == NULL) SWIG_fail;
11920 temp2 = true;
11921 }
11922 {
11923 PyThreadState* __tstate = wxPyBeginAllowThreads();
11924 (arg1)->ChangeValue((wxString const &)*arg2);
11925 wxPyEndAllowThreads(__tstate);
11926 if (PyErr_Occurred()) SWIG_fail;
11927 }
11928 resultobj = SWIG_Py_Void();
11929 {
11930 if (temp2)
11931 delete arg2;
11932 }
11933 return resultobj;
11934 fail:
11935 {
11936 if (temp2)
11937 delete arg2;
11938 }
11939 return NULL;
11940 }
11941
11942
11943 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11944 PyObject *resultobj = 0;
11945 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11946 long arg2 ;
11947 long arg3 ;
11948 wxString result;
11949 void *argp1 = 0 ;
11950 int res1 = 0 ;
11951 long val2 ;
11952 int ecode2 = 0 ;
11953 long val3 ;
11954 int ecode3 = 0 ;
11955 PyObject * obj0 = 0 ;
11956 PyObject * obj1 = 0 ;
11957 PyObject * obj2 = 0 ;
11958 char * kwnames[] = {
11959 (char *) "self",(char *) "from",(char *) "to", NULL
11960 };
11961
11962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11964 if (!SWIG_IsOK(res1)) {
11965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11966 }
11967 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11968 ecode2 = SWIG_AsVal_long(obj1, &val2);
11969 if (!SWIG_IsOK(ecode2)) {
11970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11971 }
11972 arg2 = static_cast< long >(val2);
11973 ecode3 = SWIG_AsVal_long(obj2, &val3);
11974 if (!SWIG_IsOK(ecode3)) {
11975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11976 }
11977 arg3 = static_cast< long >(val3);
11978 {
11979 PyThreadState* __tstate = wxPyBeginAllowThreads();
11980 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11981 wxPyEndAllowThreads(__tstate);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 }
11984 {
11985 #if wxUSE_UNICODE
11986 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11987 #else
11988 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11989 #endif
11990 }
11991 return resultobj;
11992 fail:
11993 return NULL;
11994 }
11995
11996
11997 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11998 PyObject *resultobj = 0;
11999 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12000 long arg2 ;
12001 int result;
12002 void *argp1 = 0 ;
12003 int res1 = 0 ;
12004 long val2 ;
12005 int ecode2 = 0 ;
12006 PyObject * obj0 = 0 ;
12007 PyObject * obj1 = 0 ;
12008 char * kwnames[] = {
12009 (char *) "self",(char *) "lineNo", NULL
12010 };
12011
12012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12014 if (!SWIG_IsOK(res1)) {
12015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12016 }
12017 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12018 ecode2 = SWIG_AsVal_long(obj1, &val2);
12019 if (!SWIG_IsOK(ecode2)) {
12020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12021 }
12022 arg2 = static_cast< long >(val2);
12023 {
12024 PyThreadState* __tstate = wxPyBeginAllowThreads();
12025 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12026 wxPyEndAllowThreads(__tstate);
12027 if (PyErr_Occurred()) SWIG_fail;
12028 }
12029 resultobj = SWIG_From_int(static_cast< int >(result));
12030 return resultobj;
12031 fail:
12032 return NULL;
12033 }
12034
12035
12036 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12037 PyObject *resultobj = 0;
12038 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12039 long arg2 ;
12040 wxString result;
12041 void *argp1 = 0 ;
12042 int res1 = 0 ;
12043 long val2 ;
12044 int ecode2 = 0 ;
12045 PyObject * obj0 = 0 ;
12046 PyObject * obj1 = 0 ;
12047 char * kwnames[] = {
12048 (char *) "self",(char *) "lineNo", NULL
12049 };
12050
12051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12053 if (!SWIG_IsOK(res1)) {
12054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12055 }
12056 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12057 ecode2 = SWIG_AsVal_long(obj1, &val2);
12058 if (!SWIG_IsOK(ecode2)) {
12059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12060 }
12061 arg2 = static_cast< long >(val2);
12062 {
12063 PyThreadState* __tstate = wxPyBeginAllowThreads();
12064 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12065 wxPyEndAllowThreads(__tstate);
12066 if (PyErr_Occurred()) SWIG_fail;
12067 }
12068 {
12069 #if wxUSE_UNICODE
12070 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12071 #else
12072 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12073 #endif
12074 }
12075 return resultobj;
12076 fail:
12077 return NULL;
12078 }
12079
12080
12081 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12082 PyObject *resultobj = 0;
12083 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12084 int result;
12085 void *argp1 = 0 ;
12086 int res1 = 0 ;
12087 PyObject *swig_obj[1] ;
12088
12089 if (!args) SWIG_fail;
12090 swig_obj[0] = args;
12091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12092 if (!SWIG_IsOK(res1)) {
12093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12094 }
12095 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12096 {
12097 PyThreadState* __tstate = wxPyBeginAllowThreads();
12098 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12099 wxPyEndAllowThreads(__tstate);
12100 if (PyErr_Occurred()) SWIG_fail;
12101 }
12102 resultobj = SWIG_From_int(static_cast< int >(result));
12103 return resultobj;
12104 fail:
12105 return NULL;
12106 }
12107
12108
12109 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12110 PyObject *resultobj = 0;
12111 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12112 bool result;
12113 void *argp1 = 0 ;
12114 int res1 = 0 ;
12115 PyObject *swig_obj[1] ;
12116
12117 if (!args) SWIG_fail;
12118 swig_obj[0] = args;
12119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12120 if (!SWIG_IsOK(res1)) {
12121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12122 }
12123 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12124 {
12125 PyThreadState* __tstate = wxPyBeginAllowThreads();
12126 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12127 wxPyEndAllowThreads(__tstate);
12128 if (PyErr_Occurred()) SWIG_fail;
12129 }
12130 {
12131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12132 }
12133 return resultobj;
12134 fail:
12135 return NULL;
12136 }
12137
12138
12139 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12140 PyObject *resultobj = 0;
12141 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12142 bool result;
12143 void *argp1 = 0 ;
12144 int res1 = 0 ;
12145 PyObject *swig_obj[1] ;
12146
12147 if (!args) SWIG_fail;
12148 swig_obj[0] = args;
12149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12150 if (!SWIG_IsOK(res1)) {
12151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12152 }
12153 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12154 {
12155 PyThreadState* __tstate = wxPyBeginAllowThreads();
12156 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12157 wxPyEndAllowThreads(__tstate);
12158 if (PyErr_Occurred()) SWIG_fail;
12159 }
12160 {
12161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12162 }
12163 return resultobj;
12164 fail:
12165 return NULL;
12166 }
12167
12168
12169 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12170 PyObject *resultobj = 0;
12171 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12172 bool result;
12173 void *argp1 = 0 ;
12174 int res1 = 0 ;
12175 PyObject *swig_obj[1] ;
12176
12177 if (!args) SWIG_fail;
12178 swig_obj[0] = args;
12179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12180 if (!SWIG_IsOK(res1)) {
12181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12182 }
12183 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12184 {
12185 PyThreadState* __tstate = wxPyBeginAllowThreads();
12186 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12187 wxPyEndAllowThreads(__tstate);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 {
12191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12192 }
12193 return resultobj;
12194 fail:
12195 return NULL;
12196 }
12197
12198
12199 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12200 PyObject *resultobj = 0;
12201 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12202 bool result;
12203 void *argp1 = 0 ;
12204 int res1 = 0 ;
12205 PyObject *swig_obj[1] ;
12206
12207 if (!args) SWIG_fail;
12208 swig_obj[0] = args;
12209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12210 if (!SWIG_IsOK(res1)) {
12211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12212 }
12213 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12214 {
12215 PyThreadState* __tstate = wxPyBeginAllowThreads();
12216 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12217 wxPyEndAllowThreads(__tstate);
12218 if (PyErr_Occurred()) SWIG_fail;
12219 }
12220 {
12221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12222 }
12223 return resultobj;
12224 fail:
12225 return NULL;
12226 }
12227
12228
12229 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12230 PyObject *resultobj = 0;
12231 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12232 long *arg2 = (long *) 0 ;
12233 long *arg3 = (long *) 0 ;
12234 void *argp1 = 0 ;
12235 int res1 = 0 ;
12236 long temp2 ;
12237 int res2 = SWIG_TMPOBJ ;
12238 long temp3 ;
12239 int res3 = SWIG_TMPOBJ ;
12240 PyObject *swig_obj[1] ;
12241
12242 arg2 = &temp2;
12243 arg3 = &temp3;
12244 if (!args) SWIG_fail;
12245 swig_obj[0] = args;
12246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12247 if (!SWIG_IsOK(res1)) {
12248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12249 }
12250 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12251 {
12252 PyThreadState* __tstate = wxPyBeginAllowThreads();
12253 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12254 wxPyEndAllowThreads(__tstate);
12255 if (PyErr_Occurred()) SWIG_fail;
12256 }
12257 resultobj = SWIG_Py_Void();
12258 if (SWIG_IsTmpObj(res2)) {
12259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12260 } else {
12261 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12263 }
12264 if (SWIG_IsTmpObj(res3)) {
12265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12266 } else {
12267 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12269 }
12270 return resultobj;
12271 fail:
12272 return NULL;
12273 }
12274
12275
12276 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12277 PyObject *resultobj = 0;
12278 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12279 wxString result;
12280 void *argp1 = 0 ;
12281 int res1 = 0 ;
12282 PyObject *swig_obj[1] ;
12283
12284 if (!args) SWIG_fail;
12285 swig_obj[0] = args;
12286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12287 if (!SWIG_IsOK(res1)) {
12288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12289 }
12290 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12294 wxPyEndAllowThreads(__tstate);
12295 if (PyErr_Occurred()) SWIG_fail;
12296 }
12297 {
12298 #if wxUSE_UNICODE
12299 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12300 #else
12301 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12302 #endif
12303 }
12304 return resultobj;
12305 fail:
12306 return NULL;
12307 }
12308
12309
12310 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12311 PyObject *resultobj = 0;
12312 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12313 void *argp1 = 0 ;
12314 int res1 = 0 ;
12315 PyObject *swig_obj[1] ;
12316
12317 if (!args) SWIG_fail;
12318 swig_obj[0] = args;
12319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12320 if (!SWIG_IsOK(res1)) {
12321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12322 }
12323 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12324 {
12325 PyThreadState* __tstate = wxPyBeginAllowThreads();
12326 (arg1)->Clear();
12327 wxPyEndAllowThreads(__tstate);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 }
12330 resultobj = SWIG_Py_Void();
12331 return resultobj;
12332 fail:
12333 return NULL;
12334 }
12335
12336
12337 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12338 PyObject *resultobj = 0;
12339 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12340 long arg2 ;
12341 long arg3 ;
12342 wxString *arg4 = 0 ;
12343 void *argp1 = 0 ;
12344 int res1 = 0 ;
12345 long val2 ;
12346 int ecode2 = 0 ;
12347 long val3 ;
12348 int ecode3 = 0 ;
12349 bool temp4 = false ;
12350 PyObject * obj0 = 0 ;
12351 PyObject * obj1 = 0 ;
12352 PyObject * obj2 = 0 ;
12353 PyObject * obj3 = 0 ;
12354 char * kwnames[] = {
12355 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12356 };
12357
12358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12360 if (!SWIG_IsOK(res1)) {
12361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12362 }
12363 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12364 ecode2 = SWIG_AsVal_long(obj1, &val2);
12365 if (!SWIG_IsOK(ecode2)) {
12366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12367 }
12368 arg2 = static_cast< long >(val2);
12369 ecode3 = SWIG_AsVal_long(obj2, &val3);
12370 if (!SWIG_IsOK(ecode3)) {
12371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12372 }
12373 arg3 = static_cast< long >(val3);
12374 {
12375 arg4 = wxString_in_helper(obj3);
12376 if (arg4 == NULL) SWIG_fail;
12377 temp4 = true;
12378 }
12379 {
12380 PyThreadState* __tstate = wxPyBeginAllowThreads();
12381 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12382 wxPyEndAllowThreads(__tstate);
12383 if (PyErr_Occurred()) SWIG_fail;
12384 }
12385 resultobj = SWIG_Py_Void();
12386 {
12387 if (temp4)
12388 delete arg4;
12389 }
12390 return resultobj;
12391 fail:
12392 {
12393 if (temp4)
12394 delete arg4;
12395 }
12396 return NULL;
12397 }
12398
12399
12400 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12401 PyObject *resultobj = 0;
12402 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12403 long arg2 ;
12404 long arg3 ;
12405 void *argp1 = 0 ;
12406 int res1 = 0 ;
12407 long val2 ;
12408 int ecode2 = 0 ;
12409 long val3 ;
12410 int ecode3 = 0 ;
12411 PyObject * obj0 = 0 ;
12412 PyObject * obj1 = 0 ;
12413 PyObject * obj2 = 0 ;
12414 char * kwnames[] = {
12415 (char *) "self",(char *) "from",(char *) "to", NULL
12416 };
12417
12418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12420 if (!SWIG_IsOK(res1)) {
12421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12422 }
12423 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12424 ecode2 = SWIG_AsVal_long(obj1, &val2);
12425 if (!SWIG_IsOK(ecode2)) {
12426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12427 }
12428 arg2 = static_cast< long >(val2);
12429 ecode3 = SWIG_AsVal_long(obj2, &val3);
12430 if (!SWIG_IsOK(ecode3)) {
12431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12432 }
12433 arg3 = static_cast< long >(val3);
12434 {
12435 PyThreadState* __tstate = wxPyBeginAllowThreads();
12436 (arg1)->Remove(arg2,arg3);
12437 wxPyEndAllowThreads(__tstate);
12438 if (PyErr_Occurred()) SWIG_fail;
12439 }
12440 resultobj = SWIG_Py_Void();
12441 return resultobj;
12442 fail:
12443 return NULL;
12444 }
12445
12446
12447 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12448 PyObject *resultobj = 0;
12449 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12450 wxString *arg2 = 0 ;
12451 int arg3 = (int) wxTEXT_TYPE_ANY ;
12452 bool result;
12453 void *argp1 = 0 ;
12454 int res1 = 0 ;
12455 bool temp2 = false ;
12456 int val3 ;
12457 int ecode3 = 0 ;
12458 PyObject * obj0 = 0 ;
12459 PyObject * obj1 = 0 ;
12460 PyObject * obj2 = 0 ;
12461 char * kwnames[] = {
12462 (char *) "self",(char *) "file",(char *) "fileType", NULL
12463 };
12464
12465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12467 if (!SWIG_IsOK(res1)) {
12468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12469 }
12470 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12471 {
12472 arg2 = wxString_in_helper(obj1);
12473 if (arg2 == NULL) SWIG_fail;
12474 temp2 = true;
12475 }
12476 if (obj2) {
12477 ecode3 = SWIG_AsVal_int(obj2, &val3);
12478 if (!SWIG_IsOK(ecode3)) {
12479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12480 }
12481 arg3 = static_cast< int >(val3);
12482 }
12483 {
12484 PyThreadState* __tstate = wxPyBeginAllowThreads();
12485 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12486 wxPyEndAllowThreads(__tstate);
12487 if (PyErr_Occurred()) SWIG_fail;
12488 }
12489 {
12490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12491 }
12492 {
12493 if (temp2)
12494 delete arg2;
12495 }
12496 return resultobj;
12497 fail:
12498 {
12499 if (temp2)
12500 delete arg2;
12501 }
12502 return NULL;
12503 }
12504
12505
12506 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12507 PyObject *resultobj = 0;
12508 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12509 wxString const &arg2_defvalue = wxPyEmptyString ;
12510 wxString *arg2 = (wxString *) &arg2_defvalue ;
12511 int arg3 = (int) wxTEXT_TYPE_ANY ;
12512 bool result;
12513 void *argp1 = 0 ;
12514 int res1 = 0 ;
12515 bool temp2 = false ;
12516 int val3 ;
12517 int ecode3 = 0 ;
12518 PyObject * obj0 = 0 ;
12519 PyObject * obj1 = 0 ;
12520 PyObject * obj2 = 0 ;
12521 char * kwnames[] = {
12522 (char *) "self",(char *) "file",(char *) "fileType", NULL
12523 };
12524
12525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12527 if (!SWIG_IsOK(res1)) {
12528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12529 }
12530 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12531 if (obj1) {
12532 {
12533 arg2 = wxString_in_helper(obj1);
12534 if (arg2 == NULL) SWIG_fail;
12535 temp2 = true;
12536 }
12537 }
12538 if (obj2) {
12539 ecode3 = SWIG_AsVal_int(obj2, &val3);
12540 if (!SWIG_IsOK(ecode3)) {
12541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12542 }
12543 arg3 = static_cast< int >(val3);
12544 }
12545 {
12546 PyThreadState* __tstate = wxPyBeginAllowThreads();
12547 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12548 wxPyEndAllowThreads(__tstate);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 }
12551 {
12552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12553 }
12554 {
12555 if (temp2)
12556 delete arg2;
12557 }
12558 return resultobj;
12559 fail:
12560 {
12561 if (temp2)
12562 delete arg2;
12563 }
12564 return NULL;
12565 }
12566
12567
12568 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12569 PyObject *resultobj = 0;
12570 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12571 void *argp1 = 0 ;
12572 int res1 = 0 ;
12573 PyObject *swig_obj[1] ;
12574
12575 if (!args) SWIG_fail;
12576 swig_obj[0] = args;
12577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12578 if (!SWIG_IsOK(res1)) {
12579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12580 }
12581 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12582 {
12583 PyThreadState* __tstate = wxPyBeginAllowThreads();
12584 (arg1)->MarkDirty();
12585 wxPyEndAllowThreads(__tstate);
12586 if (PyErr_Occurred()) SWIG_fail;
12587 }
12588 resultobj = SWIG_Py_Void();
12589 return resultobj;
12590 fail:
12591 return NULL;
12592 }
12593
12594
12595 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12596 PyObject *resultobj = 0;
12597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12598 void *argp1 = 0 ;
12599 int res1 = 0 ;
12600 PyObject *swig_obj[1] ;
12601
12602 if (!args) SWIG_fail;
12603 swig_obj[0] = args;
12604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12605 if (!SWIG_IsOK(res1)) {
12606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12607 }
12608 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12609 {
12610 PyThreadState* __tstate = wxPyBeginAllowThreads();
12611 (arg1)->DiscardEdits();
12612 wxPyEndAllowThreads(__tstate);
12613 if (PyErr_Occurred()) SWIG_fail;
12614 }
12615 resultobj = SWIG_Py_Void();
12616 return resultobj;
12617 fail:
12618 return NULL;
12619 }
12620
12621
12622 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12623 PyObject *resultobj = 0;
12624 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12625 bool arg2 ;
12626 void *argp1 = 0 ;
12627 int res1 = 0 ;
12628 bool val2 ;
12629 int ecode2 = 0 ;
12630 PyObject * obj0 = 0 ;
12631 PyObject * obj1 = 0 ;
12632 char * kwnames[] = {
12633 (char *) "self",(char *) "modified", NULL
12634 };
12635
12636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12638 if (!SWIG_IsOK(res1)) {
12639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12640 }
12641 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12642 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12643 if (!SWIG_IsOK(ecode2)) {
12644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12645 }
12646 arg2 = static_cast< bool >(val2);
12647 {
12648 PyThreadState* __tstate = wxPyBeginAllowThreads();
12649 (arg1)->SetModified(arg2);
12650 wxPyEndAllowThreads(__tstate);
12651 if (PyErr_Occurred()) SWIG_fail;
12652 }
12653 resultobj = SWIG_Py_Void();
12654 return resultobj;
12655 fail:
12656 return NULL;
12657 }
12658
12659
12660 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12661 PyObject *resultobj = 0;
12662 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12663 unsigned long arg2 ;
12664 void *argp1 = 0 ;
12665 int res1 = 0 ;
12666 unsigned long val2 ;
12667 int ecode2 = 0 ;
12668 PyObject * obj0 = 0 ;
12669 PyObject * obj1 = 0 ;
12670 char * kwnames[] = {
12671 (char *) "self",(char *) "len", NULL
12672 };
12673
12674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12676 if (!SWIG_IsOK(res1)) {
12677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12678 }
12679 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12680 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12681 if (!SWIG_IsOK(ecode2)) {
12682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12683 }
12684 arg2 = static_cast< unsigned long >(val2);
12685 {
12686 PyThreadState* __tstate = wxPyBeginAllowThreads();
12687 (arg1)->SetMaxLength(arg2);
12688 wxPyEndAllowThreads(__tstate);
12689 if (PyErr_Occurred()) SWIG_fail;
12690 }
12691 resultobj = SWIG_Py_Void();
12692 return resultobj;
12693 fail:
12694 return NULL;
12695 }
12696
12697
12698 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12699 PyObject *resultobj = 0;
12700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12701 wxString *arg2 = 0 ;
12702 void *argp1 = 0 ;
12703 int res1 = 0 ;
12704 bool temp2 = false ;
12705 PyObject * obj0 = 0 ;
12706 PyObject * obj1 = 0 ;
12707 char * kwnames[] = {
12708 (char *) "self",(char *) "text", NULL
12709 };
12710
12711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12713 if (!SWIG_IsOK(res1)) {
12714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12715 }
12716 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12717 {
12718 arg2 = wxString_in_helper(obj1);
12719 if (arg2 == NULL) SWIG_fail;
12720 temp2 = true;
12721 }
12722 {
12723 PyThreadState* __tstate = wxPyBeginAllowThreads();
12724 (arg1)->WriteText((wxString const &)*arg2);
12725 wxPyEndAllowThreads(__tstate);
12726 if (PyErr_Occurred()) SWIG_fail;
12727 }
12728 resultobj = SWIG_Py_Void();
12729 {
12730 if (temp2)
12731 delete arg2;
12732 }
12733 return resultobj;
12734 fail:
12735 {
12736 if (temp2)
12737 delete arg2;
12738 }
12739 return NULL;
12740 }
12741
12742
12743 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12744 PyObject *resultobj = 0;
12745 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12746 wxString *arg2 = 0 ;
12747 void *argp1 = 0 ;
12748 int res1 = 0 ;
12749 bool temp2 = false ;
12750 PyObject * obj0 = 0 ;
12751 PyObject * obj1 = 0 ;
12752 char * kwnames[] = {
12753 (char *) "self",(char *) "text", NULL
12754 };
12755
12756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12758 if (!SWIG_IsOK(res1)) {
12759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12760 }
12761 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12762 {
12763 arg2 = wxString_in_helper(obj1);
12764 if (arg2 == NULL) SWIG_fail;
12765 temp2 = true;
12766 }
12767 {
12768 PyThreadState* __tstate = wxPyBeginAllowThreads();
12769 (arg1)->AppendText((wxString const &)*arg2);
12770 wxPyEndAllowThreads(__tstate);
12771 if (PyErr_Occurred()) SWIG_fail;
12772 }
12773 resultobj = SWIG_Py_Void();
12774 {
12775 if (temp2)
12776 delete arg2;
12777 }
12778 return resultobj;
12779 fail:
12780 {
12781 if (temp2)
12782 delete arg2;
12783 }
12784 return NULL;
12785 }
12786
12787
12788 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12789 PyObject *resultobj = 0;
12790 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12791 wxKeyEvent *arg2 = 0 ;
12792 bool result;
12793 void *argp1 = 0 ;
12794 int res1 = 0 ;
12795 void *argp2 = 0 ;
12796 int res2 = 0 ;
12797 PyObject * obj0 = 0 ;
12798 PyObject * obj1 = 0 ;
12799 char * kwnames[] = {
12800 (char *) "self",(char *) "event", NULL
12801 };
12802
12803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12805 if (!SWIG_IsOK(res1)) {
12806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12807 }
12808 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12810 if (!SWIG_IsOK(res2)) {
12811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12812 }
12813 if (!argp2) {
12814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12815 }
12816 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12817 {
12818 PyThreadState* __tstate = wxPyBeginAllowThreads();
12819 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12820 wxPyEndAllowThreads(__tstate);
12821 if (PyErr_Occurred()) SWIG_fail;
12822 }
12823 {
12824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12825 }
12826 return resultobj;
12827 fail:
12828 return NULL;
12829 }
12830
12831
12832 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12833 PyObject *resultobj = 0;
12834 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12835 long arg2 ;
12836 long arg3 ;
12837 wxTextAttr *arg4 = 0 ;
12838 bool result;
12839 void *argp1 = 0 ;
12840 int res1 = 0 ;
12841 long val2 ;
12842 int ecode2 = 0 ;
12843 long val3 ;
12844 int ecode3 = 0 ;
12845 void *argp4 = 0 ;
12846 int res4 = 0 ;
12847 PyObject * obj0 = 0 ;
12848 PyObject * obj1 = 0 ;
12849 PyObject * obj2 = 0 ;
12850 PyObject * obj3 = 0 ;
12851 char * kwnames[] = {
12852 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12853 };
12854
12855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12857 if (!SWIG_IsOK(res1)) {
12858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12859 }
12860 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12861 ecode2 = SWIG_AsVal_long(obj1, &val2);
12862 if (!SWIG_IsOK(ecode2)) {
12863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12864 }
12865 arg2 = static_cast< long >(val2);
12866 ecode3 = SWIG_AsVal_long(obj2, &val3);
12867 if (!SWIG_IsOK(ecode3)) {
12868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12869 }
12870 arg3 = static_cast< long >(val3);
12871 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12872 if (!SWIG_IsOK(res4)) {
12873 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12874 }
12875 if (!argp4) {
12876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12877 }
12878 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12879 {
12880 PyThreadState* __tstate = wxPyBeginAllowThreads();
12881 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12882 wxPyEndAllowThreads(__tstate);
12883 if (PyErr_Occurred()) SWIG_fail;
12884 }
12885 {
12886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12887 }
12888 return resultobj;
12889 fail:
12890 return NULL;
12891 }
12892
12893
12894 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12895 PyObject *resultobj = 0;
12896 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12897 long arg2 ;
12898 wxTextAttr *arg3 = 0 ;
12899 bool result;
12900 void *argp1 = 0 ;
12901 int res1 = 0 ;
12902 long val2 ;
12903 int ecode2 = 0 ;
12904 void *argp3 = 0 ;
12905 int res3 = 0 ;
12906 PyObject * obj0 = 0 ;
12907 PyObject * obj1 = 0 ;
12908 PyObject * obj2 = 0 ;
12909 char * kwnames[] = {
12910 (char *) "self",(char *) "position",(char *) "style", NULL
12911 };
12912
12913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12915 if (!SWIG_IsOK(res1)) {
12916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12917 }
12918 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12919 ecode2 = SWIG_AsVal_long(obj1, &val2);
12920 if (!SWIG_IsOK(ecode2)) {
12921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12922 }
12923 arg2 = static_cast< long >(val2);
12924 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12925 if (!SWIG_IsOK(res3)) {
12926 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12927 }
12928 if (!argp3) {
12929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12930 }
12931 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12932 {
12933 PyThreadState* __tstate = wxPyBeginAllowThreads();
12934 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12935 wxPyEndAllowThreads(__tstate);
12936 if (PyErr_Occurred()) SWIG_fail;
12937 }
12938 {
12939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12940 }
12941 return resultobj;
12942 fail:
12943 return NULL;
12944 }
12945
12946
12947 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12948 PyObject *resultobj = 0;
12949 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12950 wxTextAttr *arg2 = 0 ;
12951 bool result;
12952 void *argp1 = 0 ;
12953 int res1 = 0 ;
12954 void *argp2 = 0 ;
12955 int res2 = 0 ;
12956 PyObject * obj0 = 0 ;
12957 PyObject * obj1 = 0 ;
12958 char * kwnames[] = {
12959 (char *) "self",(char *) "style", NULL
12960 };
12961
12962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12964 if (!SWIG_IsOK(res1)) {
12965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12966 }
12967 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12968 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12969 if (!SWIG_IsOK(res2)) {
12970 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12971 }
12972 if (!argp2) {
12973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12974 }
12975 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12976 {
12977 PyThreadState* __tstate = wxPyBeginAllowThreads();
12978 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12979 wxPyEndAllowThreads(__tstate);
12980 if (PyErr_Occurred()) SWIG_fail;
12981 }
12982 {
12983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12984 }
12985 return resultobj;
12986 fail:
12987 return NULL;
12988 }
12989
12990
12991 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12992 PyObject *resultobj = 0;
12993 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12994 wxTextAttr *result = 0 ;
12995 void *argp1 = 0 ;
12996 int res1 = 0 ;
12997 PyObject *swig_obj[1] ;
12998
12999 if (!args) SWIG_fail;
13000 swig_obj[0] = args;
13001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13002 if (!SWIG_IsOK(res1)) {
13003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13004 }
13005 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 {
13009 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13010 result = (wxTextAttr *) &_result_ref;
13011 }
13012 wxPyEndAllowThreads(__tstate);
13013 if (PyErr_Occurred()) SWIG_fail;
13014 }
13015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13016 return resultobj;
13017 fail:
13018 return NULL;
13019 }
13020
13021
13022 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13023 PyObject *resultobj = 0;
13024 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13025 long arg2 ;
13026 long arg3 ;
13027 long result;
13028 void *argp1 = 0 ;
13029 int res1 = 0 ;
13030 long val2 ;
13031 int ecode2 = 0 ;
13032 long val3 ;
13033 int ecode3 = 0 ;
13034 PyObject * obj0 = 0 ;
13035 PyObject * obj1 = 0 ;
13036 PyObject * obj2 = 0 ;
13037 char * kwnames[] = {
13038 (char *) "self",(char *) "x",(char *) "y", NULL
13039 };
13040
13041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13043 if (!SWIG_IsOK(res1)) {
13044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13045 }
13046 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13047 ecode2 = SWIG_AsVal_long(obj1, &val2);
13048 if (!SWIG_IsOK(ecode2)) {
13049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13050 }
13051 arg2 = static_cast< long >(val2);
13052 ecode3 = SWIG_AsVal_long(obj2, &val3);
13053 if (!SWIG_IsOK(ecode3)) {
13054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13055 }
13056 arg3 = static_cast< long >(val3);
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13060 wxPyEndAllowThreads(__tstate);
13061 if (PyErr_Occurred()) SWIG_fail;
13062 }
13063 resultobj = SWIG_From_long(static_cast< long >(result));
13064 return resultobj;
13065 fail:
13066 return NULL;
13067 }
13068
13069
13070 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13071 PyObject *resultobj = 0;
13072 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13073 long arg2 ;
13074 long *arg3 = (long *) 0 ;
13075 long *arg4 = (long *) 0 ;
13076 void *argp1 = 0 ;
13077 int res1 = 0 ;
13078 long val2 ;
13079 int ecode2 = 0 ;
13080 long temp3 ;
13081 int res3 = SWIG_TMPOBJ ;
13082 long temp4 ;
13083 int res4 = SWIG_TMPOBJ ;
13084 PyObject * obj0 = 0 ;
13085 PyObject * obj1 = 0 ;
13086 char * kwnames[] = {
13087 (char *) "self",(char *) "pos", NULL
13088 };
13089
13090 arg3 = &temp3;
13091 arg4 = &temp4;
13092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13094 if (!SWIG_IsOK(res1)) {
13095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13096 }
13097 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13098 ecode2 = SWIG_AsVal_long(obj1, &val2);
13099 if (!SWIG_IsOK(ecode2)) {
13100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13101 }
13102 arg2 = static_cast< long >(val2);
13103 {
13104 PyThreadState* __tstate = wxPyBeginAllowThreads();
13105 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13106 wxPyEndAllowThreads(__tstate);
13107 if (PyErr_Occurred()) SWIG_fail;
13108 }
13109 resultobj = SWIG_Py_Void();
13110 if (SWIG_IsTmpObj(res3)) {
13111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13112 } else {
13113 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13115 }
13116 if (SWIG_IsTmpObj(res4)) {
13117 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13118 } else {
13119 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13121 }
13122 return resultobj;
13123 fail:
13124 return NULL;
13125 }
13126
13127
13128 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13129 PyObject *resultobj = 0;
13130 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13131 long arg2 ;
13132 void *argp1 = 0 ;
13133 int res1 = 0 ;
13134 long val2 ;
13135 int ecode2 = 0 ;
13136 PyObject * obj0 = 0 ;
13137 PyObject * obj1 = 0 ;
13138 char * kwnames[] = {
13139 (char *) "self",(char *) "pos", NULL
13140 };
13141
13142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13144 if (!SWIG_IsOK(res1)) {
13145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13146 }
13147 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13148 ecode2 = SWIG_AsVal_long(obj1, &val2);
13149 if (!SWIG_IsOK(ecode2)) {
13150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13151 }
13152 arg2 = static_cast< long >(val2);
13153 {
13154 PyThreadState* __tstate = wxPyBeginAllowThreads();
13155 (arg1)->ShowPosition(arg2);
13156 wxPyEndAllowThreads(__tstate);
13157 if (PyErr_Occurred()) SWIG_fail;
13158 }
13159 resultobj = SWIG_Py_Void();
13160 return resultobj;
13161 fail:
13162 return NULL;
13163 }
13164
13165
13166 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13167 PyObject *resultobj = 0;
13168 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13169 wxPoint *arg2 = 0 ;
13170 long *arg3 = (long *) 0 ;
13171 long *arg4 = (long *) 0 ;
13172 wxTextCtrlHitTestResult result;
13173 void *argp1 = 0 ;
13174 int res1 = 0 ;
13175 wxPoint temp2 ;
13176 long temp3 ;
13177 int res3 = SWIG_TMPOBJ ;
13178 long temp4 ;
13179 int res4 = SWIG_TMPOBJ ;
13180 PyObject * obj0 = 0 ;
13181 PyObject * obj1 = 0 ;
13182 char * kwnames[] = {
13183 (char *) "self",(char *) "pt", NULL
13184 };
13185
13186 arg3 = &temp3;
13187 arg4 = &temp4;
13188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13190 if (!SWIG_IsOK(res1)) {
13191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13192 }
13193 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13194 {
13195 arg2 = &temp2;
13196 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13197 }
13198 {
13199 PyThreadState* __tstate = wxPyBeginAllowThreads();
13200 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13201 wxPyEndAllowThreads(__tstate);
13202 if (PyErr_Occurred()) SWIG_fail;
13203 }
13204 resultobj = SWIG_From_int(static_cast< int >(result));
13205 if (SWIG_IsTmpObj(res3)) {
13206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13207 } else {
13208 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13210 }
13211 if (SWIG_IsTmpObj(res4)) {
13212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13213 } else {
13214 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13216 }
13217 return resultobj;
13218 fail:
13219 return NULL;
13220 }
13221
13222
13223 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13224 PyObject *resultobj = 0;
13225 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13226 wxPoint *arg2 = 0 ;
13227 long *arg3 = (long *) 0 ;
13228 wxTextCtrlHitTestResult result;
13229 void *argp1 = 0 ;
13230 int res1 = 0 ;
13231 wxPoint temp2 ;
13232 long temp3 ;
13233 int res3 = SWIG_TMPOBJ ;
13234 PyObject * obj0 = 0 ;
13235 PyObject * obj1 = 0 ;
13236 char * kwnames[] = {
13237 (char *) "self",(char *) "pt", NULL
13238 };
13239
13240 arg3 = &temp3;
13241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13243 if (!SWIG_IsOK(res1)) {
13244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13245 }
13246 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13247 {
13248 arg2 = &temp2;
13249 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13250 }
13251 {
13252 PyThreadState* __tstate = wxPyBeginAllowThreads();
13253 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13254 wxPyEndAllowThreads(__tstate);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 }
13257 resultobj = SWIG_From_int(static_cast< int >(result));
13258 if (SWIG_IsTmpObj(res3)) {
13259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13260 } else {
13261 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13263 }
13264 return resultobj;
13265 fail:
13266 return NULL;
13267 }
13268
13269
13270 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13271 PyObject *resultobj = 0;
13272 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13273 void *argp1 = 0 ;
13274 int res1 = 0 ;
13275 PyObject *swig_obj[1] ;
13276
13277 if (!args) SWIG_fail;
13278 swig_obj[0] = args;
13279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13280 if (!SWIG_IsOK(res1)) {
13281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13282 }
13283 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13284 {
13285 PyThreadState* __tstate = wxPyBeginAllowThreads();
13286 (arg1)->Copy();
13287 wxPyEndAllowThreads(__tstate);
13288 if (PyErr_Occurred()) SWIG_fail;
13289 }
13290 resultobj = SWIG_Py_Void();
13291 return resultobj;
13292 fail:
13293 return NULL;
13294 }
13295
13296
13297 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13298 PyObject *resultobj = 0;
13299 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13300 void *argp1 = 0 ;
13301 int res1 = 0 ;
13302 PyObject *swig_obj[1] ;
13303
13304 if (!args) SWIG_fail;
13305 swig_obj[0] = args;
13306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13307 if (!SWIG_IsOK(res1)) {
13308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13309 }
13310 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13311 {
13312 PyThreadState* __tstate = wxPyBeginAllowThreads();
13313 (arg1)->Cut();
13314 wxPyEndAllowThreads(__tstate);
13315 if (PyErr_Occurred()) SWIG_fail;
13316 }
13317 resultobj = SWIG_Py_Void();
13318 return resultobj;
13319 fail:
13320 return NULL;
13321 }
13322
13323
13324 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13325 PyObject *resultobj = 0;
13326 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13327 void *argp1 = 0 ;
13328 int res1 = 0 ;
13329 PyObject *swig_obj[1] ;
13330
13331 if (!args) SWIG_fail;
13332 swig_obj[0] = args;
13333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13334 if (!SWIG_IsOK(res1)) {
13335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13336 }
13337 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13338 {
13339 PyThreadState* __tstate = wxPyBeginAllowThreads();
13340 (arg1)->Paste();
13341 wxPyEndAllowThreads(__tstate);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 }
13344 resultobj = SWIG_Py_Void();
13345 return resultobj;
13346 fail:
13347 return NULL;
13348 }
13349
13350
13351 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13352 PyObject *resultobj = 0;
13353 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13354 bool result;
13355 void *argp1 = 0 ;
13356 int res1 = 0 ;
13357 PyObject *swig_obj[1] ;
13358
13359 if (!args) SWIG_fail;
13360 swig_obj[0] = args;
13361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13362 if (!SWIG_IsOK(res1)) {
13363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13364 }
13365 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13366 {
13367 PyThreadState* __tstate = wxPyBeginAllowThreads();
13368 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13369 wxPyEndAllowThreads(__tstate);
13370 if (PyErr_Occurred()) SWIG_fail;
13371 }
13372 {
13373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13374 }
13375 return resultobj;
13376 fail:
13377 return NULL;
13378 }
13379
13380
13381 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13382 PyObject *resultobj = 0;
13383 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13384 bool result;
13385 void *argp1 = 0 ;
13386 int res1 = 0 ;
13387 PyObject *swig_obj[1] ;
13388
13389 if (!args) SWIG_fail;
13390 swig_obj[0] = args;
13391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13392 if (!SWIG_IsOK(res1)) {
13393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13394 }
13395 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13396 {
13397 PyThreadState* __tstate = wxPyBeginAllowThreads();
13398 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13399 wxPyEndAllowThreads(__tstate);
13400 if (PyErr_Occurred()) SWIG_fail;
13401 }
13402 {
13403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13404 }
13405 return resultobj;
13406 fail:
13407 return NULL;
13408 }
13409
13410
13411 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13412 PyObject *resultobj = 0;
13413 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13414 bool result;
13415 void *argp1 = 0 ;
13416 int res1 = 0 ;
13417 PyObject *swig_obj[1] ;
13418
13419 if (!args) SWIG_fail;
13420 swig_obj[0] = args;
13421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13422 if (!SWIG_IsOK(res1)) {
13423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13424 }
13425 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13429 wxPyEndAllowThreads(__tstate);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 }
13432 {
13433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13434 }
13435 return resultobj;
13436 fail:
13437 return NULL;
13438 }
13439
13440
13441 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13442 PyObject *resultobj = 0;
13443 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13444 void *argp1 = 0 ;
13445 int res1 = 0 ;
13446 PyObject *swig_obj[1] ;
13447
13448 if (!args) SWIG_fail;
13449 swig_obj[0] = args;
13450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13451 if (!SWIG_IsOK(res1)) {
13452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13453 }
13454 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13455 {
13456 PyThreadState* __tstate = wxPyBeginAllowThreads();
13457 (arg1)->Undo();
13458 wxPyEndAllowThreads(__tstate);
13459 if (PyErr_Occurred()) SWIG_fail;
13460 }
13461 resultobj = SWIG_Py_Void();
13462 return resultobj;
13463 fail:
13464 return NULL;
13465 }
13466
13467
13468 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13469 PyObject *resultobj = 0;
13470 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13471 void *argp1 = 0 ;
13472 int res1 = 0 ;
13473 PyObject *swig_obj[1] ;
13474
13475 if (!args) SWIG_fail;
13476 swig_obj[0] = args;
13477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13478 if (!SWIG_IsOK(res1)) {
13479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13480 }
13481 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13482 {
13483 PyThreadState* __tstate = wxPyBeginAllowThreads();
13484 (arg1)->Redo();
13485 wxPyEndAllowThreads(__tstate);
13486 if (PyErr_Occurred()) SWIG_fail;
13487 }
13488 resultobj = SWIG_Py_Void();
13489 return resultobj;
13490 fail:
13491 return NULL;
13492 }
13493
13494
13495 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13496 PyObject *resultobj = 0;
13497 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13498 bool result;
13499 void *argp1 = 0 ;
13500 int res1 = 0 ;
13501 PyObject *swig_obj[1] ;
13502
13503 if (!args) SWIG_fail;
13504 swig_obj[0] = args;
13505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13506 if (!SWIG_IsOK(res1)) {
13507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13508 }
13509 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13510 {
13511 PyThreadState* __tstate = wxPyBeginAllowThreads();
13512 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13513 wxPyEndAllowThreads(__tstate);
13514 if (PyErr_Occurred()) SWIG_fail;
13515 }
13516 {
13517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13518 }
13519 return resultobj;
13520 fail:
13521 return NULL;
13522 }
13523
13524
13525 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13526 PyObject *resultobj = 0;
13527 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13528 bool result;
13529 void *argp1 = 0 ;
13530 int res1 = 0 ;
13531 PyObject *swig_obj[1] ;
13532
13533 if (!args) SWIG_fail;
13534 swig_obj[0] = args;
13535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13536 if (!SWIG_IsOK(res1)) {
13537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13538 }
13539 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13540 {
13541 PyThreadState* __tstate = wxPyBeginAllowThreads();
13542 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13543 wxPyEndAllowThreads(__tstate);
13544 if (PyErr_Occurred()) SWIG_fail;
13545 }
13546 {
13547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13548 }
13549 return resultobj;
13550 fail:
13551 return NULL;
13552 }
13553
13554
13555 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13556 PyObject *resultobj = 0;
13557 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13558 long arg2 ;
13559 void *argp1 = 0 ;
13560 int res1 = 0 ;
13561 long val2 ;
13562 int ecode2 = 0 ;
13563 PyObject * obj0 = 0 ;
13564 PyObject * obj1 = 0 ;
13565 char * kwnames[] = {
13566 (char *) "self",(char *) "pos", NULL
13567 };
13568
13569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13571 if (!SWIG_IsOK(res1)) {
13572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13573 }
13574 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13575 ecode2 = SWIG_AsVal_long(obj1, &val2);
13576 if (!SWIG_IsOK(ecode2)) {
13577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13578 }
13579 arg2 = static_cast< long >(val2);
13580 {
13581 PyThreadState* __tstate = wxPyBeginAllowThreads();
13582 (arg1)->SetInsertionPoint(arg2);
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 resultobj = SWIG_Py_Void();
13587 return resultobj;
13588 fail:
13589 return NULL;
13590 }
13591
13592
13593 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13594 PyObject *resultobj = 0;
13595 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13596 void *argp1 = 0 ;
13597 int res1 = 0 ;
13598 PyObject *swig_obj[1] ;
13599
13600 if (!args) SWIG_fail;
13601 swig_obj[0] = args;
13602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13603 if (!SWIG_IsOK(res1)) {
13604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13605 }
13606 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13607 {
13608 PyThreadState* __tstate = wxPyBeginAllowThreads();
13609 (arg1)->SetInsertionPointEnd();
13610 wxPyEndAllowThreads(__tstate);
13611 if (PyErr_Occurred()) SWIG_fail;
13612 }
13613 resultobj = SWIG_Py_Void();
13614 return resultobj;
13615 fail:
13616 return NULL;
13617 }
13618
13619
13620 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13621 PyObject *resultobj = 0;
13622 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13623 long result;
13624 void *argp1 = 0 ;
13625 int res1 = 0 ;
13626 PyObject *swig_obj[1] ;
13627
13628 if (!args) SWIG_fail;
13629 swig_obj[0] = args;
13630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13631 if (!SWIG_IsOK(res1)) {
13632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13633 }
13634 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13635 {
13636 PyThreadState* __tstate = wxPyBeginAllowThreads();
13637 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13638 wxPyEndAllowThreads(__tstate);
13639 if (PyErr_Occurred()) SWIG_fail;
13640 }
13641 resultobj = SWIG_From_long(static_cast< long >(result));
13642 return resultobj;
13643 fail:
13644 return NULL;
13645 }
13646
13647
13648 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13649 PyObject *resultobj = 0;
13650 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13651 long result;
13652 void *argp1 = 0 ;
13653 int res1 = 0 ;
13654 PyObject *swig_obj[1] ;
13655
13656 if (!args) SWIG_fail;
13657 swig_obj[0] = args;
13658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13659 if (!SWIG_IsOK(res1)) {
13660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13661 }
13662 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13663 {
13664 PyThreadState* __tstate = wxPyBeginAllowThreads();
13665 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13666 wxPyEndAllowThreads(__tstate);
13667 if (PyErr_Occurred()) SWIG_fail;
13668 }
13669 resultobj = SWIG_From_long(static_cast< long >(result));
13670 return resultobj;
13671 fail:
13672 return NULL;
13673 }
13674
13675
13676 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13677 PyObject *resultobj = 0;
13678 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13679 long arg2 ;
13680 long arg3 ;
13681 void *argp1 = 0 ;
13682 int res1 = 0 ;
13683 long val2 ;
13684 int ecode2 = 0 ;
13685 long val3 ;
13686 int ecode3 = 0 ;
13687 PyObject * obj0 = 0 ;
13688 PyObject * obj1 = 0 ;
13689 PyObject * obj2 = 0 ;
13690 char * kwnames[] = {
13691 (char *) "self",(char *) "from",(char *) "to", NULL
13692 };
13693
13694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13696 if (!SWIG_IsOK(res1)) {
13697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13698 }
13699 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13700 ecode2 = SWIG_AsVal_long(obj1, &val2);
13701 if (!SWIG_IsOK(ecode2)) {
13702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13703 }
13704 arg2 = static_cast< long >(val2);
13705 ecode3 = SWIG_AsVal_long(obj2, &val3);
13706 if (!SWIG_IsOK(ecode3)) {
13707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13708 }
13709 arg3 = static_cast< long >(val3);
13710 {
13711 PyThreadState* __tstate = wxPyBeginAllowThreads();
13712 (arg1)->SetSelection(arg2,arg3);
13713 wxPyEndAllowThreads(__tstate);
13714 if (PyErr_Occurred()) SWIG_fail;
13715 }
13716 resultobj = SWIG_Py_Void();
13717 return resultobj;
13718 fail:
13719 return NULL;
13720 }
13721
13722
13723 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13724 PyObject *resultobj = 0;
13725 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13726 void *argp1 = 0 ;
13727 int res1 = 0 ;
13728 PyObject *swig_obj[1] ;
13729
13730 if (!args) SWIG_fail;
13731 swig_obj[0] = args;
13732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13733 if (!SWIG_IsOK(res1)) {
13734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13735 }
13736 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13737 {
13738 PyThreadState* __tstate = wxPyBeginAllowThreads();
13739 (arg1)->SelectAll();
13740 wxPyEndAllowThreads(__tstate);
13741 if (PyErr_Occurred()) SWIG_fail;
13742 }
13743 resultobj = SWIG_Py_Void();
13744 return resultobj;
13745 fail:
13746 return NULL;
13747 }
13748
13749
13750 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13751 PyObject *resultobj = 0;
13752 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13753 bool arg2 ;
13754 void *argp1 = 0 ;
13755 int res1 = 0 ;
13756 bool val2 ;
13757 int ecode2 = 0 ;
13758 PyObject * obj0 = 0 ;
13759 PyObject * obj1 = 0 ;
13760 char * kwnames[] = {
13761 (char *) "self",(char *) "editable", NULL
13762 };
13763
13764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13766 if (!SWIG_IsOK(res1)) {
13767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13768 }
13769 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13770 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13771 if (!SWIG_IsOK(ecode2)) {
13772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13773 }
13774 arg2 = static_cast< bool >(val2);
13775 {
13776 PyThreadState* __tstate = wxPyBeginAllowThreads();
13777 (arg1)->SetEditable(arg2);
13778 wxPyEndAllowThreads(__tstate);
13779 if (PyErr_Occurred()) SWIG_fail;
13780 }
13781 resultobj = SWIG_Py_Void();
13782 return resultobj;
13783 fail:
13784 return NULL;
13785 }
13786
13787
13788 SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13789 PyObject *resultobj = 0;
13790 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13791 bool arg2 ;
13792 void *argp1 = 0 ;
13793 int res1 = 0 ;
13794 bool val2 ;
13795 int ecode2 = 0 ;
13796 PyObject * obj0 = 0 ;
13797 PyObject * obj1 = 0 ;
13798 char * kwnames[] = {
13799 (char *) "self",(char *) "check", NULL
13800 };
13801
13802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13804 if (!SWIG_IsOK(res1)) {
13805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13806 }
13807 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13808 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13809 if (!SWIG_IsOK(ecode2)) {
13810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13811 }
13812 arg2 = static_cast< bool >(val2);
13813 {
13814 PyThreadState* __tstate = wxPyBeginAllowThreads();
13815 (arg1)->MacCheckSpelling(arg2);
13816 wxPyEndAllowThreads(__tstate);
13817 if (PyErr_Occurred()) SWIG_fail;
13818 }
13819 resultobj = SWIG_Py_Void();
13820 return resultobj;
13821 fail:
13822 return NULL;
13823 }
13824
13825
13826 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13827 PyObject *resultobj = 0;
13828 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13829 void *argp1 = 0 ;
13830 int res1 = 0 ;
13831 PyObject *swig_obj[1] ;
13832
13833 if (!args) SWIG_fail;
13834 swig_obj[0] = args;
13835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13836 if (!SWIG_IsOK(res1)) {
13837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13838 }
13839 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13840 {
13841 PyThreadState* __tstate = wxPyBeginAllowThreads();
13842 (arg1)->SendTextUpdatedEvent();
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 resultobj = SWIG_Py_Void();
13847 return resultobj;
13848 fail:
13849 return NULL;
13850 }
13851
13852
13853 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13854 PyObject *resultobj = 0;
13855 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13856 wxString *arg2 = 0 ;
13857 void *argp1 = 0 ;
13858 int res1 = 0 ;
13859 bool temp2 = false ;
13860 PyObject * obj0 = 0 ;
13861 PyObject * obj1 = 0 ;
13862 char * kwnames[] = {
13863 (char *) "self",(char *) "text", NULL
13864 };
13865
13866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13868 if (!SWIG_IsOK(res1)) {
13869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13870 }
13871 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13872 {
13873 arg2 = wxString_in_helper(obj1);
13874 if (arg2 == NULL) SWIG_fail;
13875 temp2 = true;
13876 }
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
13879 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13880 wxPyEndAllowThreads(__tstate);
13881 if (PyErr_Occurred()) SWIG_fail;
13882 }
13883 resultobj = SWIG_Py_Void();
13884 {
13885 if (temp2)
13886 delete arg2;
13887 }
13888 return resultobj;
13889 fail:
13890 {
13891 if (temp2)
13892 delete arg2;
13893 }
13894 return NULL;
13895 }
13896
13897
13898 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13899 PyObject *resultobj = 0;
13900 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13901 long arg2 ;
13902 long arg3 ;
13903 wxString result;
13904 void *argp1 = 0 ;
13905 int res1 = 0 ;
13906 long val2 ;
13907 int ecode2 = 0 ;
13908 long val3 ;
13909 int ecode3 = 0 ;
13910 PyObject * obj0 = 0 ;
13911 PyObject * obj1 = 0 ;
13912 PyObject * obj2 = 0 ;
13913 char * kwnames[] = {
13914 (char *) "self",(char *) "from",(char *) "to", NULL
13915 };
13916
13917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13919 if (!SWIG_IsOK(res1)) {
13920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13921 }
13922 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13923 ecode2 = SWIG_AsVal_long(obj1, &val2);
13924 if (!SWIG_IsOK(ecode2)) {
13925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13926 }
13927 arg2 = static_cast< long >(val2);
13928 ecode3 = SWIG_AsVal_long(obj2, &val3);
13929 if (!SWIG_IsOK(ecode3)) {
13930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13931 }
13932 arg3 = static_cast< long >(val3);
13933 {
13934 PyThreadState* __tstate = wxPyBeginAllowThreads();
13935 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13936 wxPyEndAllowThreads(__tstate);
13937 if (PyErr_Occurred()) SWIG_fail;
13938 }
13939 {
13940 #if wxUSE_UNICODE
13941 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13942 #else
13943 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13944 #endif
13945 }
13946 return resultobj;
13947 fail:
13948 return NULL;
13949 }
13950
13951
13952 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13953 PyObject *resultobj = 0;
13954 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13955 SwigValueWrapper<wxVisualAttributes > result;
13956 int val1 ;
13957 int ecode1 = 0 ;
13958 PyObject * obj0 = 0 ;
13959 char * kwnames[] = {
13960 (char *) "variant", NULL
13961 };
13962
13963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13964 if (obj0) {
13965 ecode1 = SWIG_AsVal_int(obj0, &val1);
13966 if (!SWIG_IsOK(ecode1)) {
13967 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13968 }
13969 arg1 = static_cast< wxWindowVariant >(val1);
13970 }
13971 {
13972 if (!wxPyCheckForApp()) SWIG_fail;
13973 PyThreadState* __tstate = wxPyBeginAllowThreads();
13974 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13975 wxPyEndAllowThreads(__tstate);
13976 if (PyErr_Occurred()) SWIG_fail;
13977 }
13978 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13979 return resultobj;
13980 fail:
13981 return NULL;
13982 }
13983
13984
13985 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13986 PyObject *obj;
13987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13988 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13989 return SWIG_Py_Void();
13990 }
13991
13992 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13993 return SWIG_Python_InitShadowInstance(args);
13994 }
13995
13996 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13997 PyObject *resultobj = 0;
13998 int arg1 ;
13999 wxMouseEvent *arg2 = 0 ;
14000 long arg3 ;
14001 long arg4 ;
14002 wxTextUrlEvent *result = 0 ;
14003 int val1 ;
14004 int ecode1 = 0 ;
14005 void *argp2 = 0 ;
14006 int res2 = 0 ;
14007 long val3 ;
14008 int ecode3 = 0 ;
14009 long val4 ;
14010 int ecode4 = 0 ;
14011 PyObject * obj0 = 0 ;
14012 PyObject * obj1 = 0 ;
14013 PyObject * obj2 = 0 ;
14014 PyObject * obj3 = 0 ;
14015 char * kwnames[] = {
14016 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14017 };
14018
14019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14020 ecode1 = SWIG_AsVal_int(obj0, &val1);
14021 if (!SWIG_IsOK(ecode1)) {
14022 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14023 }
14024 arg1 = static_cast< int >(val1);
14025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14026 if (!SWIG_IsOK(res2)) {
14027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14028 }
14029 if (!argp2) {
14030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14031 }
14032 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14033 ecode3 = SWIG_AsVal_long(obj2, &val3);
14034 if (!SWIG_IsOK(ecode3)) {
14035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14036 }
14037 arg3 = static_cast< long >(val3);
14038 ecode4 = SWIG_AsVal_long(obj3, &val4);
14039 if (!SWIG_IsOK(ecode4)) {
14040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14041 }
14042 arg4 = static_cast< long >(val4);
14043 {
14044 PyThreadState* __tstate = wxPyBeginAllowThreads();
14045 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14046 wxPyEndAllowThreads(__tstate);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14050 return resultobj;
14051 fail:
14052 return NULL;
14053 }
14054
14055
14056 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14057 PyObject *resultobj = 0;
14058 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14059 wxMouseEvent *result = 0 ;
14060 void *argp1 = 0 ;
14061 int res1 = 0 ;
14062 PyObject *swig_obj[1] ;
14063
14064 if (!args) SWIG_fail;
14065 swig_obj[0] = args;
14066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14067 if (!SWIG_IsOK(res1)) {
14068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14069 }
14070 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14071 {
14072 PyThreadState* __tstate = wxPyBeginAllowThreads();
14073 {
14074 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14075 result = (wxMouseEvent *) &_result_ref;
14076 }
14077 wxPyEndAllowThreads(__tstate);
14078 if (PyErr_Occurred()) SWIG_fail;
14079 }
14080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14081 return resultobj;
14082 fail:
14083 return NULL;
14084 }
14085
14086
14087 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14088 PyObject *resultobj = 0;
14089 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14090 long result;
14091 void *argp1 = 0 ;
14092 int res1 = 0 ;
14093 PyObject *swig_obj[1] ;
14094
14095 if (!args) SWIG_fail;
14096 swig_obj[0] = args;
14097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14098 if (!SWIG_IsOK(res1)) {
14099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14100 }
14101 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14102 {
14103 PyThreadState* __tstate = wxPyBeginAllowThreads();
14104 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14105 wxPyEndAllowThreads(__tstate);
14106 if (PyErr_Occurred()) SWIG_fail;
14107 }
14108 resultobj = SWIG_From_long(static_cast< long >(result));
14109 return resultobj;
14110 fail:
14111 return NULL;
14112 }
14113
14114
14115 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14116 PyObject *resultobj = 0;
14117 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14118 long result;
14119 void *argp1 = 0 ;
14120 int res1 = 0 ;
14121 PyObject *swig_obj[1] ;
14122
14123 if (!args) SWIG_fail;
14124 swig_obj[0] = args;
14125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14126 if (!SWIG_IsOK(res1)) {
14127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14128 }
14129 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14130 {
14131 PyThreadState* __tstate = wxPyBeginAllowThreads();
14132 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14133 wxPyEndAllowThreads(__tstate);
14134 if (PyErr_Occurred()) SWIG_fail;
14135 }
14136 resultobj = SWIG_From_long(static_cast< long >(result));
14137 return resultobj;
14138 fail:
14139 return NULL;
14140 }
14141
14142
14143 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14144 PyObject *obj;
14145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14146 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14147 return SWIG_Py_Void();
14148 }
14149
14150 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14151 return SWIG_Python_InitShadowInstance(args);
14152 }
14153
14154 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14155 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14156 return 1;
14157 }
14158
14159
14160 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14161 PyObject *pyobj = 0;
14162
14163 {
14164 #if wxUSE_UNICODE
14165 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14166 #else
14167 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14168 #endif
14169 }
14170 return pyobj;
14171 }
14172
14173
14174 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14175 PyObject *resultobj = 0;
14176 wxWindow *arg1 = (wxWindow *) 0 ;
14177 int arg2 = (int) -1 ;
14178 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14179 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14180 wxSize const &arg4_defvalue = wxDefaultSize ;
14181 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14182 long arg5 = (long) wxSB_HORIZONTAL ;
14183 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14184 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14185 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14186 wxString *arg7 = (wxString *) &arg7_defvalue ;
14187 wxScrollBar *result = 0 ;
14188 void *argp1 = 0 ;
14189 int res1 = 0 ;
14190 int val2 ;
14191 int ecode2 = 0 ;
14192 wxPoint temp3 ;
14193 wxSize temp4 ;
14194 long val5 ;
14195 int ecode5 = 0 ;
14196 void *argp6 = 0 ;
14197 int res6 = 0 ;
14198 bool temp7 = false ;
14199 PyObject * obj0 = 0 ;
14200 PyObject * obj1 = 0 ;
14201 PyObject * obj2 = 0 ;
14202 PyObject * obj3 = 0 ;
14203 PyObject * obj4 = 0 ;
14204 PyObject * obj5 = 0 ;
14205 PyObject * obj6 = 0 ;
14206 char * kwnames[] = {
14207 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14208 };
14209
14210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14212 if (!SWIG_IsOK(res1)) {
14213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14214 }
14215 arg1 = reinterpret_cast< wxWindow * >(argp1);
14216 if (obj1) {
14217 ecode2 = SWIG_AsVal_int(obj1, &val2);
14218 if (!SWIG_IsOK(ecode2)) {
14219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14220 }
14221 arg2 = static_cast< int >(val2);
14222 }
14223 if (obj2) {
14224 {
14225 arg3 = &temp3;
14226 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14227 }
14228 }
14229 if (obj3) {
14230 {
14231 arg4 = &temp4;
14232 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14233 }
14234 }
14235 if (obj4) {
14236 ecode5 = SWIG_AsVal_long(obj4, &val5);
14237 if (!SWIG_IsOK(ecode5)) {
14238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14239 }
14240 arg5 = static_cast< long >(val5);
14241 }
14242 if (obj5) {
14243 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14244 if (!SWIG_IsOK(res6)) {
14245 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14246 }
14247 if (!argp6) {
14248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14249 }
14250 arg6 = reinterpret_cast< wxValidator * >(argp6);
14251 }
14252 if (obj6) {
14253 {
14254 arg7 = wxString_in_helper(obj6);
14255 if (arg7 == NULL) SWIG_fail;
14256 temp7 = true;
14257 }
14258 }
14259 {
14260 if (!wxPyCheckForApp()) SWIG_fail;
14261 PyThreadState* __tstate = wxPyBeginAllowThreads();
14262 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14263 wxPyEndAllowThreads(__tstate);
14264 if (PyErr_Occurred()) SWIG_fail;
14265 }
14266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14267 {
14268 if (temp7)
14269 delete arg7;
14270 }
14271 return resultobj;
14272 fail:
14273 {
14274 if (temp7)
14275 delete arg7;
14276 }
14277 return NULL;
14278 }
14279
14280
14281 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14282 PyObject *resultobj = 0;
14283 wxScrollBar *result = 0 ;
14284
14285 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14286 {
14287 if (!wxPyCheckForApp()) SWIG_fail;
14288 PyThreadState* __tstate = wxPyBeginAllowThreads();
14289 result = (wxScrollBar *)new wxScrollBar();
14290 wxPyEndAllowThreads(__tstate);
14291 if (PyErr_Occurred()) SWIG_fail;
14292 }
14293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14294 return resultobj;
14295 fail:
14296 return NULL;
14297 }
14298
14299
14300 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14301 PyObject *resultobj = 0;
14302 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14303 wxWindow *arg2 = (wxWindow *) 0 ;
14304 int arg3 = (int) -1 ;
14305 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14306 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14307 wxSize const &arg5_defvalue = wxDefaultSize ;
14308 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14309 long arg6 = (long) wxSB_HORIZONTAL ;
14310 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14311 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14312 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14313 wxString *arg8 = (wxString *) &arg8_defvalue ;
14314 bool result;
14315 void *argp1 = 0 ;
14316 int res1 = 0 ;
14317 void *argp2 = 0 ;
14318 int res2 = 0 ;
14319 int val3 ;
14320 int ecode3 = 0 ;
14321 wxPoint temp4 ;
14322 wxSize temp5 ;
14323 long val6 ;
14324 int ecode6 = 0 ;
14325 void *argp7 = 0 ;
14326 int res7 = 0 ;
14327 bool temp8 = false ;
14328 PyObject * obj0 = 0 ;
14329 PyObject * obj1 = 0 ;
14330 PyObject * obj2 = 0 ;
14331 PyObject * obj3 = 0 ;
14332 PyObject * obj4 = 0 ;
14333 PyObject * obj5 = 0 ;
14334 PyObject * obj6 = 0 ;
14335 PyObject * obj7 = 0 ;
14336 char * kwnames[] = {
14337 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14338 };
14339
14340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14342 if (!SWIG_IsOK(res1)) {
14343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14344 }
14345 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14346 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14347 if (!SWIG_IsOK(res2)) {
14348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14349 }
14350 arg2 = reinterpret_cast< wxWindow * >(argp2);
14351 if (obj2) {
14352 ecode3 = SWIG_AsVal_int(obj2, &val3);
14353 if (!SWIG_IsOK(ecode3)) {
14354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14355 }
14356 arg3 = static_cast< int >(val3);
14357 }
14358 if (obj3) {
14359 {
14360 arg4 = &temp4;
14361 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14362 }
14363 }
14364 if (obj4) {
14365 {
14366 arg5 = &temp5;
14367 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14368 }
14369 }
14370 if (obj5) {
14371 ecode6 = SWIG_AsVal_long(obj5, &val6);
14372 if (!SWIG_IsOK(ecode6)) {
14373 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14374 }
14375 arg6 = static_cast< long >(val6);
14376 }
14377 if (obj6) {
14378 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14379 if (!SWIG_IsOK(res7)) {
14380 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14381 }
14382 if (!argp7) {
14383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14384 }
14385 arg7 = reinterpret_cast< wxValidator * >(argp7);
14386 }
14387 if (obj7) {
14388 {
14389 arg8 = wxString_in_helper(obj7);
14390 if (arg8 == NULL) SWIG_fail;
14391 temp8 = true;
14392 }
14393 }
14394 {
14395 PyThreadState* __tstate = wxPyBeginAllowThreads();
14396 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14397 wxPyEndAllowThreads(__tstate);
14398 if (PyErr_Occurred()) SWIG_fail;
14399 }
14400 {
14401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14402 }
14403 {
14404 if (temp8)
14405 delete arg8;
14406 }
14407 return resultobj;
14408 fail:
14409 {
14410 if (temp8)
14411 delete arg8;
14412 }
14413 return NULL;
14414 }
14415
14416
14417 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14418 PyObject *resultobj = 0;
14419 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14420 int result;
14421 void *argp1 = 0 ;
14422 int res1 = 0 ;
14423 PyObject *swig_obj[1] ;
14424
14425 if (!args) SWIG_fail;
14426 swig_obj[0] = args;
14427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14428 if (!SWIG_IsOK(res1)) {
14429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14430 }
14431 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 resultobj = SWIG_From_int(static_cast< int >(result));
14439 return resultobj;
14440 fail:
14441 return NULL;
14442 }
14443
14444
14445 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14446 PyObject *resultobj = 0;
14447 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14448 int result;
14449 void *argp1 = 0 ;
14450 int res1 = 0 ;
14451 PyObject *swig_obj[1] ;
14452
14453 if (!args) SWIG_fail;
14454 swig_obj[0] = args;
14455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14456 if (!SWIG_IsOK(res1)) {
14457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14458 }
14459 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14460 {
14461 PyThreadState* __tstate = wxPyBeginAllowThreads();
14462 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14463 wxPyEndAllowThreads(__tstate);
14464 if (PyErr_Occurred()) SWIG_fail;
14465 }
14466 resultobj = SWIG_From_int(static_cast< int >(result));
14467 return resultobj;
14468 fail:
14469 return NULL;
14470 }
14471
14472
14473 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14474 PyObject *resultobj = 0;
14475 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14476 int result;
14477 void *argp1 = 0 ;
14478 int res1 = 0 ;
14479 PyObject *swig_obj[1] ;
14480
14481 if (!args) SWIG_fail;
14482 swig_obj[0] = args;
14483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14484 if (!SWIG_IsOK(res1)) {
14485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14486 }
14487 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14488 {
14489 PyThreadState* __tstate = wxPyBeginAllowThreads();
14490 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14491 wxPyEndAllowThreads(__tstate);
14492 if (PyErr_Occurred()) SWIG_fail;
14493 }
14494 resultobj = SWIG_From_int(static_cast< int >(result));
14495 return resultobj;
14496 fail:
14497 return NULL;
14498 }
14499
14500
14501 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14502 PyObject *resultobj = 0;
14503 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14504 int result;
14505 void *argp1 = 0 ;
14506 int res1 = 0 ;
14507 PyObject *swig_obj[1] ;
14508
14509 if (!args) SWIG_fail;
14510 swig_obj[0] = args;
14511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14512 if (!SWIG_IsOK(res1)) {
14513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14514 }
14515 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14516 {
14517 PyThreadState* __tstate = wxPyBeginAllowThreads();
14518 result = (int)((wxScrollBar const *)arg1)->GetRange();
14519 wxPyEndAllowThreads(__tstate);
14520 if (PyErr_Occurred()) SWIG_fail;
14521 }
14522 resultobj = SWIG_From_int(static_cast< int >(result));
14523 return resultobj;
14524 fail:
14525 return NULL;
14526 }
14527
14528
14529 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14530 PyObject *resultobj = 0;
14531 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14532 bool result;
14533 void *argp1 = 0 ;
14534 int res1 = 0 ;
14535 PyObject *swig_obj[1] ;
14536
14537 if (!args) SWIG_fail;
14538 swig_obj[0] = args;
14539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14540 if (!SWIG_IsOK(res1)) {
14541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14542 }
14543 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14544 {
14545 PyThreadState* __tstate = wxPyBeginAllowThreads();
14546 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14547 wxPyEndAllowThreads(__tstate);
14548 if (PyErr_Occurred()) SWIG_fail;
14549 }
14550 {
14551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14552 }
14553 return resultobj;
14554 fail:
14555 return NULL;
14556 }
14557
14558
14559 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14560 PyObject *resultobj = 0;
14561 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14562 int arg2 ;
14563 void *argp1 = 0 ;
14564 int res1 = 0 ;
14565 int val2 ;
14566 int ecode2 = 0 ;
14567 PyObject * obj0 = 0 ;
14568 PyObject * obj1 = 0 ;
14569 char * kwnames[] = {
14570 (char *) "self",(char *) "viewStart", NULL
14571 };
14572
14573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14575 if (!SWIG_IsOK(res1)) {
14576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14577 }
14578 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14579 ecode2 = SWIG_AsVal_int(obj1, &val2);
14580 if (!SWIG_IsOK(ecode2)) {
14581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14582 }
14583 arg2 = static_cast< int >(val2);
14584 {
14585 PyThreadState* __tstate = wxPyBeginAllowThreads();
14586 (arg1)->SetThumbPosition(arg2);
14587 wxPyEndAllowThreads(__tstate);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
14590 resultobj = SWIG_Py_Void();
14591 return resultobj;
14592 fail:
14593 return NULL;
14594 }
14595
14596
14597 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14598 PyObject *resultobj = 0;
14599 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14600 SwigValueWrapper<wxVisualAttributes > result;
14601 int val1 ;
14602 int ecode1 = 0 ;
14603 PyObject * obj0 = 0 ;
14604 char * kwnames[] = {
14605 (char *) "variant", NULL
14606 };
14607
14608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14609 if (obj0) {
14610 ecode1 = SWIG_AsVal_int(obj0, &val1);
14611 if (!SWIG_IsOK(ecode1)) {
14612 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14613 }
14614 arg1 = static_cast< wxWindowVariant >(val1);
14615 }
14616 {
14617 if (!wxPyCheckForApp()) SWIG_fail;
14618 PyThreadState* __tstate = wxPyBeginAllowThreads();
14619 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14620 wxPyEndAllowThreads(__tstate);
14621 if (PyErr_Occurred()) SWIG_fail;
14622 }
14623 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14624 return resultobj;
14625 fail:
14626 return NULL;
14627 }
14628
14629
14630 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14631 PyObject *obj;
14632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14633 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14634 return SWIG_Py_Void();
14635 }
14636
14637 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14638 return SWIG_Python_InitShadowInstance(args);
14639 }
14640
14641 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14642 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14643 return 1;
14644 }
14645
14646
14647 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14648 PyObject *pyobj = 0;
14649
14650 {
14651 #if wxUSE_UNICODE
14652 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14653 #else
14654 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14655 #endif
14656 }
14657 return pyobj;
14658 }
14659
14660
14661 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14662 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14663 return 1;
14664 }
14665
14666
14667 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14668 PyObject *pyobj = 0;
14669
14670 {
14671 #if wxUSE_UNICODE
14672 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14673 #else
14674 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14675 #endif
14676 }
14677 return pyobj;
14678 }
14679
14680
14681 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14682 PyObject *resultobj = 0;
14683 wxWindow *arg1 = (wxWindow *) 0 ;
14684 int arg2 = (int) -1 ;
14685 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14686 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14687 wxSize const &arg4_defvalue = wxDefaultSize ;
14688 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14689 long arg5 = (long) wxSP_HORIZONTAL ;
14690 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14691 wxString *arg6 = (wxString *) &arg6_defvalue ;
14692 wxSpinButton *result = 0 ;
14693 void *argp1 = 0 ;
14694 int res1 = 0 ;
14695 int val2 ;
14696 int ecode2 = 0 ;
14697 wxPoint temp3 ;
14698 wxSize temp4 ;
14699 long val5 ;
14700 int ecode5 = 0 ;
14701 bool temp6 = false ;
14702 PyObject * obj0 = 0 ;
14703 PyObject * obj1 = 0 ;
14704 PyObject * obj2 = 0 ;
14705 PyObject * obj3 = 0 ;
14706 PyObject * obj4 = 0 ;
14707 PyObject * obj5 = 0 ;
14708 char * kwnames[] = {
14709 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14710 };
14711
14712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14714 if (!SWIG_IsOK(res1)) {
14715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14716 }
14717 arg1 = reinterpret_cast< wxWindow * >(argp1);
14718 if (obj1) {
14719 ecode2 = SWIG_AsVal_int(obj1, &val2);
14720 if (!SWIG_IsOK(ecode2)) {
14721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14722 }
14723 arg2 = static_cast< int >(val2);
14724 }
14725 if (obj2) {
14726 {
14727 arg3 = &temp3;
14728 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14729 }
14730 }
14731 if (obj3) {
14732 {
14733 arg4 = &temp4;
14734 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14735 }
14736 }
14737 if (obj4) {
14738 ecode5 = SWIG_AsVal_long(obj4, &val5);
14739 if (!SWIG_IsOK(ecode5)) {
14740 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14741 }
14742 arg5 = static_cast< long >(val5);
14743 }
14744 if (obj5) {
14745 {
14746 arg6 = wxString_in_helper(obj5);
14747 if (arg6 == NULL) SWIG_fail;
14748 temp6 = true;
14749 }
14750 }
14751 {
14752 if (!wxPyCheckForApp()) SWIG_fail;
14753 PyThreadState* __tstate = wxPyBeginAllowThreads();
14754 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14755 wxPyEndAllowThreads(__tstate);
14756 if (PyErr_Occurred()) SWIG_fail;
14757 }
14758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14759 {
14760 if (temp6)
14761 delete arg6;
14762 }
14763 return resultobj;
14764 fail:
14765 {
14766 if (temp6)
14767 delete arg6;
14768 }
14769 return NULL;
14770 }
14771
14772
14773 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14774 PyObject *resultobj = 0;
14775 wxSpinButton *result = 0 ;
14776
14777 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14778 {
14779 if (!wxPyCheckForApp()) SWIG_fail;
14780 PyThreadState* __tstate = wxPyBeginAllowThreads();
14781 result = (wxSpinButton *)new wxSpinButton();
14782 wxPyEndAllowThreads(__tstate);
14783 if (PyErr_Occurred()) SWIG_fail;
14784 }
14785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14786 return resultobj;
14787 fail:
14788 return NULL;
14789 }
14790
14791
14792 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14793 PyObject *resultobj = 0;
14794 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14795 wxWindow *arg2 = (wxWindow *) 0 ;
14796 int arg3 = (int) -1 ;
14797 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14798 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14799 wxSize const &arg5_defvalue = wxDefaultSize ;
14800 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14801 long arg6 = (long) wxSP_HORIZONTAL ;
14802 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14803 wxString *arg7 = (wxString *) &arg7_defvalue ;
14804 bool result;
14805 void *argp1 = 0 ;
14806 int res1 = 0 ;
14807 void *argp2 = 0 ;
14808 int res2 = 0 ;
14809 int val3 ;
14810 int ecode3 = 0 ;
14811 wxPoint temp4 ;
14812 wxSize temp5 ;
14813 long val6 ;
14814 int ecode6 = 0 ;
14815 bool temp7 = false ;
14816 PyObject * obj0 = 0 ;
14817 PyObject * obj1 = 0 ;
14818 PyObject * obj2 = 0 ;
14819 PyObject * obj3 = 0 ;
14820 PyObject * obj4 = 0 ;
14821 PyObject * obj5 = 0 ;
14822 PyObject * obj6 = 0 ;
14823 char * kwnames[] = {
14824 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14825 };
14826
14827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14829 if (!SWIG_IsOK(res1)) {
14830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14831 }
14832 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14833 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14834 if (!SWIG_IsOK(res2)) {
14835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14836 }
14837 arg2 = reinterpret_cast< wxWindow * >(argp2);
14838 if (obj2) {
14839 ecode3 = SWIG_AsVal_int(obj2, &val3);
14840 if (!SWIG_IsOK(ecode3)) {
14841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14842 }
14843 arg3 = static_cast< int >(val3);
14844 }
14845 if (obj3) {
14846 {
14847 arg4 = &temp4;
14848 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14849 }
14850 }
14851 if (obj4) {
14852 {
14853 arg5 = &temp5;
14854 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14855 }
14856 }
14857 if (obj5) {
14858 ecode6 = SWIG_AsVal_long(obj5, &val6);
14859 if (!SWIG_IsOK(ecode6)) {
14860 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14861 }
14862 arg6 = static_cast< long >(val6);
14863 }
14864 if (obj6) {
14865 {
14866 arg7 = wxString_in_helper(obj6);
14867 if (arg7 == NULL) SWIG_fail;
14868 temp7 = true;
14869 }
14870 }
14871 {
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 {
14878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14879 }
14880 {
14881 if (temp7)
14882 delete arg7;
14883 }
14884 return resultobj;
14885 fail:
14886 {
14887 if (temp7)
14888 delete arg7;
14889 }
14890 return NULL;
14891 }
14892
14893
14894 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14895 PyObject *resultobj = 0;
14896 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14897 int result;
14898 void *argp1 = 0 ;
14899 int res1 = 0 ;
14900 PyObject *swig_obj[1] ;
14901
14902 if (!args) SWIG_fail;
14903 swig_obj[0] = args;
14904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14905 if (!SWIG_IsOK(res1)) {
14906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14907 }
14908 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 result = (int)((wxSpinButton const *)arg1)->GetValue();
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 resultobj = SWIG_From_int(static_cast< int >(result));
14916 return resultobj;
14917 fail:
14918 return NULL;
14919 }
14920
14921
14922 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14923 PyObject *resultobj = 0;
14924 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14925 int result;
14926 void *argp1 = 0 ;
14927 int res1 = 0 ;
14928 PyObject *swig_obj[1] ;
14929
14930 if (!args) SWIG_fail;
14931 swig_obj[0] = args;
14932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14933 if (!SWIG_IsOK(res1)) {
14934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14935 }
14936 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14937 {
14938 PyThreadState* __tstate = wxPyBeginAllowThreads();
14939 result = (int)((wxSpinButton const *)arg1)->GetMin();
14940 wxPyEndAllowThreads(__tstate);
14941 if (PyErr_Occurred()) SWIG_fail;
14942 }
14943 resultobj = SWIG_From_int(static_cast< int >(result));
14944 return resultobj;
14945 fail:
14946 return NULL;
14947 }
14948
14949
14950 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14951 PyObject *resultobj = 0;
14952 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14953 int result;
14954 void *argp1 = 0 ;
14955 int res1 = 0 ;
14956 PyObject *swig_obj[1] ;
14957
14958 if (!args) SWIG_fail;
14959 swig_obj[0] = args;
14960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14961 if (!SWIG_IsOK(res1)) {
14962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14963 }
14964 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14965 {
14966 PyThreadState* __tstate = wxPyBeginAllowThreads();
14967 result = (int)((wxSpinButton const *)arg1)->GetMax();
14968 wxPyEndAllowThreads(__tstate);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 }
14971 resultobj = SWIG_From_int(static_cast< int >(result));
14972 return resultobj;
14973 fail:
14974 return NULL;
14975 }
14976
14977
14978 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14979 PyObject *resultobj = 0;
14980 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14981 int arg2 ;
14982 void *argp1 = 0 ;
14983 int res1 = 0 ;
14984 int val2 ;
14985 int ecode2 = 0 ;
14986 PyObject * obj0 = 0 ;
14987 PyObject * obj1 = 0 ;
14988 char * kwnames[] = {
14989 (char *) "self",(char *) "val", NULL
14990 };
14991
14992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14994 if (!SWIG_IsOK(res1)) {
14995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14996 }
14997 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14998 ecode2 = SWIG_AsVal_int(obj1, &val2);
14999 if (!SWIG_IsOK(ecode2)) {
15000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15001 }
15002 arg2 = static_cast< int >(val2);
15003 {
15004 PyThreadState* __tstate = wxPyBeginAllowThreads();
15005 (arg1)->SetValue(arg2);
15006 wxPyEndAllowThreads(__tstate);
15007 if (PyErr_Occurred()) SWIG_fail;
15008 }
15009 resultobj = SWIG_Py_Void();
15010 return resultobj;
15011 fail:
15012 return NULL;
15013 }
15014
15015
15016 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15017 PyObject *resultobj = 0;
15018 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15019 int arg2 ;
15020 void *argp1 = 0 ;
15021 int res1 = 0 ;
15022 int val2 ;
15023 int ecode2 = 0 ;
15024 PyObject * obj0 = 0 ;
15025 PyObject * obj1 = 0 ;
15026 char * kwnames[] = {
15027 (char *) "self",(char *) "minVal", NULL
15028 };
15029
15030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15032 if (!SWIG_IsOK(res1)) {
15033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15034 }
15035 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15036 ecode2 = SWIG_AsVal_int(obj1, &val2);
15037 if (!SWIG_IsOK(ecode2)) {
15038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15039 }
15040 arg2 = static_cast< int >(val2);
15041 {
15042 PyThreadState* __tstate = wxPyBeginAllowThreads();
15043 (arg1)->SetMin(arg2);
15044 wxPyEndAllowThreads(__tstate);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 }
15047 resultobj = SWIG_Py_Void();
15048 return resultobj;
15049 fail:
15050 return NULL;
15051 }
15052
15053
15054 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15055 PyObject *resultobj = 0;
15056 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15057 int arg2 ;
15058 void *argp1 = 0 ;
15059 int res1 = 0 ;
15060 int val2 ;
15061 int ecode2 = 0 ;
15062 PyObject * obj0 = 0 ;
15063 PyObject * obj1 = 0 ;
15064 char * kwnames[] = {
15065 (char *) "self",(char *) "maxVal", NULL
15066 };
15067
15068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15070 if (!SWIG_IsOK(res1)) {
15071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15072 }
15073 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15074 ecode2 = SWIG_AsVal_int(obj1, &val2);
15075 if (!SWIG_IsOK(ecode2)) {
15076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15077 }
15078 arg2 = static_cast< int >(val2);
15079 {
15080 PyThreadState* __tstate = wxPyBeginAllowThreads();
15081 (arg1)->SetMax(arg2);
15082 wxPyEndAllowThreads(__tstate);
15083 if (PyErr_Occurred()) SWIG_fail;
15084 }
15085 resultobj = SWIG_Py_Void();
15086 return resultobj;
15087 fail:
15088 return NULL;
15089 }
15090
15091
15092 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15093 PyObject *resultobj = 0;
15094 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15095 int arg2 ;
15096 int arg3 ;
15097 void *argp1 = 0 ;
15098 int res1 = 0 ;
15099 int val2 ;
15100 int ecode2 = 0 ;
15101 int val3 ;
15102 int ecode3 = 0 ;
15103 PyObject * obj0 = 0 ;
15104 PyObject * obj1 = 0 ;
15105 PyObject * obj2 = 0 ;
15106 char * kwnames[] = {
15107 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15108 };
15109
15110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15112 if (!SWIG_IsOK(res1)) {
15113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15114 }
15115 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15116 ecode2 = SWIG_AsVal_int(obj1, &val2);
15117 if (!SWIG_IsOK(ecode2)) {
15118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15119 }
15120 arg2 = static_cast< int >(val2);
15121 ecode3 = SWIG_AsVal_int(obj2, &val3);
15122 if (!SWIG_IsOK(ecode3)) {
15123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15124 }
15125 arg3 = static_cast< int >(val3);
15126 {
15127 PyThreadState* __tstate = wxPyBeginAllowThreads();
15128 (arg1)->SetRange(arg2,arg3);
15129 wxPyEndAllowThreads(__tstate);
15130 if (PyErr_Occurred()) SWIG_fail;
15131 }
15132 resultobj = SWIG_Py_Void();
15133 return resultobj;
15134 fail:
15135 return NULL;
15136 }
15137
15138
15139 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15140 PyObject *resultobj = 0;
15141 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15142 bool result;
15143 void *argp1 = 0 ;
15144 int res1 = 0 ;
15145 PyObject *swig_obj[1] ;
15146
15147 if (!args) SWIG_fail;
15148 swig_obj[0] = args;
15149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15150 if (!SWIG_IsOK(res1)) {
15151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15152 }
15153 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15154 {
15155 PyThreadState* __tstate = wxPyBeginAllowThreads();
15156 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15157 wxPyEndAllowThreads(__tstate);
15158 if (PyErr_Occurred()) SWIG_fail;
15159 }
15160 {
15161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15162 }
15163 return resultobj;
15164 fail:
15165 return NULL;
15166 }
15167
15168
15169 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15170 PyObject *resultobj = 0;
15171 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15172 SwigValueWrapper<wxVisualAttributes > result;
15173 int val1 ;
15174 int ecode1 = 0 ;
15175 PyObject * obj0 = 0 ;
15176 char * kwnames[] = {
15177 (char *) "variant", NULL
15178 };
15179
15180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15181 if (obj0) {
15182 ecode1 = SWIG_AsVal_int(obj0, &val1);
15183 if (!SWIG_IsOK(ecode1)) {
15184 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15185 }
15186 arg1 = static_cast< wxWindowVariant >(val1);
15187 }
15188 {
15189 if (!wxPyCheckForApp()) SWIG_fail;
15190 PyThreadState* __tstate = wxPyBeginAllowThreads();
15191 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15192 wxPyEndAllowThreads(__tstate);
15193 if (PyErr_Occurred()) SWIG_fail;
15194 }
15195 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15196 return resultobj;
15197 fail:
15198 return NULL;
15199 }
15200
15201
15202 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15203 PyObject *obj;
15204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15205 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15206 return SWIG_Py_Void();
15207 }
15208
15209 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15210 return SWIG_Python_InitShadowInstance(args);
15211 }
15212
15213 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15214 PyObject *resultobj = 0;
15215 wxWindow *arg1 = (wxWindow *) 0 ;
15216 int arg2 = (int) -1 ;
15217 wxString const &arg3_defvalue = wxPyEmptyString ;
15218 wxString *arg3 = (wxString *) &arg3_defvalue ;
15219 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15220 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15221 wxSize const &arg5_defvalue = wxDefaultSize ;
15222 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15223 long arg6 = (long) wxSP_ARROW_KEYS ;
15224 int arg7 = (int) 0 ;
15225 int arg8 = (int) 100 ;
15226 int arg9 = (int) 0 ;
15227 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15228 wxString *arg10 = (wxString *) &arg10_defvalue ;
15229 wxSpinCtrl *result = 0 ;
15230 void *argp1 = 0 ;
15231 int res1 = 0 ;
15232 int val2 ;
15233 int ecode2 = 0 ;
15234 bool temp3 = false ;
15235 wxPoint temp4 ;
15236 wxSize temp5 ;
15237 long val6 ;
15238 int ecode6 = 0 ;
15239 int val7 ;
15240 int ecode7 = 0 ;
15241 int val8 ;
15242 int ecode8 = 0 ;
15243 int val9 ;
15244 int ecode9 = 0 ;
15245 bool temp10 = false ;
15246 PyObject * obj0 = 0 ;
15247 PyObject * obj1 = 0 ;
15248 PyObject * obj2 = 0 ;
15249 PyObject * obj3 = 0 ;
15250 PyObject * obj4 = 0 ;
15251 PyObject * obj5 = 0 ;
15252 PyObject * obj6 = 0 ;
15253 PyObject * obj7 = 0 ;
15254 PyObject * obj8 = 0 ;
15255 PyObject * obj9 = 0 ;
15256 char * kwnames[] = {
15257 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15258 };
15259
15260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15262 if (!SWIG_IsOK(res1)) {
15263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15264 }
15265 arg1 = reinterpret_cast< wxWindow * >(argp1);
15266 if (obj1) {
15267 ecode2 = SWIG_AsVal_int(obj1, &val2);
15268 if (!SWIG_IsOK(ecode2)) {
15269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15270 }
15271 arg2 = static_cast< int >(val2);
15272 }
15273 if (obj2) {
15274 {
15275 arg3 = wxString_in_helper(obj2);
15276 if (arg3 == NULL) SWIG_fail;
15277 temp3 = true;
15278 }
15279 }
15280 if (obj3) {
15281 {
15282 arg4 = &temp4;
15283 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15284 }
15285 }
15286 if (obj4) {
15287 {
15288 arg5 = &temp5;
15289 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15290 }
15291 }
15292 if (obj5) {
15293 ecode6 = SWIG_AsVal_long(obj5, &val6);
15294 if (!SWIG_IsOK(ecode6)) {
15295 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15296 }
15297 arg6 = static_cast< long >(val6);
15298 }
15299 if (obj6) {
15300 ecode7 = SWIG_AsVal_int(obj6, &val7);
15301 if (!SWIG_IsOK(ecode7)) {
15302 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15303 }
15304 arg7 = static_cast< int >(val7);
15305 }
15306 if (obj7) {
15307 ecode8 = SWIG_AsVal_int(obj7, &val8);
15308 if (!SWIG_IsOK(ecode8)) {
15309 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15310 }
15311 arg8 = static_cast< int >(val8);
15312 }
15313 if (obj8) {
15314 ecode9 = SWIG_AsVal_int(obj8, &val9);
15315 if (!SWIG_IsOK(ecode9)) {
15316 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15317 }
15318 arg9 = static_cast< int >(val9);
15319 }
15320 if (obj9) {
15321 {
15322 arg10 = wxString_in_helper(obj9);
15323 if (arg10 == NULL) SWIG_fail;
15324 temp10 = true;
15325 }
15326 }
15327 {
15328 if (!wxPyCheckForApp()) SWIG_fail;
15329 PyThreadState* __tstate = wxPyBeginAllowThreads();
15330 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15331 wxPyEndAllowThreads(__tstate);
15332 if (PyErr_Occurred()) SWIG_fail;
15333 }
15334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15335 {
15336 if (temp3)
15337 delete arg3;
15338 }
15339 {
15340 if (temp10)
15341 delete arg10;
15342 }
15343 return resultobj;
15344 fail:
15345 {
15346 if (temp3)
15347 delete arg3;
15348 }
15349 {
15350 if (temp10)
15351 delete arg10;
15352 }
15353 return NULL;
15354 }
15355
15356
15357 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15358 PyObject *resultobj = 0;
15359 wxSpinCtrl *result = 0 ;
15360
15361 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15362 {
15363 if (!wxPyCheckForApp()) SWIG_fail;
15364 PyThreadState* __tstate = wxPyBeginAllowThreads();
15365 result = (wxSpinCtrl *)new wxSpinCtrl();
15366 wxPyEndAllowThreads(__tstate);
15367 if (PyErr_Occurred()) SWIG_fail;
15368 }
15369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15370 return resultobj;
15371 fail:
15372 return NULL;
15373 }
15374
15375
15376 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15377 PyObject *resultobj = 0;
15378 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15379 wxWindow *arg2 = (wxWindow *) 0 ;
15380 int arg3 = (int) -1 ;
15381 wxString const &arg4_defvalue = wxPyEmptyString ;
15382 wxString *arg4 = (wxString *) &arg4_defvalue ;
15383 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15384 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15385 wxSize const &arg6_defvalue = wxDefaultSize ;
15386 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15387 long arg7 = (long) wxSP_ARROW_KEYS ;
15388 int arg8 = (int) 0 ;
15389 int arg9 = (int) 100 ;
15390 int arg10 = (int) 0 ;
15391 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15392 wxString *arg11 = (wxString *) &arg11_defvalue ;
15393 bool result;
15394 void *argp1 = 0 ;
15395 int res1 = 0 ;
15396 void *argp2 = 0 ;
15397 int res2 = 0 ;
15398 int val3 ;
15399 int ecode3 = 0 ;
15400 bool temp4 = false ;
15401 wxPoint temp5 ;
15402 wxSize temp6 ;
15403 long val7 ;
15404 int ecode7 = 0 ;
15405 int val8 ;
15406 int ecode8 = 0 ;
15407 int val9 ;
15408 int ecode9 = 0 ;
15409 int val10 ;
15410 int ecode10 = 0 ;
15411 bool temp11 = false ;
15412 PyObject * obj0 = 0 ;
15413 PyObject * obj1 = 0 ;
15414 PyObject * obj2 = 0 ;
15415 PyObject * obj3 = 0 ;
15416 PyObject * obj4 = 0 ;
15417 PyObject * obj5 = 0 ;
15418 PyObject * obj6 = 0 ;
15419 PyObject * obj7 = 0 ;
15420 PyObject * obj8 = 0 ;
15421 PyObject * obj9 = 0 ;
15422 PyObject * obj10 = 0 ;
15423 char * kwnames[] = {
15424 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15425 };
15426
15427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15429 if (!SWIG_IsOK(res1)) {
15430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15431 }
15432 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15433 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15434 if (!SWIG_IsOK(res2)) {
15435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15436 }
15437 arg2 = reinterpret_cast< wxWindow * >(argp2);
15438 if (obj2) {
15439 ecode3 = SWIG_AsVal_int(obj2, &val3);
15440 if (!SWIG_IsOK(ecode3)) {
15441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15442 }
15443 arg3 = static_cast< int >(val3);
15444 }
15445 if (obj3) {
15446 {
15447 arg4 = wxString_in_helper(obj3);
15448 if (arg4 == NULL) SWIG_fail;
15449 temp4 = true;
15450 }
15451 }
15452 if (obj4) {
15453 {
15454 arg5 = &temp5;
15455 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15456 }
15457 }
15458 if (obj5) {
15459 {
15460 arg6 = &temp6;
15461 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15462 }
15463 }
15464 if (obj6) {
15465 ecode7 = SWIG_AsVal_long(obj6, &val7);
15466 if (!SWIG_IsOK(ecode7)) {
15467 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15468 }
15469 arg7 = static_cast< long >(val7);
15470 }
15471 if (obj7) {
15472 ecode8 = SWIG_AsVal_int(obj7, &val8);
15473 if (!SWIG_IsOK(ecode8)) {
15474 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15475 }
15476 arg8 = static_cast< int >(val8);
15477 }
15478 if (obj8) {
15479 ecode9 = SWIG_AsVal_int(obj8, &val9);
15480 if (!SWIG_IsOK(ecode9)) {
15481 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15482 }
15483 arg9 = static_cast< int >(val9);
15484 }
15485 if (obj9) {
15486 ecode10 = SWIG_AsVal_int(obj9, &val10);
15487 if (!SWIG_IsOK(ecode10)) {
15488 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15489 }
15490 arg10 = static_cast< int >(val10);
15491 }
15492 if (obj10) {
15493 {
15494 arg11 = wxString_in_helper(obj10);
15495 if (arg11 == NULL) SWIG_fail;
15496 temp11 = true;
15497 }
15498 }
15499 {
15500 PyThreadState* __tstate = wxPyBeginAllowThreads();
15501 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15502 wxPyEndAllowThreads(__tstate);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 {
15506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15507 }
15508 {
15509 if (temp4)
15510 delete arg4;
15511 }
15512 {
15513 if (temp11)
15514 delete arg11;
15515 }
15516 return resultobj;
15517 fail:
15518 {
15519 if (temp4)
15520 delete arg4;
15521 }
15522 {
15523 if (temp11)
15524 delete arg11;
15525 }
15526 return NULL;
15527 }
15528
15529
15530 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15531 PyObject *resultobj = 0;
15532 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15533 int result;
15534 void *argp1 = 0 ;
15535 int res1 = 0 ;
15536 PyObject *swig_obj[1] ;
15537
15538 if (!args) SWIG_fail;
15539 swig_obj[0] = args;
15540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15541 if (!SWIG_IsOK(res1)) {
15542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15543 }
15544 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15545 {
15546 PyThreadState* __tstate = wxPyBeginAllowThreads();
15547 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15548 wxPyEndAllowThreads(__tstate);
15549 if (PyErr_Occurred()) SWIG_fail;
15550 }
15551 resultobj = SWIG_From_int(static_cast< int >(result));
15552 return resultobj;
15553 fail:
15554 return NULL;
15555 }
15556
15557
15558 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15559 PyObject *resultobj = 0;
15560 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15561 int arg2 ;
15562 void *argp1 = 0 ;
15563 int res1 = 0 ;
15564 int val2 ;
15565 int ecode2 = 0 ;
15566 PyObject * obj0 = 0 ;
15567 PyObject * obj1 = 0 ;
15568 char * kwnames[] = {
15569 (char *) "self",(char *) "value", NULL
15570 };
15571
15572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15574 if (!SWIG_IsOK(res1)) {
15575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15576 }
15577 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15578 ecode2 = SWIG_AsVal_int(obj1, &val2);
15579 if (!SWIG_IsOK(ecode2)) {
15580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15581 }
15582 arg2 = static_cast< int >(val2);
15583 {
15584 PyThreadState* __tstate = wxPyBeginAllowThreads();
15585 (arg1)->SetValue(arg2);
15586 wxPyEndAllowThreads(__tstate);
15587 if (PyErr_Occurred()) SWIG_fail;
15588 }
15589 resultobj = SWIG_Py_Void();
15590 return resultobj;
15591 fail:
15592 return NULL;
15593 }
15594
15595
15596 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15597 PyObject *resultobj = 0;
15598 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15599 wxString *arg2 = 0 ;
15600 void *argp1 = 0 ;
15601 int res1 = 0 ;
15602 bool temp2 = false ;
15603 PyObject * obj0 = 0 ;
15604 PyObject * obj1 = 0 ;
15605 char * kwnames[] = {
15606 (char *) "self",(char *) "text", NULL
15607 };
15608
15609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15611 if (!SWIG_IsOK(res1)) {
15612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15613 }
15614 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15615 {
15616 arg2 = wxString_in_helper(obj1);
15617 if (arg2 == NULL) SWIG_fail;
15618 temp2 = true;
15619 }
15620 {
15621 PyThreadState* __tstate = wxPyBeginAllowThreads();
15622 (arg1)->SetValue((wxString const &)*arg2);
15623 wxPyEndAllowThreads(__tstate);
15624 if (PyErr_Occurred()) SWIG_fail;
15625 }
15626 resultobj = SWIG_Py_Void();
15627 {
15628 if (temp2)
15629 delete arg2;
15630 }
15631 return resultobj;
15632 fail:
15633 {
15634 if (temp2)
15635 delete arg2;
15636 }
15637 return NULL;
15638 }
15639
15640
15641 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15642 PyObject *resultobj = 0;
15643 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15644 int arg2 ;
15645 int arg3 ;
15646 void *argp1 = 0 ;
15647 int res1 = 0 ;
15648 int val2 ;
15649 int ecode2 = 0 ;
15650 int val3 ;
15651 int ecode3 = 0 ;
15652 PyObject * obj0 = 0 ;
15653 PyObject * obj1 = 0 ;
15654 PyObject * obj2 = 0 ;
15655 char * kwnames[] = {
15656 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15657 };
15658
15659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15661 if (!SWIG_IsOK(res1)) {
15662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15663 }
15664 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15665 ecode2 = SWIG_AsVal_int(obj1, &val2);
15666 if (!SWIG_IsOK(ecode2)) {
15667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15668 }
15669 arg2 = static_cast< int >(val2);
15670 ecode3 = SWIG_AsVal_int(obj2, &val3);
15671 if (!SWIG_IsOK(ecode3)) {
15672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15673 }
15674 arg3 = static_cast< int >(val3);
15675 {
15676 PyThreadState* __tstate = wxPyBeginAllowThreads();
15677 (arg1)->SetRange(arg2,arg3);
15678 wxPyEndAllowThreads(__tstate);
15679 if (PyErr_Occurred()) SWIG_fail;
15680 }
15681 resultobj = SWIG_Py_Void();
15682 return resultobj;
15683 fail:
15684 return NULL;
15685 }
15686
15687
15688 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15689 PyObject *resultobj = 0;
15690 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15691 int result;
15692 void *argp1 = 0 ;
15693 int res1 = 0 ;
15694 PyObject *swig_obj[1] ;
15695
15696 if (!args) SWIG_fail;
15697 swig_obj[0] = args;
15698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15699 if (!SWIG_IsOK(res1)) {
15700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15701 }
15702 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15703 {
15704 PyThreadState* __tstate = wxPyBeginAllowThreads();
15705 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15706 wxPyEndAllowThreads(__tstate);
15707 if (PyErr_Occurred()) SWIG_fail;
15708 }
15709 resultobj = SWIG_From_int(static_cast< int >(result));
15710 return resultobj;
15711 fail:
15712 return NULL;
15713 }
15714
15715
15716 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15717 PyObject *resultobj = 0;
15718 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15719 int result;
15720 void *argp1 = 0 ;
15721 int res1 = 0 ;
15722 PyObject *swig_obj[1] ;
15723
15724 if (!args) SWIG_fail;
15725 swig_obj[0] = args;
15726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15727 if (!SWIG_IsOK(res1)) {
15728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15729 }
15730 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15731 {
15732 PyThreadState* __tstate = wxPyBeginAllowThreads();
15733 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15734 wxPyEndAllowThreads(__tstate);
15735 if (PyErr_Occurred()) SWIG_fail;
15736 }
15737 resultobj = SWIG_From_int(static_cast< int >(result));
15738 return resultobj;
15739 fail:
15740 return NULL;
15741 }
15742
15743
15744 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15745 PyObject *resultobj = 0;
15746 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15747 long arg2 ;
15748 long arg3 ;
15749 void *argp1 = 0 ;
15750 int res1 = 0 ;
15751 long val2 ;
15752 int ecode2 = 0 ;
15753 long val3 ;
15754 int ecode3 = 0 ;
15755 PyObject * obj0 = 0 ;
15756 PyObject * obj1 = 0 ;
15757 PyObject * obj2 = 0 ;
15758 char * kwnames[] = {
15759 (char *) "self",(char *) "from",(char *) "to", NULL
15760 };
15761
15762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15764 if (!SWIG_IsOK(res1)) {
15765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15766 }
15767 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15768 ecode2 = SWIG_AsVal_long(obj1, &val2);
15769 if (!SWIG_IsOK(ecode2)) {
15770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15771 }
15772 arg2 = static_cast< long >(val2);
15773 ecode3 = SWIG_AsVal_long(obj2, &val3);
15774 if (!SWIG_IsOK(ecode3)) {
15775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15776 }
15777 arg3 = static_cast< long >(val3);
15778 {
15779 PyThreadState* __tstate = wxPyBeginAllowThreads();
15780 (arg1)->SetSelection(arg2,arg3);
15781 wxPyEndAllowThreads(__tstate);
15782 if (PyErr_Occurred()) SWIG_fail;
15783 }
15784 resultobj = SWIG_Py_Void();
15785 return resultobj;
15786 fail:
15787 return NULL;
15788 }
15789
15790
15791 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15792 PyObject *resultobj = 0;
15793 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15794 SwigValueWrapper<wxVisualAttributes > result;
15795 int val1 ;
15796 int ecode1 = 0 ;
15797 PyObject * obj0 = 0 ;
15798 char * kwnames[] = {
15799 (char *) "variant", NULL
15800 };
15801
15802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15803 if (obj0) {
15804 ecode1 = SWIG_AsVal_int(obj0, &val1);
15805 if (!SWIG_IsOK(ecode1)) {
15806 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15807 }
15808 arg1 = static_cast< wxWindowVariant >(val1);
15809 }
15810 {
15811 if (!wxPyCheckForApp()) SWIG_fail;
15812 PyThreadState* __tstate = wxPyBeginAllowThreads();
15813 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15814 wxPyEndAllowThreads(__tstate);
15815 if (PyErr_Occurred()) SWIG_fail;
15816 }
15817 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15818 return resultobj;
15819 fail:
15820 return NULL;
15821 }
15822
15823
15824 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15825 PyObject *obj;
15826 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15827 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15828 return SWIG_Py_Void();
15829 }
15830
15831 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15832 return SWIG_Python_InitShadowInstance(args);
15833 }
15834
15835 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15836 PyObject *resultobj = 0;
15837 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15838 int arg2 = (int) 0 ;
15839 wxSpinEvent *result = 0 ;
15840 int val1 ;
15841 int ecode1 = 0 ;
15842 int val2 ;
15843 int ecode2 = 0 ;
15844 PyObject * obj0 = 0 ;
15845 PyObject * obj1 = 0 ;
15846 char * kwnames[] = {
15847 (char *) "commandType",(char *) "winid", NULL
15848 };
15849
15850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15851 if (obj0) {
15852 ecode1 = SWIG_AsVal_int(obj0, &val1);
15853 if (!SWIG_IsOK(ecode1)) {
15854 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15855 }
15856 arg1 = static_cast< wxEventType >(val1);
15857 }
15858 if (obj1) {
15859 ecode2 = SWIG_AsVal_int(obj1, &val2);
15860 if (!SWIG_IsOK(ecode2)) {
15861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15862 }
15863 arg2 = static_cast< int >(val2);
15864 }
15865 {
15866 PyThreadState* __tstate = wxPyBeginAllowThreads();
15867 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15868 wxPyEndAllowThreads(__tstate);
15869 if (PyErr_Occurred()) SWIG_fail;
15870 }
15871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15872 return resultobj;
15873 fail:
15874 return NULL;
15875 }
15876
15877
15878 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15879 PyObject *resultobj = 0;
15880 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15881 int result;
15882 void *argp1 = 0 ;
15883 int res1 = 0 ;
15884 PyObject *swig_obj[1] ;
15885
15886 if (!args) SWIG_fail;
15887 swig_obj[0] = args;
15888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15889 if (!SWIG_IsOK(res1)) {
15890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15891 }
15892 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15893 {
15894 PyThreadState* __tstate = wxPyBeginAllowThreads();
15895 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15896 wxPyEndAllowThreads(__tstate);
15897 if (PyErr_Occurred()) SWIG_fail;
15898 }
15899 resultobj = SWIG_From_int(static_cast< int >(result));
15900 return resultobj;
15901 fail:
15902 return NULL;
15903 }
15904
15905
15906 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15907 PyObject *resultobj = 0;
15908 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15909 int arg2 ;
15910 void *argp1 = 0 ;
15911 int res1 = 0 ;
15912 int val2 ;
15913 int ecode2 = 0 ;
15914 PyObject * obj0 = 0 ;
15915 PyObject * obj1 = 0 ;
15916 char * kwnames[] = {
15917 (char *) "self",(char *) "pos", NULL
15918 };
15919
15920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15922 if (!SWIG_IsOK(res1)) {
15923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15924 }
15925 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15926 ecode2 = SWIG_AsVal_int(obj1, &val2);
15927 if (!SWIG_IsOK(ecode2)) {
15928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15929 }
15930 arg2 = static_cast< int >(val2);
15931 {
15932 PyThreadState* __tstate = wxPyBeginAllowThreads();
15933 (arg1)->SetPosition(arg2);
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 resultobj = SWIG_Py_Void();
15938 return resultobj;
15939 fail:
15940 return NULL;
15941 }
15942
15943
15944 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15945 PyObject *obj;
15946 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15947 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15948 return SWIG_Py_Void();
15949 }
15950
15951 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15952 return SWIG_Python_InitShadowInstance(args);
15953 }
15954
15955 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15956 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15957 return 1;
15958 }
15959
15960
15961 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15962 PyObject *pyobj = 0;
15963
15964 {
15965 #if wxUSE_UNICODE
15966 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15967 #else
15968 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15969 #endif
15970 }
15971 return pyobj;
15972 }
15973
15974
15975 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15976 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15977 return 1;
15978 }
15979
15980
15981 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15982 PyObject *pyobj = 0;
15983
15984 {
15985 #if wxUSE_UNICODE
15986 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15987 #else
15988 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15989 #endif
15990 }
15991 return pyobj;
15992 }
15993
15994
15995 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15996 PyObject *resultobj = 0;
15997 wxWindow *arg1 = (wxWindow *) 0 ;
15998 int arg2 = (int) -1 ;
15999 wxString const &arg3_defvalue = wxPyEmptyString ;
16000 wxString *arg3 = (wxString *) &arg3_defvalue ;
16001 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16002 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16003 wxSize const &arg5_defvalue = wxDefaultSize ;
16004 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16005 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16006 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16007 int arg7 = (int) 0 ;
16008 long arg8 = (long) wxRA_HORIZONTAL ;
16009 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16010 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16011 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16012 wxString *arg10 = (wxString *) &arg10_defvalue ;
16013 wxRadioBox *result = 0 ;
16014 void *argp1 = 0 ;
16015 int res1 = 0 ;
16016 int val2 ;
16017 int ecode2 = 0 ;
16018 bool temp3 = false ;
16019 wxPoint temp4 ;
16020 wxSize temp5 ;
16021 bool temp6 = false ;
16022 int val7 ;
16023 int ecode7 = 0 ;
16024 long val8 ;
16025 int ecode8 = 0 ;
16026 void *argp9 = 0 ;
16027 int res9 = 0 ;
16028 bool temp10 = false ;
16029 PyObject * obj0 = 0 ;
16030 PyObject * obj1 = 0 ;
16031 PyObject * obj2 = 0 ;
16032 PyObject * obj3 = 0 ;
16033 PyObject * obj4 = 0 ;
16034 PyObject * obj5 = 0 ;
16035 PyObject * obj6 = 0 ;
16036 PyObject * obj7 = 0 ;
16037 PyObject * obj8 = 0 ;
16038 PyObject * obj9 = 0 ;
16039 char * kwnames[] = {
16040 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16041 };
16042
16043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16045 if (!SWIG_IsOK(res1)) {
16046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16047 }
16048 arg1 = reinterpret_cast< wxWindow * >(argp1);
16049 if (obj1) {
16050 ecode2 = SWIG_AsVal_int(obj1, &val2);
16051 if (!SWIG_IsOK(ecode2)) {
16052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16053 }
16054 arg2 = static_cast< int >(val2);
16055 }
16056 if (obj2) {
16057 {
16058 arg3 = wxString_in_helper(obj2);
16059 if (arg3 == NULL) SWIG_fail;
16060 temp3 = true;
16061 }
16062 }
16063 if (obj3) {
16064 {
16065 arg4 = &temp4;
16066 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16067 }
16068 }
16069 if (obj4) {
16070 {
16071 arg5 = &temp5;
16072 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16073 }
16074 }
16075 if (obj5) {
16076 {
16077 if (! PySequence_Check(obj5)) {
16078 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16079 SWIG_fail;
16080 }
16081 arg6 = new wxArrayString;
16082 temp6 = true;
16083 int i, len=PySequence_Length(obj5);
16084 for (i=0; i<len; i++) {
16085 PyObject* item = PySequence_GetItem(obj5, i);
16086 wxString* s = wxString_in_helper(item);
16087 if (PyErr_Occurred()) SWIG_fail;
16088 arg6->Add(*s);
16089 delete s;
16090 Py_DECREF(item);
16091 }
16092 }
16093 }
16094 if (obj6) {
16095 ecode7 = SWIG_AsVal_int(obj6, &val7);
16096 if (!SWIG_IsOK(ecode7)) {
16097 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16098 }
16099 arg7 = static_cast< int >(val7);
16100 }
16101 if (obj7) {
16102 ecode8 = SWIG_AsVal_long(obj7, &val8);
16103 if (!SWIG_IsOK(ecode8)) {
16104 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16105 }
16106 arg8 = static_cast< long >(val8);
16107 }
16108 if (obj8) {
16109 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16110 if (!SWIG_IsOK(res9)) {
16111 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16112 }
16113 if (!argp9) {
16114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16115 }
16116 arg9 = reinterpret_cast< wxValidator * >(argp9);
16117 }
16118 if (obj9) {
16119 {
16120 arg10 = wxString_in_helper(obj9);
16121 if (arg10 == NULL) SWIG_fail;
16122 temp10 = true;
16123 }
16124 }
16125 {
16126 if (!wxPyCheckForApp()) SWIG_fail;
16127 PyThreadState* __tstate = wxPyBeginAllowThreads();
16128 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);
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16133 {
16134 if (temp3)
16135 delete arg3;
16136 }
16137 {
16138 if (temp6) delete arg6;
16139 }
16140 {
16141 if (temp10)
16142 delete arg10;
16143 }
16144 return resultobj;
16145 fail:
16146 {
16147 if (temp3)
16148 delete arg3;
16149 }
16150 {
16151 if (temp6) delete arg6;
16152 }
16153 {
16154 if (temp10)
16155 delete arg10;
16156 }
16157 return NULL;
16158 }
16159
16160
16161 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16162 PyObject *resultobj = 0;
16163 wxRadioBox *result = 0 ;
16164
16165 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16166 {
16167 if (!wxPyCheckForApp()) SWIG_fail;
16168 PyThreadState* __tstate = wxPyBeginAllowThreads();
16169 result = (wxRadioBox *)new wxRadioBox();
16170 wxPyEndAllowThreads(__tstate);
16171 if (PyErr_Occurred()) SWIG_fail;
16172 }
16173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16174 return resultobj;
16175 fail:
16176 return NULL;
16177 }
16178
16179
16180 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16181 PyObject *resultobj = 0;
16182 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16183 wxWindow *arg2 = (wxWindow *) 0 ;
16184 int arg3 = (int) -1 ;
16185 wxString const &arg4_defvalue = wxPyEmptyString ;
16186 wxString *arg4 = (wxString *) &arg4_defvalue ;
16187 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16188 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16189 wxSize const &arg6_defvalue = wxDefaultSize ;
16190 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16191 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16192 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16193 int arg8 = (int) 0 ;
16194 long arg9 = (long) wxRA_HORIZONTAL ;
16195 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16196 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16197 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16198 wxString *arg11 = (wxString *) &arg11_defvalue ;
16199 bool result;
16200 void *argp1 = 0 ;
16201 int res1 = 0 ;
16202 void *argp2 = 0 ;
16203 int res2 = 0 ;
16204 int val3 ;
16205 int ecode3 = 0 ;
16206 bool temp4 = false ;
16207 wxPoint temp5 ;
16208 wxSize temp6 ;
16209 bool temp7 = false ;
16210 int val8 ;
16211 int ecode8 = 0 ;
16212 long val9 ;
16213 int ecode9 = 0 ;
16214 void *argp10 = 0 ;
16215 int res10 = 0 ;
16216 bool temp11 = false ;
16217 PyObject * obj0 = 0 ;
16218 PyObject * obj1 = 0 ;
16219 PyObject * obj2 = 0 ;
16220 PyObject * obj3 = 0 ;
16221 PyObject * obj4 = 0 ;
16222 PyObject * obj5 = 0 ;
16223 PyObject * obj6 = 0 ;
16224 PyObject * obj7 = 0 ;
16225 PyObject * obj8 = 0 ;
16226 PyObject * obj9 = 0 ;
16227 PyObject * obj10 = 0 ;
16228 char * kwnames[] = {
16229 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16230 };
16231
16232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16234 if (!SWIG_IsOK(res1)) {
16235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16236 }
16237 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16238 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16239 if (!SWIG_IsOK(res2)) {
16240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16241 }
16242 arg2 = reinterpret_cast< wxWindow * >(argp2);
16243 if (obj2) {
16244 ecode3 = SWIG_AsVal_int(obj2, &val3);
16245 if (!SWIG_IsOK(ecode3)) {
16246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16247 }
16248 arg3 = static_cast< int >(val3);
16249 }
16250 if (obj3) {
16251 {
16252 arg4 = wxString_in_helper(obj3);
16253 if (arg4 == NULL) SWIG_fail;
16254 temp4 = true;
16255 }
16256 }
16257 if (obj4) {
16258 {
16259 arg5 = &temp5;
16260 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16261 }
16262 }
16263 if (obj5) {
16264 {
16265 arg6 = &temp6;
16266 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16267 }
16268 }
16269 if (obj6) {
16270 {
16271 if (! PySequence_Check(obj6)) {
16272 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16273 SWIG_fail;
16274 }
16275 arg7 = new wxArrayString;
16276 temp7 = true;
16277 int i, len=PySequence_Length(obj6);
16278 for (i=0; i<len; i++) {
16279 PyObject* item = PySequence_GetItem(obj6, i);
16280 wxString* s = wxString_in_helper(item);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 arg7->Add(*s);
16283 delete s;
16284 Py_DECREF(item);
16285 }
16286 }
16287 }
16288 if (obj7) {
16289 ecode8 = SWIG_AsVal_int(obj7, &val8);
16290 if (!SWIG_IsOK(ecode8)) {
16291 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16292 }
16293 arg8 = static_cast< int >(val8);
16294 }
16295 if (obj8) {
16296 ecode9 = SWIG_AsVal_long(obj8, &val9);
16297 if (!SWIG_IsOK(ecode9)) {
16298 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16299 }
16300 arg9 = static_cast< long >(val9);
16301 }
16302 if (obj9) {
16303 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16304 if (!SWIG_IsOK(res10)) {
16305 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16306 }
16307 if (!argp10) {
16308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16309 }
16310 arg10 = reinterpret_cast< wxValidator * >(argp10);
16311 }
16312 if (obj10) {
16313 {
16314 arg11 = wxString_in_helper(obj10);
16315 if (arg11 == NULL) SWIG_fail;
16316 temp11 = true;
16317 }
16318 }
16319 {
16320 PyThreadState* __tstate = wxPyBeginAllowThreads();
16321 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);
16322 wxPyEndAllowThreads(__tstate);
16323 if (PyErr_Occurred()) SWIG_fail;
16324 }
16325 {
16326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16327 }
16328 {
16329 if (temp4)
16330 delete arg4;
16331 }
16332 {
16333 if (temp7) delete arg7;
16334 }
16335 {
16336 if (temp11)
16337 delete arg11;
16338 }
16339 return resultobj;
16340 fail:
16341 {
16342 if (temp4)
16343 delete arg4;
16344 }
16345 {
16346 if (temp7) delete arg7;
16347 }
16348 {
16349 if (temp11)
16350 delete arg11;
16351 }
16352 return NULL;
16353 }
16354
16355
16356 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16357 PyObject *resultobj = 0;
16358 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16359 int arg2 ;
16360 void *argp1 = 0 ;
16361 int res1 = 0 ;
16362 int val2 ;
16363 int ecode2 = 0 ;
16364 PyObject * obj0 = 0 ;
16365 PyObject * obj1 = 0 ;
16366 char * kwnames[] = {
16367 (char *) "self",(char *) "n", NULL
16368 };
16369
16370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16372 if (!SWIG_IsOK(res1)) {
16373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16374 }
16375 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16376 ecode2 = SWIG_AsVal_int(obj1, &val2);
16377 if (!SWIG_IsOK(ecode2)) {
16378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16379 }
16380 arg2 = static_cast< int >(val2);
16381 {
16382 PyThreadState* __tstate = wxPyBeginAllowThreads();
16383 (arg1)->SetSelection(arg2);
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 resultobj = SWIG_Py_Void();
16388 return resultobj;
16389 fail:
16390 return NULL;
16391 }
16392
16393
16394 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16395 PyObject *resultobj = 0;
16396 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16397 int result;
16398 void *argp1 = 0 ;
16399 int res1 = 0 ;
16400 PyObject *swig_obj[1] ;
16401
16402 if (!args) SWIG_fail;
16403 swig_obj[0] = args;
16404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16405 if (!SWIG_IsOK(res1)) {
16406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16407 }
16408 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16409 {
16410 PyThreadState* __tstate = wxPyBeginAllowThreads();
16411 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16412 wxPyEndAllowThreads(__tstate);
16413 if (PyErr_Occurred()) SWIG_fail;
16414 }
16415 resultobj = SWIG_From_int(static_cast< int >(result));
16416 return resultobj;
16417 fail:
16418 return NULL;
16419 }
16420
16421
16422 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16423 PyObject *resultobj = 0;
16424 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16425 wxString result;
16426 void *argp1 = 0 ;
16427 int res1 = 0 ;
16428 PyObject *swig_obj[1] ;
16429
16430 if (!args) SWIG_fail;
16431 swig_obj[0] = args;
16432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16433 if (!SWIG_IsOK(res1)) {
16434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16435 }
16436 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16437 {
16438 PyThreadState* __tstate = wxPyBeginAllowThreads();
16439 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16440 wxPyEndAllowThreads(__tstate);
16441 if (PyErr_Occurred()) SWIG_fail;
16442 }
16443 {
16444 #if wxUSE_UNICODE
16445 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16446 #else
16447 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16448 #endif
16449 }
16450 return resultobj;
16451 fail:
16452 return NULL;
16453 }
16454
16455
16456 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16457 PyObject *resultobj = 0;
16458 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16459 wxString *arg2 = 0 ;
16460 bool result;
16461 void *argp1 = 0 ;
16462 int res1 = 0 ;
16463 bool temp2 = false ;
16464 PyObject * obj0 = 0 ;
16465 PyObject * obj1 = 0 ;
16466 char * kwnames[] = {
16467 (char *) "self",(char *) "s", NULL
16468 };
16469
16470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16472 if (!SWIG_IsOK(res1)) {
16473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16474 }
16475 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16476 {
16477 arg2 = wxString_in_helper(obj1);
16478 if (arg2 == NULL) SWIG_fail;
16479 temp2 = true;
16480 }
16481 {
16482 PyThreadState* __tstate = wxPyBeginAllowThreads();
16483 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16484 wxPyEndAllowThreads(__tstate);
16485 if (PyErr_Occurred()) SWIG_fail;
16486 }
16487 {
16488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16489 }
16490 {
16491 if (temp2)
16492 delete arg2;
16493 }
16494 return resultobj;
16495 fail:
16496 {
16497 if (temp2)
16498 delete arg2;
16499 }
16500 return NULL;
16501 }
16502
16503
16504 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16505 PyObject *resultobj = 0;
16506 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16507 size_t result;
16508 void *argp1 = 0 ;
16509 int res1 = 0 ;
16510 PyObject *swig_obj[1] ;
16511
16512 if (!args) SWIG_fail;
16513 swig_obj[0] = args;
16514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16515 if (!SWIG_IsOK(res1)) {
16516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16517 }
16518 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16519 {
16520 PyThreadState* __tstate = wxPyBeginAllowThreads();
16521 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16522 wxPyEndAllowThreads(__tstate);
16523 if (PyErr_Occurred()) SWIG_fail;
16524 }
16525 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16526 return resultobj;
16527 fail:
16528 return NULL;
16529 }
16530
16531
16532 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16533 PyObject *resultobj = 0;
16534 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16535 wxString *arg2 = 0 ;
16536 int result;
16537 void *argp1 = 0 ;
16538 int res1 = 0 ;
16539 bool temp2 = false ;
16540 PyObject * obj0 = 0 ;
16541 PyObject * obj1 = 0 ;
16542 char * kwnames[] = {
16543 (char *) "self",(char *) "s", NULL
16544 };
16545
16546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16548 if (!SWIG_IsOK(res1)) {
16549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16550 }
16551 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16552 {
16553 arg2 = wxString_in_helper(obj1);
16554 if (arg2 == NULL) SWIG_fail;
16555 temp2 = true;
16556 }
16557 {
16558 PyThreadState* __tstate = wxPyBeginAllowThreads();
16559 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16560 wxPyEndAllowThreads(__tstate);
16561 if (PyErr_Occurred()) SWIG_fail;
16562 }
16563 resultobj = SWIG_From_int(static_cast< int >(result));
16564 {
16565 if (temp2)
16566 delete arg2;
16567 }
16568 return resultobj;
16569 fail:
16570 {
16571 if (temp2)
16572 delete arg2;
16573 }
16574 return NULL;
16575 }
16576
16577
16578 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16579 PyObject *resultobj = 0;
16580 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16581 int arg2 ;
16582 wxString result;
16583 void *argp1 = 0 ;
16584 int res1 = 0 ;
16585 int val2 ;
16586 int ecode2 = 0 ;
16587 PyObject * obj0 = 0 ;
16588 PyObject * obj1 = 0 ;
16589 char * kwnames[] = {
16590 (char *) "self",(char *) "n", NULL
16591 };
16592
16593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16595 if (!SWIG_IsOK(res1)) {
16596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16597 }
16598 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16599 ecode2 = SWIG_AsVal_int(obj1, &val2);
16600 if (!SWIG_IsOK(ecode2)) {
16601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16602 }
16603 arg2 = static_cast< int >(val2);
16604 {
16605 PyThreadState* __tstate = wxPyBeginAllowThreads();
16606 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16607 wxPyEndAllowThreads(__tstate);
16608 if (PyErr_Occurred()) SWIG_fail;
16609 }
16610 {
16611 #if wxUSE_UNICODE
16612 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16613 #else
16614 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16615 #endif
16616 }
16617 return resultobj;
16618 fail:
16619 return NULL;
16620 }
16621
16622
16623 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16624 PyObject *resultobj = 0;
16625 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16626 int arg2 ;
16627 wxString *arg3 = 0 ;
16628 void *argp1 = 0 ;
16629 int res1 = 0 ;
16630 int val2 ;
16631 int ecode2 = 0 ;
16632 bool temp3 = false ;
16633 PyObject * obj0 = 0 ;
16634 PyObject * obj1 = 0 ;
16635 PyObject * obj2 = 0 ;
16636 char * kwnames[] = {
16637 (char *) "self",(char *) "n",(char *) "label", NULL
16638 };
16639
16640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16642 if (!SWIG_IsOK(res1)) {
16643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16644 }
16645 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16646 ecode2 = SWIG_AsVal_int(obj1, &val2);
16647 if (!SWIG_IsOK(ecode2)) {
16648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16649 }
16650 arg2 = static_cast< int >(val2);
16651 {
16652 arg3 = wxString_in_helper(obj2);
16653 if (arg3 == NULL) SWIG_fail;
16654 temp3 = true;
16655 }
16656 {
16657 PyThreadState* __tstate = wxPyBeginAllowThreads();
16658 (arg1)->SetString(arg2,(wxString const &)*arg3);
16659 wxPyEndAllowThreads(__tstate);
16660 if (PyErr_Occurred()) SWIG_fail;
16661 }
16662 resultobj = SWIG_Py_Void();
16663 {
16664 if (temp3)
16665 delete arg3;
16666 }
16667 return resultobj;
16668 fail:
16669 {
16670 if (temp3)
16671 delete arg3;
16672 }
16673 return NULL;
16674 }
16675
16676
16677 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16678 PyObject *resultobj = 0;
16679 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16680 unsigned int arg2 ;
16681 bool arg3 = (bool) true ;
16682 void *argp1 = 0 ;
16683 int res1 = 0 ;
16684 unsigned int val2 ;
16685 int ecode2 = 0 ;
16686 bool val3 ;
16687 int ecode3 = 0 ;
16688 PyObject * obj0 = 0 ;
16689 PyObject * obj1 = 0 ;
16690 PyObject * obj2 = 0 ;
16691 char * kwnames[] = {
16692 (char *) "self",(char *) "n",(char *) "enable", NULL
16693 };
16694
16695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16697 if (!SWIG_IsOK(res1)) {
16698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16699 }
16700 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16701 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16702 if (!SWIG_IsOK(ecode2)) {
16703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16704 }
16705 arg2 = static_cast< unsigned int >(val2);
16706 if (obj2) {
16707 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16708 if (!SWIG_IsOK(ecode3)) {
16709 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16710 }
16711 arg3 = static_cast< bool >(val3);
16712 }
16713 {
16714 PyThreadState* __tstate = wxPyBeginAllowThreads();
16715 (arg1)->Enable(arg2,arg3);
16716 wxPyEndAllowThreads(__tstate);
16717 if (PyErr_Occurred()) SWIG_fail;
16718 }
16719 resultobj = SWIG_Py_Void();
16720 return resultobj;
16721 fail:
16722 return NULL;
16723 }
16724
16725
16726 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16727 PyObject *resultobj = 0;
16728 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16729 unsigned int arg2 ;
16730 bool arg3 = (bool) true ;
16731 void *argp1 = 0 ;
16732 int res1 = 0 ;
16733 unsigned int val2 ;
16734 int ecode2 = 0 ;
16735 bool val3 ;
16736 int ecode3 = 0 ;
16737 PyObject * obj0 = 0 ;
16738 PyObject * obj1 = 0 ;
16739 PyObject * obj2 = 0 ;
16740 char * kwnames[] = {
16741 (char *) "self",(char *) "n",(char *) "show", NULL
16742 };
16743
16744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16746 if (!SWIG_IsOK(res1)) {
16747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16748 }
16749 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16750 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16751 if (!SWIG_IsOK(ecode2)) {
16752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16753 }
16754 arg2 = static_cast< unsigned int >(val2);
16755 if (obj2) {
16756 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16757 if (!SWIG_IsOK(ecode3)) {
16758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16759 }
16760 arg3 = static_cast< bool >(val3);
16761 }
16762 {
16763 PyThreadState* __tstate = wxPyBeginAllowThreads();
16764 (arg1)->Show(arg2,arg3);
16765 wxPyEndAllowThreads(__tstate);
16766 if (PyErr_Occurred()) SWIG_fail;
16767 }
16768 resultobj = SWIG_Py_Void();
16769 return resultobj;
16770 fail:
16771 return NULL;
16772 }
16773
16774
16775 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16776 PyObject *resultobj = 0;
16777 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16778 unsigned int arg2 ;
16779 bool result;
16780 void *argp1 = 0 ;
16781 int res1 = 0 ;
16782 unsigned int val2 ;
16783 int ecode2 = 0 ;
16784 PyObject * obj0 = 0 ;
16785 PyObject * obj1 = 0 ;
16786 char * kwnames[] = {
16787 (char *) "self",(char *) "n", NULL
16788 };
16789
16790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16792 if (!SWIG_IsOK(res1)) {
16793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16794 }
16795 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16796 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16797 if (!SWIG_IsOK(ecode2)) {
16798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16799 }
16800 arg2 = static_cast< unsigned int >(val2);
16801 {
16802 PyThreadState* __tstate = wxPyBeginAllowThreads();
16803 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16804 wxPyEndAllowThreads(__tstate);
16805 if (PyErr_Occurred()) SWIG_fail;
16806 }
16807 {
16808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16809 }
16810 return resultobj;
16811 fail:
16812 return NULL;
16813 }
16814
16815
16816 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16817 PyObject *resultobj = 0;
16818 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16819 unsigned int arg2 ;
16820 bool result;
16821 void *argp1 = 0 ;
16822 int res1 = 0 ;
16823 unsigned int val2 ;
16824 int ecode2 = 0 ;
16825 PyObject * obj0 = 0 ;
16826 PyObject * obj1 = 0 ;
16827 char * kwnames[] = {
16828 (char *) "self",(char *) "n", NULL
16829 };
16830
16831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16833 if (!SWIG_IsOK(res1)) {
16834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16835 }
16836 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16837 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16838 if (!SWIG_IsOK(ecode2)) {
16839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16840 }
16841 arg2 = static_cast< unsigned int >(val2);
16842 {
16843 PyThreadState* __tstate = wxPyBeginAllowThreads();
16844 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16845 wxPyEndAllowThreads(__tstate);
16846 if (PyErr_Occurred()) SWIG_fail;
16847 }
16848 {
16849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16850 }
16851 return resultobj;
16852 fail:
16853 return NULL;
16854 }
16855
16856
16857 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16858 PyObject *resultobj = 0;
16859 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16860 unsigned int result;
16861 void *argp1 = 0 ;
16862 int res1 = 0 ;
16863 PyObject *swig_obj[1] ;
16864
16865 if (!args) SWIG_fail;
16866 swig_obj[0] = args;
16867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16868 if (!SWIG_IsOK(res1)) {
16869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16870 }
16871 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16872 {
16873 PyThreadState* __tstate = wxPyBeginAllowThreads();
16874 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16875 wxPyEndAllowThreads(__tstate);
16876 if (PyErr_Occurred()) SWIG_fail;
16877 }
16878 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16879 return resultobj;
16880 fail:
16881 return NULL;
16882 }
16883
16884
16885 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16886 PyObject *resultobj = 0;
16887 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16888 unsigned int result;
16889 void *argp1 = 0 ;
16890 int res1 = 0 ;
16891 PyObject *swig_obj[1] ;
16892
16893 if (!args) SWIG_fail;
16894 swig_obj[0] = args;
16895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16896 if (!SWIG_IsOK(res1)) {
16897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16898 }
16899 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16900 {
16901 PyThreadState* __tstate = wxPyBeginAllowThreads();
16902 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16903 wxPyEndAllowThreads(__tstate);
16904 if (PyErr_Occurred()) SWIG_fail;
16905 }
16906 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16907 return resultobj;
16908 fail:
16909 return NULL;
16910 }
16911
16912
16913 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16914 PyObject *resultobj = 0;
16915 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16916 int arg2 ;
16917 wxDirection arg3 ;
16918 long arg4 ;
16919 int result;
16920 void *argp1 = 0 ;
16921 int res1 = 0 ;
16922 int val2 ;
16923 int ecode2 = 0 ;
16924 int val3 ;
16925 int ecode3 = 0 ;
16926 long val4 ;
16927 int ecode4 = 0 ;
16928 PyObject * obj0 = 0 ;
16929 PyObject * obj1 = 0 ;
16930 PyObject * obj2 = 0 ;
16931 PyObject * obj3 = 0 ;
16932 char * kwnames[] = {
16933 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16934 };
16935
16936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16938 if (!SWIG_IsOK(res1)) {
16939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16940 }
16941 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16942 ecode2 = SWIG_AsVal_int(obj1, &val2);
16943 if (!SWIG_IsOK(ecode2)) {
16944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16945 }
16946 arg2 = static_cast< int >(val2);
16947 ecode3 = SWIG_AsVal_int(obj2, &val3);
16948 if (!SWIG_IsOK(ecode3)) {
16949 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16950 }
16951 arg3 = static_cast< wxDirection >(val3);
16952 ecode4 = SWIG_AsVal_long(obj3, &val4);
16953 if (!SWIG_IsOK(ecode4)) {
16954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16955 }
16956 arg4 = static_cast< long >(val4);
16957 {
16958 PyThreadState* __tstate = wxPyBeginAllowThreads();
16959 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16960 wxPyEndAllowThreads(__tstate);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 }
16963 resultobj = SWIG_From_int(static_cast< int >(result));
16964 return resultobj;
16965 fail:
16966 return NULL;
16967 }
16968
16969
16970 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16971 PyObject *resultobj = 0;
16972 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16973 unsigned int arg2 ;
16974 wxString *arg3 = 0 ;
16975 void *argp1 = 0 ;
16976 int res1 = 0 ;
16977 unsigned int val2 ;
16978 int ecode2 = 0 ;
16979 bool temp3 = false ;
16980 PyObject * obj0 = 0 ;
16981 PyObject * obj1 = 0 ;
16982 PyObject * obj2 = 0 ;
16983 char * kwnames[] = {
16984 (char *) "self",(char *) "item",(char *) "text", NULL
16985 };
16986
16987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16989 if (!SWIG_IsOK(res1)) {
16990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16991 }
16992 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16993 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16994 if (!SWIG_IsOK(ecode2)) {
16995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16996 }
16997 arg2 = static_cast< unsigned int >(val2);
16998 {
16999 arg3 = wxString_in_helper(obj2);
17000 if (arg3 == NULL) SWIG_fail;
17001 temp3 = true;
17002 }
17003 {
17004 PyThreadState* __tstate = wxPyBeginAllowThreads();
17005 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17006 wxPyEndAllowThreads(__tstate);
17007 if (PyErr_Occurred()) SWIG_fail;
17008 }
17009 resultobj = SWIG_Py_Void();
17010 {
17011 if (temp3)
17012 delete arg3;
17013 }
17014 return resultobj;
17015 fail:
17016 {
17017 if (temp3)
17018 delete arg3;
17019 }
17020 return NULL;
17021 }
17022
17023
17024 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17025 PyObject *resultobj = 0;
17026 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17027 unsigned int arg2 ;
17028 wxToolTip *result = 0 ;
17029 void *argp1 = 0 ;
17030 int res1 = 0 ;
17031 unsigned int val2 ;
17032 int ecode2 = 0 ;
17033 PyObject * obj0 = 0 ;
17034 PyObject * obj1 = 0 ;
17035 char * kwnames[] = {
17036 (char *) "self",(char *) "item", NULL
17037 };
17038
17039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17041 if (!SWIG_IsOK(res1)) {
17042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17043 }
17044 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17045 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17046 if (!SWIG_IsOK(ecode2)) {
17047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17048 }
17049 arg2 = static_cast< unsigned int >(val2);
17050 {
17051 PyThreadState* __tstate = wxPyBeginAllowThreads();
17052 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17053 wxPyEndAllowThreads(__tstate);
17054 if (PyErr_Occurred()) SWIG_fail;
17055 }
17056 {
17057 resultobj = wxPyMake_wxObject(result, (bool)0);
17058 }
17059 return resultobj;
17060 fail:
17061 return NULL;
17062 }
17063
17064
17065 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17066 PyObject *resultobj = 0;
17067 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17068 unsigned int arg2 ;
17069 wxString *arg3 = 0 ;
17070 void *argp1 = 0 ;
17071 int res1 = 0 ;
17072 unsigned int val2 ;
17073 int ecode2 = 0 ;
17074 bool temp3 = false ;
17075 PyObject * obj0 = 0 ;
17076 PyObject * obj1 = 0 ;
17077 PyObject * obj2 = 0 ;
17078 char * kwnames[] = {
17079 (char *) "self",(char *) "n",(char *) "helpText", NULL
17080 };
17081
17082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17084 if (!SWIG_IsOK(res1)) {
17085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17086 }
17087 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17088 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17089 if (!SWIG_IsOK(ecode2)) {
17090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17091 }
17092 arg2 = static_cast< unsigned int >(val2);
17093 {
17094 arg3 = wxString_in_helper(obj2);
17095 if (arg3 == NULL) SWIG_fail;
17096 temp3 = true;
17097 }
17098 {
17099 PyThreadState* __tstate = wxPyBeginAllowThreads();
17100 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17101 wxPyEndAllowThreads(__tstate);
17102 if (PyErr_Occurred()) SWIG_fail;
17103 }
17104 resultobj = SWIG_Py_Void();
17105 {
17106 if (temp3)
17107 delete arg3;
17108 }
17109 return resultobj;
17110 fail:
17111 {
17112 if (temp3)
17113 delete arg3;
17114 }
17115 return NULL;
17116 }
17117
17118
17119 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17120 PyObject *resultobj = 0;
17121 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17122 unsigned int arg2 ;
17123 wxString result;
17124 void *argp1 = 0 ;
17125 int res1 = 0 ;
17126 unsigned int val2 ;
17127 int ecode2 = 0 ;
17128 PyObject * obj0 = 0 ;
17129 PyObject * obj1 = 0 ;
17130 char * kwnames[] = {
17131 (char *) "self",(char *) "n", NULL
17132 };
17133
17134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17136 if (!SWIG_IsOK(res1)) {
17137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17138 }
17139 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17140 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17141 if (!SWIG_IsOK(ecode2)) {
17142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17143 }
17144 arg2 = static_cast< unsigned int >(val2);
17145 {
17146 PyThreadState* __tstate = wxPyBeginAllowThreads();
17147 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17148 wxPyEndAllowThreads(__tstate);
17149 if (PyErr_Occurred()) SWIG_fail;
17150 }
17151 {
17152 #if wxUSE_UNICODE
17153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17154 #else
17155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17156 #endif
17157 }
17158 return resultobj;
17159 fail:
17160 return NULL;
17161 }
17162
17163
17164 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17165 PyObject *resultobj = 0;
17166 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17167 SwigValueWrapper<wxVisualAttributes > result;
17168 int val1 ;
17169 int ecode1 = 0 ;
17170 PyObject * obj0 = 0 ;
17171 char * kwnames[] = {
17172 (char *) "variant", NULL
17173 };
17174
17175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17176 if (obj0) {
17177 ecode1 = SWIG_AsVal_int(obj0, &val1);
17178 if (!SWIG_IsOK(ecode1)) {
17179 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17180 }
17181 arg1 = static_cast< wxWindowVariant >(val1);
17182 }
17183 {
17184 if (!wxPyCheckForApp()) SWIG_fail;
17185 PyThreadState* __tstate = wxPyBeginAllowThreads();
17186 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17187 wxPyEndAllowThreads(__tstate);
17188 if (PyErr_Occurred()) SWIG_fail;
17189 }
17190 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17191 return resultobj;
17192 fail:
17193 return NULL;
17194 }
17195
17196
17197 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17198 PyObject *obj;
17199 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17200 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17201 return SWIG_Py_Void();
17202 }
17203
17204 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17205 return SWIG_Python_InitShadowInstance(args);
17206 }
17207
17208 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17209 PyObject *resultobj = 0;
17210 wxWindow *arg1 = (wxWindow *) 0 ;
17211 int arg2 = (int) -1 ;
17212 wxString const &arg3_defvalue = wxPyEmptyString ;
17213 wxString *arg3 = (wxString *) &arg3_defvalue ;
17214 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17215 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17216 wxSize const &arg5_defvalue = wxDefaultSize ;
17217 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17218 long arg6 = (long) 0 ;
17219 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17220 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17221 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17222 wxString *arg8 = (wxString *) &arg8_defvalue ;
17223 wxRadioButton *result = 0 ;
17224 void *argp1 = 0 ;
17225 int res1 = 0 ;
17226 int val2 ;
17227 int ecode2 = 0 ;
17228 bool temp3 = false ;
17229 wxPoint temp4 ;
17230 wxSize temp5 ;
17231 long val6 ;
17232 int ecode6 = 0 ;
17233 void *argp7 = 0 ;
17234 int res7 = 0 ;
17235 bool temp8 = false ;
17236 PyObject * obj0 = 0 ;
17237 PyObject * obj1 = 0 ;
17238 PyObject * obj2 = 0 ;
17239 PyObject * obj3 = 0 ;
17240 PyObject * obj4 = 0 ;
17241 PyObject * obj5 = 0 ;
17242 PyObject * obj6 = 0 ;
17243 PyObject * obj7 = 0 ;
17244 char * kwnames[] = {
17245 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17246 };
17247
17248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17250 if (!SWIG_IsOK(res1)) {
17251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17252 }
17253 arg1 = reinterpret_cast< wxWindow * >(argp1);
17254 if (obj1) {
17255 ecode2 = SWIG_AsVal_int(obj1, &val2);
17256 if (!SWIG_IsOK(ecode2)) {
17257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17258 }
17259 arg2 = static_cast< int >(val2);
17260 }
17261 if (obj2) {
17262 {
17263 arg3 = wxString_in_helper(obj2);
17264 if (arg3 == NULL) SWIG_fail;
17265 temp3 = true;
17266 }
17267 }
17268 if (obj3) {
17269 {
17270 arg4 = &temp4;
17271 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17272 }
17273 }
17274 if (obj4) {
17275 {
17276 arg5 = &temp5;
17277 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17278 }
17279 }
17280 if (obj5) {
17281 ecode6 = SWIG_AsVal_long(obj5, &val6);
17282 if (!SWIG_IsOK(ecode6)) {
17283 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17284 }
17285 arg6 = static_cast< long >(val6);
17286 }
17287 if (obj6) {
17288 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17289 if (!SWIG_IsOK(res7)) {
17290 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17291 }
17292 if (!argp7) {
17293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17294 }
17295 arg7 = reinterpret_cast< wxValidator * >(argp7);
17296 }
17297 if (obj7) {
17298 {
17299 arg8 = wxString_in_helper(obj7);
17300 if (arg8 == NULL) SWIG_fail;
17301 temp8 = true;
17302 }
17303 }
17304 {
17305 if (!wxPyCheckForApp()) SWIG_fail;
17306 PyThreadState* __tstate = wxPyBeginAllowThreads();
17307 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17308 wxPyEndAllowThreads(__tstate);
17309 if (PyErr_Occurred()) SWIG_fail;
17310 }
17311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17312 {
17313 if (temp3)
17314 delete arg3;
17315 }
17316 {
17317 if (temp8)
17318 delete arg8;
17319 }
17320 return resultobj;
17321 fail:
17322 {
17323 if (temp3)
17324 delete arg3;
17325 }
17326 {
17327 if (temp8)
17328 delete arg8;
17329 }
17330 return NULL;
17331 }
17332
17333
17334 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17335 PyObject *resultobj = 0;
17336 wxRadioButton *result = 0 ;
17337
17338 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17339 {
17340 if (!wxPyCheckForApp()) SWIG_fail;
17341 PyThreadState* __tstate = wxPyBeginAllowThreads();
17342 result = (wxRadioButton *)new wxRadioButton();
17343 wxPyEndAllowThreads(__tstate);
17344 if (PyErr_Occurred()) SWIG_fail;
17345 }
17346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17347 return resultobj;
17348 fail:
17349 return NULL;
17350 }
17351
17352
17353 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17354 PyObject *resultobj = 0;
17355 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17356 wxWindow *arg2 = (wxWindow *) 0 ;
17357 int arg3 = (int) -1 ;
17358 wxString const &arg4_defvalue = wxPyEmptyString ;
17359 wxString *arg4 = (wxString *) &arg4_defvalue ;
17360 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17361 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17362 wxSize const &arg6_defvalue = wxDefaultSize ;
17363 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17364 long arg7 = (long) 0 ;
17365 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17366 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17367 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17368 wxString *arg9 = (wxString *) &arg9_defvalue ;
17369 bool result;
17370 void *argp1 = 0 ;
17371 int res1 = 0 ;
17372 void *argp2 = 0 ;
17373 int res2 = 0 ;
17374 int val3 ;
17375 int ecode3 = 0 ;
17376 bool temp4 = false ;
17377 wxPoint temp5 ;
17378 wxSize temp6 ;
17379 long val7 ;
17380 int ecode7 = 0 ;
17381 void *argp8 = 0 ;
17382 int res8 = 0 ;
17383 bool temp9 = false ;
17384 PyObject * obj0 = 0 ;
17385 PyObject * obj1 = 0 ;
17386 PyObject * obj2 = 0 ;
17387 PyObject * obj3 = 0 ;
17388 PyObject * obj4 = 0 ;
17389 PyObject * obj5 = 0 ;
17390 PyObject * obj6 = 0 ;
17391 PyObject * obj7 = 0 ;
17392 PyObject * obj8 = 0 ;
17393 char * kwnames[] = {
17394 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17395 };
17396
17397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17399 if (!SWIG_IsOK(res1)) {
17400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17401 }
17402 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17403 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17404 if (!SWIG_IsOK(res2)) {
17405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17406 }
17407 arg2 = reinterpret_cast< wxWindow * >(argp2);
17408 if (obj2) {
17409 ecode3 = SWIG_AsVal_int(obj2, &val3);
17410 if (!SWIG_IsOK(ecode3)) {
17411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17412 }
17413 arg3 = static_cast< int >(val3);
17414 }
17415 if (obj3) {
17416 {
17417 arg4 = wxString_in_helper(obj3);
17418 if (arg4 == NULL) SWIG_fail;
17419 temp4 = true;
17420 }
17421 }
17422 if (obj4) {
17423 {
17424 arg5 = &temp5;
17425 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17426 }
17427 }
17428 if (obj5) {
17429 {
17430 arg6 = &temp6;
17431 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17432 }
17433 }
17434 if (obj6) {
17435 ecode7 = SWIG_AsVal_long(obj6, &val7);
17436 if (!SWIG_IsOK(ecode7)) {
17437 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17438 }
17439 arg7 = static_cast< long >(val7);
17440 }
17441 if (obj7) {
17442 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17443 if (!SWIG_IsOK(res8)) {
17444 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17445 }
17446 if (!argp8) {
17447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17448 }
17449 arg8 = reinterpret_cast< wxValidator * >(argp8);
17450 }
17451 if (obj8) {
17452 {
17453 arg9 = wxString_in_helper(obj8);
17454 if (arg9 == NULL) SWIG_fail;
17455 temp9 = true;
17456 }
17457 }
17458 {
17459 PyThreadState* __tstate = wxPyBeginAllowThreads();
17460 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17461 wxPyEndAllowThreads(__tstate);
17462 if (PyErr_Occurred()) SWIG_fail;
17463 }
17464 {
17465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17466 }
17467 {
17468 if (temp4)
17469 delete arg4;
17470 }
17471 {
17472 if (temp9)
17473 delete arg9;
17474 }
17475 return resultobj;
17476 fail:
17477 {
17478 if (temp4)
17479 delete arg4;
17480 }
17481 {
17482 if (temp9)
17483 delete arg9;
17484 }
17485 return NULL;
17486 }
17487
17488
17489 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17490 PyObject *resultobj = 0;
17491 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17492 bool result;
17493 void *argp1 = 0 ;
17494 int res1 = 0 ;
17495 PyObject *swig_obj[1] ;
17496
17497 if (!args) SWIG_fail;
17498 swig_obj[0] = args;
17499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17500 if (!SWIG_IsOK(res1)) {
17501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17502 }
17503 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17504 {
17505 PyThreadState* __tstate = wxPyBeginAllowThreads();
17506 result = (bool)(arg1)->GetValue();
17507 wxPyEndAllowThreads(__tstate);
17508 if (PyErr_Occurred()) SWIG_fail;
17509 }
17510 {
17511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17512 }
17513 return resultobj;
17514 fail:
17515 return NULL;
17516 }
17517
17518
17519 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17520 PyObject *resultobj = 0;
17521 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17522 bool arg2 ;
17523 void *argp1 = 0 ;
17524 int res1 = 0 ;
17525 bool val2 ;
17526 int ecode2 = 0 ;
17527 PyObject * obj0 = 0 ;
17528 PyObject * obj1 = 0 ;
17529 char * kwnames[] = {
17530 (char *) "self",(char *) "value", NULL
17531 };
17532
17533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17535 if (!SWIG_IsOK(res1)) {
17536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17537 }
17538 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17539 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17540 if (!SWIG_IsOK(ecode2)) {
17541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17542 }
17543 arg2 = static_cast< bool >(val2);
17544 {
17545 PyThreadState* __tstate = wxPyBeginAllowThreads();
17546 (arg1)->SetValue(arg2);
17547 wxPyEndAllowThreads(__tstate);
17548 if (PyErr_Occurred()) SWIG_fail;
17549 }
17550 resultobj = SWIG_Py_Void();
17551 return resultobj;
17552 fail:
17553 return NULL;
17554 }
17555
17556
17557 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17558 PyObject *resultobj = 0;
17559 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17560 SwigValueWrapper<wxVisualAttributes > result;
17561 int val1 ;
17562 int ecode1 = 0 ;
17563 PyObject * obj0 = 0 ;
17564 char * kwnames[] = {
17565 (char *) "variant", NULL
17566 };
17567
17568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17569 if (obj0) {
17570 ecode1 = SWIG_AsVal_int(obj0, &val1);
17571 if (!SWIG_IsOK(ecode1)) {
17572 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17573 }
17574 arg1 = static_cast< wxWindowVariant >(val1);
17575 }
17576 {
17577 if (!wxPyCheckForApp()) SWIG_fail;
17578 PyThreadState* __tstate = wxPyBeginAllowThreads();
17579 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17580 wxPyEndAllowThreads(__tstate);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17584 return resultobj;
17585 fail:
17586 return NULL;
17587 }
17588
17589
17590 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17591 PyObject *obj;
17592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17593 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17594 return SWIG_Py_Void();
17595 }
17596
17597 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17598 return SWIG_Python_InitShadowInstance(args);
17599 }
17600
17601 SWIGINTERN int SliderNameStr_set(PyObject *) {
17602 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17603 return 1;
17604 }
17605
17606
17607 SWIGINTERN PyObject *SliderNameStr_get(void) {
17608 PyObject *pyobj = 0;
17609
17610 {
17611 #if wxUSE_UNICODE
17612 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17613 #else
17614 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17615 #endif
17616 }
17617 return pyobj;
17618 }
17619
17620
17621 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17622 PyObject *resultobj = 0;
17623 wxWindow *arg1 = (wxWindow *) 0 ;
17624 int arg2 = (int) -1 ;
17625 int arg3 = (int) 0 ;
17626 int arg4 = (int) 0 ;
17627 int arg5 = (int) 100 ;
17628 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17629 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17630 wxSize const &arg7_defvalue = wxDefaultSize ;
17631 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17632 long arg8 = (long) wxSL_HORIZONTAL ;
17633 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17634 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17635 wxString const &arg10_defvalue = wxPySliderNameStr ;
17636 wxString *arg10 = (wxString *) &arg10_defvalue ;
17637 wxSlider *result = 0 ;
17638 void *argp1 = 0 ;
17639 int res1 = 0 ;
17640 int val2 ;
17641 int ecode2 = 0 ;
17642 int val3 ;
17643 int ecode3 = 0 ;
17644 int val4 ;
17645 int ecode4 = 0 ;
17646 int val5 ;
17647 int ecode5 = 0 ;
17648 wxPoint temp6 ;
17649 wxSize temp7 ;
17650 long val8 ;
17651 int ecode8 = 0 ;
17652 void *argp9 = 0 ;
17653 int res9 = 0 ;
17654 bool temp10 = false ;
17655 PyObject * obj0 = 0 ;
17656 PyObject * obj1 = 0 ;
17657 PyObject * obj2 = 0 ;
17658 PyObject * obj3 = 0 ;
17659 PyObject * obj4 = 0 ;
17660 PyObject * obj5 = 0 ;
17661 PyObject * obj6 = 0 ;
17662 PyObject * obj7 = 0 ;
17663 PyObject * obj8 = 0 ;
17664 PyObject * obj9 = 0 ;
17665 char * kwnames[] = {
17666 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17667 };
17668
17669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17671 if (!SWIG_IsOK(res1)) {
17672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17673 }
17674 arg1 = reinterpret_cast< wxWindow * >(argp1);
17675 if (obj1) {
17676 ecode2 = SWIG_AsVal_int(obj1, &val2);
17677 if (!SWIG_IsOK(ecode2)) {
17678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17679 }
17680 arg2 = static_cast< int >(val2);
17681 }
17682 if (obj2) {
17683 ecode3 = SWIG_AsVal_int(obj2, &val3);
17684 if (!SWIG_IsOK(ecode3)) {
17685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17686 }
17687 arg3 = static_cast< int >(val3);
17688 }
17689 if (obj3) {
17690 ecode4 = SWIG_AsVal_int(obj3, &val4);
17691 if (!SWIG_IsOK(ecode4)) {
17692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17693 }
17694 arg4 = static_cast< int >(val4);
17695 }
17696 if (obj4) {
17697 ecode5 = SWIG_AsVal_int(obj4, &val5);
17698 if (!SWIG_IsOK(ecode5)) {
17699 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17700 }
17701 arg5 = static_cast< int >(val5);
17702 }
17703 if (obj5) {
17704 {
17705 arg6 = &temp6;
17706 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17707 }
17708 }
17709 if (obj6) {
17710 {
17711 arg7 = &temp7;
17712 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17713 }
17714 }
17715 if (obj7) {
17716 ecode8 = SWIG_AsVal_long(obj7, &val8);
17717 if (!SWIG_IsOK(ecode8)) {
17718 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17719 }
17720 arg8 = static_cast< long >(val8);
17721 }
17722 if (obj8) {
17723 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17724 if (!SWIG_IsOK(res9)) {
17725 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17726 }
17727 if (!argp9) {
17728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17729 }
17730 arg9 = reinterpret_cast< wxValidator * >(argp9);
17731 }
17732 if (obj9) {
17733 {
17734 arg10 = wxString_in_helper(obj9);
17735 if (arg10 == NULL) SWIG_fail;
17736 temp10 = true;
17737 }
17738 }
17739 {
17740 if (!wxPyCheckForApp()) SWIG_fail;
17741 PyThreadState* __tstate = wxPyBeginAllowThreads();
17742 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17743 wxPyEndAllowThreads(__tstate);
17744 if (PyErr_Occurred()) SWIG_fail;
17745 }
17746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17747 {
17748 if (temp10)
17749 delete arg10;
17750 }
17751 return resultobj;
17752 fail:
17753 {
17754 if (temp10)
17755 delete arg10;
17756 }
17757 return NULL;
17758 }
17759
17760
17761 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17762 PyObject *resultobj = 0;
17763 wxSlider *result = 0 ;
17764
17765 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17766 {
17767 if (!wxPyCheckForApp()) SWIG_fail;
17768 PyThreadState* __tstate = wxPyBeginAllowThreads();
17769 result = (wxSlider *)new wxSlider();
17770 wxPyEndAllowThreads(__tstate);
17771 if (PyErr_Occurred()) SWIG_fail;
17772 }
17773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17774 return resultobj;
17775 fail:
17776 return NULL;
17777 }
17778
17779
17780 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17781 PyObject *resultobj = 0;
17782 wxSlider *arg1 = (wxSlider *) 0 ;
17783 wxWindow *arg2 = (wxWindow *) 0 ;
17784 int arg3 = (int) -1 ;
17785 int arg4 = (int) 0 ;
17786 int arg5 = (int) 0 ;
17787 int arg6 = (int) 100 ;
17788 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17789 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17790 wxSize const &arg8_defvalue = wxDefaultSize ;
17791 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17792 long arg9 = (long) wxSL_HORIZONTAL ;
17793 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17794 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17795 wxString const &arg11_defvalue = wxPySliderNameStr ;
17796 wxString *arg11 = (wxString *) &arg11_defvalue ;
17797 bool result;
17798 void *argp1 = 0 ;
17799 int res1 = 0 ;
17800 void *argp2 = 0 ;
17801 int res2 = 0 ;
17802 int val3 ;
17803 int ecode3 = 0 ;
17804 int val4 ;
17805 int ecode4 = 0 ;
17806 int val5 ;
17807 int ecode5 = 0 ;
17808 int val6 ;
17809 int ecode6 = 0 ;
17810 wxPoint temp7 ;
17811 wxSize temp8 ;
17812 long val9 ;
17813 int ecode9 = 0 ;
17814 void *argp10 = 0 ;
17815 int res10 = 0 ;
17816 bool temp11 = false ;
17817 PyObject * obj0 = 0 ;
17818 PyObject * obj1 = 0 ;
17819 PyObject * obj2 = 0 ;
17820 PyObject * obj3 = 0 ;
17821 PyObject * obj4 = 0 ;
17822 PyObject * obj5 = 0 ;
17823 PyObject * obj6 = 0 ;
17824 PyObject * obj7 = 0 ;
17825 PyObject * obj8 = 0 ;
17826 PyObject * obj9 = 0 ;
17827 PyObject * obj10 = 0 ;
17828 char * kwnames[] = {
17829 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17830 };
17831
17832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17834 if (!SWIG_IsOK(res1)) {
17835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17836 }
17837 arg1 = reinterpret_cast< wxSlider * >(argp1);
17838 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17839 if (!SWIG_IsOK(res2)) {
17840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17841 }
17842 arg2 = reinterpret_cast< wxWindow * >(argp2);
17843 if (obj2) {
17844 ecode3 = SWIG_AsVal_int(obj2, &val3);
17845 if (!SWIG_IsOK(ecode3)) {
17846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17847 }
17848 arg3 = static_cast< int >(val3);
17849 }
17850 if (obj3) {
17851 ecode4 = SWIG_AsVal_int(obj3, &val4);
17852 if (!SWIG_IsOK(ecode4)) {
17853 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17854 }
17855 arg4 = static_cast< int >(val4);
17856 }
17857 if (obj4) {
17858 ecode5 = SWIG_AsVal_int(obj4, &val5);
17859 if (!SWIG_IsOK(ecode5)) {
17860 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17861 }
17862 arg5 = static_cast< int >(val5);
17863 }
17864 if (obj5) {
17865 ecode6 = SWIG_AsVal_int(obj5, &val6);
17866 if (!SWIG_IsOK(ecode6)) {
17867 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17868 }
17869 arg6 = static_cast< int >(val6);
17870 }
17871 if (obj6) {
17872 {
17873 arg7 = &temp7;
17874 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17875 }
17876 }
17877 if (obj7) {
17878 {
17879 arg8 = &temp8;
17880 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17881 }
17882 }
17883 if (obj8) {
17884 ecode9 = SWIG_AsVal_long(obj8, &val9);
17885 if (!SWIG_IsOK(ecode9)) {
17886 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17887 }
17888 arg9 = static_cast< long >(val9);
17889 }
17890 if (obj9) {
17891 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17892 if (!SWIG_IsOK(res10)) {
17893 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17894 }
17895 if (!argp10) {
17896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17897 }
17898 arg10 = reinterpret_cast< wxValidator * >(argp10);
17899 }
17900 if (obj10) {
17901 {
17902 arg11 = wxString_in_helper(obj10);
17903 if (arg11 == NULL) SWIG_fail;
17904 temp11 = true;
17905 }
17906 }
17907 {
17908 PyThreadState* __tstate = wxPyBeginAllowThreads();
17909 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17910 wxPyEndAllowThreads(__tstate);
17911 if (PyErr_Occurred()) SWIG_fail;
17912 }
17913 {
17914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17915 }
17916 {
17917 if (temp11)
17918 delete arg11;
17919 }
17920 return resultobj;
17921 fail:
17922 {
17923 if (temp11)
17924 delete arg11;
17925 }
17926 return NULL;
17927 }
17928
17929
17930 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17931 PyObject *resultobj = 0;
17932 wxSlider *arg1 = (wxSlider *) 0 ;
17933 int result;
17934 void *argp1 = 0 ;
17935 int res1 = 0 ;
17936 PyObject *swig_obj[1] ;
17937
17938 if (!args) SWIG_fail;
17939 swig_obj[0] = args;
17940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17941 if (!SWIG_IsOK(res1)) {
17942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17943 }
17944 arg1 = reinterpret_cast< wxSlider * >(argp1);
17945 {
17946 PyThreadState* __tstate = wxPyBeginAllowThreads();
17947 result = (int)((wxSlider const *)arg1)->GetValue();
17948 wxPyEndAllowThreads(__tstate);
17949 if (PyErr_Occurred()) SWIG_fail;
17950 }
17951 resultobj = SWIG_From_int(static_cast< int >(result));
17952 return resultobj;
17953 fail:
17954 return NULL;
17955 }
17956
17957
17958 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17959 PyObject *resultobj = 0;
17960 wxSlider *arg1 = (wxSlider *) 0 ;
17961 int arg2 ;
17962 void *argp1 = 0 ;
17963 int res1 = 0 ;
17964 int val2 ;
17965 int ecode2 = 0 ;
17966 PyObject * obj0 = 0 ;
17967 PyObject * obj1 = 0 ;
17968 char * kwnames[] = {
17969 (char *) "self",(char *) "value", NULL
17970 };
17971
17972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17974 if (!SWIG_IsOK(res1)) {
17975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17976 }
17977 arg1 = reinterpret_cast< wxSlider * >(argp1);
17978 ecode2 = SWIG_AsVal_int(obj1, &val2);
17979 if (!SWIG_IsOK(ecode2)) {
17980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17981 }
17982 arg2 = static_cast< int >(val2);
17983 {
17984 PyThreadState* __tstate = wxPyBeginAllowThreads();
17985 (arg1)->SetValue(arg2);
17986 wxPyEndAllowThreads(__tstate);
17987 if (PyErr_Occurred()) SWIG_fail;
17988 }
17989 resultobj = SWIG_Py_Void();
17990 return resultobj;
17991 fail:
17992 return NULL;
17993 }
17994
17995
17996 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17997 PyObject *resultobj = 0;
17998 wxSlider *arg1 = (wxSlider *) 0 ;
17999 int arg2 ;
18000 int arg3 ;
18001 void *argp1 = 0 ;
18002 int res1 = 0 ;
18003 int val2 ;
18004 int ecode2 = 0 ;
18005 int val3 ;
18006 int ecode3 = 0 ;
18007 PyObject * obj0 = 0 ;
18008 PyObject * obj1 = 0 ;
18009 PyObject * obj2 = 0 ;
18010 char * kwnames[] = {
18011 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18012 };
18013
18014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18016 if (!SWIG_IsOK(res1)) {
18017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18018 }
18019 arg1 = reinterpret_cast< wxSlider * >(argp1);
18020 ecode2 = SWIG_AsVal_int(obj1, &val2);
18021 if (!SWIG_IsOK(ecode2)) {
18022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18023 }
18024 arg2 = static_cast< int >(val2);
18025 ecode3 = SWIG_AsVal_int(obj2, &val3);
18026 if (!SWIG_IsOK(ecode3)) {
18027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18028 }
18029 arg3 = static_cast< int >(val3);
18030 {
18031 PyThreadState* __tstate = wxPyBeginAllowThreads();
18032 (arg1)->SetRange(arg2,arg3);
18033 wxPyEndAllowThreads(__tstate);
18034 if (PyErr_Occurred()) SWIG_fail;
18035 }
18036 resultobj = SWIG_Py_Void();
18037 return resultobj;
18038 fail:
18039 return NULL;
18040 }
18041
18042
18043 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18044 PyObject *resultobj = 0;
18045 wxSlider *arg1 = (wxSlider *) 0 ;
18046 int result;
18047 void *argp1 = 0 ;
18048 int res1 = 0 ;
18049 PyObject *swig_obj[1] ;
18050
18051 if (!args) SWIG_fail;
18052 swig_obj[0] = args;
18053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18054 if (!SWIG_IsOK(res1)) {
18055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18056 }
18057 arg1 = reinterpret_cast< wxSlider * >(argp1);
18058 {
18059 PyThreadState* __tstate = wxPyBeginAllowThreads();
18060 result = (int)((wxSlider const *)arg1)->GetMin();
18061 wxPyEndAllowThreads(__tstate);
18062 if (PyErr_Occurred()) SWIG_fail;
18063 }
18064 resultobj = SWIG_From_int(static_cast< int >(result));
18065 return resultobj;
18066 fail:
18067 return NULL;
18068 }
18069
18070
18071 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18072 PyObject *resultobj = 0;
18073 wxSlider *arg1 = (wxSlider *) 0 ;
18074 int result;
18075 void *argp1 = 0 ;
18076 int res1 = 0 ;
18077 PyObject *swig_obj[1] ;
18078
18079 if (!args) SWIG_fail;
18080 swig_obj[0] = args;
18081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18082 if (!SWIG_IsOK(res1)) {
18083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18084 }
18085 arg1 = reinterpret_cast< wxSlider * >(argp1);
18086 {
18087 PyThreadState* __tstate = wxPyBeginAllowThreads();
18088 result = (int)((wxSlider const *)arg1)->GetMax();
18089 wxPyEndAllowThreads(__tstate);
18090 if (PyErr_Occurred()) SWIG_fail;
18091 }
18092 resultobj = SWIG_From_int(static_cast< int >(result));
18093 return resultobj;
18094 fail:
18095 return NULL;
18096 }
18097
18098
18099 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18100 PyObject *resultobj = 0;
18101 wxSlider *arg1 = (wxSlider *) 0 ;
18102 int arg2 ;
18103 void *argp1 = 0 ;
18104 int res1 = 0 ;
18105 int val2 ;
18106 int ecode2 = 0 ;
18107 PyObject * obj0 = 0 ;
18108 PyObject * obj1 = 0 ;
18109 char * kwnames[] = {
18110 (char *) "self",(char *) "minValue", NULL
18111 };
18112
18113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18115 if (!SWIG_IsOK(res1)) {
18116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18117 }
18118 arg1 = reinterpret_cast< wxSlider * >(argp1);
18119 ecode2 = SWIG_AsVal_int(obj1, &val2);
18120 if (!SWIG_IsOK(ecode2)) {
18121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18122 }
18123 arg2 = static_cast< int >(val2);
18124 {
18125 PyThreadState* __tstate = wxPyBeginAllowThreads();
18126 (arg1)->SetMin(arg2);
18127 wxPyEndAllowThreads(__tstate);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 }
18130 resultobj = SWIG_Py_Void();
18131 return resultobj;
18132 fail:
18133 return NULL;
18134 }
18135
18136
18137 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18138 PyObject *resultobj = 0;
18139 wxSlider *arg1 = (wxSlider *) 0 ;
18140 int arg2 ;
18141 void *argp1 = 0 ;
18142 int res1 = 0 ;
18143 int val2 ;
18144 int ecode2 = 0 ;
18145 PyObject * obj0 = 0 ;
18146 PyObject * obj1 = 0 ;
18147 char * kwnames[] = {
18148 (char *) "self",(char *) "maxValue", NULL
18149 };
18150
18151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18153 if (!SWIG_IsOK(res1)) {
18154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18155 }
18156 arg1 = reinterpret_cast< wxSlider * >(argp1);
18157 ecode2 = SWIG_AsVal_int(obj1, &val2);
18158 if (!SWIG_IsOK(ecode2)) {
18159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18160 }
18161 arg2 = static_cast< int >(val2);
18162 {
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 (arg1)->SetMax(arg2);
18165 wxPyEndAllowThreads(__tstate);
18166 if (PyErr_Occurred()) SWIG_fail;
18167 }
18168 resultobj = SWIG_Py_Void();
18169 return resultobj;
18170 fail:
18171 return NULL;
18172 }
18173
18174
18175 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18176 PyObject *resultobj = 0;
18177 wxSlider *arg1 = (wxSlider *) 0 ;
18178 int arg2 ;
18179 void *argp1 = 0 ;
18180 int res1 = 0 ;
18181 int val2 ;
18182 int ecode2 = 0 ;
18183 PyObject * obj0 = 0 ;
18184 PyObject * obj1 = 0 ;
18185 char * kwnames[] = {
18186 (char *) "self",(char *) "lineSize", NULL
18187 };
18188
18189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18191 if (!SWIG_IsOK(res1)) {
18192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18193 }
18194 arg1 = reinterpret_cast< wxSlider * >(argp1);
18195 ecode2 = SWIG_AsVal_int(obj1, &val2);
18196 if (!SWIG_IsOK(ecode2)) {
18197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18198 }
18199 arg2 = static_cast< int >(val2);
18200 {
18201 PyThreadState* __tstate = wxPyBeginAllowThreads();
18202 (arg1)->SetLineSize(arg2);
18203 wxPyEndAllowThreads(__tstate);
18204 if (PyErr_Occurred()) SWIG_fail;
18205 }
18206 resultobj = SWIG_Py_Void();
18207 return resultobj;
18208 fail:
18209 return NULL;
18210 }
18211
18212
18213 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18214 PyObject *resultobj = 0;
18215 wxSlider *arg1 = (wxSlider *) 0 ;
18216 int arg2 ;
18217 void *argp1 = 0 ;
18218 int res1 = 0 ;
18219 int val2 ;
18220 int ecode2 = 0 ;
18221 PyObject * obj0 = 0 ;
18222 PyObject * obj1 = 0 ;
18223 char * kwnames[] = {
18224 (char *) "self",(char *) "pageSize", NULL
18225 };
18226
18227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18229 if (!SWIG_IsOK(res1)) {
18230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18231 }
18232 arg1 = reinterpret_cast< wxSlider * >(argp1);
18233 ecode2 = SWIG_AsVal_int(obj1, &val2);
18234 if (!SWIG_IsOK(ecode2)) {
18235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18236 }
18237 arg2 = static_cast< int >(val2);
18238 {
18239 PyThreadState* __tstate = wxPyBeginAllowThreads();
18240 (arg1)->SetPageSize(arg2);
18241 wxPyEndAllowThreads(__tstate);
18242 if (PyErr_Occurred()) SWIG_fail;
18243 }
18244 resultobj = SWIG_Py_Void();
18245 return resultobj;
18246 fail:
18247 return NULL;
18248 }
18249
18250
18251 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18252 PyObject *resultobj = 0;
18253 wxSlider *arg1 = (wxSlider *) 0 ;
18254 int result;
18255 void *argp1 = 0 ;
18256 int res1 = 0 ;
18257 PyObject *swig_obj[1] ;
18258
18259 if (!args) SWIG_fail;
18260 swig_obj[0] = args;
18261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18262 if (!SWIG_IsOK(res1)) {
18263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18264 }
18265 arg1 = reinterpret_cast< wxSlider * >(argp1);
18266 {
18267 PyThreadState* __tstate = wxPyBeginAllowThreads();
18268 result = (int)((wxSlider const *)arg1)->GetLineSize();
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 resultobj = SWIG_From_int(static_cast< int >(result));
18273 return resultobj;
18274 fail:
18275 return NULL;
18276 }
18277
18278
18279 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18280 PyObject *resultobj = 0;
18281 wxSlider *arg1 = (wxSlider *) 0 ;
18282 int result;
18283 void *argp1 = 0 ;
18284 int res1 = 0 ;
18285 PyObject *swig_obj[1] ;
18286
18287 if (!args) SWIG_fail;
18288 swig_obj[0] = args;
18289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18290 if (!SWIG_IsOK(res1)) {
18291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18292 }
18293 arg1 = reinterpret_cast< wxSlider * >(argp1);
18294 {
18295 PyThreadState* __tstate = wxPyBeginAllowThreads();
18296 result = (int)((wxSlider const *)arg1)->GetPageSize();
18297 wxPyEndAllowThreads(__tstate);
18298 if (PyErr_Occurred()) SWIG_fail;
18299 }
18300 resultobj = SWIG_From_int(static_cast< int >(result));
18301 return resultobj;
18302 fail:
18303 return NULL;
18304 }
18305
18306
18307 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18308 PyObject *resultobj = 0;
18309 wxSlider *arg1 = (wxSlider *) 0 ;
18310 int arg2 ;
18311 void *argp1 = 0 ;
18312 int res1 = 0 ;
18313 int val2 ;
18314 int ecode2 = 0 ;
18315 PyObject * obj0 = 0 ;
18316 PyObject * obj1 = 0 ;
18317 char * kwnames[] = {
18318 (char *) "self",(char *) "lenPixels", NULL
18319 };
18320
18321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18323 if (!SWIG_IsOK(res1)) {
18324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18325 }
18326 arg1 = reinterpret_cast< wxSlider * >(argp1);
18327 ecode2 = SWIG_AsVal_int(obj1, &val2);
18328 if (!SWIG_IsOK(ecode2)) {
18329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18330 }
18331 arg2 = static_cast< int >(val2);
18332 {
18333 PyThreadState* __tstate = wxPyBeginAllowThreads();
18334 (arg1)->SetThumbLength(arg2);
18335 wxPyEndAllowThreads(__tstate);
18336 if (PyErr_Occurred()) SWIG_fail;
18337 }
18338 resultobj = SWIG_Py_Void();
18339 return resultobj;
18340 fail:
18341 return NULL;
18342 }
18343
18344
18345 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18346 PyObject *resultobj = 0;
18347 wxSlider *arg1 = (wxSlider *) 0 ;
18348 int result;
18349 void *argp1 = 0 ;
18350 int res1 = 0 ;
18351 PyObject *swig_obj[1] ;
18352
18353 if (!args) SWIG_fail;
18354 swig_obj[0] = args;
18355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18356 if (!SWIG_IsOK(res1)) {
18357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18358 }
18359 arg1 = reinterpret_cast< wxSlider * >(argp1);
18360 {
18361 PyThreadState* __tstate = wxPyBeginAllowThreads();
18362 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 resultobj = SWIG_From_int(static_cast< int >(result));
18367 return resultobj;
18368 fail:
18369 return NULL;
18370 }
18371
18372
18373 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18374 PyObject *resultobj = 0;
18375 wxSlider *arg1 = (wxSlider *) 0 ;
18376 int arg2 ;
18377 int arg3 = (int) 1 ;
18378 void *argp1 = 0 ;
18379 int res1 = 0 ;
18380 int val2 ;
18381 int ecode2 = 0 ;
18382 int val3 ;
18383 int ecode3 = 0 ;
18384 PyObject * obj0 = 0 ;
18385 PyObject * obj1 = 0 ;
18386 PyObject * obj2 = 0 ;
18387 char * kwnames[] = {
18388 (char *) "self",(char *) "n",(char *) "pos", NULL
18389 };
18390
18391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18393 if (!SWIG_IsOK(res1)) {
18394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18395 }
18396 arg1 = reinterpret_cast< wxSlider * >(argp1);
18397 ecode2 = SWIG_AsVal_int(obj1, &val2);
18398 if (!SWIG_IsOK(ecode2)) {
18399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18400 }
18401 arg2 = static_cast< int >(val2);
18402 if (obj2) {
18403 ecode3 = SWIG_AsVal_int(obj2, &val3);
18404 if (!SWIG_IsOK(ecode3)) {
18405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18406 }
18407 arg3 = static_cast< int >(val3);
18408 }
18409 {
18410 PyThreadState* __tstate = wxPyBeginAllowThreads();
18411 (arg1)->SetTickFreq(arg2,arg3);
18412 wxPyEndAllowThreads(__tstate);
18413 if (PyErr_Occurred()) SWIG_fail;
18414 }
18415 resultobj = SWIG_Py_Void();
18416 return resultobj;
18417 fail:
18418 return NULL;
18419 }
18420
18421
18422 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18423 PyObject *resultobj = 0;
18424 wxSlider *arg1 = (wxSlider *) 0 ;
18425 int result;
18426 void *argp1 = 0 ;
18427 int res1 = 0 ;
18428 PyObject *swig_obj[1] ;
18429
18430 if (!args) SWIG_fail;
18431 swig_obj[0] = args;
18432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18433 if (!SWIG_IsOK(res1)) {
18434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18435 }
18436 arg1 = reinterpret_cast< wxSlider * >(argp1);
18437 {
18438 PyThreadState* __tstate = wxPyBeginAllowThreads();
18439 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18440 wxPyEndAllowThreads(__tstate);
18441 if (PyErr_Occurred()) SWIG_fail;
18442 }
18443 resultobj = SWIG_From_int(static_cast< int >(result));
18444 return resultobj;
18445 fail:
18446 return NULL;
18447 }
18448
18449
18450 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18451 PyObject *resultobj = 0;
18452 wxSlider *arg1 = (wxSlider *) 0 ;
18453 void *argp1 = 0 ;
18454 int res1 = 0 ;
18455 PyObject *swig_obj[1] ;
18456
18457 if (!args) SWIG_fail;
18458 swig_obj[0] = args;
18459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18460 if (!SWIG_IsOK(res1)) {
18461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18462 }
18463 arg1 = reinterpret_cast< wxSlider * >(argp1);
18464 {
18465 PyThreadState* __tstate = wxPyBeginAllowThreads();
18466 (arg1)->ClearTicks();
18467 wxPyEndAllowThreads(__tstate);
18468 if (PyErr_Occurred()) SWIG_fail;
18469 }
18470 resultobj = SWIG_Py_Void();
18471 return resultobj;
18472 fail:
18473 return NULL;
18474 }
18475
18476
18477 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18478 PyObject *resultobj = 0;
18479 wxSlider *arg1 = (wxSlider *) 0 ;
18480 int arg2 ;
18481 void *argp1 = 0 ;
18482 int res1 = 0 ;
18483 int val2 ;
18484 int ecode2 = 0 ;
18485 PyObject * obj0 = 0 ;
18486 PyObject * obj1 = 0 ;
18487 char * kwnames[] = {
18488 (char *) "self",(char *) "tickPos", NULL
18489 };
18490
18491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18493 if (!SWIG_IsOK(res1)) {
18494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18495 }
18496 arg1 = reinterpret_cast< wxSlider * >(argp1);
18497 ecode2 = SWIG_AsVal_int(obj1, &val2);
18498 if (!SWIG_IsOK(ecode2)) {
18499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18500 }
18501 arg2 = static_cast< int >(val2);
18502 {
18503 PyThreadState* __tstate = wxPyBeginAllowThreads();
18504 (arg1)->SetTick(arg2);
18505 wxPyEndAllowThreads(__tstate);
18506 if (PyErr_Occurred()) SWIG_fail;
18507 }
18508 resultobj = SWIG_Py_Void();
18509 return resultobj;
18510 fail:
18511 return NULL;
18512 }
18513
18514
18515 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18516 PyObject *resultobj = 0;
18517 wxSlider *arg1 = (wxSlider *) 0 ;
18518 void *argp1 = 0 ;
18519 int res1 = 0 ;
18520 PyObject *swig_obj[1] ;
18521
18522 if (!args) SWIG_fail;
18523 swig_obj[0] = args;
18524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18525 if (!SWIG_IsOK(res1)) {
18526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18527 }
18528 arg1 = reinterpret_cast< wxSlider * >(argp1);
18529 {
18530 PyThreadState* __tstate = wxPyBeginAllowThreads();
18531 (arg1)->ClearSel();
18532 wxPyEndAllowThreads(__tstate);
18533 if (PyErr_Occurred()) SWIG_fail;
18534 }
18535 resultobj = SWIG_Py_Void();
18536 return resultobj;
18537 fail:
18538 return NULL;
18539 }
18540
18541
18542 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18543 PyObject *resultobj = 0;
18544 wxSlider *arg1 = (wxSlider *) 0 ;
18545 int result;
18546 void *argp1 = 0 ;
18547 int res1 = 0 ;
18548 PyObject *swig_obj[1] ;
18549
18550 if (!args) SWIG_fail;
18551 swig_obj[0] = args;
18552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18553 if (!SWIG_IsOK(res1)) {
18554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18555 }
18556 arg1 = reinterpret_cast< wxSlider * >(argp1);
18557 {
18558 PyThreadState* __tstate = wxPyBeginAllowThreads();
18559 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18560 wxPyEndAllowThreads(__tstate);
18561 if (PyErr_Occurred()) SWIG_fail;
18562 }
18563 resultobj = SWIG_From_int(static_cast< int >(result));
18564 return resultobj;
18565 fail:
18566 return NULL;
18567 }
18568
18569
18570 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18571 PyObject *resultobj = 0;
18572 wxSlider *arg1 = (wxSlider *) 0 ;
18573 int result;
18574 void *argp1 = 0 ;
18575 int res1 = 0 ;
18576 PyObject *swig_obj[1] ;
18577
18578 if (!args) SWIG_fail;
18579 swig_obj[0] = args;
18580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18581 if (!SWIG_IsOK(res1)) {
18582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18583 }
18584 arg1 = reinterpret_cast< wxSlider * >(argp1);
18585 {
18586 PyThreadState* __tstate = wxPyBeginAllowThreads();
18587 result = (int)((wxSlider const *)arg1)->GetSelStart();
18588 wxPyEndAllowThreads(__tstate);
18589 if (PyErr_Occurred()) SWIG_fail;
18590 }
18591 resultobj = SWIG_From_int(static_cast< int >(result));
18592 return resultobj;
18593 fail:
18594 return NULL;
18595 }
18596
18597
18598 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18599 PyObject *resultobj = 0;
18600 wxSlider *arg1 = (wxSlider *) 0 ;
18601 int arg2 ;
18602 int arg3 ;
18603 void *argp1 = 0 ;
18604 int res1 = 0 ;
18605 int val2 ;
18606 int ecode2 = 0 ;
18607 int val3 ;
18608 int ecode3 = 0 ;
18609 PyObject * obj0 = 0 ;
18610 PyObject * obj1 = 0 ;
18611 PyObject * obj2 = 0 ;
18612 char * kwnames[] = {
18613 (char *) "self",(char *) "min",(char *) "max", NULL
18614 };
18615
18616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18618 if (!SWIG_IsOK(res1)) {
18619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18620 }
18621 arg1 = reinterpret_cast< wxSlider * >(argp1);
18622 ecode2 = SWIG_AsVal_int(obj1, &val2);
18623 if (!SWIG_IsOK(ecode2)) {
18624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18625 }
18626 arg2 = static_cast< int >(val2);
18627 ecode3 = SWIG_AsVal_int(obj2, &val3);
18628 if (!SWIG_IsOK(ecode3)) {
18629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18630 }
18631 arg3 = static_cast< int >(val3);
18632 {
18633 PyThreadState* __tstate = wxPyBeginAllowThreads();
18634 (arg1)->SetSelection(arg2,arg3);
18635 wxPyEndAllowThreads(__tstate);
18636 if (PyErr_Occurred()) SWIG_fail;
18637 }
18638 resultobj = SWIG_Py_Void();
18639 return resultobj;
18640 fail:
18641 return NULL;
18642 }
18643
18644
18645 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18646 PyObject *resultobj = 0;
18647 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18648 SwigValueWrapper<wxVisualAttributes > result;
18649 int val1 ;
18650 int ecode1 = 0 ;
18651 PyObject * obj0 = 0 ;
18652 char * kwnames[] = {
18653 (char *) "variant", NULL
18654 };
18655
18656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18657 if (obj0) {
18658 ecode1 = SWIG_AsVal_int(obj0, &val1);
18659 if (!SWIG_IsOK(ecode1)) {
18660 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18661 }
18662 arg1 = static_cast< wxWindowVariant >(val1);
18663 }
18664 {
18665 if (!wxPyCheckForApp()) SWIG_fail;
18666 PyThreadState* __tstate = wxPyBeginAllowThreads();
18667 result = wxSlider::GetClassDefaultAttributes(arg1);
18668 wxPyEndAllowThreads(__tstate);
18669 if (PyErr_Occurred()) SWIG_fail;
18670 }
18671 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18672 return resultobj;
18673 fail:
18674 return NULL;
18675 }
18676
18677
18678 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18679 PyObject *obj;
18680 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18681 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18682 return SWIG_Py_Void();
18683 }
18684
18685 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18686 return SWIG_Python_InitShadowInstance(args);
18687 }
18688
18689 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18690 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18691 return 1;
18692 }
18693
18694
18695 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18696 PyObject *pyobj = 0;
18697
18698 {
18699 #if wxUSE_UNICODE
18700 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18701 #else
18702 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18703 #endif
18704 }
18705 return pyobj;
18706 }
18707
18708
18709 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18710 PyObject *resultobj = 0;
18711 wxWindow *arg1 = (wxWindow *) 0 ;
18712 int arg2 = (int) -1 ;
18713 wxString const &arg3_defvalue = wxPyEmptyString ;
18714 wxString *arg3 = (wxString *) &arg3_defvalue ;
18715 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18716 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18717 wxSize const &arg5_defvalue = wxDefaultSize ;
18718 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18719 long arg6 = (long) 0 ;
18720 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18721 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18722 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18723 wxString *arg8 = (wxString *) &arg8_defvalue ;
18724 wxToggleButton *result = 0 ;
18725 void *argp1 = 0 ;
18726 int res1 = 0 ;
18727 int val2 ;
18728 int ecode2 = 0 ;
18729 bool temp3 = false ;
18730 wxPoint temp4 ;
18731 wxSize temp5 ;
18732 long val6 ;
18733 int ecode6 = 0 ;
18734 void *argp7 = 0 ;
18735 int res7 = 0 ;
18736 bool temp8 = false ;
18737 PyObject * obj0 = 0 ;
18738 PyObject * obj1 = 0 ;
18739 PyObject * obj2 = 0 ;
18740 PyObject * obj3 = 0 ;
18741 PyObject * obj4 = 0 ;
18742 PyObject * obj5 = 0 ;
18743 PyObject * obj6 = 0 ;
18744 PyObject * obj7 = 0 ;
18745 char * kwnames[] = {
18746 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18747 };
18748
18749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18751 if (!SWIG_IsOK(res1)) {
18752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18753 }
18754 arg1 = reinterpret_cast< wxWindow * >(argp1);
18755 if (obj1) {
18756 ecode2 = SWIG_AsVal_int(obj1, &val2);
18757 if (!SWIG_IsOK(ecode2)) {
18758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18759 }
18760 arg2 = static_cast< int >(val2);
18761 }
18762 if (obj2) {
18763 {
18764 arg3 = wxString_in_helper(obj2);
18765 if (arg3 == NULL) SWIG_fail;
18766 temp3 = true;
18767 }
18768 }
18769 if (obj3) {
18770 {
18771 arg4 = &temp4;
18772 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18773 }
18774 }
18775 if (obj4) {
18776 {
18777 arg5 = &temp5;
18778 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18779 }
18780 }
18781 if (obj5) {
18782 ecode6 = SWIG_AsVal_long(obj5, &val6);
18783 if (!SWIG_IsOK(ecode6)) {
18784 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18785 }
18786 arg6 = static_cast< long >(val6);
18787 }
18788 if (obj6) {
18789 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18790 if (!SWIG_IsOK(res7)) {
18791 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18792 }
18793 if (!argp7) {
18794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18795 }
18796 arg7 = reinterpret_cast< wxValidator * >(argp7);
18797 }
18798 if (obj7) {
18799 {
18800 arg8 = wxString_in_helper(obj7);
18801 if (arg8 == NULL) SWIG_fail;
18802 temp8 = true;
18803 }
18804 }
18805 {
18806 if (!wxPyCheckForApp()) SWIG_fail;
18807 PyThreadState* __tstate = wxPyBeginAllowThreads();
18808 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18809 wxPyEndAllowThreads(__tstate);
18810 if (PyErr_Occurred()) SWIG_fail;
18811 }
18812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18813 {
18814 if (temp3)
18815 delete arg3;
18816 }
18817 {
18818 if (temp8)
18819 delete arg8;
18820 }
18821 return resultobj;
18822 fail:
18823 {
18824 if (temp3)
18825 delete arg3;
18826 }
18827 {
18828 if (temp8)
18829 delete arg8;
18830 }
18831 return NULL;
18832 }
18833
18834
18835 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18836 PyObject *resultobj = 0;
18837 wxToggleButton *result = 0 ;
18838
18839 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18840 {
18841 if (!wxPyCheckForApp()) SWIG_fail;
18842 PyThreadState* __tstate = wxPyBeginAllowThreads();
18843 result = (wxToggleButton *)new wxToggleButton();
18844 wxPyEndAllowThreads(__tstate);
18845 if (PyErr_Occurred()) SWIG_fail;
18846 }
18847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18848 return resultobj;
18849 fail:
18850 return NULL;
18851 }
18852
18853
18854 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18855 PyObject *resultobj = 0;
18856 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18857 wxWindow *arg2 = (wxWindow *) 0 ;
18858 int arg3 = (int) -1 ;
18859 wxString const &arg4_defvalue = wxPyEmptyString ;
18860 wxString *arg4 = (wxString *) &arg4_defvalue ;
18861 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18862 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18863 wxSize const &arg6_defvalue = wxDefaultSize ;
18864 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18865 long arg7 = (long) 0 ;
18866 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18867 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18868 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18869 wxString *arg9 = (wxString *) &arg9_defvalue ;
18870 bool result;
18871 void *argp1 = 0 ;
18872 int res1 = 0 ;
18873 void *argp2 = 0 ;
18874 int res2 = 0 ;
18875 int val3 ;
18876 int ecode3 = 0 ;
18877 bool temp4 = false ;
18878 wxPoint temp5 ;
18879 wxSize temp6 ;
18880 long val7 ;
18881 int ecode7 = 0 ;
18882 void *argp8 = 0 ;
18883 int res8 = 0 ;
18884 bool temp9 = false ;
18885 PyObject * obj0 = 0 ;
18886 PyObject * obj1 = 0 ;
18887 PyObject * obj2 = 0 ;
18888 PyObject * obj3 = 0 ;
18889 PyObject * obj4 = 0 ;
18890 PyObject * obj5 = 0 ;
18891 PyObject * obj6 = 0 ;
18892 PyObject * obj7 = 0 ;
18893 PyObject * obj8 = 0 ;
18894 char * kwnames[] = {
18895 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18896 };
18897
18898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18900 if (!SWIG_IsOK(res1)) {
18901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18902 }
18903 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18904 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18905 if (!SWIG_IsOK(res2)) {
18906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18907 }
18908 arg2 = reinterpret_cast< wxWindow * >(argp2);
18909 if (obj2) {
18910 ecode3 = SWIG_AsVal_int(obj2, &val3);
18911 if (!SWIG_IsOK(ecode3)) {
18912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18913 }
18914 arg3 = static_cast< int >(val3);
18915 }
18916 if (obj3) {
18917 {
18918 arg4 = wxString_in_helper(obj3);
18919 if (arg4 == NULL) SWIG_fail;
18920 temp4 = true;
18921 }
18922 }
18923 if (obj4) {
18924 {
18925 arg5 = &temp5;
18926 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18927 }
18928 }
18929 if (obj5) {
18930 {
18931 arg6 = &temp6;
18932 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18933 }
18934 }
18935 if (obj6) {
18936 ecode7 = SWIG_AsVal_long(obj6, &val7);
18937 if (!SWIG_IsOK(ecode7)) {
18938 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18939 }
18940 arg7 = static_cast< long >(val7);
18941 }
18942 if (obj7) {
18943 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18944 if (!SWIG_IsOK(res8)) {
18945 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18946 }
18947 if (!argp8) {
18948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18949 }
18950 arg8 = reinterpret_cast< wxValidator * >(argp8);
18951 }
18952 if (obj8) {
18953 {
18954 arg9 = wxString_in_helper(obj8);
18955 if (arg9 == NULL) SWIG_fail;
18956 temp9 = true;
18957 }
18958 }
18959 {
18960 PyThreadState* __tstate = wxPyBeginAllowThreads();
18961 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18962 wxPyEndAllowThreads(__tstate);
18963 if (PyErr_Occurred()) SWIG_fail;
18964 }
18965 {
18966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18967 }
18968 {
18969 if (temp4)
18970 delete arg4;
18971 }
18972 {
18973 if (temp9)
18974 delete arg9;
18975 }
18976 return resultobj;
18977 fail:
18978 {
18979 if (temp4)
18980 delete arg4;
18981 }
18982 {
18983 if (temp9)
18984 delete arg9;
18985 }
18986 return NULL;
18987 }
18988
18989
18990 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18991 PyObject *resultobj = 0;
18992 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18993 bool arg2 ;
18994 void *argp1 = 0 ;
18995 int res1 = 0 ;
18996 bool val2 ;
18997 int ecode2 = 0 ;
18998 PyObject * obj0 = 0 ;
18999 PyObject * obj1 = 0 ;
19000 char * kwnames[] = {
19001 (char *) "self",(char *) "value", NULL
19002 };
19003
19004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19006 if (!SWIG_IsOK(res1)) {
19007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19008 }
19009 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19010 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19011 if (!SWIG_IsOK(ecode2)) {
19012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19013 }
19014 arg2 = static_cast< bool >(val2);
19015 {
19016 PyThreadState* __tstate = wxPyBeginAllowThreads();
19017 (arg1)->SetValue(arg2);
19018 wxPyEndAllowThreads(__tstate);
19019 if (PyErr_Occurred()) SWIG_fail;
19020 }
19021 resultobj = SWIG_Py_Void();
19022 return resultobj;
19023 fail:
19024 return NULL;
19025 }
19026
19027
19028 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19029 PyObject *resultobj = 0;
19030 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19031 bool result;
19032 void *argp1 = 0 ;
19033 int res1 = 0 ;
19034 PyObject *swig_obj[1] ;
19035
19036 if (!args) SWIG_fail;
19037 swig_obj[0] = args;
19038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19039 if (!SWIG_IsOK(res1)) {
19040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19041 }
19042 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19043 {
19044 PyThreadState* __tstate = wxPyBeginAllowThreads();
19045 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19046 wxPyEndAllowThreads(__tstate);
19047 if (PyErr_Occurred()) SWIG_fail;
19048 }
19049 {
19050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19051 }
19052 return resultobj;
19053 fail:
19054 return NULL;
19055 }
19056
19057
19058 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19059 PyObject *resultobj = 0;
19060 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19061 SwigValueWrapper<wxVisualAttributes > result;
19062 int val1 ;
19063 int ecode1 = 0 ;
19064 PyObject * obj0 = 0 ;
19065 char * kwnames[] = {
19066 (char *) "variant", NULL
19067 };
19068
19069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19070 if (obj0) {
19071 ecode1 = SWIG_AsVal_int(obj0, &val1);
19072 if (!SWIG_IsOK(ecode1)) {
19073 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19074 }
19075 arg1 = static_cast< wxWindowVariant >(val1);
19076 }
19077 {
19078 if (!wxPyCheckForApp()) SWIG_fail;
19079 PyThreadState* __tstate = wxPyBeginAllowThreads();
19080 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19081 wxPyEndAllowThreads(__tstate);
19082 if (PyErr_Occurred()) SWIG_fail;
19083 }
19084 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19085 return resultobj;
19086 fail:
19087 return NULL;
19088 }
19089
19090
19091 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19092 PyObject *obj;
19093 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19094 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19095 return SWIG_Py_Void();
19096 }
19097
19098 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19099 return SWIG_Python_InitShadowInstance(args);
19100 }
19101
19102 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19103 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19104 return 1;
19105 }
19106
19107
19108 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19109 PyObject *pyobj = 0;
19110
19111 {
19112 #if wxUSE_UNICODE
19113 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19114 #else
19115 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19116 #endif
19117 }
19118 return pyobj;
19119 }
19120
19121
19122 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19123 PyObject *resultobj = 0;
19124 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19125 size_t result;
19126 void *argp1 = 0 ;
19127 int res1 = 0 ;
19128 PyObject *swig_obj[1] ;
19129
19130 if (!args) SWIG_fail;
19131 swig_obj[0] = args;
19132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19133 if (!SWIG_IsOK(res1)) {
19134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19135 }
19136 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19137 {
19138 PyThreadState* __tstate = wxPyBeginAllowThreads();
19139 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19140 wxPyEndAllowThreads(__tstate);
19141 if (PyErr_Occurred()) SWIG_fail;
19142 }
19143 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19144 return resultobj;
19145 fail:
19146 return NULL;
19147 }
19148
19149
19150 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19151 PyObject *resultobj = 0;
19152 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19153 size_t arg2 ;
19154 wxWindow *result = 0 ;
19155 void *argp1 = 0 ;
19156 int res1 = 0 ;
19157 size_t val2 ;
19158 int ecode2 = 0 ;
19159 PyObject * obj0 = 0 ;
19160 PyObject * obj1 = 0 ;
19161 char * kwnames[] = {
19162 (char *) "self",(char *) "n", NULL
19163 };
19164
19165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19167 if (!SWIG_IsOK(res1)) {
19168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19169 }
19170 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19171 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19172 if (!SWIG_IsOK(ecode2)) {
19173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19174 }
19175 arg2 = static_cast< size_t >(val2);
19176 {
19177 PyThreadState* __tstate = wxPyBeginAllowThreads();
19178 result = (wxWindow *)(arg1)->GetPage(arg2);
19179 wxPyEndAllowThreads(__tstate);
19180 if (PyErr_Occurred()) SWIG_fail;
19181 }
19182 {
19183 resultobj = wxPyMake_wxObject(result, 0);
19184 }
19185 return resultobj;
19186 fail:
19187 return NULL;
19188 }
19189
19190
19191 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19192 PyObject *resultobj = 0;
19193 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19194 wxWindow *result = 0 ;
19195 void *argp1 = 0 ;
19196 int res1 = 0 ;
19197 PyObject *swig_obj[1] ;
19198
19199 if (!args) SWIG_fail;
19200 swig_obj[0] = args;
19201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19202 if (!SWIG_IsOK(res1)) {
19203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19204 }
19205 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19206 {
19207 PyThreadState* __tstate = wxPyBeginAllowThreads();
19208 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19209 wxPyEndAllowThreads(__tstate);
19210 if (PyErr_Occurred()) SWIG_fail;
19211 }
19212 {
19213 resultobj = wxPyMake_wxObject(result, 0);
19214 }
19215 return resultobj;
19216 fail:
19217 return NULL;
19218 }
19219
19220
19221 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19222 PyObject *resultobj = 0;
19223 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19224 int result;
19225 void *argp1 = 0 ;
19226 int res1 = 0 ;
19227 PyObject *swig_obj[1] ;
19228
19229 if (!args) SWIG_fail;
19230 swig_obj[0] = args;
19231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19232 if (!SWIG_IsOK(res1)) {
19233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19234 }
19235 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19236 {
19237 PyThreadState* __tstate = wxPyBeginAllowThreads();
19238 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19239 wxPyEndAllowThreads(__tstate);
19240 if (PyErr_Occurred()) SWIG_fail;
19241 }
19242 resultobj = SWIG_From_int(static_cast< int >(result));
19243 return resultobj;
19244 fail:
19245 return NULL;
19246 }
19247
19248
19249 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19250 PyObject *resultobj = 0;
19251 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19252 size_t arg2 ;
19253 wxString *arg3 = 0 ;
19254 bool result;
19255 void *argp1 = 0 ;
19256 int res1 = 0 ;
19257 size_t val2 ;
19258 int ecode2 = 0 ;
19259 bool temp3 = false ;
19260 PyObject * obj0 = 0 ;
19261 PyObject * obj1 = 0 ;
19262 PyObject * obj2 = 0 ;
19263 char * kwnames[] = {
19264 (char *) "self",(char *) "n",(char *) "strText", NULL
19265 };
19266
19267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19269 if (!SWIG_IsOK(res1)) {
19270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19271 }
19272 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19273 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19274 if (!SWIG_IsOK(ecode2)) {
19275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19276 }
19277 arg2 = static_cast< size_t >(val2);
19278 {
19279 arg3 = wxString_in_helper(obj2);
19280 if (arg3 == NULL) SWIG_fail;
19281 temp3 = true;
19282 }
19283 {
19284 PyThreadState* __tstate = wxPyBeginAllowThreads();
19285 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19286 wxPyEndAllowThreads(__tstate);
19287 if (PyErr_Occurred()) SWIG_fail;
19288 }
19289 {
19290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19291 }
19292 {
19293 if (temp3)
19294 delete arg3;
19295 }
19296 return resultobj;
19297 fail:
19298 {
19299 if (temp3)
19300 delete arg3;
19301 }
19302 return NULL;
19303 }
19304
19305
19306 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19307 PyObject *resultobj = 0;
19308 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19309 size_t arg2 ;
19310 wxString result;
19311 void *argp1 = 0 ;
19312 int res1 = 0 ;
19313 size_t val2 ;
19314 int ecode2 = 0 ;
19315 PyObject * obj0 = 0 ;
19316 PyObject * obj1 = 0 ;
19317 char * kwnames[] = {
19318 (char *) "self",(char *) "n", NULL
19319 };
19320
19321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19323 if (!SWIG_IsOK(res1)) {
19324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19325 }
19326 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19327 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19328 if (!SWIG_IsOK(ecode2)) {
19329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19330 }
19331 arg2 = static_cast< size_t >(val2);
19332 {
19333 PyThreadState* __tstate = wxPyBeginAllowThreads();
19334 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19335 wxPyEndAllowThreads(__tstate);
19336 if (PyErr_Occurred()) SWIG_fail;
19337 }
19338 {
19339 #if wxUSE_UNICODE
19340 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19341 #else
19342 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19343 #endif
19344 }
19345 return resultobj;
19346 fail:
19347 return NULL;
19348 }
19349
19350
19351 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19352 PyObject *resultobj = 0;
19353 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19354 wxImageList *arg2 = (wxImageList *) 0 ;
19355 void *argp1 = 0 ;
19356 int res1 = 0 ;
19357 void *argp2 = 0 ;
19358 int res2 = 0 ;
19359 PyObject * obj0 = 0 ;
19360 PyObject * obj1 = 0 ;
19361 char * kwnames[] = {
19362 (char *) "self",(char *) "imageList", NULL
19363 };
19364
19365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19367 if (!SWIG_IsOK(res1)) {
19368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19369 }
19370 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19371 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19372 if (!SWIG_IsOK(res2)) {
19373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19374 }
19375 arg2 = reinterpret_cast< wxImageList * >(argp2);
19376 {
19377 PyThreadState* __tstate = wxPyBeginAllowThreads();
19378 (arg1)->SetImageList(arg2);
19379 wxPyEndAllowThreads(__tstate);
19380 if (PyErr_Occurred()) SWIG_fail;
19381 }
19382 resultobj = SWIG_Py_Void();
19383 return resultobj;
19384 fail:
19385 return NULL;
19386 }
19387
19388
19389 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19390 PyObject *resultobj = 0;
19391 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19392 wxImageList *arg2 = (wxImageList *) 0 ;
19393 void *argp1 = 0 ;
19394 int res1 = 0 ;
19395 int res2 = 0 ;
19396 PyObject * obj0 = 0 ;
19397 PyObject * obj1 = 0 ;
19398 char * kwnames[] = {
19399 (char *) "self",(char *) "imageList", NULL
19400 };
19401
19402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19404 if (!SWIG_IsOK(res1)) {
19405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19406 }
19407 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19408 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19409 if (!SWIG_IsOK(res2)) {
19410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19411 }
19412 {
19413 PyThreadState* __tstate = wxPyBeginAllowThreads();
19414 (arg1)->AssignImageList(arg2);
19415 wxPyEndAllowThreads(__tstate);
19416 if (PyErr_Occurred()) SWIG_fail;
19417 }
19418 resultobj = SWIG_Py_Void();
19419 return resultobj;
19420 fail:
19421 return NULL;
19422 }
19423
19424
19425 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19426 PyObject *resultobj = 0;
19427 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19428 wxImageList *result = 0 ;
19429 void *argp1 = 0 ;
19430 int res1 = 0 ;
19431 PyObject *swig_obj[1] ;
19432
19433 if (!args) SWIG_fail;
19434 swig_obj[0] = args;
19435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19436 if (!SWIG_IsOK(res1)) {
19437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19438 }
19439 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19440 {
19441 PyThreadState* __tstate = wxPyBeginAllowThreads();
19442 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19443 wxPyEndAllowThreads(__tstate);
19444 if (PyErr_Occurred()) SWIG_fail;
19445 }
19446 {
19447 resultobj = wxPyMake_wxObject(result, (bool)0);
19448 }
19449 return resultobj;
19450 fail:
19451 return NULL;
19452 }
19453
19454
19455 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19456 PyObject *resultobj = 0;
19457 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19458 size_t arg2 ;
19459 int result;
19460 void *argp1 = 0 ;
19461 int res1 = 0 ;
19462 size_t val2 ;
19463 int ecode2 = 0 ;
19464 PyObject * obj0 = 0 ;
19465 PyObject * obj1 = 0 ;
19466 char * kwnames[] = {
19467 (char *) "self",(char *) "n", NULL
19468 };
19469
19470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19472 if (!SWIG_IsOK(res1)) {
19473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19474 }
19475 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19476 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19477 if (!SWIG_IsOK(ecode2)) {
19478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19479 }
19480 arg2 = static_cast< size_t >(val2);
19481 {
19482 PyThreadState* __tstate = wxPyBeginAllowThreads();
19483 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19484 wxPyEndAllowThreads(__tstate);
19485 if (PyErr_Occurred()) SWIG_fail;
19486 }
19487 resultobj = SWIG_From_int(static_cast< int >(result));
19488 return resultobj;
19489 fail:
19490 return NULL;
19491 }
19492
19493
19494 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19495 PyObject *resultobj = 0;
19496 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19497 size_t arg2 ;
19498 int arg3 ;
19499 bool result;
19500 void *argp1 = 0 ;
19501 int res1 = 0 ;
19502 size_t val2 ;
19503 int ecode2 = 0 ;
19504 int val3 ;
19505 int ecode3 = 0 ;
19506 PyObject * obj0 = 0 ;
19507 PyObject * obj1 = 0 ;
19508 PyObject * obj2 = 0 ;
19509 char * kwnames[] = {
19510 (char *) "self",(char *) "n",(char *) "imageId", NULL
19511 };
19512
19513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19515 if (!SWIG_IsOK(res1)) {
19516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19517 }
19518 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19519 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19520 if (!SWIG_IsOK(ecode2)) {
19521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19522 }
19523 arg2 = static_cast< size_t >(val2);
19524 ecode3 = SWIG_AsVal_int(obj2, &val3);
19525 if (!SWIG_IsOK(ecode3)) {
19526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19527 }
19528 arg3 = static_cast< int >(val3);
19529 {
19530 PyThreadState* __tstate = wxPyBeginAllowThreads();
19531 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19532 wxPyEndAllowThreads(__tstate);
19533 if (PyErr_Occurred()) SWIG_fail;
19534 }
19535 {
19536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19537 }
19538 return resultobj;
19539 fail:
19540 return NULL;
19541 }
19542
19543
19544 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19545 PyObject *resultobj = 0;
19546 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19547 wxSize *arg2 = 0 ;
19548 void *argp1 = 0 ;
19549 int res1 = 0 ;
19550 wxSize temp2 ;
19551 PyObject * obj0 = 0 ;
19552 PyObject * obj1 = 0 ;
19553 char * kwnames[] = {
19554 (char *) "self",(char *) "size", NULL
19555 };
19556
19557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19559 if (!SWIG_IsOK(res1)) {
19560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19561 }
19562 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19563 {
19564 arg2 = &temp2;
19565 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19566 }
19567 {
19568 PyThreadState* __tstate = wxPyBeginAllowThreads();
19569 (arg1)->SetPageSize((wxSize const &)*arg2);
19570 wxPyEndAllowThreads(__tstate);
19571 if (PyErr_Occurred()) SWIG_fail;
19572 }
19573 resultobj = SWIG_Py_Void();
19574 return resultobj;
19575 fail:
19576 return NULL;
19577 }
19578
19579
19580 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19581 PyObject *resultobj = 0;
19582 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19583 wxSize *arg2 = 0 ;
19584 wxSize result;
19585 void *argp1 = 0 ;
19586 int res1 = 0 ;
19587 wxSize temp2 ;
19588 PyObject * obj0 = 0 ;
19589 PyObject * obj1 = 0 ;
19590 char * kwnames[] = {
19591 (char *) "self",(char *) "sizePage", NULL
19592 };
19593
19594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19596 if (!SWIG_IsOK(res1)) {
19597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19598 }
19599 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19600 {
19601 arg2 = &temp2;
19602 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19603 }
19604 {
19605 PyThreadState* __tstate = wxPyBeginAllowThreads();
19606 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19607 wxPyEndAllowThreads(__tstate);
19608 if (PyErr_Occurred()) SWIG_fail;
19609 }
19610 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19611 return resultobj;
19612 fail:
19613 return NULL;
19614 }
19615
19616
19617 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19618 PyObject *resultobj = 0;
19619 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19620 unsigned int result;
19621 void *argp1 = 0 ;
19622 int res1 = 0 ;
19623 PyObject *swig_obj[1] ;
19624
19625 if (!args) SWIG_fail;
19626 swig_obj[0] = args;
19627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19628 if (!SWIG_IsOK(res1)) {
19629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19630 }
19631 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19632 {
19633 PyThreadState* __tstate = wxPyBeginAllowThreads();
19634 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19635 wxPyEndAllowThreads(__tstate);
19636 if (PyErr_Occurred()) SWIG_fail;
19637 }
19638 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19639 return resultobj;
19640 fail:
19641 return NULL;
19642 }
19643
19644
19645 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19646 PyObject *resultobj = 0;
19647 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19648 unsigned int arg2 ;
19649 void *argp1 = 0 ;
19650 int res1 = 0 ;
19651 unsigned int val2 ;
19652 int ecode2 = 0 ;
19653 PyObject * obj0 = 0 ;
19654 PyObject * obj1 = 0 ;
19655 char * kwnames[] = {
19656 (char *) "self",(char *) "internalBorder", NULL
19657 };
19658
19659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19661 if (!SWIG_IsOK(res1)) {
19662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19663 }
19664 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19665 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19666 if (!SWIG_IsOK(ecode2)) {
19667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19668 }
19669 arg2 = static_cast< unsigned int >(val2);
19670 {
19671 PyThreadState* __tstate = wxPyBeginAllowThreads();
19672 (arg1)->SetInternalBorder(arg2);
19673 wxPyEndAllowThreads(__tstate);
19674 if (PyErr_Occurred()) SWIG_fail;
19675 }
19676 resultobj = SWIG_Py_Void();
19677 return resultobj;
19678 fail:
19679 return NULL;
19680 }
19681
19682
19683 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19684 PyObject *resultobj = 0;
19685 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19686 bool result;
19687 void *argp1 = 0 ;
19688 int res1 = 0 ;
19689 PyObject *swig_obj[1] ;
19690
19691 if (!args) SWIG_fail;
19692 swig_obj[0] = args;
19693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19694 if (!SWIG_IsOK(res1)) {
19695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19696 }
19697 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19698 {
19699 PyThreadState* __tstate = wxPyBeginAllowThreads();
19700 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19701 wxPyEndAllowThreads(__tstate);
19702 if (PyErr_Occurred()) SWIG_fail;
19703 }
19704 {
19705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19706 }
19707 return resultobj;
19708 fail:
19709 return NULL;
19710 }
19711
19712
19713 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19714 PyObject *resultobj = 0;
19715 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19716 int arg2 ;
19717 void *argp1 = 0 ;
19718 int res1 = 0 ;
19719 int val2 ;
19720 int ecode2 = 0 ;
19721 PyObject * obj0 = 0 ;
19722 PyObject * obj1 = 0 ;
19723 char * kwnames[] = {
19724 (char *) "self",(char *) "margin", NULL
19725 };
19726
19727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19729 if (!SWIG_IsOK(res1)) {
19730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19731 }
19732 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19733 ecode2 = SWIG_AsVal_int(obj1, &val2);
19734 if (!SWIG_IsOK(ecode2)) {
19735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19736 }
19737 arg2 = static_cast< int >(val2);
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 (arg1)->SetControlMargin(arg2);
19741 wxPyEndAllowThreads(__tstate);
19742 if (PyErr_Occurred()) SWIG_fail;
19743 }
19744 resultobj = SWIG_Py_Void();
19745 return resultobj;
19746 fail:
19747 return NULL;
19748 }
19749
19750
19751 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19752 PyObject *resultobj = 0;
19753 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19754 int result;
19755 void *argp1 = 0 ;
19756 int res1 = 0 ;
19757 PyObject *swig_obj[1] ;
19758
19759 if (!args) SWIG_fail;
19760 swig_obj[0] = args;
19761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19762 if (!SWIG_IsOK(res1)) {
19763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19764 }
19765 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19766 {
19767 PyThreadState* __tstate = wxPyBeginAllowThreads();
19768 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19769 wxPyEndAllowThreads(__tstate);
19770 if (PyErr_Occurred()) SWIG_fail;
19771 }
19772 resultobj = SWIG_From_int(static_cast< int >(result));
19773 return resultobj;
19774 fail:
19775 return NULL;
19776 }
19777
19778
19779 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19780 PyObject *resultobj = 0;
19781 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19782 bool arg2 ;
19783 void *argp1 = 0 ;
19784 int res1 = 0 ;
19785 bool val2 ;
19786 int ecode2 = 0 ;
19787 PyObject * obj0 = 0 ;
19788 PyObject * obj1 = 0 ;
19789 char * kwnames[] = {
19790 (char *) "self",(char *) "fit", NULL
19791 };
19792
19793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19795 if (!SWIG_IsOK(res1)) {
19796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19797 }
19798 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19799 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19800 if (!SWIG_IsOK(ecode2)) {
19801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19802 }
19803 arg2 = static_cast< bool >(val2);
19804 {
19805 PyThreadState* __tstate = wxPyBeginAllowThreads();
19806 (arg1)->SetFitToCurrentPage(arg2);
19807 wxPyEndAllowThreads(__tstate);
19808 if (PyErr_Occurred()) SWIG_fail;
19809 }
19810 resultobj = SWIG_Py_Void();
19811 return resultobj;
19812 fail:
19813 return NULL;
19814 }
19815
19816
19817 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19818 PyObject *resultobj = 0;
19819 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19820 bool result;
19821 void *argp1 = 0 ;
19822 int res1 = 0 ;
19823 PyObject *swig_obj[1] ;
19824
19825 if (!args) SWIG_fail;
19826 swig_obj[0] = args;
19827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19828 if (!SWIG_IsOK(res1)) {
19829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19830 }
19831 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19832 {
19833 PyThreadState* __tstate = wxPyBeginAllowThreads();
19834 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19835 wxPyEndAllowThreads(__tstate);
19836 if (PyErr_Occurred()) SWIG_fail;
19837 }
19838 {
19839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19840 }
19841 return resultobj;
19842 fail:
19843 return NULL;
19844 }
19845
19846
19847 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19848 PyObject *resultobj = 0;
19849 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19850 wxSizer *result = 0 ;
19851 void *argp1 = 0 ;
19852 int res1 = 0 ;
19853 PyObject *swig_obj[1] ;
19854
19855 if (!args) SWIG_fail;
19856 swig_obj[0] = args;
19857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19858 if (!SWIG_IsOK(res1)) {
19859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19860 }
19861 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19862 {
19863 PyThreadState* __tstate = wxPyBeginAllowThreads();
19864 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19865 wxPyEndAllowThreads(__tstate);
19866 if (PyErr_Occurred()) SWIG_fail;
19867 }
19868 {
19869 resultobj = wxPyMake_wxObject(result, (bool)0);
19870 }
19871 return resultobj;
19872 fail:
19873 return NULL;
19874 }
19875
19876
19877 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19878 PyObject *resultobj = 0;
19879 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19880 size_t arg2 ;
19881 bool result;
19882 void *argp1 = 0 ;
19883 int res1 = 0 ;
19884 size_t val2 ;
19885 int ecode2 = 0 ;
19886 PyObject * obj0 = 0 ;
19887 PyObject * obj1 = 0 ;
19888 char * kwnames[] = {
19889 (char *) "self",(char *) "n", NULL
19890 };
19891
19892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19894 if (!SWIG_IsOK(res1)) {
19895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19896 }
19897 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19898 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19899 if (!SWIG_IsOK(ecode2)) {
19900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19901 }
19902 arg2 = static_cast< size_t >(val2);
19903 {
19904 PyThreadState* __tstate = wxPyBeginAllowThreads();
19905 result = (bool)(arg1)->DeletePage(arg2);
19906 wxPyEndAllowThreads(__tstate);
19907 if (PyErr_Occurred()) SWIG_fail;
19908 }
19909 {
19910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19911 }
19912 return resultobj;
19913 fail:
19914 return NULL;
19915 }
19916
19917
19918 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19919 PyObject *resultobj = 0;
19920 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19921 size_t arg2 ;
19922 bool result;
19923 void *argp1 = 0 ;
19924 int res1 = 0 ;
19925 size_t val2 ;
19926 int ecode2 = 0 ;
19927 PyObject * obj0 = 0 ;
19928 PyObject * obj1 = 0 ;
19929 char * kwnames[] = {
19930 (char *) "self",(char *) "n", NULL
19931 };
19932
19933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19935 if (!SWIG_IsOK(res1)) {
19936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19937 }
19938 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19939 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19940 if (!SWIG_IsOK(ecode2)) {
19941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19942 }
19943 arg2 = static_cast< size_t >(val2);
19944 {
19945 PyThreadState* __tstate = wxPyBeginAllowThreads();
19946 result = (bool)(arg1)->RemovePage(arg2);
19947 wxPyEndAllowThreads(__tstate);
19948 if (PyErr_Occurred()) SWIG_fail;
19949 }
19950 {
19951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19952 }
19953 return resultobj;
19954 fail:
19955 return NULL;
19956 }
19957
19958
19959 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19960 PyObject *resultobj = 0;
19961 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19962 bool result;
19963 void *argp1 = 0 ;
19964 int res1 = 0 ;
19965 PyObject *swig_obj[1] ;
19966
19967 if (!args) SWIG_fail;
19968 swig_obj[0] = args;
19969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19970 if (!SWIG_IsOK(res1)) {
19971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19972 }
19973 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19974 {
19975 PyThreadState* __tstate = wxPyBeginAllowThreads();
19976 result = (bool)(arg1)->DeleteAllPages();
19977 wxPyEndAllowThreads(__tstate);
19978 if (PyErr_Occurred()) SWIG_fail;
19979 }
19980 {
19981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19982 }
19983 return resultobj;
19984 fail:
19985 return NULL;
19986 }
19987
19988
19989 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19990 PyObject *resultobj = 0;
19991 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19992 wxWindow *arg2 = (wxWindow *) 0 ;
19993 wxString *arg3 = 0 ;
19994 bool arg4 = (bool) false ;
19995 int arg5 = (int) -1 ;
19996 bool result;
19997 void *argp1 = 0 ;
19998 int res1 = 0 ;
19999 void *argp2 = 0 ;
20000 int res2 = 0 ;
20001 bool temp3 = false ;
20002 bool val4 ;
20003 int ecode4 = 0 ;
20004 int val5 ;
20005 int ecode5 = 0 ;
20006 PyObject * obj0 = 0 ;
20007 PyObject * obj1 = 0 ;
20008 PyObject * obj2 = 0 ;
20009 PyObject * obj3 = 0 ;
20010 PyObject * obj4 = 0 ;
20011 char * kwnames[] = {
20012 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20013 };
20014
20015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20017 if (!SWIG_IsOK(res1)) {
20018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20019 }
20020 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20021 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20022 if (!SWIG_IsOK(res2)) {
20023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20024 }
20025 arg2 = reinterpret_cast< wxWindow * >(argp2);
20026 {
20027 arg3 = wxString_in_helper(obj2);
20028 if (arg3 == NULL) SWIG_fail;
20029 temp3 = true;
20030 }
20031 if (obj3) {
20032 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20033 if (!SWIG_IsOK(ecode4)) {
20034 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20035 }
20036 arg4 = static_cast< bool >(val4);
20037 }
20038 if (obj4) {
20039 ecode5 = SWIG_AsVal_int(obj4, &val5);
20040 if (!SWIG_IsOK(ecode5)) {
20041 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20042 }
20043 arg5 = static_cast< int >(val5);
20044 }
20045 {
20046 PyThreadState* __tstate = wxPyBeginAllowThreads();
20047 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20048 wxPyEndAllowThreads(__tstate);
20049 if (PyErr_Occurred()) SWIG_fail;
20050 }
20051 {
20052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20053 }
20054 {
20055 if (temp3)
20056 delete arg3;
20057 }
20058 return resultobj;
20059 fail:
20060 {
20061 if (temp3)
20062 delete arg3;
20063 }
20064 return NULL;
20065 }
20066
20067
20068 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20069 PyObject *resultobj = 0;
20070 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20071 size_t arg2 ;
20072 wxWindow *arg3 = (wxWindow *) 0 ;
20073 wxString *arg4 = 0 ;
20074 bool arg5 = (bool) false ;
20075 int arg6 = (int) -1 ;
20076 bool result;
20077 void *argp1 = 0 ;
20078 int res1 = 0 ;
20079 size_t val2 ;
20080 int ecode2 = 0 ;
20081 void *argp3 = 0 ;
20082 int res3 = 0 ;
20083 bool temp4 = false ;
20084 bool val5 ;
20085 int ecode5 = 0 ;
20086 int val6 ;
20087 int ecode6 = 0 ;
20088 PyObject * obj0 = 0 ;
20089 PyObject * obj1 = 0 ;
20090 PyObject * obj2 = 0 ;
20091 PyObject * obj3 = 0 ;
20092 PyObject * obj4 = 0 ;
20093 PyObject * obj5 = 0 ;
20094 char * kwnames[] = {
20095 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20096 };
20097
20098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20100 if (!SWIG_IsOK(res1)) {
20101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20102 }
20103 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20104 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20105 if (!SWIG_IsOK(ecode2)) {
20106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20107 }
20108 arg2 = static_cast< size_t >(val2);
20109 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20110 if (!SWIG_IsOK(res3)) {
20111 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20112 }
20113 arg3 = reinterpret_cast< wxWindow * >(argp3);
20114 {
20115 arg4 = wxString_in_helper(obj3);
20116 if (arg4 == NULL) SWIG_fail;
20117 temp4 = true;
20118 }
20119 if (obj4) {
20120 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20121 if (!SWIG_IsOK(ecode5)) {
20122 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20123 }
20124 arg5 = static_cast< bool >(val5);
20125 }
20126 if (obj5) {
20127 ecode6 = SWIG_AsVal_int(obj5, &val6);
20128 if (!SWIG_IsOK(ecode6)) {
20129 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20130 }
20131 arg6 = static_cast< int >(val6);
20132 }
20133 {
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20136 wxPyEndAllowThreads(__tstate);
20137 if (PyErr_Occurred()) SWIG_fail;
20138 }
20139 {
20140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20141 }
20142 {
20143 if (temp4)
20144 delete arg4;
20145 }
20146 return resultobj;
20147 fail:
20148 {
20149 if (temp4)
20150 delete arg4;
20151 }
20152 return NULL;
20153 }
20154
20155
20156 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20157 PyObject *resultobj = 0;
20158 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20159 size_t arg2 ;
20160 int result;
20161 void *argp1 = 0 ;
20162 int res1 = 0 ;
20163 size_t val2 ;
20164 int ecode2 = 0 ;
20165 PyObject * obj0 = 0 ;
20166 PyObject * obj1 = 0 ;
20167 char * kwnames[] = {
20168 (char *) "self",(char *) "n", NULL
20169 };
20170
20171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20173 if (!SWIG_IsOK(res1)) {
20174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20175 }
20176 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20177 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20178 if (!SWIG_IsOK(ecode2)) {
20179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20180 }
20181 arg2 = static_cast< size_t >(val2);
20182 {
20183 PyThreadState* __tstate = wxPyBeginAllowThreads();
20184 result = (int)(arg1)->SetSelection(arg2);
20185 wxPyEndAllowThreads(__tstate);
20186 if (PyErr_Occurred()) SWIG_fail;
20187 }
20188 resultobj = SWIG_From_int(static_cast< int >(result));
20189 return resultobj;
20190 fail:
20191 return NULL;
20192 }
20193
20194
20195 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20196 PyObject *resultobj = 0;
20197 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20198 size_t arg2 ;
20199 int result;
20200 void *argp1 = 0 ;
20201 int res1 = 0 ;
20202 size_t val2 ;
20203 int ecode2 = 0 ;
20204 PyObject * obj0 = 0 ;
20205 PyObject * obj1 = 0 ;
20206 char * kwnames[] = {
20207 (char *) "self",(char *) "n", NULL
20208 };
20209
20210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20212 if (!SWIG_IsOK(res1)) {
20213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20214 }
20215 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20216 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20217 if (!SWIG_IsOK(ecode2)) {
20218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20219 }
20220 arg2 = static_cast< size_t >(val2);
20221 {
20222 PyThreadState* __tstate = wxPyBeginAllowThreads();
20223 result = (int)(arg1)->ChangeSelection(arg2);
20224 wxPyEndAllowThreads(__tstate);
20225 if (PyErr_Occurred()) SWIG_fail;
20226 }
20227 resultobj = SWIG_From_int(static_cast< int >(result));
20228 return resultobj;
20229 fail:
20230 return NULL;
20231 }
20232
20233
20234 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20235 PyObject *resultobj = 0;
20236 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20237 bool arg2 = (bool) true ;
20238 void *argp1 = 0 ;
20239 int res1 = 0 ;
20240 bool val2 ;
20241 int ecode2 = 0 ;
20242 PyObject * obj0 = 0 ;
20243 PyObject * obj1 = 0 ;
20244 char * kwnames[] = {
20245 (char *) "self",(char *) "forward", NULL
20246 };
20247
20248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20250 if (!SWIG_IsOK(res1)) {
20251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20252 }
20253 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20254 if (obj1) {
20255 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20256 if (!SWIG_IsOK(ecode2)) {
20257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20258 }
20259 arg2 = static_cast< bool >(val2);
20260 }
20261 {
20262 PyThreadState* __tstate = wxPyBeginAllowThreads();
20263 (arg1)->AdvanceSelection(arg2);
20264 wxPyEndAllowThreads(__tstate);
20265 if (PyErr_Occurred()) SWIG_fail;
20266 }
20267 resultobj = SWIG_Py_Void();
20268 return resultobj;
20269 fail:
20270 return NULL;
20271 }
20272
20273
20274 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20275 PyObject *resultobj = 0;
20276 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20277 wxPoint *arg2 = 0 ;
20278 long *arg3 = (long *) 0 ;
20279 int result;
20280 void *argp1 = 0 ;
20281 int res1 = 0 ;
20282 wxPoint temp2 ;
20283 long temp3 ;
20284 int res3 = SWIG_TMPOBJ ;
20285 PyObject * obj0 = 0 ;
20286 PyObject * obj1 = 0 ;
20287 char * kwnames[] = {
20288 (char *) "self",(char *) "pt", NULL
20289 };
20290
20291 arg3 = &temp3;
20292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20294 if (!SWIG_IsOK(res1)) {
20295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20296 }
20297 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20298 {
20299 arg2 = &temp2;
20300 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20301 }
20302 {
20303 PyThreadState* __tstate = wxPyBeginAllowThreads();
20304 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20305 wxPyEndAllowThreads(__tstate);
20306 if (PyErr_Occurred()) SWIG_fail;
20307 }
20308 resultobj = SWIG_From_int(static_cast< int >(result));
20309 if (SWIG_IsTmpObj(res3)) {
20310 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20311 } else {
20312 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20313 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20314 }
20315 return resultobj;
20316 fail:
20317 return NULL;
20318 }
20319
20320
20321 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20322 PyObject *resultobj = 0;
20323 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20324 SwigValueWrapper<wxVisualAttributes > result;
20325 int val1 ;
20326 int ecode1 = 0 ;
20327 PyObject * obj0 = 0 ;
20328 char * kwnames[] = {
20329 (char *) "variant", NULL
20330 };
20331
20332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20333 if (obj0) {
20334 ecode1 = SWIG_AsVal_int(obj0, &val1);
20335 if (!SWIG_IsOK(ecode1)) {
20336 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20337 }
20338 arg1 = static_cast< wxWindowVariant >(val1);
20339 }
20340 {
20341 if (!wxPyCheckForApp()) SWIG_fail;
20342 PyThreadState* __tstate = wxPyBeginAllowThreads();
20343 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20344 wxPyEndAllowThreads(__tstate);
20345 if (PyErr_Occurred()) SWIG_fail;
20346 }
20347 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20348 return resultobj;
20349 fail:
20350 return NULL;
20351 }
20352
20353
20354 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20355 PyObject *obj;
20356 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20357 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20358 return SWIG_Py_Void();
20359 }
20360
20361 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20362 PyObject *resultobj = 0;
20363 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20364 int arg2 = (int) 0 ;
20365 int arg3 = (int) -1 ;
20366 int arg4 = (int) -1 ;
20367 wxBookCtrlBaseEvent *result = 0 ;
20368 int val1 ;
20369 int ecode1 = 0 ;
20370 int val2 ;
20371 int ecode2 = 0 ;
20372 int val3 ;
20373 int ecode3 = 0 ;
20374 int val4 ;
20375 int ecode4 = 0 ;
20376 PyObject * obj0 = 0 ;
20377 PyObject * obj1 = 0 ;
20378 PyObject * obj2 = 0 ;
20379 PyObject * obj3 = 0 ;
20380 char * kwnames[] = {
20381 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20382 };
20383
20384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20385 if (obj0) {
20386 ecode1 = SWIG_AsVal_int(obj0, &val1);
20387 if (!SWIG_IsOK(ecode1)) {
20388 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20389 }
20390 arg1 = static_cast< wxEventType >(val1);
20391 }
20392 if (obj1) {
20393 ecode2 = SWIG_AsVal_int(obj1, &val2);
20394 if (!SWIG_IsOK(ecode2)) {
20395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20396 }
20397 arg2 = static_cast< int >(val2);
20398 }
20399 if (obj2) {
20400 ecode3 = SWIG_AsVal_int(obj2, &val3);
20401 if (!SWIG_IsOK(ecode3)) {
20402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20403 }
20404 arg3 = static_cast< int >(val3);
20405 }
20406 if (obj3) {
20407 ecode4 = SWIG_AsVal_int(obj3, &val4);
20408 if (!SWIG_IsOK(ecode4)) {
20409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20410 }
20411 arg4 = static_cast< int >(val4);
20412 }
20413 {
20414 PyThreadState* __tstate = wxPyBeginAllowThreads();
20415 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20416 wxPyEndAllowThreads(__tstate);
20417 if (PyErr_Occurred()) SWIG_fail;
20418 }
20419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20420 return resultobj;
20421 fail:
20422 return NULL;
20423 }
20424
20425
20426 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20427 PyObject *resultobj = 0;
20428 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20429 int result;
20430 void *argp1 = 0 ;
20431 int res1 = 0 ;
20432 PyObject *swig_obj[1] ;
20433
20434 if (!args) SWIG_fail;
20435 swig_obj[0] = args;
20436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20437 if (!SWIG_IsOK(res1)) {
20438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20439 }
20440 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20441 {
20442 PyThreadState* __tstate = wxPyBeginAllowThreads();
20443 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20444 wxPyEndAllowThreads(__tstate);
20445 if (PyErr_Occurred()) SWIG_fail;
20446 }
20447 resultobj = SWIG_From_int(static_cast< int >(result));
20448 return resultobj;
20449 fail:
20450 return NULL;
20451 }
20452
20453
20454 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20455 PyObject *resultobj = 0;
20456 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20457 int arg2 ;
20458 void *argp1 = 0 ;
20459 int res1 = 0 ;
20460 int val2 ;
20461 int ecode2 = 0 ;
20462 PyObject * obj0 = 0 ;
20463 PyObject * obj1 = 0 ;
20464 char * kwnames[] = {
20465 (char *) "self",(char *) "nSel", NULL
20466 };
20467
20468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20470 if (!SWIG_IsOK(res1)) {
20471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20472 }
20473 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20474 ecode2 = SWIG_AsVal_int(obj1, &val2);
20475 if (!SWIG_IsOK(ecode2)) {
20476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20477 }
20478 arg2 = static_cast< int >(val2);
20479 {
20480 PyThreadState* __tstate = wxPyBeginAllowThreads();
20481 (arg1)->SetSelection(arg2);
20482 wxPyEndAllowThreads(__tstate);
20483 if (PyErr_Occurred()) SWIG_fail;
20484 }
20485 resultobj = SWIG_Py_Void();
20486 return resultobj;
20487 fail:
20488 return NULL;
20489 }
20490
20491
20492 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20493 PyObject *resultobj = 0;
20494 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20495 int result;
20496 void *argp1 = 0 ;
20497 int res1 = 0 ;
20498 PyObject *swig_obj[1] ;
20499
20500 if (!args) SWIG_fail;
20501 swig_obj[0] = args;
20502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20503 if (!SWIG_IsOK(res1)) {
20504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20505 }
20506 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20507 {
20508 PyThreadState* __tstate = wxPyBeginAllowThreads();
20509 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20510 wxPyEndAllowThreads(__tstate);
20511 if (PyErr_Occurred()) SWIG_fail;
20512 }
20513 resultobj = SWIG_From_int(static_cast< int >(result));
20514 return resultobj;
20515 fail:
20516 return NULL;
20517 }
20518
20519
20520 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20521 PyObject *resultobj = 0;
20522 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20523 int arg2 ;
20524 void *argp1 = 0 ;
20525 int res1 = 0 ;
20526 int val2 ;
20527 int ecode2 = 0 ;
20528 PyObject * obj0 = 0 ;
20529 PyObject * obj1 = 0 ;
20530 char * kwnames[] = {
20531 (char *) "self",(char *) "nOldSel", NULL
20532 };
20533
20534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20536 if (!SWIG_IsOK(res1)) {
20537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20538 }
20539 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20540 ecode2 = SWIG_AsVal_int(obj1, &val2);
20541 if (!SWIG_IsOK(ecode2)) {
20542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20543 }
20544 arg2 = static_cast< int >(val2);
20545 {
20546 PyThreadState* __tstate = wxPyBeginAllowThreads();
20547 (arg1)->SetOldSelection(arg2);
20548 wxPyEndAllowThreads(__tstate);
20549 if (PyErr_Occurred()) SWIG_fail;
20550 }
20551 resultobj = SWIG_Py_Void();
20552 return resultobj;
20553 fail:
20554 return NULL;
20555 }
20556
20557
20558 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20559 PyObject *obj;
20560 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20561 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20562 return SWIG_Py_Void();
20563 }
20564
20565 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20566 return SWIG_Python_InitShadowInstance(args);
20567 }
20568
20569 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20570 PyObject *resultobj = 0;
20571 wxWindow *arg1 = (wxWindow *) 0 ;
20572 int arg2 = (int) -1 ;
20573 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20574 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20575 wxSize const &arg4_defvalue = wxDefaultSize ;
20576 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20577 long arg5 = (long) 0 ;
20578 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20579 wxString *arg6 = (wxString *) &arg6_defvalue ;
20580 wxNotebook *result = 0 ;
20581 void *argp1 = 0 ;
20582 int res1 = 0 ;
20583 int val2 ;
20584 int ecode2 = 0 ;
20585 wxPoint temp3 ;
20586 wxSize temp4 ;
20587 long val5 ;
20588 int ecode5 = 0 ;
20589 bool temp6 = false ;
20590 PyObject * obj0 = 0 ;
20591 PyObject * obj1 = 0 ;
20592 PyObject * obj2 = 0 ;
20593 PyObject * obj3 = 0 ;
20594 PyObject * obj4 = 0 ;
20595 PyObject * obj5 = 0 ;
20596 char * kwnames[] = {
20597 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20598 };
20599
20600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20602 if (!SWIG_IsOK(res1)) {
20603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20604 }
20605 arg1 = reinterpret_cast< wxWindow * >(argp1);
20606 if (obj1) {
20607 ecode2 = SWIG_AsVal_int(obj1, &val2);
20608 if (!SWIG_IsOK(ecode2)) {
20609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20610 }
20611 arg2 = static_cast< int >(val2);
20612 }
20613 if (obj2) {
20614 {
20615 arg3 = &temp3;
20616 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20617 }
20618 }
20619 if (obj3) {
20620 {
20621 arg4 = &temp4;
20622 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20623 }
20624 }
20625 if (obj4) {
20626 ecode5 = SWIG_AsVal_long(obj4, &val5);
20627 if (!SWIG_IsOK(ecode5)) {
20628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20629 }
20630 arg5 = static_cast< long >(val5);
20631 }
20632 if (obj5) {
20633 {
20634 arg6 = wxString_in_helper(obj5);
20635 if (arg6 == NULL) SWIG_fail;
20636 temp6 = true;
20637 }
20638 }
20639 {
20640 if (!wxPyCheckForApp()) SWIG_fail;
20641 PyThreadState* __tstate = wxPyBeginAllowThreads();
20642 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20643 wxPyEndAllowThreads(__tstate);
20644 if (PyErr_Occurred()) SWIG_fail;
20645 }
20646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20647 {
20648 if (temp6)
20649 delete arg6;
20650 }
20651 return resultobj;
20652 fail:
20653 {
20654 if (temp6)
20655 delete arg6;
20656 }
20657 return NULL;
20658 }
20659
20660
20661 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20662 PyObject *resultobj = 0;
20663 wxNotebook *result = 0 ;
20664
20665 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20666 {
20667 if (!wxPyCheckForApp()) SWIG_fail;
20668 PyThreadState* __tstate = wxPyBeginAllowThreads();
20669 result = (wxNotebook *)new wxNotebook();
20670 wxPyEndAllowThreads(__tstate);
20671 if (PyErr_Occurred()) SWIG_fail;
20672 }
20673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20674 return resultobj;
20675 fail:
20676 return NULL;
20677 }
20678
20679
20680 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20681 PyObject *resultobj = 0;
20682 wxNotebook *arg1 = (wxNotebook *) 0 ;
20683 wxWindow *arg2 = (wxWindow *) 0 ;
20684 int arg3 = (int) -1 ;
20685 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20686 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20687 wxSize const &arg5_defvalue = wxDefaultSize ;
20688 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20689 long arg6 = (long) 0 ;
20690 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20691 wxString *arg7 = (wxString *) &arg7_defvalue ;
20692 bool result;
20693 void *argp1 = 0 ;
20694 int res1 = 0 ;
20695 void *argp2 = 0 ;
20696 int res2 = 0 ;
20697 int val3 ;
20698 int ecode3 = 0 ;
20699 wxPoint temp4 ;
20700 wxSize temp5 ;
20701 long val6 ;
20702 int ecode6 = 0 ;
20703 bool temp7 = false ;
20704 PyObject * obj0 = 0 ;
20705 PyObject * obj1 = 0 ;
20706 PyObject * obj2 = 0 ;
20707 PyObject * obj3 = 0 ;
20708 PyObject * obj4 = 0 ;
20709 PyObject * obj5 = 0 ;
20710 PyObject * obj6 = 0 ;
20711 char * kwnames[] = {
20712 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20713 };
20714
20715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20717 if (!SWIG_IsOK(res1)) {
20718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20719 }
20720 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20721 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20722 if (!SWIG_IsOK(res2)) {
20723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20724 }
20725 arg2 = reinterpret_cast< wxWindow * >(argp2);
20726 if (obj2) {
20727 ecode3 = SWIG_AsVal_int(obj2, &val3);
20728 if (!SWIG_IsOK(ecode3)) {
20729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20730 }
20731 arg3 = static_cast< int >(val3);
20732 }
20733 if (obj3) {
20734 {
20735 arg4 = &temp4;
20736 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20737 }
20738 }
20739 if (obj4) {
20740 {
20741 arg5 = &temp5;
20742 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20743 }
20744 }
20745 if (obj5) {
20746 ecode6 = SWIG_AsVal_long(obj5, &val6);
20747 if (!SWIG_IsOK(ecode6)) {
20748 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20749 }
20750 arg6 = static_cast< long >(val6);
20751 }
20752 if (obj6) {
20753 {
20754 arg7 = wxString_in_helper(obj6);
20755 if (arg7 == NULL) SWIG_fail;
20756 temp7 = true;
20757 }
20758 }
20759 {
20760 PyThreadState* __tstate = wxPyBeginAllowThreads();
20761 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20762 wxPyEndAllowThreads(__tstate);
20763 if (PyErr_Occurred()) SWIG_fail;
20764 }
20765 {
20766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20767 }
20768 {
20769 if (temp7)
20770 delete arg7;
20771 }
20772 return resultobj;
20773 fail:
20774 {
20775 if (temp7)
20776 delete arg7;
20777 }
20778 return NULL;
20779 }
20780
20781
20782 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20783 PyObject *resultobj = 0;
20784 wxNotebook *arg1 = (wxNotebook *) 0 ;
20785 int result;
20786 void *argp1 = 0 ;
20787 int res1 = 0 ;
20788 PyObject *swig_obj[1] ;
20789
20790 if (!args) SWIG_fail;
20791 swig_obj[0] = args;
20792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20793 if (!SWIG_IsOK(res1)) {
20794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20795 }
20796 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20797 {
20798 PyThreadState* __tstate = wxPyBeginAllowThreads();
20799 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20800 wxPyEndAllowThreads(__tstate);
20801 if (PyErr_Occurred()) SWIG_fail;
20802 }
20803 resultobj = SWIG_From_int(static_cast< int >(result));
20804 return resultobj;
20805 fail:
20806 return NULL;
20807 }
20808
20809
20810 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20811 PyObject *resultobj = 0;
20812 wxNotebook *arg1 = (wxNotebook *) 0 ;
20813 wxSize *arg2 = 0 ;
20814 void *argp1 = 0 ;
20815 int res1 = 0 ;
20816 wxSize temp2 ;
20817 PyObject * obj0 = 0 ;
20818 PyObject * obj1 = 0 ;
20819 char * kwnames[] = {
20820 (char *) "self",(char *) "padding", NULL
20821 };
20822
20823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20825 if (!SWIG_IsOK(res1)) {
20826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20827 }
20828 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20829 {
20830 arg2 = &temp2;
20831 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20832 }
20833 {
20834 PyThreadState* __tstate = wxPyBeginAllowThreads();
20835 (arg1)->SetPadding((wxSize const &)*arg2);
20836 wxPyEndAllowThreads(__tstate);
20837 if (PyErr_Occurred()) SWIG_fail;
20838 }
20839 resultobj = SWIG_Py_Void();
20840 return resultobj;
20841 fail:
20842 return NULL;
20843 }
20844
20845
20846 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20847 PyObject *resultobj = 0;
20848 wxNotebook *arg1 = (wxNotebook *) 0 ;
20849 wxSize *arg2 = 0 ;
20850 void *argp1 = 0 ;
20851 int res1 = 0 ;
20852 wxSize temp2 ;
20853 PyObject * obj0 = 0 ;
20854 PyObject * obj1 = 0 ;
20855 char * kwnames[] = {
20856 (char *) "self",(char *) "sz", NULL
20857 };
20858
20859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20861 if (!SWIG_IsOK(res1)) {
20862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20863 }
20864 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20865 {
20866 arg2 = &temp2;
20867 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20868 }
20869 {
20870 PyThreadState* __tstate = wxPyBeginAllowThreads();
20871 (arg1)->SetTabSize((wxSize const &)*arg2);
20872 wxPyEndAllowThreads(__tstate);
20873 if (PyErr_Occurred()) SWIG_fail;
20874 }
20875 resultobj = SWIG_Py_Void();
20876 return resultobj;
20877 fail:
20878 return NULL;
20879 }
20880
20881
20882 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20883 PyObject *resultobj = 0;
20884 wxNotebook *arg1 = (wxNotebook *) 0 ;
20885 wxColour result;
20886 void *argp1 = 0 ;
20887 int res1 = 0 ;
20888 PyObject *swig_obj[1] ;
20889
20890 if (!args) SWIG_fail;
20891 swig_obj[0] = args;
20892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20893 if (!SWIG_IsOK(res1)) {
20894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20895 }
20896 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20897 {
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20900 wxPyEndAllowThreads(__tstate);
20901 if (PyErr_Occurred()) SWIG_fail;
20902 }
20903 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20904 return resultobj;
20905 fail:
20906 return NULL;
20907 }
20908
20909
20910 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20911 PyObject *resultobj = 0;
20912 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20913 SwigValueWrapper<wxVisualAttributes > result;
20914 int val1 ;
20915 int ecode1 = 0 ;
20916 PyObject * obj0 = 0 ;
20917 char * kwnames[] = {
20918 (char *) "variant", NULL
20919 };
20920
20921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20922 if (obj0) {
20923 ecode1 = SWIG_AsVal_int(obj0, &val1);
20924 if (!SWIG_IsOK(ecode1)) {
20925 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20926 }
20927 arg1 = static_cast< wxWindowVariant >(val1);
20928 }
20929 {
20930 if (!wxPyCheckForApp()) SWIG_fail;
20931 PyThreadState* __tstate = wxPyBeginAllowThreads();
20932 result = wxNotebook::GetClassDefaultAttributes(arg1);
20933 wxPyEndAllowThreads(__tstate);
20934 if (PyErr_Occurred()) SWIG_fail;
20935 }
20936 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20937 return resultobj;
20938 fail:
20939 return NULL;
20940 }
20941
20942
20943 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20944 PyObject *resultobj = 0;
20945 wxNotebook *arg1 = (wxNotebook *) 0 ;
20946 int arg2 ;
20947 bool result;
20948 void *argp1 = 0 ;
20949 int res1 = 0 ;
20950 int val2 ;
20951 int ecode2 = 0 ;
20952 PyObject * obj0 = 0 ;
20953 PyObject * obj1 = 0 ;
20954 char * kwnames[] = {
20955 (char *) "self",(char *) "nPage", NULL
20956 };
20957
20958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20960 if (!SWIG_IsOK(res1)) {
20961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
20962 }
20963 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20964 ecode2 = SWIG_AsVal_int(obj1, &val2);
20965 if (!SWIG_IsOK(ecode2)) {
20966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
20967 }
20968 arg2 = static_cast< int >(val2);
20969 {
20970 PyThreadState* __tstate = wxPyBeginAllowThreads();
20971 result = (bool)(arg1)->SendPageChangingEvent(arg2);
20972 wxPyEndAllowThreads(__tstate);
20973 if (PyErr_Occurred()) SWIG_fail;
20974 }
20975 {
20976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20977 }
20978 return resultobj;
20979 fail:
20980 return NULL;
20981 }
20982
20983
20984 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20985 PyObject *resultobj = 0;
20986 wxNotebook *arg1 = (wxNotebook *) 0 ;
20987 int arg2 ;
20988 int arg3 = (int) -1 ;
20989 void *argp1 = 0 ;
20990 int res1 = 0 ;
20991 int val2 ;
20992 int ecode2 = 0 ;
20993 int val3 ;
20994 int ecode3 = 0 ;
20995 PyObject * obj0 = 0 ;
20996 PyObject * obj1 = 0 ;
20997 PyObject * obj2 = 0 ;
20998 char * kwnames[] = {
20999 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21000 };
21001
21002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21004 if (!SWIG_IsOK(res1)) {
21005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21006 }
21007 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21008 ecode2 = SWIG_AsVal_int(obj1, &val2);
21009 if (!SWIG_IsOK(ecode2)) {
21010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21011 }
21012 arg2 = static_cast< int >(val2);
21013 if (obj2) {
21014 ecode3 = SWIG_AsVal_int(obj2, &val3);
21015 if (!SWIG_IsOK(ecode3)) {
21016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21017 }
21018 arg3 = static_cast< int >(val3);
21019 }
21020 {
21021 PyThreadState* __tstate = wxPyBeginAllowThreads();
21022 (arg1)->SendPageChangedEvent(arg2,arg3);
21023 wxPyEndAllowThreads(__tstate);
21024 if (PyErr_Occurred()) SWIG_fail;
21025 }
21026 resultobj = SWIG_Py_Void();
21027 return resultobj;
21028 fail:
21029 return NULL;
21030 }
21031
21032
21033 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21034 PyObject *obj;
21035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21036 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21037 return SWIG_Py_Void();
21038 }
21039
21040 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21041 return SWIG_Python_InitShadowInstance(args);
21042 }
21043
21044 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21045 PyObject *resultobj = 0;
21046 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21047 int arg2 = (int) 0 ;
21048 int arg3 = (int) -1 ;
21049 int arg4 = (int) -1 ;
21050 wxNotebookEvent *result = 0 ;
21051 int val1 ;
21052 int ecode1 = 0 ;
21053 int val2 ;
21054 int ecode2 = 0 ;
21055 int val3 ;
21056 int ecode3 = 0 ;
21057 int val4 ;
21058 int ecode4 = 0 ;
21059 PyObject * obj0 = 0 ;
21060 PyObject * obj1 = 0 ;
21061 PyObject * obj2 = 0 ;
21062 PyObject * obj3 = 0 ;
21063 char * kwnames[] = {
21064 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21065 };
21066
21067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21068 if (obj0) {
21069 ecode1 = SWIG_AsVal_int(obj0, &val1);
21070 if (!SWIG_IsOK(ecode1)) {
21071 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21072 }
21073 arg1 = static_cast< wxEventType >(val1);
21074 }
21075 if (obj1) {
21076 ecode2 = SWIG_AsVal_int(obj1, &val2);
21077 if (!SWIG_IsOK(ecode2)) {
21078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21079 }
21080 arg2 = static_cast< int >(val2);
21081 }
21082 if (obj2) {
21083 ecode3 = SWIG_AsVal_int(obj2, &val3);
21084 if (!SWIG_IsOK(ecode3)) {
21085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21086 }
21087 arg3 = static_cast< int >(val3);
21088 }
21089 if (obj3) {
21090 ecode4 = SWIG_AsVal_int(obj3, &val4);
21091 if (!SWIG_IsOK(ecode4)) {
21092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21093 }
21094 arg4 = static_cast< int >(val4);
21095 }
21096 {
21097 PyThreadState* __tstate = wxPyBeginAllowThreads();
21098 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21099 wxPyEndAllowThreads(__tstate);
21100 if (PyErr_Occurred()) SWIG_fail;
21101 }
21102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21103 return resultobj;
21104 fail:
21105 return NULL;
21106 }
21107
21108
21109 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21110 PyObject *obj;
21111 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21112 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21113 return SWIG_Py_Void();
21114 }
21115
21116 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21117 return SWIG_Python_InitShadowInstance(args);
21118 }
21119
21120 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21121 PyObject *resultobj = 0;
21122 wxWindow *arg1 = (wxWindow *) 0 ;
21123 int arg2 = (int) -1 ;
21124 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21125 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21126 wxSize const &arg4_defvalue = wxDefaultSize ;
21127 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21128 long arg5 = (long) 0 ;
21129 wxString const &arg6_defvalue = wxPyEmptyString ;
21130 wxString *arg6 = (wxString *) &arg6_defvalue ;
21131 wxListbook *result = 0 ;
21132 void *argp1 = 0 ;
21133 int res1 = 0 ;
21134 int val2 ;
21135 int ecode2 = 0 ;
21136 wxPoint temp3 ;
21137 wxSize temp4 ;
21138 long val5 ;
21139 int ecode5 = 0 ;
21140 bool temp6 = false ;
21141 PyObject * obj0 = 0 ;
21142 PyObject * obj1 = 0 ;
21143 PyObject * obj2 = 0 ;
21144 PyObject * obj3 = 0 ;
21145 PyObject * obj4 = 0 ;
21146 PyObject * obj5 = 0 ;
21147 char * kwnames[] = {
21148 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21149 };
21150
21151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21153 if (!SWIG_IsOK(res1)) {
21154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21155 }
21156 arg1 = reinterpret_cast< wxWindow * >(argp1);
21157 if (obj1) {
21158 ecode2 = SWIG_AsVal_int(obj1, &val2);
21159 if (!SWIG_IsOK(ecode2)) {
21160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21161 }
21162 arg2 = static_cast< int >(val2);
21163 }
21164 if (obj2) {
21165 {
21166 arg3 = &temp3;
21167 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21168 }
21169 }
21170 if (obj3) {
21171 {
21172 arg4 = &temp4;
21173 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21174 }
21175 }
21176 if (obj4) {
21177 ecode5 = SWIG_AsVal_long(obj4, &val5);
21178 if (!SWIG_IsOK(ecode5)) {
21179 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21180 }
21181 arg5 = static_cast< long >(val5);
21182 }
21183 if (obj5) {
21184 {
21185 arg6 = wxString_in_helper(obj5);
21186 if (arg6 == NULL) SWIG_fail;
21187 temp6 = true;
21188 }
21189 }
21190 {
21191 if (!wxPyCheckForApp()) SWIG_fail;
21192 PyThreadState* __tstate = wxPyBeginAllowThreads();
21193 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21194 wxPyEndAllowThreads(__tstate);
21195 if (PyErr_Occurred()) SWIG_fail;
21196 }
21197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21198 {
21199 if (temp6)
21200 delete arg6;
21201 }
21202 return resultobj;
21203 fail:
21204 {
21205 if (temp6)
21206 delete arg6;
21207 }
21208 return NULL;
21209 }
21210
21211
21212 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21213 PyObject *resultobj = 0;
21214 wxListbook *result = 0 ;
21215
21216 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21217 {
21218 if (!wxPyCheckForApp()) SWIG_fail;
21219 PyThreadState* __tstate = wxPyBeginAllowThreads();
21220 result = (wxListbook *)new wxListbook();
21221 wxPyEndAllowThreads(__tstate);
21222 if (PyErr_Occurred()) SWIG_fail;
21223 }
21224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21225 return resultobj;
21226 fail:
21227 return NULL;
21228 }
21229
21230
21231 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21232 PyObject *resultobj = 0;
21233 wxListbook *arg1 = (wxListbook *) 0 ;
21234 wxWindow *arg2 = (wxWindow *) 0 ;
21235 int arg3 = (int) -1 ;
21236 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21237 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21238 wxSize const &arg5_defvalue = wxDefaultSize ;
21239 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21240 long arg6 = (long) 0 ;
21241 wxString const &arg7_defvalue = wxPyEmptyString ;
21242 wxString *arg7 = (wxString *) &arg7_defvalue ;
21243 bool result;
21244 void *argp1 = 0 ;
21245 int res1 = 0 ;
21246 void *argp2 = 0 ;
21247 int res2 = 0 ;
21248 int val3 ;
21249 int ecode3 = 0 ;
21250 wxPoint temp4 ;
21251 wxSize temp5 ;
21252 long val6 ;
21253 int ecode6 = 0 ;
21254 bool temp7 = false ;
21255 PyObject * obj0 = 0 ;
21256 PyObject * obj1 = 0 ;
21257 PyObject * obj2 = 0 ;
21258 PyObject * obj3 = 0 ;
21259 PyObject * obj4 = 0 ;
21260 PyObject * obj5 = 0 ;
21261 PyObject * obj6 = 0 ;
21262 char * kwnames[] = {
21263 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21264 };
21265
21266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21268 if (!SWIG_IsOK(res1)) {
21269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21270 }
21271 arg1 = reinterpret_cast< wxListbook * >(argp1);
21272 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21273 if (!SWIG_IsOK(res2)) {
21274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21275 }
21276 arg2 = reinterpret_cast< wxWindow * >(argp2);
21277 if (obj2) {
21278 ecode3 = SWIG_AsVal_int(obj2, &val3);
21279 if (!SWIG_IsOK(ecode3)) {
21280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21281 }
21282 arg3 = static_cast< int >(val3);
21283 }
21284 if (obj3) {
21285 {
21286 arg4 = &temp4;
21287 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21288 }
21289 }
21290 if (obj4) {
21291 {
21292 arg5 = &temp5;
21293 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21294 }
21295 }
21296 if (obj5) {
21297 ecode6 = SWIG_AsVal_long(obj5, &val6);
21298 if (!SWIG_IsOK(ecode6)) {
21299 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21300 }
21301 arg6 = static_cast< long >(val6);
21302 }
21303 if (obj6) {
21304 {
21305 arg7 = wxString_in_helper(obj6);
21306 if (arg7 == NULL) SWIG_fail;
21307 temp7 = true;
21308 }
21309 }
21310 {
21311 PyThreadState* __tstate = wxPyBeginAllowThreads();
21312 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21313 wxPyEndAllowThreads(__tstate);
21314 if (PyErr_Occurred()) SWIG_fail;
21315 }
21316 {
21317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21318 }
21319 {
21320 if (temp7)
21321 delete arg7;
21322 }
21323 return resultobj;
21324 fail:
21325 {
21326 if (temp7)
21327 delete arg7;
21328 }
21329 return NULL;
21330 }
21331
21332
21333 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21334 PyObject *resultobj = 0;
21335 wxListbook *arg1 = (wxListbook *) 0 ;
21336 wxListView *result = 0 ;
21337 void *argp1 = 0 ;
21338 int res1 = 0 ;
21339 PyObject *swig_obj[1] ;
21340
21341 if (!args) SWIG_fail;
21342 swig_obj[0] = args;
21343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21344 if (!SWIG_IsOK(res1)) {
21345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21346 }
21347 arg1 = reinterpret_cast< wxListbook * >(argp1);
21348 {
21349 PyThreadState* __tstate = wxPyBeginAllowThreads();
21350 result = (wxListView *)(arg1)->GetListView();
21351 wxPyEndAllowThreads(__tstate);
21352 if (PyErr_Occurred()) SWIG_fail;
21353 }
21354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21355 return resultobj;
21356 fail:
21357 return NULL;
21358 }
21359
21360
21361 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21362 PyObject *obj;
21363 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21364 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21365 return SWIG_Py_Void();
21366 }
21367
21368 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21369 return SWIG_Python_InitShadowInstance(args);
21370 }
21371
21372 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21373 PyObject *resultobj = 0;
21374 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21375 int arg2 = (int) 0 ;
21376 int arg3 = (int) -1 ;
21377 int arg4 = (int) -1 ;
21378 wxListbookEvent *result = 0 ;
21379 int val1 ;
21380 int ecode1 = 0 ;
21381 int val2 ;
21382 int ecode2 = 0 ;
21383 int val3 ;
21384 int ecode3 = 0 ;
21385 int val4 ;
21386 int ecode4 = 0 ;
21387 PyObject * obj0 = 0 ;
21388 PyObject * obj1 = 0 ;
21389 PyObject * obj2 = 0 ;
21390 PyObject * obj3 = 0 ;
21391 char * kwnames[] = {
21392 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21393 };
21394
21395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21396 if (obj0) {
21397 ecode1 = SWIG_AsVal_int(obj0, &val1);
21398 if (!SWIG_IsOK(ecode1)) {
21399 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21400 }
21401 arg1 = static_cast< wxEventType >(val1);
21402 }
21403 if (obj1) {
21404 ecode2 = SWIG_AsVal_int(obj1, &val2);
21405 if (!SWIG_IsOK(ecode2)) {
21406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21407 }
21408 arg2 = static_cast< int >(val2);
21409 }
21410 if (obj2) {
21411 ecode3 = SWIG_AsVal_int(obj2, &val3);
21412 if (!SWIG_IsOK(ecode3)) {
21413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21414 }
21415 arg3 = static_cast< int >(val3);
21416 }
21417 if (obj3) {
21418 ecode4 = SWIG_AsVal_int(obj3, &val4);
21419 if (!SWIG_IsOK(ecode4)) {
21420 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21421 }
21422 arg4 = static_cast< int >(val4);
21423 }
21424 {
21425 PyThreadState* __tstate = wxPyBeginAllowThreads();
21426 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21427 wxPyEndAllowThreads(__tstate);
21428 if (PyErr_Occurred()) SWIG_fail;
21429 }
21430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21431 return resultobj;
21432 fail:
21433 return NULL;
21434 }
21435
21436
21437 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21438 PyObject *obj;
21439 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21440 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21441 return SWIG_Py_Void();
21442 }
21443
21444 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21445 return SWIG_Python_InitShadowInstance(args);
21446 }
21447
21448 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21449 PyObject *resultobj = 0;
21450 wxWindow *arg1 = (wxWindow *) 0 ;
21451 int arg2 ;
21452 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21453 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21454 wxSize const &arg4_defvalue = wxDefaultSize ;
21455 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21456 long arg5 = (long) 0 ;
21457 wxString const &arg6_defvalue = wxPyEmptyString ;
21458 wxString *arg6 = (wxString *) &arg6_defvalue ;
21459 wxChoicebook *result = 0 ;
21460 void *argp1 = 0 ;
21461 int res1 = 0 ;
21462 int val2 ;
21463 int ecode2 = 0 ;
21464 wxPoint temp3 ;
21465 wxSize temp4 ;
21466 long val5 ;
21467 int ecode5 = 0 ;
21468 bool temp6 = false ;
21469 PyObject * obj0 = 0 ;
21470 PyObject * obj1 = 0 ;
21471 PyObject * obj2 = 0 ;
21472 PyObject * obj3 = 0 ;
21473 PyObject * obj4 = 0 ;
21474 PyObject * obj5 = 0 ;
21475 char * kwnames[] = {
21476 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21477 };
21478
21479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21481 if (!SWIG_IsOK(res1)) {
21482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21483 }
21484 arg1 = reinterpret_cast< wxWindow * >(argp1);
21485 ecode2 = SWIG_AsVal_int(obj1, &val2);
21486 if (!SWIG_IsOK(ecode2)) {
21487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21488 }
21489 arg2 = static_cast< int >(val2);
21490 if (obj2) {
21491 {
21492 arg3 = &temp3;
21493 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21494 }
21495 }
21496 if (obj3) {
21497 {
21498 arg4 = &temp4;
21499 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21500 }
21501 }
21502 if (obj4) {
21503 ecode5 = SWIG_AsVal_long(obj4, &val5);
21504 if (!SWIG_IsOK(ecode5)) {
21505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21506 }
21507 arg5 = static_cast< long >(val5);
21508 }
21509 if (obj5) {
21510 {
21511 arg6 = wxString_in_helper(obj5);
21512 if (arg6 == NULL) SWIG_fail;
21513 temp6 = true;
21514 }
21515 }
21516 {
21517 if (!wxPyCheckForApp()) SWIG_fail;
21518 PyThreadState* __tstate = wxPyBeginAllowThreads();
21519 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21520 wxPyEndAllowThreads(__tstate);
21521 if (PyErr_Occurred()) SWIG_fail;
21522 }
21523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21524 {
21525 if (temp6)
21526 delete arg6;
21527 }
21528 return resultobj;
21529 fail:
21530 {
21531 if (temp6)
21532 delete arg6;
21533 }
21534 return NULL;
21535 }
21536
21537
21538 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21539 PyObject *resultobj = 0;
21540 wxChoicebook *result = 0 ;
21541
21542 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21543 {
21544 if (!wxPyCheckForApp()) SWIG_fail;
21545 PyThreadState* __tstate = wxPyBeginAllowThreads();
21546 result = (wxChoicebook *)new wxChoicebook();
21547 wxPyEndAllowThreads(__tstate);
21548 if (PyErr_Occurred()) SWIG_fail;
21549 }
21550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21551 return resultobj;
21552 fail:
21553 return NULL;
21554 }
21555
21556
21557 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21558 PyObject *resultobj = 0;
21559 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21560 wxWindow *arg2 = (wxWindow *) 0 ;
21561 int arg3 ;
21562 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21563 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21564 wxSize const &arg5_defvalue = wxDefaultSize ;
21565 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21566 long arg6 = (long) 0 ;
21567 wxString const &arg7_defvalue = wxPyEmptyString ;
21568 wxString *arg7 = (wxString *) &arg7_defvalue ;
21569 bool result;
21570 void *argp1 = 0 ;
21571 int res1 = 0 ;
21572 void *argp2 = 0 ;
21573 int res2 = 0 ;
21574 int val3 ;
21575 int ecode3 = 0 ;
21576 wxPoint temp4 ;
21577 wxSize temp5 ;
21578 long val6 ;
21579 int ecode6 = 0 ;
21580 bool temp7 = false ;
21581 PyObject * obj0 = 0 ;
21582 PyObject * obj1 = 0 ;
21583 PyObject * obj2 = 0 ;
21584 PyObject * obj3 = 0 ;
21585 PyObject * obj4 = 0 ;
21586 PyObject * obj5 = 0 ;
21587 PyObject * obj6 = 0 ;
21588 char * kwnames[] = {
21589 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21590 };
21591
21592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21594 if (!SWIG_IsOK(res1)) {
21595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21596 }
21597 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21598 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21599 if (!SWIG_IsOK(res2)) {
21600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21601 }
21602 arg2 = reinterpret_cast< wxWindow * >(argp2);
21603 ecode3 = SWIG_AsVal_int(obj2, &val3);
21604 if (!SWIG_IsOK(ecode3)) {
21605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21606 }
21607 arg3 = static_cast< int >(val3);
21608 if (obj3) {
21609 {
21610 arg4 = &temp4;
21611 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21612 }
21613 }
21614 if (obj4) {
21615 {
21616 arg5 = &temp5;
21617 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21618 }
21619 }
21620 if (obj5) {
21621 ecode6 = SWIG_AsVal_long(obj5, &val6);
21622 if (!SWIG_IsOK(ecode6)) {
21623 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21624 }
21625 arg6 = static_cast< long >(val6);
21626 }
21627 if (obj6) {
21628 {
21629 arg7 = wxString_in_helper(obj6);
21630 if (arg7 == NULL) SWIG_fail;
21631 temp7 = true;
21632 }
21633 }
21634 {
21635 PyThreadState* __tstate = wxPyBeginAllowThreads();
21636 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21637 wxPyEndAllowThreads(__tstate);
21638 if (PyErr_Occurred()) SWIG_fail;
21639 }
21640 {
21641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21642 }
21643 {
21644 if (temp7)
21645 delete arg7;
21646 }
21647 return resultobj;
21648 fail:
21649 {
21650 if (temp7)
21651 delete arg7;
21652 }
21653 return NULL;
21654 }
21655
21656
21657 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21658 PyObject *resultobj = 0;
21659 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21660 wxChoice *result = 0 ;
21661 void *argp1 = 0 ;
21662 int res1 = 0 ;
21663 PyObject *swig_obj[1] ;
21664
21665 if (!args) SWIG_fail;
21666 swig_obj[0] = args;
21667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21668 if (!SWIG_IsOK(res1)) {
21669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21670 }
21671 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21672 {
21673 PyThreadState* __tstate = wxPyBeginAllowThreads();
21674 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21675 wxPyEndAllowThreads(__tstate);
21676 if (PyErr_Occurred()) SWIG_fail;
21677 }
21678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21679 return resultobj;
21680 fail:
21681 return NULL;
21682 }
21683
21684
21685 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21686 PyObject *obj;
21687 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21688 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21689 return SWIG_Py_Void();
21690 }
21691
21692 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21693 return SWIG_Python_InitShadowInstance(args);
21694 }
21695
21696 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21697 PyObject *resultobj = 0;
21698 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21699 int arg2 = (int) 0 ;
21700 int arg3 = (int) -1 ;
21701 int arg4 = (int) -1 ;
21702 wxChoicebookEvent *result = 0 ;
21703 int val1 ;
21704 int ecode1 = 0 ;
21705 int val2 ;
21706 int ecode2 = 0 ;
21707 int val3 ;
21708 int ecode3 = 0 ;
21709 int val4 ;
21710 int ecode4 = 0 ;
21711 PyObject * obj0 = 0 ;
21712 PyObject * obj1 = 0 ;
21713 PyObject * obj2 = 0 ;
21714 PyObject * obj3 = 0 ;
21715 char * kwnames[] = {
21716 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21717 };
21718
21719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21720 if (obj0) {
21721 ecode1 = SWIG_AsVal_int(obj0, &val1);
21722 if (!SWIG_IsOK(ecode1)) {
21723 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21724 }
21725 arg1 = static_cast< wxEventType >(val1);
21726 }
21727 if (obj1) {
21728 ecode2 = SWIG_AsVal_int(obj1, &val2);
21729 if (!SWIG_IsOK(ecode2)) {
21730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21731 }
21732 arg2 = static_cast< int >(val2);
21733 }
21734 if (obj2) {
21735 ecode3 = SWIG_AsVal_int(obj2, &val3);
21736 if (!SWIG_IsOK(ecode3)) {
21737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21738 }
21739 arg3 = static_cast< int >(val3);
21740 }
21741 if (obj3) {
21742 ecode4 = SWIG_AsVal_int(obj3, &val4);
21743 if (!SWIG_IsOK(ecode4)) {
21744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21745 }
21746 arg4 = static_cast< int >(val4);
21747 }
21748 {
21749 PyThreadState* __tstate = wxPyBeginAllowThreads();
21750 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21751 wxPyEndAllowThreads(__tstate);
21752 if (PyErr_Occurred()) SWIG_fail;
21753 }
21754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21755 return resultobj;
21756 fail:
21757 return NULL;
21758 }
21759
21760
21761 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21762 PyObject *obj;
21763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21764 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21765 return SWIG_Py_Void();
21766 }
21767
21768 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21769 return SWIG_Python_InitShadowInstance(args);
21770 }
21771
21772 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21773 PyObject *resultobj = 0;
21774 wxWindow *arg1 = (wxWindow *) 0 ;
21775 int arg2 ;
21776 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21777 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21778 wxSize const &arg4_defvalue = wxDefaultSize ;
21779 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21780 long arg5 = (long) wxBK_DEFAULT ;
21781 wxString const &arg6_defvalue = wxPyEmptyString ;
21782 wxString *arg6 = (wxString *) &arg6_defvalue ;
21783 wxTreebook *result = 0 ;
21784 void *argp1 = 0 ;
21785 int res1 = 0 ;
21786 int val2 ;
21787 int ecode2 = 0 ;
21788 wxPoint temp3 ;
21789 wxSize temp4 ;
21790 long val5 ;
21791 int ecode5 = 0 ;
21792 bool temp6 = false ;
21793 PyObject * obj0 = 0 ;
21794 PyObject * obj1 = 0 ;
21795 PyObject * obj2 = 0 ;
21796 PyObject * obj3 = 0 ;
21797 PyObject * obj4 = 0 ;
21798 PyObject * obj5 = 0 ;
21799 char * kwnames[] = {
21800 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21801 };
21802
21803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21805 if (!SWIG_IsOK(res1)) {
21806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21807 }
21808 arg1 = reinterpret_cast< wxWindow * >(argp1);
21809 ecode2 = SWIG_AsVal_int(obj1, &val2);
21810 if (!SWIG_IsOK(ecode2)) {
21811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21812 }
21813 arg2 = static_cast< int >(val2);
21814 if (obj2) {
21815 {
21816 arg3 = &temp3;
21817 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21818 }
21819 }
21820 if (obj3) {
21821 {
21822 arg4 = &temp4;
21823 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21824 }
21825 }
21826 if (obj4) {
21827 ecode5 = SWIG_AsVal_long(obj4, &val5);
21828 if (!SWIG_IsOK(ecode5)) {
21829 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21830 }
21831 arg5 = static_cast< long >(val5);
21832 }
21833 if (obj5) {
21834 {
21835 arg6 = wxString_in_helper(obj5);
21836 if (arg6 == NULL) SWIG_fail;
21837 temp6 = true;
21838 }
21839 }
21840 {
21841 if (!wxPyCheckForApp()) SWIG_fail;
21842 PyThreadState* __tstate = wxPyBeginAllowThreads();
21843 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21844 wxPyEndAllowThreads(__tstate);
21845 if (PyErr_Occurred()) SWIG_fail;
21846 }
21847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21848 {
21849 if (temp6)
21850 delete arg6;
21851 }
21852 return resultobj;
21853 fail:
21854 {
21855 if (temp6)
21856 delete arg6;
21857 }
21858 return NULL;
21859 }
21860
21861
21862 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21863 PyObject *resultobj = 0;
21864 wxTreebook *result = 0 ;
21865
21866 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21867 {
21868 if (!wxPyCheckForApp()) SWIG_fail;
21869 PyThreadState* __tstate = wxPyBeginAllowThreads();
21870 result = (wxTreebook *)new wxTreebook();
21871 wxPyEndAllowThreads(__tstate);
21872 if (PyErr_Occurred()) SWIG_fail;
21873 }
21874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21875 return resultobj;
21876 fail:
21877 return NULL;
21878 }
21879
21880
21881 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21882 PyObject *resultobj = 0;
21883 wxTreebook *arg1 = (wxTreebook *) 0 ;
21884 wxWindow *arg2 = (wxWindow *) 0 ;
21885 int arg3 ;
21886 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21887 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21888 wxSize const &arg5_defvalue = wxDefaultSize ;
21889 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21890 long arg6 = (long) wxBK_DEFAULT ;
21891 wxString const &arg7_defvalue = wxPyEmptyString ;
21892 wxString *arg7 = (wxString *) &arg7_defvalue ;
21893 bool result;
21894 void *argp1 = 0 ;
21895 int res1 = 0 ;
21896 void *argp2 = 0 ;
21897 int res2 = 0 ;
21898 int val3 ;
21899 int ecode3 = 0 ;
21900 wxPoint temp4 ;
21901 wxSize temp5 ;
21902 long val6 ;
21903 int ecode6 = 0 ;
21904 bool temp7 = false ;
21905 PyObject * obj0 = 0 ;
21906 PyObject * obj1 = 0 ;
21907 PyObject * obj2 = 0 ;
21908 PyObject * obj3 = 0 ;
21909 PyObject * obj4 = 0 ;
21910 PyObject * obj5 = 0 ;
21911 PyObject * obj6 = 0 ;
21912 char * kwnames[] = {
21913 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21914 };
21915
21916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21918 if (!SWIG_IsOK(res1)) {
21919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21920 }
21921 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21922 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21923 if (!SWIG_IsOK(res2)) {
21924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21925 }
21926 arg2 = reinterpret_cast< wxWindow * >(argp2);
21927 ecode3 = SWIG_AsVal_int(obj2, &val3);
21928 if (!SWIG_IsOK(ecode3)) {
21929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21930 }
21931 arg3 = static_cast< int >(val3);
21932 if (obj3) {
21933 {
21934 arg4 = &temp4;
21935 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21936 }
21937 }
21938 if (obj4) {
21939 {
21940 arg5 = &temp5;
21941 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21942 }
21943 }
21944 if (obj5) {
21945 ecode6 = SWIG_AsVal_long(obj5, &val6);
21946 if (!SWIG_IsOK(ecode6)) {
21947 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21948 }
21949 arg6 = static_cast< long >(val6);
21950 }
21951 if (obj6) {
21952 {
21953 arg7 = wxString_in_helper(obj6);
21954 if (arg7 == NULL) SWIG_fail;
21955 temp7 = true;
21956 }
21957 }
21958 {
21959 PyThreadState* __tstate = wxPyBeginAllowThreads();
21960 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21961 wxPyEndAllowThreads(__tstate);
21962 if (PyErr_Occurred()) SWIG_fail;
21963 }
21964 {
21965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21966 }
21967 {
21968 if (temp7)
21969 delete arg7;
21970 }
21971 return resultobj;
21972 fail:
21973 {
21974 if (temp7)
21975 delete arg7;
21976 }
21977 return NULL;
21978 }
21979
21980
21981 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21982 PyObject *resultobj = 0;
21983 wxTreebook *arg1 = (wxTreebook *) 0 ;
21984 size_t arg2 ;
21985 wxWindow *arg3 = (wxWindow *) 0 ;
21986 wxString *arg4 = 0 ;
21987 bool arg5 = (bool) false ;
21988 int arg6 = (int) wxNOT_FOUND ;
21989 bool result;
21990 void *argp1 = 0 ;
21991 int res1 = 0 ;
21992 size_t val2 ;
21993 int ecode2 = 0 ;
21994 void *argp3 = 0 ;
21995 int res3 = 0 ;
21996 bool temp4 = false ;
21997 bool val5 ;
21998 int ecode5 = 0 ;
21999 int val6 ;
22000 int ecode6 = 0 ;
22001 PyObject * obj0 = 0 ;
22002 PyObject * obj1 = 0 ;
22003 PyObject * obj2 = 0 ;
22004 PyObject * obj3 = 0 ;
22005 PyObject * obj4 = 0 ;
22006 PyObject * obj5 = 0 ;
22007 char * kwnames[] = {
22008 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22009 };
22010
22011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22013 if (!SWIG_IsOK(res1)) {
22014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22015 }
22016 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22017 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22018 if (!SWIG_IsOK(ecode2)) {
22019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22020 }
22021 arg2 = static_cast< size_t >(val2);
22022 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22023 if (!SWIG_IsOK(res3)) {
22024 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22025 }
22026 arg3 = reinterpret_cast< wxWindow * >(argp3);
22027 {
22028 arg4 = wxString_in_helper(obj3);
22029 if (arg4 == NULL) SWIG_fail;
22030 temp4 = true;
22031 }
22032 if (obj4) {
22033 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22034 if (!SWIG_IsOK(ecode5)) {
22035 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22036 }
22037 arg5 = static_cast< bool >(val5);
22038 }
22039 if (obj5) {
22040 ecode6 = SWIG_AsVal_int(obj5, &val6);
22041 if (!SWIG_IsOK(ecode6)) {
22042 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22043 }
22044 arg6 = static_cast< int >(val6);
22045 }
22046 {
22047 PyThreadState* __tstate = wxPyBeginAllowThreads();
22048 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22049 wxPyEndAllowThreads(__tstate);
22050 if (PyErr_Occurred()) SWIG_fail;
22051 }
22052 {
22053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22054 }
22055 {
22056 if (temp4)
22057 delete arg4;
22058 }
22059 return resultobj;
22060 fail:
22061 {
22062 if (temp4)
22063 delete arg4;
22064 }
22065 return NULL;
22066 }
22067
22068
22069 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22070 PyObject *resultobj = 0;
22071 wxTreebook *arg1 = (wxTreebook *) 0 ;
22072 wxWindow *arg2 = (wxWindow *) 0 ;
22073 wxString *arg3 = 0 ;
22074 bool arg4 = (bool) false ;
22075 int arg5 = (int) wxNOT_FOUND ;
22076 bool result;
22077 void *argp1 = 0 ;
22078 int res1 = 0 ;
22079 void *argp2 = 0 ;
22080 int res2 = 0 ;
22081 bool temp3 = false ;
22082 bool val4 ;
22083 int ecode4 = 0 ;
22084 int val5 ;
22085 int ecode5 = 0 ;
22086 PyObject * obj0 = 0 ;
22087 PyObject * obj1 = 0 ;
22088 PyObject * obj2 = 0 ;
22089 PyObject * obj3 = 0 ;
22090 PyObject * obj4 = 0 ;
22091 char * kwnames[] = {
22092 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22093 };
22094
22095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22097 if (!SWIG_IsOK(res1)) {
22098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22099 }
22100 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22101 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22102 if (!SWIG_IsOK(res2)) {
22103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22104 }
22105 arg2 = reinterpret_cast< wxWindow * >(argp2);
22106 {
22107 arg3 = wxString_in_helper(obj2);
22108 if (arg3 == NULL) SWIG_fail;
22109 temp3 = true;
22110 }
22111 if (obj3) {
22112 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22113 if (!SWIG_IsOK(ecode4)) {
22114 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22115 }
22116 arg4 = static_cast< bool >(val4);
22117 }
22118 if (obj4) {
22119 ecode5 = SWIG_AsVal_int(obj4, &val5);
22120 if (!SWIG_IsOK(ecode5)) {
22121 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22122 }
22123 arg5 = static_cast< int >(val5);
22124 }
22125 {
22126 PyThreadState* __tstate = wxPyBeginAllowThreads();
22127 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22128 wxPyEndAllowThreads(__tstate);
22129 if (PyErr_Occurred()) SWIG_fail;
22130 }
22131 {
22132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22133 }
22134 {
22135 if (temp3)
22136 delete arg3;
22137 }
22138 return resultobj;
22139 fail:
22140 {
22141 if (temp3)
22142 delete arg3;
22143 }
22144 return NULL;
22145 }
22146
22147
22148 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22149 PyObject *resultobj = 0;
22150 wxTreebook *arg1 = (wxTreebook *) 0 ;
22151 size_t arg2 ;
22152 bool result;
22153 void *argp1 = 0 ;
22154 int res1 = 0 ;
22155 size_t val2 ;
22156 int ecode2 = 0 ;
22157 PyObject * obj0 = 0 ;
22158 PyObject * obj1 = 0 ;
22159 char * kwnames[] = {
22160 (char *) "self",(char *) "pos", NULL
22161 };
22162
22163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22165 if (!SWIG_IsOK(res1)) {
22166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22167 }
22168 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22169 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22170 if (!SWIG_IsOK(ecode2)) {
22171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22172 }
22173 arg2 = static_cast< size_t >(val2);
22174 {
22175 PyThreadState* __tstate = wxPyBeginAllowThreads();
22176 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22177 wxPyEndAllowThreads(__tstate);
22178 if (PyErr_Occurred()) SWIG_fail;
22179 }
22180 {
22181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22182 }
22183 return resultobj;
22184 fail:
22185 return NULL;
22186 }
22187
22188
22189 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22190 PyObject *resultobj = 0;
22191 wxTreebook *arg1 = (wxTreebook *) 0 ;
22192 size_t arg2 ;
22193 bool arg3 = (bool) true ;
22194 bool result;
22195 void *argp1 = 0 ;
22196 int res1 = 0 ;
22197 size_t val2 ;
22198 int ecode2 = 0 ;
22199 bool val3 ;
22200 int ecode3 = 0 ;
22201 PyObject * obj0 = 0 ;
22202 PyObject * obj1 = 0 ;
22203 PyObject * obj2 = 0 ;
22204 char * kwnames[] = {
22205 (char *) "self",(char *) "pos",(char *) "expand", NULL
22206 };
22207
22208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22210 if (!SWIG_IsOK(res1)) {
22211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22212 }
22213 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22214 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22215 if (!SWIG_IsOK(ecode2)) {
22216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22217 }
22218 arg2 = static_cast< size_t >(val2);
22219 if (obj2) {
22220 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22221 if (!SWIG_IsOK(ecode3)) {
22222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22223 }
22224 arg3 = static_cast< bool >(val3);
22225 }
22226 {
22227 PyThreadState* __tstate = wxPyBeginAllowThreads();
22228 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22229 wxPyEndAllowThreads(__tstate);
22230 if (PyErr_Occurred()) SWIG_fail;
22231 }
22232 {
22233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22234 }
22235 return resultobj;
22236 fail:
22237 return NULL;
22238 }
22239
22240
22241 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22242 PyObject *resultobj = 0;
22243 wxTreebook *arg1 = (wxTreebook *) 0 ;
22244 size_t arg2 ;
22245 bool result;
22246 void *argp1 = 0 ;
22247 int res1 = 0 ;
22248 size_t val2 ;
22249 int ecode2 = 0 ;
22250 PyObject * obj0 = 0 ;
22251 PyObject * obj1 = 0 ;
22252 char * kwnames[] = {
22253 (char *) "self",(char *) "pos", NULL
22254 };
22255
22256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22258 if (!SWIG_IsOK(res1)) {
22259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22260 }
22261 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22262 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22263 if (!SWIG_IsOK(ecode2)) {
22264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22265 }
22266 arg2 = static_cast< size_t >(val2);
22267 {
22268 PyThreadState* __tstate = wxPyBeginAllowThreads();
22269 result = (bool)(arg1)->CollapseNode(arg2);
22270 wxPyEndAllowThreads(__tstate);
22271 if (PyErr_Occurred()) SWIG_fail;
22272 }
22273 {
22274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22275 }
22276 return resultobj;
22277 fail:
22278 return NULL;
22279 }
22280
22281
22282 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22283 PyObject *resultobj = 0;
22284 wxTreebook *arg1 = (wxTreebook *) 0 ;
22285 size_t arg2 ;
22286 int result;
22287 void *argp1 = 0 ;
22288 int res1 = 0 ;
22289 size_t val2 ;
22290 int ecode2 = 0 ;
22291 PyObject * obj0 = 0 ;
22292 PyObject * obj1 = 0 ;
22293 char * kwnames[] = {
22294 (char *) "self",(char *) "pos", NULL
22295 };
22296
22297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22299 if (!SWIG_IsOK(res1)) {
22300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22301 }
22302 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22303 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22304 if (!SWIG_IsOK(ecode2)) {
22305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22306 }
22307 arg2 = static_cast< size_t >(val2);
22308 {
22309 PyThreadState* __tstate = wxPyBeginAllowThreads();
22310 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22311 wxPyEndAllowThreads(__tstate);
22312 if (PyErr_Occurred()) SWIG_fail;
22313 }
22314 resultobj = SWIG_From_int(static_cast< int >(result));
22315 return resultobj;
22316 fail:
22317 return NULL;
22318 }
22319
22320
22321 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22322 PyObject *resultobj = 0;
22323 wxTreebook *arg1 = (wxTreebook *) 0 ;
22324 wxPyTreeCtrl *result = 0 ;
22325 void *argp1 = 0 ;
22326 int res1 = 0 ;
22327 PyObject *swig_obj[1] ;
22328
22329 if (!args) SWIG_fail;
22330 swig_obj[0] = args;
22331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22332 if (!SWIG_IsOK(res1)) {
22333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22334 }
22335 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22336 {
22337 PyThreadState* __tstate = wxPyBeginAllowThreads();
22338 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22339 wxPyEndAllowThreads(__tstate);
22340 if (PyErr_Occurred()) SWIG_fail;
22341 }
22342 {
22343 resultobj = wxPyMake_wxObject(result, (bool)0);
22344 }
22345 return resultobj;
22346 fail:
22347 return NULL;
22348 }
22349
22350
22351 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22352 PyObject *obj;
22353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22354 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22355 return SWIG_Py_Void();
22356 }
22357
22358 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22359 return SWIG_Python_InitShadowInstance(args);
22360 }
22361
22362 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22363 PyObject *resultobj = 0;
22364 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22365 int arg2 = (int) 0 ;
22366 int arg3 = (int) wxNOT_FOUND ;
22367 int arg4 = (int) wxNOT_FOUND ;
22368 wxTreebookEvent *result = 0 ;
22369 int val1 ;
22370 int ecode1 = 0 ;
22371 int val2 ;
22372 int ecode2 = 0 ;
22373 int val3 ;
22374 int ecode3 = 0 ;
22375 int val4 ;
22376 int ecode4 = 0 ;
22377 PyObject * obj0 = 0 ;
22378 PyObject * obj1 = 0 ;
22379 PyObject * obj2 = 0 ;
22380 PyObject * obj3 = 0 ;
22381 char * kwnames[] = {
22382 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22383 };
22384
22385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22386 if (obj0) {
22387 ecode1 = SWIG_AsVal_int(obj0, &val1);
22388 if (!SWIG_IsOK(ecode1)) {
22389 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22390 }
22391 arg1 = static_cast< wxEventType >(val1);
22392 }
22393 if (obj1) {
22394 ecode2 = SWIG_AsVal_int(obj1, &val2);
22395 if (!SWIG_IsOK(ecode2)) {
22396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22397 }
22398 arg2 = static_cast< int >(val2);
22399 }
22400 if (obj2) {
22401 ecode3 = SWIG_AsVal_int(obj2, &val3);
22402 if (!SWIG_IsOK(ecode3)) {
22403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22404 }
22405 arg3 = static_cast< int >(val3);
22406 }
22407 if (obj3) {
22408 ecode4 = SWIG_AsVal_int(obj3, &val4);
22409 if (!SWIG_IsOK(ecode4)) {
22410 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22411 }
22412 arg4 = static_cast< int >(val4);
22413 }
22414 {
22415 PyThreadState* __tstate = wxPyBeginAllowThreads();
22416 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22417 wxPyEndAllowThreads(__tstate);
22418 if (PyErr_Occurred()) SWIG_fail;
22419 }
22420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22421 return resultobj;
22422 fail:
22423 return NULL;
22424 }
22425
22426
22427 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22428 PyObject *obj;
22429 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22430 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22431 return SWIG_Py_Void();
22432 }
22433
22434 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22435 return SWIG_Python_InitShadowInstance(args);
22436 }
22437
22438 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22439 PyObject *resultobj = 0;
22440 wxWindow *arg1 = (wxWindow *) 0 ;
22441 int arg2 ;
22442 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22443 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22444 wxSize const &arg4_defvalue = wxDefaultSize ;
22445 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22446 long arg5 = (long) wxBK_DEFAULT ;
22447 wxString const &arg6_defvalue = wxPyEmptyString ;
22448 wxString *arg6 = (wxString *) &arg6_defvalue ;
22449 wxToolbook *result = 0 ;
22450 void *argp1 = 0 ;
22451 int res1 = 0 ;
22452 int val2 ;
22453 int ecode2 = 0 ;
22454 wxPoint temp3 ;
22455 wxSize temp4 ;
22456 long val5 ;
22457 int ecode5 = 0 ;
22458 bool temp6 = false ;
22459 PyObject * obj0 = 0 ;
22460 PyObject * obj1 = 0 ;
22461 PyObject * obj2 = 0 ;
22462 PyObject * obj3 = 0 ;
22463 PyObject * obj4 = 0 ;
22464 PyObject * obj5 = 0 ;
22465 char * kwnames[] = {
22466 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22467 };
22468
22469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22471 if (!SWIG_IsOK(res1)) {
22472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22473 }
22474 arg1 = reinterpret_cast< wxWindow * >(argp1);
22475 ecode2 = SWIG_AsVal_int(obj1, &val2);
22476 if (!SWIG_IsOK(ecode2)) {
22477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22478 }
22479 arg2 = static_cast< int >(val2);
22480 if (obj2) {
22481 {
22482 arg3 = &temp3;
22483 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22484 }
22485 }
22486 if (obj3) {
22487 {
22488 arg4 = &temp4;
22489 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22490 }
22491 }
22492 if (obj4) {
22493 ecode5 = SWIG_AsVal_long(obj4, &val5);
22494 if (!SWIG_IsOK(ecode5)) {
22495 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22496 }
22497 arg5 = static_cast< long >(val5);
22498 }
22499 if (obj5) {
22500 {
22501 arg6 = wxString_in_helper(obj5);
22502 if (arg6 == NULL) SWIG_fail;
22503 temp6 = true;
22504 }
22505 }
22506 {
22507 PyThreadState* __tstate = wxPyBeginAllowThreads();
22508 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22509 wxPyEndAllowThreads(__tstate);
22510 if (PyErr_Occurred()) SWIG_fail;
22511 }
22512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22513 {
22514 if (temp6)
22515 delete arg6;
22516 }
22517 return resultobj;
22518 fail:
22519 {
22520 if (temp6)
22521 delete arg6;
22522 }
22523 return NULL;
22524 }
22525
22526
22527 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22528 PyObject *resultobj = 0;
22529 wxToolbook *result = 0 ;
22530
22531 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22532 {
22533 PyThreadState* __tstate = wxPyBeginAllowThreads();
22534 result = (wxToolbook *)new wxToolbook();
22535 wxPyEndAllowThreads(__tstate);
22536 if (PyErr_Occurred()) SWIG_fail;
22537 }
22538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22539 return resultobj;
22540 fail:
22541 return NULL;
22542 }
22543
22544
22545 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22546 PyObject *resultobj = 0;
22547 wxToolbook *arg1 = (wxToolbook *) 0 ;
22548 wxWindow *arg2 = (wxWindow *) 0 ;
22549 int arg3 ;
22550 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22551 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22552 wxSize const &arg5_defvalue = wxDefaultSize ;
22553 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22554 long arg6 = (long) 0 ;
22555 wxString const &arg7_defvalue = wxEmptyString ;
22556 wxString *arg7 = (wxString *) &arg7_defvalue ;
22557 bool result;
22558 void *argp1 = 0 ;
22559 int res1 = 0 ;
22560 void *argp2 = 0 ;
22561 int res2 = 0 ;
22562 int val3 ;
22563 int ecode3 = 0 ;
22564 wxPoint temp4 ;
22565 wxSize temp5 ;
22566 long val6 ;
22567 int ecode6 = 0 ;
22568 bool temp7 = false ;
22569 PyObject * obj0 = 0 ;
22570 PyObject * obj1 = 0 ;
22571 PyObject * obj2 = 0 ;
22572 PyObject * obj3 = 0 ;
22573 PyObject * obj4 = 0 ;
22574 PyObject * obj5 = 0 ;
22575 PyObject * obj6 = 0 ;
22576 char * kwnames[] = {
22577 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22578 };
22579
22580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22582 if (!SWIG_IsOK(res1)) {
22583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22584 }
22585 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22586 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22587 if (!SWIG_IsOK(res2)) {
22588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22589 }
22590 arg2 = reinterpret_cast< wxWindow * >(argp2);
22591 ecode3 = SWIG_AsVal_int(obj2, &val3);
22592 if (!SWIG_IsOK(ecode3)) {
22593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22594 }
22595 arg3 = static_cast< int >(val3);
22596 if (obj3) {
22597 {
22598 arg4 = &temp4;
22599 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22600 }
22601 }
22602 if (obj4) {
22603 {
22604 arg5 = &temp5;
22605 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22606 }
22607 }
22608 if (obj5) {
22609 ecode6 = SWIG_AsVal_long(obj5, &val6);
22610 if (!SWIG_IsOK(ecode6)) {
22611 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22612 }
22613 arg6 = static_cast< long >(val6);
22614 }
22615 if (obj6) {
22616 {
22617 arg7 = wxString_in_helper(obj6);
22618 if (arg7 == NULL) SWIG_fail;
22619 temp7 = true;
22620 }
22621 }
22622 {
22623 PyThreadState* __tstate = wxPyBeginAllowThreads();
22624 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22625 wxPyEndAllowThreads(__tstate);
22626 if (PyErr_Occurred()) SWIG_fail;
22627 }
22628 {
22629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22630 }
22631 {
22632 if (temp7)
22633 delete arg7;
22634 }
22635 return resultobj;
22636 fail:
22637 {
22638 if (temp7)
22639 delete arg7;
22640 }
22641 return NULL;
22642 }
22643
22644
22645 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22646 PyObject *resultobj = 0;
22647 wxToolbook *arg1 = (wxToolbook *) 0 ;
22648 wxToolBarBase *result = 0 ;
22649 void *argp1 = 0 ;
22650 int res1 = 0 ;
22651 PyObject *swig_obj[1] ;
22652
22653 if (!args) SWIG_fail;
22654 swig_obj[0] = args;
22655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22656 if (!SWIG_IsOK(res1)) {
22657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22658 }
22659 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22660 {
22661 PyThreadState* __tstate = wxPyBeginAllowThreads();
22662 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22663 wxPyEndAllowThreads(__tstate);
22664 if (PyErr_Occurred()) SWIG_fail;
22665 }
22666 {
22667 resultobj = wxPyMake_wxObject(result, (bool)0);
22668 }
22669 return resultobj;
22670 fail:
22671 return NULL;
22672 }
22673
22674
22675 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22676 PyObject *resultobj = 0;
22677 wxToolbook *arg1 = (wxToolbook *) 0 ;
22678 void *argp1 = 0 ;
22679 int res1 = 0 ;
22680 PyObject *swig_obj[1] ;
22681
22682 if (!args) SWIG_fail;
22683 swig_obj[0] = args;
22684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22685 if (!SWIG_IsOK(res1)) {
22686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22687 }
22688 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22689 {
22690 PyThreadState* __tstate = wxPyBeginAllowThreads();
22691 (arg1)->Realize();
22692 wxPyEndAllowThreads(__tstate);
22693 if (PyErr_Occurred()) SWIG_fail;
22694 }
22695 resultobj = SWIG_Py_Void();
22696 return resultobj;
22697 fail:
22698 return NULL;
22699 }
22700
22701
22702 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22703 PyObject *obj;
22704 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22705 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22706 return SWIG_Py_Void();
22707 }
22708
22709 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22710 return SWIG_Python_InitShadowInstance(args);
22711 }
22712
22713 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22714 PyObject *resultobj = 0;
22715 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22716 int arg2 = (int) 0 ;
22717 int arg3 = (int) wxNOT_FOUND ;
22718 int arg4 = (int) wxNOT_FOUND ;
22719 wxToolbookEvent *result = 0 ;
22720 int val1 ;
22721 int ecode1 = 0 ;
22722 int val2 ;
22723 int ecode2 = 0 ;
22724 int val3 ;
22725 int ecode3 = 0 ;
22726 int val4 ;
22727 int ecode4 = 0 ;
22728 PyObject * obj0 = 0 ;
22729 PyObject * obj1 = 0 ;
22730 PyObject * obj2 = 0 ;
22731 PyObject * obj3 = 0 ;
22732 char * kwnames[] = {
22733 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22734 };
22735
22736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22737 if (obj0) {
22738 ecode1 = SWIG_AsVal_int(obj0, &val1);
22739 if (!SWIG_IsOK(ecode1)) {
22740 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22741 }
22742 arg1 = static_cast< wxEventType >(val1);
22743 }
22744 if (obj1) {
22745 ecode2 = SWIG_AsVal_int(obj1, &val2);
22746 if (!SWIG_IsOK(ecode2)) {
22747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22748 }
22749 arg2 = static_cast< int >(val2);
22750 }
22751 if (obj2) {
22752 ecode3 = SWIG_AsVal_int(obj2, &val3);
22753 if (!SWIG_IsOK(ecode3)) {
22754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22755 }
22756 arg3 = static_cast< int >(val3);
22757 }
22758 if (obj3) {
22759 ecode4 = SWIG_AsVal_int(obj3, &val4);
22760 if (!SWIG_IsOK(ecode4)) {
22761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22762 }
22763 arg4 = static_cast< int >(val4);
22764 }
22765 {
22766 PyThreadState* __tstate = wxPyBeginAllowThreads();
22767 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22768 wxPyEndAllowThreads(__tstate);
22769 if (PyErr_Occurred()) SWIG_fail;
22770 }
22771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22772 return resultobj;
22773 fail:
22774 return NULL;
22775 }
22776
22777
22778 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22779 PyObject *obj;
22780 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22781 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22782 return SWIG_Py_Void();
22783 }
22784
22785 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22786 return SWIG_Python_InitShadowInstance(args);
22787 }
22788
22789 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22790 PyObject *resultobj = 0;
22791 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22792 int result;
22793 void *argp1 = 0 ;
22794 int res1 = 0 ;
22795 PyObject *swig_obj[1] ;
22796
22797 if (!args) SWIG_fail;
22798 swig_obj[0] = args;
22799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22800 if (!SWIG_IsOK(res1)) {
22801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22802 }
22803 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22804 {
22805 PyThreadState* __tstate = wxPyBeginAllowThreads();
22806 result = (int)(arg1)->GetId();
22807 wxPyEndAllowThreads(__tstate);
22808 if (PyErr_Occurred()) SWIG_fail;
22809 }
22810 resultobj = SWIG_From_int(static_cast< int >(result));
22811 return resultobj;
22812 fail:
22813 return NULL;
22814 }
22815
22816
22817 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22818 PyObject *resultobj = 0;
22819 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22820 wxControl *result = 0 ;
22821 void *argp1 = 0 ;
22822 int res1 = 0 ;
22823 PyObject *swig_obj[1] ;
22824
22825 if (!args) SWIG_fail;
22826 swig_obj[0] = args;
22827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22828 if (!SWIG_IsOK(res1)) {
22829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22830 }
22831 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22832 {
22833 PyThreadState* __tstate = wxPyBeginAllowThreads();
22834 result = (wxControl *)(arg1)->GetControl();
22835 wxPyEndAllowThreads(__tstate);
22836 if (PyErr_Occurred()) SWIG_fail;
22837 }
22838 {
22839 resultobj = wxPyMake_wxObject(result, 0);
22840 }
22841 return resultobj;
22842 fail:
22843 return NULL;
22844 }
22845
22846
22847 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22848 PyObject *resultobj = 0;
22849 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22850 wxToolBarBase *result = 0 ;
22851 void *argp1 = 0 ;
22852 int res1 = 0 ;
22853 PyObject *swig_obj[1] ;
22854
22855 if (!args) SWIG_fail;
22856 swig_obj[0] = args;
22857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22858 if (!SWIG_IsOK(res1)) {
22859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22860 }
22861 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22862 {
22863 PyThreadState* __tstate = wxPyBeginAllowThreads();
22864 result = (wxToolBarBase *)(arg1)->GetToolBar();
22865 wxPyEndAllowThreads(__tstate);
22866 if (PyErr_Occurred()) SWIG_fail;
22867 }
22868 {
22869 resultobj = wxPyMake_wxObject(result, (bool)0);
22870 }
22871 return resultobj;
22872 fail:
22873 return NULL;
22874 }
22875
22876
22877 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22878 PyObject *resultobj = 0;
22879 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22880 int result;
22881 void *argp1 = 0 ;
22882 int res1 = 0 ;
22883 PyObject *swig_obj[1] ;
22884
22885 if (!args) SWIG_fail;
22886 swig_obj[0] = args;
22887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22888 if (!SWIG_IsOK(res1)) {
22889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22890 }
22891 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22892 {
22893 PyThreadState* __tstate = wxPyBeginAllowThreads();
22894 result = (int)(arg1)->IsButton();
22895 wxPyEndAllowThreads(__tstate);
22896 if (PyErr_Occurred()) SWIG_fail;
22897 }
22898 resultobj = SWIG_From_int(static_cast< int >(result));
22899 return resultobj;
22900 fail:
22901 return NULL;
22902 }
22903
22904
22905 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22906 PyObject *resultobj = 0;
22907 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22908 int result;
22909 void *argp1 = 0 ;
22910 int res1 = 0 ;
22911 PyObject *swig_obj[1] ;
22912
22913 if (!args) SWIG_fail;
22914 swig_obj[0] = args;
22915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22916 if (!SWIG_IsOK(res1)) {
22917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22918 }
22919 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22920 {
22921 PyThreadState* __tstate = wxPyBeginAllowThreads();
22922 result = (int)(arg1)->IsControl();
22923 wxPyEndAllowThreads(__tstate);
22924 if (PyErr_Occurred()) SWIG_fail;
22925 }
22926 resultobj = SWIG_From_int(static_cast< int >(result));
22927 return resultobj;
22928 fail:
22929 return NULL;
22930 }
22931
22932
22933 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22934 PyObject *resultobj = 0;
22935 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22936 int result;
22937 void *argp1 = 0 ;
22938 int res1 = 0 ;
22939 PyObject *swig_obj[1] ;
22940
22941 if (!args) SWIG_fail;
22942 swig_obj[0] = args;
22943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22944 if (!SWIG_IsOK(res1)) {
22945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22946 }
22947 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22948 {
22949 PyThreadState* __tstate = wxPyBeginAllowThreads();
22950 result = (int)(arg1)->IsSeparator();
22951 wxPyEndAllowThreads(__tstate);
22952 if (PyErr_Occurred()) SWIG_fail;
22953 }
22954 resultobj = SWIG_From_int(static_cast< int >(result));
22955 return resultobj;
22956 fail:
22957 return NULL;
22958 }
22959
22960
22961 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22962 PyObject *resultobj = 0;
22963 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22964 int result;
22965 void *argp1 = 0 ;
22966 int res1 = 0 ;
22967 PyObject *swig_obj[1] ;
22968
22969 if (!args) SWIG_fail;
22970 swig_obj[0] = args;
22971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22972 if (!SWIG_IsOK(res1)) {
22973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22974 }
22975 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22976 {
22977 PyThreadState* __tstate = wxPyBeginAllowThreads();
22978 result = (int)(arg1)->GetStyle();
22979 wxPyEndAllowThreads(__tstate);
22980 if (PyErr_Occurred()) SWIG_fail;
22981 }
22982 resultobj = SWIG_From_int(static_cast< int >(result));
22983 return resultobj;
22984 fail:
22985 return NULL;
22986 }
22987
22988
22989 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22990 PyObject *resultobj = 0;
22991 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22992 wxItemKind result;
22993 void *argp1 = 0 ;
22994 int res1 = 0 ;
22995 PyObject *swig_obj[1] ;
22996
22997 if (!args) SWIG_fail;
22998 swig_obj[0] = args;
22999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23000 if (!SWIG_IsOK(res1)) {
23001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23002 }
23003 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23004 {
23005 PyThreadState* __tstate = wxPyBeginAllowThreads();
23006 result = (wxItemKind)(arg1)->GetKind();
23007 wxPyEndAllowThreads(__tstate);
23008 if (PyErr_Occurred()) SWIG_fail;
23009 }
23010 resultobj = SWIG_From_int(static_cast< int >(result));
23011 return resultobj;
23012 fail:
23013 return NULL;
23014 }
23015
23016
23017 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23018 PyObject *resultobj = 0;
23019 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23020 bool result;
23021 void *argp1 = 0 ;
23022 int res1 = 0 ;
23023 PyObject *swig_obj[1] ;
23024
23025 if (!args) SWIG_fail;
23026 swig_obj[0] = args;
23027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23028 if (!SWIG_IsOK(res1)) {
23029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23030 }
23031 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23032 {
23033 PyThreadState* __tstate = wxPyBeginAllowThreads();
23034 result = (bool)(arg1)->IsEnabled();
23035 wxPyEndAllowThreads(__tstate);
23036 if (PyErr_Occurred()) SWIG_fail;
23037 }
23038 {
23039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23040 }
23041 return resultobj;
23042 fail:
23043 return NULL;
23044 }
23045
23046
23047 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23048 PyObject *resultobj = 0;
23049 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23050 bool result;
23051 void *argp1 = 0 ;
23052 int res1 = 0 ;
23053 PyObject *swig_obj[1] ;
23054
23055 if (!args) SWIG_fail;
23056 swig_obj[0] = args;
23057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23058 if (!SWIG_IsOK(res1)) {
23059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23060 }
23061 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23062 {
23063 PyThreadState* __tstate = wxPyBeginAllowThreads();
23064 result = (bool)(arg1)->IsToggled();
23065 wxPyEndAllowThreads(__tstate);
23066 if (PyErr_Occurred()) SWIG_fail;
23067 }
23068 {
23069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23070 }
23071 return resultobj;
23072 fail:
23073 return NULL;
23074 }
23075
23076
23077 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23078 PyObject *resultobj = 0;
23079 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23080 bool result;
23081 void *argp1 = 0 ;
23082 int res1 = 0 ;
23083 PyObject *swig_obj[1] ;
23084
23085 if (!args) SWIG_fail;
23086 swig_obj[0] = args;
23087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23088 if (!SWIG_IsOK(res1)) {
23089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23090 }
23091 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23092 {
23093 PyThreadState* __tstate = wxPyBeginAllowThreads();
23094 result = (bool)(arg1)->CanBeToggled();
23095 wxPyEndAllowThreads(__tstate);
23096 if (PyErr_Occurred()) SWIG_fail;
23097 }
23098 {
23099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23100 }
23101 return resultobj;
23102 fail:
23103 return NULL;
23104 }
23105
23106
23107 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23108 PyObject *resultobj = 0;
23109 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23110 wxBitmap *result = 0 ;
23111 void *argp1 = 0 ;
23112 int res1 = 0 ;
23113 PyObject *swig_obj[1] ;
23114
23115 if (!args) SWIG_fail;
23116 swig_obj[0] = args;
23117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23118 if (!SWIG_IsOK(res1)) {
23119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23120 }
23121 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23122 {
23123 PyThreadState* __tstate = wxPyBeginAllowThreads();
23124 {
23125 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23126 result = (wxBitmap *) &_result_ref;
23127 }
23128 wxPyEndAllowThreads(__tstate);
23129 if (PyErr_Occurred()) SWIG_fail;
23130 }
23131 {
23132 wxBitmap* resultptr = new wxBitmap(*result);
23133 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23134 }
23135 return resultobj;
23136 fail:
23137 return NULL;
23138 }
23139
23140
23141 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23142 PyObject *resultobj = 0;
23143 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23144 wxBitmap *result = 0 ;
23145 void *argp1 = 0 ;
23146 int res1 = 0 ;
23147 PyObject *swig_obj[1] ;
23148
23149 if (!args) SWIG_fail;
23150 swig_obj[0] = args;
23151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23152 if (!SWIG_IsOK(res1)) {
23153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23154 }
23155 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23156 {
23157 PyThreadState* __tstate = wxPyBeginAllowThreads();
23158 {
23159 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23160 result = (wxBitmap *) &_result_ref;
23161 }
23162 wxPyEndAllowThreads(__tstate);
23163 if (PyErr_Occurred()) SWIG_fail;
23164 }
23165 {
23166 wxBitmap* resultptr = new wxBitmap(*result);
23167 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23168 }
23169 return resultobj;
23170 fail:
23171 return NULL;
23172 }
23173
23174
23175 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23176 PyObject *resultobj = 0;
23177 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23178 wxBitmap result;
23179 void *argp1 = 0 ;
23180 int res1 = 0 ;
23181 PyObject *swig_obj[1] ;
23182
23183 if (!args) SWIG_fail;
23184 swig_obj[0] = args;
23185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23186 if (!SWIG_IsOK(res1)) {
23187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23188 }
23189 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23190 {
23191 PyThreadState* __tstate = wxPyBeginAllowThreads();
23192 result = (arg1)->GetBitmap();
23193 wxPyEndAllowThreads(__tstate);
23194 if (PyErr_Occurred()) SWIG_fail;
23195 }
23196 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23197 return resultobj;
23198 fail:
23199 return NULL;
23200 }
23201
23202
23203 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23204 PyObject *resultobj = 0;
23205 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23206 wxString result;
23207 void *argp1 = 0 ;
23208 int res1 = 0 ;
23209 PyObject *swig_obj[1] ;
23210
23211 if (!args) SWIG_fail;
23212 swig_obj[0] = args;
23213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23214 if (!SWIG_IsOK(res1)) {
23215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23216 }
23217 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23218 {
23219 PyThreadState* __tstate = wxPyBeginAllowThreads();
23220 result = (arg1)->GetLabel();
23221 wxPyEndAllowThreads(__tstate);
23222 if (PyErr_Occurred()) SWIG_fail;
23223 }
23224 {
23225 #if wxUSE_UNICODE
23226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23227 #else
23228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23229 #endif
23230 }
23231 return resultobj;
23232 fail:
23233 return NULL;
23234 }
23235
23236
23237 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23238 PyObject *resultobj = 0;
23239 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23240 wxString 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_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23250 }
23251 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 result = (arg1)->GetShortHelp();
23255 wxPyEndAllowThreads(__tstate);
23256 if (PyErr_Occurred()) SWIG_fail;
23257 }
23258 {
23259 #if wxUSE_UNICODE
23260 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23261 #else
23262 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23263 #endif
23264 }
23265 return resultobj;
23266 fail:
23267 return NULL;
23268 }
23269
23270
23271 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23272 PyObject *resultobj = 0;
23273 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23274 wxString result;
23275 void *argp1 = 0 ;
23276 int res1 = 0 ;
23277 PyObject *swig_obj[1] ;
23278
23279 if (!args) SWIG_fail;
23280 swig_obj[0] = args;
23281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23282 if (!SWIG_IsOK(res1)) {
23283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23284 }
23285 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23286 {
23287 PyThreadState* __tstate = wxPyBeginAllowThreads();
23288 result = (arg1)->GetLongHelp();
23289 wxPyEndAllowThreads(__tstate);
23290 if (PyErr_Occurred()) SWIG_fail;
23291 }
23292 {
23293 #if wxUSE_UNICODE
23294 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23295 #else
23296 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23297 #endif
23298 }
23299 return resultobj;
23300 fail:
23301 return NULL;
23302 }
23303
23304
23305 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23306 PyObject *resultobj = 0;
23307 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23308 bool arg2 ;
23309 bool result;
23310 void *argp1 = 0 ;
23311 int res1 = 0 ;
23312 bool val2 ;
23313 int ecode2 = 0 ;
23314 PyObject * obj0 = 0 ;
23315 PyObject * obj1 = 0 ;
23316 char * kwnames[] = {
23317 (char *) "self",(char *) "enable", NULL
23318 };
23319
23320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23322 if (!SWIG_IsOK(res1)) {
23323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23324 }
23325 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23326 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23327 if (!SWIG_IsOK(ecode2)) {
23328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23329 }
23330 arg2 = static_cast< bool >(val2);
23331 {
23332 PyThreadState* __tstate = wxPyBeginAllowThreads();
23333 result = (bool)(arg1)->Enable(arg2);
23334 wxPyEndAllowThreads(__tstate);
23335 if (PyErr_Occurred()) SWIG_fail;
23336 }
23337 {
23338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23339 }
23340 return resultobj;
23341 fail:
23342 return NULL;
23343 }
23344
23345
23346 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23347 PyObject *resultobj = 0;
23348 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23349 void *argp1 = 0 ;
23350 int res1 = 0 ;
23351 PyObject *swig_obj[1] ;
23352
23353 if (!args) SWIG_fail;
23354 swig_obj[0] = args;
23355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23356 if (!SWIG_IsOK(res1)) {
23357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23358 }
23359 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23360 {
23361 PyThreadState* __tstate = wxPyBeginAllowThreads();
23362 (arg1)->Toggle();
23363 wxPyEndAllowThreads(__tstate);
23364 if (PyErr_Occurred()) SWIG_fail;
23365 }
23366 resultobj = SWIG_Py_Void();
23367 return resultobj;
23368 fail:
23369 return NULL;
23370 }
23371
23372
23373 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23374 PyObject *resultobj = 0;
23375 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23376 bool arg2 ;
23377 bool result;
23378 void *argp1 = 0 ;
23379 int res1 = 0 ;
23380 bool val2 ;
23381 int ecode2 = 0 ;
23382 PyObject * obj0 = 0 ;
23383 PyObject * obj1 = 0 ;
23384 char * kwnames[] = {
23385 (char *) "self",(char *) "toggle", NULL
23386 };
23387
23388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23390 if (!SWIG_IsOK(res1)) {
23391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23392 }
23393 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23394 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23395 if (!SWIG_IsOK(ecode2)) {
23396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23397 }
23398 arg2 = static_cast< bool >(val2);
23399 {
23400 PyThreadState* __tstate = wxPyBeginAllowThreads();
23401 result = (bool)(arg1)->SetToggle(arg2);
23402 wxPyEndAllowThreads(__tstate);
23403 if (PyErr_Occurred()) SWIG_fail;
23404 }
23405 {
23406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23407 }
23408 return resultobj;
23409 fail:
23410 return NULL;
23411 }
23412
23413
23414 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23415 PyObject *resultobj = 0;
23416 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23417 wxString *arg2 = 0 ;
23418 bool result;
23419 void *argp1 = 0 ;
23420 int res1 = 0 ;
23421 bool temp2 = false ;
23422 PyObject * obj0 = 0 ;
23423 PyObject * obj1 = 0 ;
23424 char * kwnames[] = {
23425 (char *) "self",(char *) "help", NULL
23426 };
23427
23428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23430 if (!SWIG_IsOK(res1)) {
23431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23432 }
23433 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23434 {
23435 arg2 = wxString_in_helper(obj1);
23436 if (arg2 == NULL) SWIG_fail;
23437 temp2 = true;
23438 }
23439 {
23440 PyThreadState* __tstate = wxPyBeginAllowThreads();
23441 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23442 wxPyEndAllowThreads(__tstate);
23443 if (PyErr_Occurred()) SWIG_fail;
23444 }
23445 {
23446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23447 }
23448 {
23449 if (temp2)
23450 delete arg2;
23451 }
23452 return resultobj;
23453 fail:
23454 {
23455 if (temp2)
23456 delete arg2;
23457 }
23458 return NULL;
23459 }
23460
23461
23462 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23463 PyObject *resultobj = 0;
23464 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23465 wxString *arg2 = 0 ;
23466 bool result;
23467 void *argp1 = 0 ;
23468 int res1 = 0 ;
23469 bool temp2 = false ;
23470 PyObject * obj0 = 0 ;
23471 PyObject * obj1 = 0 ;
23472 char * kwnames[] = {
23473 (char *) "self",(char *) "help", NULL
23474 };
23475
23476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23478 if (!SWIG_IsOK(res1)) {
23479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23480 }
23481 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23482 {
23483 arg2 = wxString_in_helper(obj1);
23484 if (arg2 == NULL) SWIG_fail;
23485 temp2 = true;
23486 }
23487 {
23488 PyThreadState* __tstate = wxPyBeginAllowThreads();
23489 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23490 wxPyEndAllowThreads(__tstate);
23491 if (PyErr_Occurred()) SWIG_fail;
23492 }
23493 {
23494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23495 }
23496 {
23497 if (temp2)
23498 delete arg2;
23499 }
23500 return resultobj;
23501 fail:
23502 {
23503 if (temp2)
23504 delete arg2;
23505 }
23506 return NULL;
23507 }
23508
23509
23510 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23511 PyObject *resultobj = 0;
23512 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23513 wxBitmap *arg2 = 0 ;
23514 void *argp1 = 0 ;
23515 int res1 = 0 ;
23516 void *argp2 = 0 ;
23517 int res2 = 0 ;
23518 PyObject * obj0 = 0 ;
23519 PyObject * obj1 = 0 ;
23520 char * kwnames[] = {
23521 (char *) "self",(char *) "bmp", NULL
23522 };
23523
23524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23526 if (!SWIG_IsOK(res1)) {
23527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23528 }
23529 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23531 if (!SWIG_IsOK(res2)) {
23532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23533 }
23534 if (!argp2) {
23535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23536 }
23537 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23538 {
23539 PyThreadState* __tstate = wxPyBeginAllowThreads();
23540 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23541 wxPyEndAllowThreads(__tstate);
23542 if (PyErr_Occurred()) SWIG_fail;
23543 }
23544 resultobj = SWIG_Py_Void();
23545 return resultobj;
23546 fail:
23547 return NULL;
23548 }
23549
23550
23551 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23552 PyObject *resultobj = 0;
23553 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23554 wxBitmap *arg2 = 0 ;
23555 void *argp1 = 0 ;
23556 int res1 = 0 ;
23557 void *argp2 = 0 ;
23558 int res2 = 0 ;
23559 PyObject * obj0 = 0 ;
23560 PyObject * obj1 = 0 ;
23561 char * kwnames[] = {
23562 (char *) "self",(char *) "bmp", NULL
23563 };
23564
23565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23567 if (!SWIG_IsOK(res1)) {
23568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23569 }
23570 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23572 if (!SWIG_IsOK(res2)) {
23573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23574 }
23575 if (!argp2) {
23576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23577 }
23578 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23579 {
23580 PyThreadState* __tstate = wxPyBeginAllowThreads();
23581 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23582 wxPyEndAllowThreads(__tstate);
23583 if (PyErr_Occurred()) SWIG_fail;
23584 }
23585 resultobj = SWIG_Py_Void();
23586 return resultobj;
23587 fail:
23588 return NULL;
23589 }
23590
23591
23592 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23593 PyObject *resultobj = 0;
23594 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23595 wxString *arg2 = 0 ;
23596 void *argp1 = 0 ;
23597 int res1 = 0 ;
23598 bool temp2 = false ;
23599 PyObject * obj0 = 0 ;
23600 PyObject * obj1 = 0 ;
23601 char * kwnames[] = {
23602 (char *) "self",(char *) "label", NULL
23603 };
23604
23605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23607 if (!SWIG_IsOK(res1)) {
23608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23609 }
23610 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23611 {
23612 arg2 = wxString_in_helper(obj1);
23613 if (arg2 == NULL) SWIG_fail;
23614 temp2 = true;
23615 }
23616 {
23617 PyThreadState* __tstate = wxPyBeginAllowThreads();
23618 (arg1)->SetLabel((wxString const &)*arg2);
23619 wxPyEndAllowThreads(__tstate);
23620 if (PyErr_Occurred()) SWIG_fail;
23621 }
23622 resultobj = SWIG_Py_Void();
23623 {
23624 if (temp2)
23625 delete arg2;
23626 }
23627 return resultobj;
23628 fail:
23629 {
23630 if (temp2)
23631 delete arg2;
23632 }
23633 return NULL;
23634 }
23635
23636
23637 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23638 PyObject *resultobj = 0;
23639 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23640 void *argp1 = 0 ;
23641 int res1 = 0 ;
23642 PyObject *swig_obj[1] ;
23643
23644 if (!args) SWIG_fail;
23645 swig_obj[0] = args;
23646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23647 if (!SWIG_IsOK(res1)) {
23648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23649 }
23650 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23651 {
23652 PyThreadState* __tstate = wxPyBeginAllowThreads();
23653 (arg1)->Detach();
23654 wxPyEndAllowThreads(__tstate);
23655 if (PyErr_Occurred()) SWIG_fail;
23656 }
23657 resultobj = SWIG_Py_Void();
23658 return resultobj;
23659 fail:
23660 return NULL;
23661 }
23662
23663
23664 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23665 PyObject *resultobj = 0;
23666 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23667 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23668 void *argp1 = 0 ;
23669 int res1 = 0 ;
23670 void *argp2 = 0 ;
23671 int res2 = 0 ;
23672 PyObject * obj0 = 0 ;
23673 PyObject * obj1 = 0 ;
23674 char * kwnames[] = {
23675 (char *) "self",(char *) "tbar", NULL
23676 };
23677
23678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23680 if (!SWIG_IsOK(res1)) {
23681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23682 }
23683 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23685 if (!SWIG_IsOK(res2)) {
23686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23687 }
23688 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23689 {
23690 PyThreadState* __tstate = wxPyBeginAllowThreads();
23691 (arg1)->Attach(arg2);
23692 wxPyEndAllowThreads(__tstate);
23693 if (PyErr_Occurred()) SWIG_fail;
23694 }
23695 resultobj = SWIG_Py_Void();
23696 return resultobj;
23697 fail:
23698 return NULL;
23699 }
23700
23701
23702 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23703 PyObject *resultobj = 0;
23704 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23705 PyObject *result = 0 ;
23706 void *argp1 = 0 ;
23707 int res1 = 0 ;
23708 PyObject *swig_obj[1] ;
23709
23710 if (!args) SWIG_fail;
23711 swig_obj[0] = args;
23712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23713 if (!SWIG_IsOK(res1)) {
23714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23715 }
23716 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23717 {
23718 PyThreadState* __tstate = wxPyBeginAllowThreads();
23719 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23720 wxPyEndAllowThreads(__tstate);
23721 if (PyErr_Occurred()) SWIG_fail;
23722 }
23723 resultobj = result;
23724 return resultobj;
23725 fail:
23726 return NULL;
23727 }
23728
23729
23730 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23731 PyObject *resultobj = 0;
23732 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23733 PyObject *arg2 = (PyObject *) 0 ;
23734 void *argp1 = 0 ;
23735 int res1 = 0 ;
23736 PyObject * obj0 = 0 ;
23737 PyObject * obj1 = 0 ;
23738 char * kwnames[] = {
23739 (char *) "self",(char *) "clientData", NULL
23740 };
23741
23742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23744 if (!SWIG_IsOK(res1)) {
23745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23746 }
23747 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23748 arg2 = obj1;
23749 {
23750 PyThreadState* __tstate = wxPyBeginAllowThreads();
23751 wxToolBarToolBase_SetClientData(arg1,arg2);
23752 wxPyEndAllowThreads(__tstate);
23753 if (PyErr_Occurred()) SWIG_fail;
23754 }
23755 resultobj = SWIG_Py_Void();
23756 return resultobj;
23757 fail:
23758 return NULL;
23759 }
23760
23761
23762 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23763 PyObject *obj;
23764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23765 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23766 return SWIG_Py_Void();
23767 }
23768
23769 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23770 PyObject *resultobj = 0;
23771 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23772 int arg2 ;
23773 wxString *arg3 = 0 ;
23774 wxBitmap *arg4 = 0 ;
23775 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23776 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23777 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23778 wxString const &arg7_defvalue = wxPyEmptyString ;
23779 wxString *arg7 = (wxString *) &arg7_defvalue ;
23780 wxString const &arg8_defvalue = wxPyEmptyString ;
23781 wxString *arg8 = (wxString *) &arg8_defvalue ;
23782 PyObject *arg9 = (PyObject *) NULL ;
23783 wxToolBarToolBase *result = 0 ;
23784 void *argp1 = 0 ;
23785 int res1 = 0 ;
23786 int val2 ;
23787 int ecode2 = 0 ;
23788 bool temp3 = false ;
23789 void *argp4 = 0 ;
23790 int res4 = 0 ;
23791 void *argp5 = 0 ;
23792 int res5 = 0 ;
23793 int val6 ;
23794 int ecode6 = 0 ;
23795 bool temp7 = false ;
23796 bool temp8 = false ;
23797 PyObject * obj0 = 0 ;
23798 PyObject * obj1 = 0 ;
23799 PyObject * obj2 = 0 ;
23800 PyObject * obj3 = 0 ;
23801 PyObject * obj4 = 0 ;
23802 PyObject * obj5 = 0 ;
23803 PyObject * obj6 = 0 ;
23804 PyObject * obj7 = 0 ;
23805 PyObject * obj8 = 0 ;
23806 char * kwnames[] = {
23807 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23808 };
23809
23810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23812 if (!SWIG_IsOK(res1)) {
23813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23814 }
23815 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23816 ecode2 = SWIG_AsVal_int(obj1, &val2);
23817 if (!SWIG_IsOK(ecode2)) {
23818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23819 }
23820 arg2 = static_cast< int >(val2);
23821 {
23822 arg3 = wxString_in_helper(obj2);
23823 if (arg3 == NULL) SWIG_fail;
23824 temp3 = true;
23825 }
23826 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23827 if (!SWIG_IsOK(res4)) {
23828 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23829 }
23830 if (!argp4) {
23831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23832 }
23833 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23834 if (obj4) {
23835 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23836 if (!SWIG_IsOK(res5)) {
23837 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23838 }
23839 if (!argp5) {
23840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23841 }
23842 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23843 }
23844 if (obj5) {
23845 ecode6 = SWIG_AsVal_int(obj5, &val6);
23846 if (!SWIG_IsOK(ecode6)) {
23847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23848 }
23849 arg6 = static_cast< wxItemKind >(val6);
23850 }
23851 if (obj6) {
23852 {
23853 arg7 = wxString_in_helper(obj6);
23854 if (arg7 == NULL) SWIG_fail;
23855 temp7 = true;
23856 }
23857 }
23858 if (obj7) {
23859 {
23860 arg8 = wxString_in_helper(obj7);
23861 if (arg8 == NULL) SWIG_fail;
23862 temp8 = true;
23863 }
23864 }
23865 if (obj8) {
23866 arg9 = obj8;
23867 }
23868 {
23869 PyThreadState* __tstate = wxPyBeginAllowThreads();
23870 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23871 wxPyEndAllowThreads(__tstate);
23872 if (PyErr_Occurred()) SWIG_fail;
23873 }
23874 {
23875 resultobj = wxPyMake_wxObject(result, (bool)0);
23876 }
23877 {
23878 if (temp3)
23879 delete arg3;
23880 }
23881 {
23882 if (temp7)
23883 delete arg7;
23884 }
23885 {
23886 if (temp8)
23887 delete arg8;
23888 }
23889 return resultobj;
23890 fail:
23891 {
23892 if (temp3)
23893 delete arg3;
23894 }
23895 {
23896 if (temp7)
23897 delete arg7;
23898 }
23899 {
23900 if (temp8)
23901 delete arg8;
23902 }
23903 return NULL;
23904 }
23905
23906
23907 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23908 PyObject *resultobj = 0;
23909 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23910 size_t arg2 ;
23911 int arg3 ;
23912 wxString *arg4 = 0 ;
23913 wxBitmap *arg5 = 0 ;
23914 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23915 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23916 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23917 wxString const &arg8_defvalue = wxPyEmptyString ;
23918 wxString *arg8 = (wxString *) &arg8_defvalue ;
23919 wxString const &arg9_defvalue = wxPyEmptyString ;
23920 wxString *arg9 = (wxString *) &arg9_defvalue ;
23921 PyObject *arg10 = (PyObject *) NULL ;
23922 wxToolBarToolBase *result = 0 ;
23923 void *argp1 = 0 ;
23924 int res1 = 0 ;
23925 size_t val2 ;
23926 int ecode2 = 0 ;
23927 int val3 ;
23928 int ecode3 = 0 ;
23929 bool temp4 = false ;
23930 void *argp5 = 0 ;
23931 int res5 = 0 ;
23932 void *argp6 = 0 ;
23933 int res6 = 0 ;
23934 int val7 ;
23935 int ecode7 = 0 ;
23936 bool temp8 = false ;
23937 bool temp9 = false ;
23938 PyObject * obj0 = 0 ;
23939 PyObject * obj1 = 0 ;
23940 PyObject * obj2 = 0 ;
23941 PyObject * obj3 = 0 ;
23942 PyObject * obj4 = 0 ;
23943 PyObject * obj5 = 0 ;
23944 PyObject * obj6 = 0 ;
23945 PyObject * obj7 = 0 ;
23946 PyObject * obj8 = 0 ;
23947 PyObject * obj9 = 0 ;
23948 char * kwnames[] = {
23949 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23950 };
23951
23952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23954 if (!SWIG_IsOK(res1)) {
23955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23956 }
23957 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23958 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23959 if (!SWIG_IsOK(ecode2)) {
23960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23961 }
23962 arg2 = static_cast< size_t >(val2);
23963 ecode3 = SWIG_AsVal_int(obj2, &val3);
23964 if (!SWIG_IsOK(ecode3)) {
23965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23966 }
23967 arg3 = static_cast< int >(val3);
23968 {
23969 arg4 = wxString_in_helper(obj3);
23970 if (arg4 == NULL) SWIG_fail;
23971 temp4 = true;
23972 }
23973 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23974 if (!SWIG_IsOK(res5)) {
23975 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23976 }
23977 if (!argp5) {
23978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23979 }
23980 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23981 if (obj5) {
23982 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23983 if (!SWIG_IsOK(res6)) {
23984 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23985 }
23986 if (!argp6) {
23987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23988 }
23989 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23990 }
23991 if (obj6) {
23992 ecode7 = SWIG_AsVal_int(obj6, &val7);
23993 if (!SWIG_IsOK(ecode7)) {
23994 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23995 }
23996 arg7 = static_cast< wxItemKind >(val7);
23997 }
23998 if (obj7) {
23999 {
24000 arg8 = wxString_in_helper(obj7);
24001 if (arg8 == NULL) SWIG_fail;
24002 temp8 = true;
24003 }
24004 }
24005 if (obj8) {
24006 {
24007 arg9 = wxString_in_helper(obj8);
24008 if (arg9 == NULL) SWIG_fail;
24009 temp9 = true;
24010 }
24011 }
24012 if (obj9) {
24013 arg10 = obj9;
24014 }
24015 {
24016 PyThreadState* __tstate = wxPyBeginAllowThreads();
24017 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24018 wxPyEndAllowThreads(__tstate);
24019 if (PyErr_Occurred()) SWIG_fail;
24020 }
24021 {
24022 resultobj = wxPyMake_wxObject(result, (bool)0);
24023 }
24024 {
24025 if (temp4)
24026 delete arg4;
24027 }
24028 {
24029 if (temp8)
24030 delete arg8;
24031 }
24032 {
24033 if (temp9)
24034 delete arg9;
24035 }
24036 return resultobj;
24037 fail:
24038 {
24039 if (temp4)
24040 delete arg4;
24041 }
24042 {
24043 if (temp8)
24044 delete arg8;
24045 }
24046 {
24047 if (temp9)
24048 delete arg9;
24049 }
24050 return NULL;
24051 }
24052
24053
24054 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24055 PyObject *resultobj = 0;
24056 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24057 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24058 wxToolBarToolBase *result = 0 ;
24059 void *argp1 = 0 ;
24060 int res1 = 0 ;
24061 void *argp2 = 0 ;
24062 int res2 = 0 ;
24063 PyObject * obj0 = 0 ;
24064 PyObject * obj1 = 0 ;
24065 char * kwnames[] = {
24066 (char *) "self",(char *) "tool", NULL
24067 };
24068
24069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24071 if (!SWIG_IsOK(res1)) {
24072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24073 }
24074 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24075 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24076 if (!SWIG_IsOK(res2)) {
24077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24078 }
24079 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24080 {
24081 PyThreadState* __tstate = wxPyBeginAllowThreads();
24082 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24083 wxPyEndAllowThreads(__tstate);
24084 if (PyErr_Occurred()) SWIG_fail;
24085 }
24086 {
24087 resultobj = wxPyMake_wxObject(result, (bool)0);
24088 }
24089 return resultobj;
24090 fail:
24091 return NULL;
24092 }
24093
24094
24095 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24096 PyObject *resultobj = 0;
24097 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24098 size_t arg2 ;
24099 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24100 wxToolBarToolBase *result = 0 ;
24101 void *argp1 = 0 ;
24102 int res1 = 0 ;
24103 size_t val2 ;
24104 int ecode2 = 0 ;
24105 void *argp3 = 0 ;
24106 int res3 = 0 ;
24107 PyObject * obj0 = 0 ;
24108 PyObject * obj1 = 0 ;
24109 PyObject * obj2 = 0 ;
24110 char * kwnames[] = {
24111 (char *) "self",(char *) "pos",(char *) "tool", NULL
24112 };
24113
24114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24116 if (!SWIG_IsOK(res1)) {
24117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24118 }
24119 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24120 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24121 if (!SWIG_IsOK(ecode2)) {
24122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24123 }
24124 arg2 = static_cast< size_t >(val2);
24125 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24126 if (!SWIG_IsOK(res3)) {
24127 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24128 }
24129 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24130 {
24131 PyThreadState* __tstate = wxPyBeginAllowThreads();
24132 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24133 wxPyEndAllowThreads(__tstate);
24134 if (PyErr_Occurred()) SWIG_fail;
24135 }
24136 {
24137 resultobj = wxPyMake_wxObject(result, (bool)0);
24138 }
24139 return resultobj;
24140 fail:
24141 return NULL;
24142 }
24143
24144
24145 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24146 PyObject *resultobj = 0;
24147 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24148 wxControl *arg2 = (wxControl *) 0 ;
24149 wxToolBarToolBase *result = 0 ;
24150 void *argp1 = 0 ;
24151 int res1 = 0 ;
24152 void *argp2 = 0 ;
24153 int res2 = 0 ;
24154 PyObject * obj0 = 0 ;
24155 PyObject * obj1 = 0 ;
24156 char * kwnames[] = {
24157 (char *) "self",(char *) "control", NULL
24158 };
24159
24160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24162 if (!SWIG_IsOK(res1)) {
24163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24164 }
24165 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24166 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24167 if (!SWIG_IsOK(res2)) {
24168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24169 }
24170 arg2 = reinterpret_cast< wxControl * >(argp2);
24171 {
24172 PyThreadState* __tstate = wxPyBeginAllowThreads();
24173 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24174 wxPyEndAllowThreads(__tstate);
24175 if (PyErr_Occurred()) SWIG_fail;
24176 }
24177 {
24178 resultobj = wxPyMake_wxObject(result, (bool)0);
24179 }
24180 return resultobj;
24181 fail:
24182 return NULL;
24183 }
24184
24185
24186 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24187 PyObject *resultobj = 0;
24188 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24189 size_t arg2 ;
24190 wxControl *arg3 = (wxControl *) 0 ;
24191 wxToolBarToolBase *result = 0 ;
24192 void *argp1 = 0 ;
24193 int res1 = 0 ;
24194 size_t val2 ;
24195 int ecode2 = 0 ;
24196 void *argp3 = 0 ;
24197 int res3 = 0 ;
24198 PyObject * obj0 = 0 ;
24199 PyObject * obj1 = 0 ;
24200 PyObject * obj2 = 0 ;
24201 char * kwnames[] = {
24202 (char *) "self",(char *) "pos",(char *) "control", NULL
24203 };
24204
24205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24207 if (!SWIG_IsOK(res1)) {
24208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24209 }
24210 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24211 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24212 if (!SWIG_IsOK(ecode2)) {
24213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24214 }
24215 arg2 = static_cast< size_t >(val2);
24216 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24217 if (!SWIG_IsOK(res3)) {
24218 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24219 }
24220 arg3 = reinterpret_cast< wxControl * >(argp3);
24221 {
24222 PyThreadState* __tstate = wxPyBeginAllowThreads();
24223 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24224 wxPyEndAllowThreads(__tstate);
24225 if (PyErr_Occurred()) SWIG_fail;
24226 }
24227 {
24228 resultobj = wxPyMake_wxObject(result, (bool)0);
24229 }
24230 return resultobj;
24231 fail:
24232 return NULL;
24233 }
24234
24235
24236 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24237 PyObject *resultobj = 0;
24238 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24239 int arg2 ;
24240 wxControl *result = 0 ;
24241 void *argp1 = 0 ;
24242 int res1 = 0 ;
24243 int val2 ;
24244 int ecode2 = 0 ;
24245 PyObject * obj0 = 0 ;
24246 PyObject * obj1 = 0 ;
24247 char * kwnames[] = {
24248 (char *) "self",(char *) "id", NULL
24249 };
24250
24251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24253 if (!SWIG_IsOK(res1)) {
24254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24255 }
24256 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24257 ecode2 = SWIG_AsVal_int(obj1, &val2);
24258 if (!SWIG_IsOK(ecode2)) {
24259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24260 }
24261 arg2 = static_cast< int >(val2);
24262 {
24263 PyThreadState* __tstate = wxPyBeginAllowThreads();
24264 result = (wxControl *)(arg1)->FindControl(arg2);
24265 wxPyEndAllowThreads(__tstate);
24266 if (PyErr_Occurred()) SWIG_fail;
24267 }
24268 {
24269 resultobj = wxPyMake_wxObject(result, 0);
24270 }
24271 return resultobj;
24272 fail:
24273 return NULL;
24274 }
24275
24276
24277 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24278 PyObject *resultobj = 0;
24279 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24280 wxToolBarToolBase *result = 0 ;
24281 void *argp1 = 0 ;
24282 int res1 = 0 ;
24283 PyObject *swig_obj[1] ;
24284
24285 if (!args) SWIG_fail;
24286 swig_obj[0] = args;
24287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24288 if (!SWIG_IsOK(res1)) {
24289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24290 }
24291 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24292 {
24293 PyThreadState* __tstate = wxPyBeginAllowThreads();
24294 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24295 wxPyEndAllowThreads(__tstate);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
24298 {
24299 resultobj = wxPyMake_wxObject(result, (bool)0);
24300 }
24301 return resultobj;
24302 fail:
24303 return NULL;
24304 }
24305
24306
24307 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24308 PyObject *resultobj = 0;
24309 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24310 size_t arg2 ;
24311 wxToolBarToolBase *result = 0 ;
24312 void *argp1 = 0 ;
24313 int res1 = 0 ;
24314 size_t val2 ;
24315 int ecode2 = 0 ;
24316 PyObject * obj0 = 0 ;
24317 PyObject * obj1 = 0 ;
24318 char * kwnames[] = {
24319 (char *) "self",(char *) "pos", NULL
24320 };
24321
24322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24324 if (!SWIG_IsOK(res1)) {
24325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24326 }
24327 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24328 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24329 if (!SWIG_IsOK(ecode2)) {
24330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24331 }
24332 arg2 = static_cast< size_t >(val2);
24333 {
24334 PyThreadState* __tstate = wxPyBeginAllowThreads();
24335 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24336 wxPyEndAllowThreads(__tstate);
24337 if (PyErr_Occurred()) SWIG_fail;
24338 }
24339 {
24340 resultobj = wxPyMake_wxObject(result, (bool)0);
24341 }
24342 return resultobj;
24343 fail:
24344 return NULL;
24345 }
24346
24347
24348 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24349 PyObject *resultobj = 0;
24350 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24351 int arg2 ;
24352 wxToolBarToolBase *result = 0 ;
24353 void *argp1 = 0 ;
24354 int res1 = 0 ;
24355 int val2 ;
24356 int ecode2 = 0 ;
24357 PyObject * obj0 = 0 ;
24358 PyObject * obj1 = 0 ;
24359 char * kwnames[] = {
24360 (char *) "self",(char *) "id", NULL
24361 };
24362
24363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24365 if (!SWIG_IsOK(res1)) {
24366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24367 }
24368 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24369 ecode2 = SWIG_AsVal_int(obj1, &val2);
24370 if (!SWIG_IsOK(ecode2)) {
24371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24372 }
24373 arg2 = static_cast< int >(val2);
24374 {
24375 PyThreadState* __tstate = wxPyBeginAllowThreads();
24376 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24377 wxPyEndAllowThreads(__tstate);
24378 if (PyErr_Occurred()) SWIG_fail;
24379 }
24380 {
24381 resultobj = wxPyMake_wxObject(result, (bool)0);
24382 }
24383 return resultobj;
24384 fail:
24385 return NULL;
24386 }
24387
24388
24389 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24390 PyObject *resultobj = 0;
24391 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24392 size_t arg2 ;
24393 bool result;
24394 void *argp1 = 0 ;
24395 int res1 = 0 ;
24396 size_t val2 ;
24397 int ecode2 = 0 ;
24398 PyObject * obj0 = 0 ;
24399 PyObject * obj1 = 0 ;
24400 char * kwnames[] = {
24401 (char *) "self",(char *) "pos", NULL
24402 };
24403
24404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24406 if (!SWIG_IsOK(res1)) {
24407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24408 }
24409 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24410 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24411 if (!SWIG_IsOK(ecode2)) {
24412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24413 }
24414 arg2 = static_cast< size_t >(val2);
24415 {
24416 PyThreadState* __tstate = wxPyBeginAllowThreads();
24417 result = (bool)(arg1)->DeleteToolByPos(arg2);
24418 wxPyEndAllowThreads(__tstate);
24419 if (PyErr_Occurred()) SWIG_fail;
24420 }
24421 {
24422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24423 }
24424 return resultobj;
24425 fail:
24426 return NULL;
24427 }
24428
24429
24430 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24431 PyObject *resultobj = 0;
24432 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24433 int arg2 ;
24434 bool result;
24435 void *argp1 = 0 ;
24436 int res1 = 0 ;
24437 int val2 ;
24438 int ecode2 = 0 ;
24439 PyObject * obj0 = 0 ;
24440 PyObject * obj1 = 0 ;
24441 char * kwnames[] = {
24442 (char *) "self",(char *) "id", NULL
24443 };
24444
24445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24447 if (!SWIG_IsOK(res1)) {
24448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24449 }
24450 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24451 ecode2 = SWIG_AsVal_int(obj1, &val2);
24452 if (!SWIG_IsOK(ecode2)) {
24453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24454 }
24455 arg2 = static_cast< int >(val2);
24456 {
24457 PyThreadState* __tstate = wxPyBeginAllowThreads();
24458 result = (bool)(arg1)->DeleteTool(arg2);
24459 wxPyEndAllowThreads(__tstate);
24460 if (PyErr_Occurred()) SWIG_fail;
24461 }
24462 {
24463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24464 }
24465 return resultobj;
24466 fail:
24467 return NULL;
24468 }
24469
24470
24471 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24472 PyObject *resultobj = 0;
24473 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24474 void *argp1 = 0 ;
24475 int res1 = 0 ;
24476 PyObject *swig_obj[1] ;
24477
24478 if (!args) SWIG_fail;
24479 swig_obj[0] = args;
24480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24481 if (!SWIG_IsOK(res1)) {
24482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24483 }
24484 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24485 {
24486 PyThreadState* __tstate = wxPyBeginAllowThreads();
24487 (arg1)->ClearTools();
24488 wxPyEndAllowThreads(__tstate);
24489 if (PyErr_Occurred()) SWIG_fail;
24490 }
24491 resultobj = SWIG_Py_Void();
24492 return resultobj;
24493 fail:
24494 return NULL;
24495 }
24496
24497
24498 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24499 PyObject *resultobj = 0;
24500 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24501 bool result;
24502 void *argp1 = 0 ;
24503 int res1 = 0 ;
24504 PyObject *swig_obj[1] ;
24505
24506 if (!args) SWIG_fail;
24507 swig_obj[0] = args;
24508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24509 if (!SWIG_IsOK(res1)) {
24510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24511 }
24512 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24513 {
24514 PyThreadState* __tstate = wxPyBeginAllowThreads();
24515 result = (bool)(arg1)->Realize();
24516 wxPyEndAllowThreads(__tstate);
24517 if (PyErr_Occurred()) SWIG_fail;
24518 }
24519 {
24520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24521 }
24522 return resultobj;
24523 fail:
24524 return NULL;
24525 }
24526
24527
24528 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24529 PyObject *resultobj = 0;
24530 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24531 int arg2 ;
24532 bool arg3 ;
24533 void *argp1 = 0 ;
24534 int res1 = 0 ;
24535 int val2 ;
24536 int ecode2 = 0 ;
24537 bool val3 ;
24538 int ecode3 = 0 ;
24539 PyObject * obj0 = 0 ;
24540 PyObject * obj1 = 0 ;
24541 PyObject * obj2 = 0 ;
24542 char * kwnames[] = {
24543 (char *) "self",(char *) "id",(char *) "enable", NULL
24544 };
24545
24546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24548 if (!SWIG_IsOK(res1)) {
24549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24550 }
24551 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24552 ecode2 = SWIG_AsVal_int(obj1, &val2);
24553 if (!SWIG_IsOK(ecode2)) {
24554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24555 }
24556 arg2 = static_cast< int >(val2);
24557 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24558 if (!SWIG_IsOK(ecode3)) {
24559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24560 }
24561 arg3 = static_cast< bool >(val3);
24562 {
24563 PyThreadState* __tstate = wxPyBeginAllowThreads();
24564 (arg1)->EnableTool(arg2,arg3);
24565 wxPyEndAllowThreads(__tstate);
24566 if (PyErr_Occurred()) SWIG_fail;
24567 }
24568 resultobj = SWIG_Py_Void();
24569 return resultobj;
24570 fail:
24571 return NULL;
24572 }
24573
24574
24575 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24576 PyObject *resultobj = 0;
24577 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24578 int arg2 ;
24579 bool arg3 ;
24580 void *argp1 = 0 ;
24581 int res1 = 0 ;
24582 int val2 ;
24583 int ecode2 = 0 ;
24584 bool val3 ;
24585 int ecode3 = 0 ;
24586 PyObject * obj0 = 0 ;
24587 PyObject * obj1 = 0 ;
24588 PyObject * obj2 = 0 ;
24589 char * kwnames[] = {
24590 (char *) "self",(char *) "id",(char *) "toggle", NULL
24591 };
24592
24593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24595 if (!SWIG_IsOK(res1)) {
24596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24597 }
24598 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24599 ecode2 = SWIG_AsVal_int(obj1, &val2);
24600 if (!SWIG_IsOK(ecode2)) {
24601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24602 }
24603 arg2 = static_cast< int >(val2);
24604 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24605 if (!SWIG_IsOK(ecode3)) {
24606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24607 }
24608 arg3 = static_cast< bool >(val3);
24609 {
24610 PyThreadState* __tstate = wxPyBeginAllowThreads();
24611 (arg1)->ToggleTool(arg2,arg3);
24612 wxPyEndAllowThreads(__tstate);
24613 if (PyErr_Occurred()) SWIG_fail;
24614 }
24615 resultobj = SWIG_Py_Void();
24616 return resultobj;
24617 fail:
24618 return NULL;
24619 }
24620
24621
24622 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24623 PyObject *resultobj = 0;
24624 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24625 int arg2 ;
24626 bool arg3 ;
24627 void *argp1 = 0 ;
24628 int res1 = 0 ;
24629 int val2 ;
24630 int ecode2 = 0 ;
24631 bool val3 ;
24632 int ecode3 = 0 ;
24633 PyObject * obj0 = 0 ;
24634 PyObject * obj1 = 0 ;
24635 PyObject * obj2 = 0 ;
24636 char * kwnames[] = {
24637 (char *) "self",(char *) "id",(char *) "toggle", NULL
24638 };
24639
24640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24642 if (!SWIG_IsOK(res1)) {
24643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24644 }
24645 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24646 ecode2 = SWIG_AsVal_int(obj1, &val2);
24647 if (!SWIG_IsOK(ecode2)) {
24648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24649 }
24650 arg2 = static_cast< int >(val2);
24651 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24652 if (!SWIG_IsOK(ecode3)) {
24653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24654 }
24655 arg3 = static_cast< bool >(val3);
24656 {
24657 PyThreadState* __tstate = wxPyBeginAllowThreads();
24658 (arg1)->SetToggle(arg2,arg3);
24659 wxPyEndAllowThreads(__tstate);
24660 if (PyErr_Occurred()) SWIG_fail;
24661 }
24662 resultobj = SWIG_Py_Void();
24663 return resultobj;
24664 fail:
24665 return NULL;
24666 }
24667
24668
24669 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24670 PyObject *resultobj = 0;
24671 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24672 int arg2 ;
24673 PyObject *result = 0 ;
24674 void *argp1 = 0 ;
24675 int res1 = 0 ;
24676 int val2 ;
24677 int ecode2 = 0 ;
24678 PyObject * obj0 = 0 ;
24679 PyObject * obj1 = 0 ;
24680 char * kwnames[] = {
24681 (char *) "self",(char *) "id", NULL
24682 };
24683
24684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24686 if (!SWIG_IsOK(res1)) {
24687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24688 }
24689 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24690 ecode2 = SWIG_AsVal_int(obj1, &val2);
24691 if (!SWIG_IsOK(ecode2)) {
24692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24693 }
24694 arg2 = static_cast< int >(val2);
24695 {
24696 PyThreadState* __tstate = wxPyBeginAllowThreads();
24697 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24698 wxPyEndAllowThreads(__tstate);
24699 if (PyErr_Occurred()) SWIG_fail;
24700 }
24701 resultobj = result;
24702 return resultobj;
24703 fail:
24704 return NULL;
24705 }
24706
24707
24708 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24709 PyObject *resultobj = 0;
24710 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24711 int arg2 ;
24712 PyObject *arg3 = (PyObject *) 0 ;
24713 void *argp1 = 0 ;
24714 int res1 = 0 ;
24715 int val2 ;
24716 int ecode2 = 0 ;
24717 PyObject * obj0 = 0 ;
24718 PyObject * obj1 = 0 ;
24719 PyObject * obj2 = 0 ;
24720 char * kwnames[] = {
24721 (char *) "self",(char *) "id",(char *) "clientData", NULL
24722 };
24723
24724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24726 if (!SWIG_IsOK(res1)) {
24727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24728 }
24729 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24730 ecode2 = SWIG_AsVal_int(obj1, &val2);
24731 if (!SWIG_IsOK(ecode2)) {
24732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24733 }
24734 arg2 = static_cast< int >(val2);
24735 arg3 = obj2;
24736 {
24737 PyThreadState* __tstate = wxPyBeginAllowThreads();
24738 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24739 wxPyEndAllowThreads(__tstate);
24740 if (PyErr_Occurred()) SWIG_fail;
24741 }
24742 resultobj = SWIG_Py_Void();
24743 return resultobj;
24744 fail:
24745 return NULL;
24746 }
24747
24748
24749 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24750 PyObject *resultobj = 0;
24751 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24752 int arg2 ;
24753 int result;
24754 void *argp1 = 0 ;
24755 int res1 = 0 ;
24756 int val2 ;
24757 int ecode2 = 0 ;
24758 PyObject * obj0 = 0 ;
24759 PyObject * obj1 = 0 ;
24760 char * kwnames[] = {
24761 (char *) "self",(char *) "id", NULL
24762 };
24763
24764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24766 if (!SWIG_IsOK(res1)) {
24767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24768 }
24769 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24770 ecode2 = SWIG_AsVal_int(obj1, &val2);
24771 if (!SWIG_IsOK(ecode2)) {
24772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24773 }
24774 arg2 = static_cast< int >(val2);
24775 {
24776 PyThreadState* __tstate = wxPyBeginAllowThreads();
24777 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24778 wxPyEndAllowThreads(__tstate);
24779 if (PyErr_Occurred()) SWIG_fail;
24780 }
24781 resultobj = SWIG_From_int(static_cast< int >(result));
24782 return resultobj;
24783 fail:
24784 return NULL;
24785 }
24786
24787
24788 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24789 PyObject *resultobj = 0;
24790 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24791 int arg2 ;
24792 bool result;
24793 void *argp1 = 0 ;
24794 int res1 = 0 ;
24795 int val2 ;
24796 int ecode2 = 0 ;
24797 PyObject * obj0 = 0 ;
24798 PyObject * obj1 = 0 ;
24799 char * kwnames[] = {
24800 (char *) "self",(char *) "id", NULL
24801 };
24802
24803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24805 if (!SWIG_IsOK(res1)) {
24806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24807 }
24808 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24809 ecode2 = SWIG_AsVal_int(obj1, &val2);
24810 if (!SWIG_IsOK(ecode2)) {
24811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24812 }
24813 arg2 = static_cast< int >(val2);
24814 {
24815 PyThreadState* __tstate = wxPyBeginAllowThreads();
24816 result = (bool)(arg1)->GetToolState(arg2);
24817 wxPyEndAllowThreads(__tstate);
24818 if (PyErr_Occurred()) SWIG_fail;
24819 }
24820 {
24821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24822 }
24823 return resultobj;
24824 fail:
24825 return NULL;
24826 }
24827
24828
24829 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24830 PyObject *resultobj = 0;
24831 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24832 int arg2 ;
24833 bool result;
24834 void *argp1 = 0 ;
24835 int res1 = 0 ;
24836 int val2 ;
24837 int ecode2 = 0 ;
24838 PyObject * obj0 = 0 ;
24839 PyObject * obj1 = 0 ;
24840 char * kwnames[] = {
24841 (char *) "self",(char *) "id", NULL
24842 };
24843
24844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24846 if (!SWIG_IsOK(res1)) {
24847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24848 }
24849 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24850 ecode2 = SWIG_AsVal_int(obj1, &val2);
24851 if (!SWIG_IsOK(ecode2)) {
24852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24853 }
24854 arg2 = static_cast< int >(val2);
24855 {
24856 PyThreadState* __tstate = wxPyBeginAllowThreads();
24857 result = (bool)(arg1)->GetToolEnabled(arg2);
24858 wxPyEndAllowThreads(__tstate);
24859 if (PyErr_Occurred()) SWIG_fail;
24860 }
24861 {
24862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24863 }
24864 return resultobj;
24865 fail:
24866 return NULL;
24867 }
24868
24869
24870 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24871 PyObject *resultobj = 0;
24872 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24873 int arg2 ;
24874 wxString *arg3 = 0 ;
24875 void *argp1 = 0 ;
24876 int res1 = 0 ;
24877 int val2 ;
24878 int ecode2 = 0 ;
24879 bool temp3 = false ;
24880 PyObject * obj0 = 0 ;
24881 PyObject * obj1 = 0 ;
24882 PyObject * obj2 = 0 ;
24883 char * kwnames[] = {
24884 (char *) "self",(char *) "id",(char *) "helpString", NULL
24885 };
24886
24887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24889 if (!SWIG_IsOK(res1)) {
24890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24891 }
24892 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24893 ecode2 = SWIG_AsVal_int(obj1, &val2);
24894 if (!SWIG_IsOK(ecode2)) {
24895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24896 }
24897 arg2 = static_cast< int >(val2);
24898 {
24899 arg3 = wxString_in_helper(obj2);
24900 if (arg3 == NULL) SWIG_fail;
24901 temp3 = true;
24902 }
24903 {
24904 PyThreadState* __tstate = wxPyBeginAllowThreads();
24905 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24906 wxPyEndAllowThreads(__tstate);
24907 if (PyErr_Occurred()) SWIG_fail;
24908 }
24909 resultobj = SWIG_Py_Void();
24910 {
24911 if (temp3)
24912 delete arg3;
24913 }
24914 return resultobj;
24915 fail:
24916 {
24917 if (temp3)
24918 delete arg3;
24919 }
24920 return NULL;
24921 }
24922
24923
24924 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24925 PyObject *resultobj = 0;
24926 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24927 int arg2 ;
24928 wxString result;
24929 void *argp1 = 0 ;
24930 int res1 = 0 ;
24931 int val2 ;
24932 int ecode2 = 0 ;
24933 PyObject * obj0 = 0 ;
24934 PyObject * obj1 = 0 ;
24935 char * kwnames[] = {
24936 (char *) "self",(char *) "id", NULL
24937 };
24938
24939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24941 if (!SWIG_IsOK(res1)) {
24942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24943 }
24944 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24945 ecode2 = SWIG_AsVal_int(obj1, &val2);
24946 if (!SWIG_IsOK(ecode2)) {
24947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24948 }
24949 arg2 = static_cast< int >(val2);
24950 {
24951 PyThreadState* __tstate = wxPyBeginAllowThreads();
24952 result = (arg1)->GetToolShortHelp(arg2);
24953 wxPyEndAllowThreads(__tstate);
24954 if (PyErr_Occurred()) SWIG_fail;
24955 }
24956 {
24957 #if wxUSE_UNICODE
24958 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24959 #else
24960 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24961 #endif
24962 }
24963 return resultobj;
24964 fail:
24965 return NULL;
24966 }
24967
24968
24969 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24970 PyObject *resultobj = 0;
24971 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24972 int arg2 ;
24973 wxString *arg3 = 0 ;
24974 void *argp1 = 0 ;
24975 int res1 = 0 ;
24976 int val2 ;
24977 int ecode2 = 0 ;
24978 bool temp3 = false ;
24979 PyObject * obj0 = 0 ;
24980 PyObject * obj1 = 0 ;
24981 PyObject * obj2 = 0 ;
24982 char * kwnames[] = {
24983 (char *) "self",(char *) "id",(char *) "helpString", NULL
24984 };
24985
24986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24988 if (!SWIG_IsOK(res1)) {
24989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24990 }
24991 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24992 ecode2 = SWIG_AsVal_int(obj1, &val2);
24993 if (!SWIG_IsOK(ecode2)) {
24994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24995 }
24996 arg2 = static_cast< int >(val2);
24997 {
24998 arg3 = wxString_in_helper(obj2);
24999 if (arg3 == NULL) SWIG_fail;
25000 temp3 = true;
25001 }
25002 {
25003 PyThreadState* __tstate = wxPyBeginAllowThreads();
25004 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25005 wxPyEndAllowThreads(__tstate);
25006 if (PyErr_Occurred()) SWIG_fail;
25007 }
25008 resultobj = SWIG_Py_Void();
25009 {
25010 if (temp3)
25011 delete arg3;
25012 }
25013 return resultobj;
25014 fail:
25015 {
25016 if (temp3)
25017 delete arg3;
25018 }
25019 return NULL;
25020 }
25021
25022
25023 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25024 PyObject *resultobj = 0;
25025 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25026 int arg2 ;
25027 wxString result;
25028 void *argp1 = 0 ;
25029 int res1 = 0 ;
25030 int val2 ;
25031 int ecode2 = 0 ;
25032 PyObject * obj0 = 0 ;
25033 PyObject * obj1 = 0 ;
25034 char * kwnames[] = {
25035 (char *) "self",(char *) "id", NULL
25036 };
25037
25038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25040 if (!SWIG_IsOK(res1)) {
25041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25042 }
25043 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25044 ecode2 = SWIG_AsVal_int(obj1, &val2);
25045 if (!SWIG_IsOK(ecode2)) {
25046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25047 }
25048 arg2 = static_cast< int >(val2);
25049 {
25050 PyThreadState* __tstate = wxPyBeginAllowThreads();
25051 result = (arg1)->GetToolLongHelp(arg2);
25052 wxPyEndAllowThreads(__tstate);
25053 if (PyErr_Occurred()) SWIG_fail;
25054 }
25055 {
25056 #if wxUSE_UNICODE
25057 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25058 #else
25059 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25060 #endif
25061 }
25062 return resultobj;
25063 fail:
25064 return NULL;
25065 }
25066
25067
25068 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25069 PyObject *resultobj = 0;
25070 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25071 int arg2 ;
25072 int arg3 ;
25073 void *argp1 = 0 ;
25074 int res1 = 0 ;
25075 int val2 ;
25076 int ecode2 = 0 ;
25077 int val3 ;
25078 int ecode3 = 0 ;
25079 PyObject * obj0 = 0 ;
25080 PyObject * obj1 = 0 ;
25081 PyObject * obj2 = 0 ;
25082 char * kwnames[] = {
25083 (char *) "self",(char *) "x",(char *) "y", NULL
25084 };
25085
25086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25088 if (!SWIG_IsOK(res1)) {
25089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25090 }
25091 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25092 ecode2 = SWIG_AsVal_int(obj1, &val2);
25093 if (!SWIG_IsOK(ecode2)) {
25094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25095 }
25096 arg2 = static_cast< int >(val2);
25097 ecode3 = SWIG_AsVal_int(obj2, &val3);
25098 if (!SWIG_IsOK(ecode3)) {
25099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25100 }
25101 arg3 = static_cast< int >(val3);
25102 {
25103 PyThreadState* __tstate = wxPyBeginAllowThreads();
25104 (arg1)->SetMargins(arg2,arg3);
25105 wxPyEndAllowThreads(__tstate);
25106 if (PyErr_Occurred()) SWIG_fail;
25107 }
25108 resultobj = SWIG_Py_Void();
25109 return resultobj;
25110 fail:
25111 return NULL;
25112 }
25113
25114
25115 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25116 PyObject *resultobj = 0;
25117 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25118 wxSize *arg2 = 0 ;
25119 void *argp1 = 0 ;
25120 int res1 = 0 ;
25121 wxSize temp2 ;
25122 PyObject * obj0 = 0 ;
25123 PyObject * obj1 = 0 ;
25124 char * kwnames[] = {
25125 (char *) "self",(char *) "size", NULL
25126 };
25127
25128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25130 if (!SWIG_IsOK(res1)) {
25131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25132 }
25133 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25134 {
25135 arg2 = &temp2;
25136 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25137 }
25138 {
25139 PyThreadState* __tstate = wxPyBeginAllowThreads();
25140 (arg1)->SetMargins((wxSize const &)*arg2);
25141 wxPyEndAllowThreads(__tstate);
25142 if (PyErr_Occurred()) SWIG_fail;
25143 }
25144 resultobj = SWIG_Py_Void();
25145 return resultobj;
25146 fail:
25147 return NULL;
25148 }
25149
25150
25151 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25152 PyObject *resultobj = 0;
25153 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25154 int arg2 ;
25155 void *argp1 = 0 ;
25156 int res1 = 0 ;
25157 int val2 ;
25158 int ecode2 = 0 ;
25159 PyObject * obj0 = 0 ;
25160 PyObject * obj1 = 0 ;
25161 char * kwnames[] = {
25162 (char *) "self",(char *) "packing", NULL
25163 };
25164
25165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25167 if (!SWIG_IsOK(res1)) {
25168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25169 }
25170 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25171 ecode2 = SWIG_AsVal_int(obj1, &val2);
25172 if (!SWIG_IsOK(ecode2)) {
25173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25174 }
25175 arg2 = static_cast< int >(val2);
25176 {
25177 PyThreadState* __tstate = wxPyBeginAllowThreads();
25178 (arg1)->SetToolPacking(arg2);
25179 wxPyEndAllowThreads(__tstate);
25180 if (PyErr_Occurred()) SWIG_fail;
25181 }
25182 resultobj = SWIG_Py_Void();
25183 return resultobj;
25184 fail:
25185 return NULL;
25186 }
25187
25188
25189 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25190 PyObject *resultobj = 0;
25191 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25192 int arg2 ;
25193 void *argp1 = 0 ;
25194 int res1 = 0 ;
25195 int val2 ;
25196 int ecode2 = 0 ;
25197 PyObject * obj0 = 0 ;
25198 PyObject * obj1 = 0 ;
25199 char * kwnames[] = {
25200 (char *) "self",(char *) "separation", NULL
25201 };
25202
25203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25205 if (!SWIG_IsOK(res1)) {
25206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25207 }
25208 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25209 ecode2 = SWIG_AsVal_int(obj1, &val2);
25210 if (!SWIG_IsOK(ecode2)) {
25211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25212 }
25213 arg2 = static_cast< int >(val2);
25214 {
25215 PyThreadState* __tstate = wxPyBeginAllowThreads();
25216 (arg1)->SetToolSeparation(arg2);
25217 wxPyEndAllowThreads(__tstate);
25218 if (PyErr_Occurred()) SWIG_fail;
25219 }
25220 resultobj = SWIG_Py_Void();
25221 return resultobj;
25222 fail:
25223 return NULL;
25224 }
25225
25226
25227 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25228 PyObject *resultobj = 0;
25229 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25230 wxSize result;
25231 void *argp1 = 0 ;
25232 int res1 = 0 ;
25233 PyObject *swig_obj[1] ;
25234
25235 if (!args) SWIG_fail;
25236 swig_obj[0] = args;
25237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25238 if (!SWIG_IsOK(res1)) {
25239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25240 }
25241 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25242 {
25243 PyThreadState* __tstate = wxPyBeginAllowThreads();
25244 result = (arg1)->GetToolMargins();
25245 wxPyEndAllowThreads(__tstate);
25246 if (PyErr_Occurred()) SWIG_fail;
25247 }
25248 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25249 return resultobj;
25250 fail:
25251 return NULL;
25252 }
25253
25254
25255 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25256 PyObject *resultobj = 0;
25257 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25258 wxSize result;
25259 void *argp1 = 0 ;
25260 int res1 = 0 ;
25261 PyObject *swig_obj[1] ;
25262
25263 if (!args) SWIG_fail;
25264 swig_obj[0] = args;
25265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25266 if (!SWIG_IsOK(res1)) {
25267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25268 }
25269 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25270 {
25271 PyThreadState* __tstate = wxPyBeginAllowThreads();
25272 result = (arg1)->GetMargins();
25273 wxPyEndAllowThreads(__tstate);
25274 if (PyErr_Occurred()) SWIG_fail;
25275 }
25276 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25277 return resultobj;
25278 fail:
25279 return NULL;
25280 }
25281
25282
25283 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25284 PyObject *resultobj = 0;
25285 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25286 int result;
25287 void *argp1 = 0 ;
25288 int res1 = 0 ;
25289 PyObject *swig_obj[1] ;
25290
25291 if (!args) SWIG_fail;
25292 swig_obj[0] = args;
25293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25294 if (!SWIG_IsOK(res1)) {
25295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25296 }
25297 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25298 {
25299 PyThreadState* __tstate = wxPyBeginAllowThreads();
25300 result = (int)(arg1)->GetToolPacking();
25301 wxPyEndAllowThreads(__tstate);
25302 if (PyErr_Occurred()) SWIG_fail;
25303 }
25304 resultobj = SWIG_From_int(static_cast< int >(result));
25305 return resultobj;
25306 fail:
25307 return NULL;
25308 }
25309
25310
25311 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25312 PyObject *resultobj = 0;
25313 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25314 int result;
25315 void *argp1 = 0 ;
25316 int res1 = 0 ;
25317 PyObject *swig_obj[1] ;
25318
25319 if (!args) SWIG_fail;
25320 swig_obj[0] = args;
25321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25322 if (!SWIG_IsOK(res1)) {
25323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25324 }
25325 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25326 {
25327 PyThreadState* __tstate = wxPyBeginAllowThreads();
25328 result = (int)(arg1)->GetToolSeparation();
25329 wxPyEndAllowThreads(__tstate);
25330 if (PyErr_Occurred()) SWIG_fail;
25331 }
25332 resultobj = SWIG_From_int(static_cast< int >(result));
25333 return resultobj;
25334 fail:
25335 return NULL;
25336 }
25337
25338
25339 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25340 PyObject *resultobj = 0;
25341 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25342 int arg2 ;
25343 void *argp1 = 0 ;
25344 int res1 = 0 ;
25345 int val2 ;
25346 int ecode2 = 0 ;
25347 PyObject * obj0 = 0 ;
25348 PyObject * obj1 = 0 ;
25349 char * kwnames[] = {
25350 (char *) "self",(char *) "nRows", NULL
25351 };
25352
25353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25355 if (!SWIG_IsOK(res1)) {
25356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25357 }
25358 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25359 ecode2 = SWIG_AsVal_int(obj1, &val2);
25360 if (!SWIG_IsOK(ecode2)) {
25361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25362 }
25363 arg2 = static_cast< int >(val2);
25364 {
25365 PyThreadState* __tstate = wxPyBeginAllowThreads();
25366 (arg1)->SetRows(arg2);
25367 wxPyEndAllowThreads(__tstate);
25368 if (PyErr_Occurred()) SWIG_fail;
25369 }
25370 resultobj = SWIG_Py_Void();
25371 return resultobj;
25372 fail:
25373 return NULL;
25374 }
25375
25376
25377 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25378 PyObject *resultobj = 0;
25379 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25380 int arg2 ;
25381 int arg3 ;
25382 void *argp1 = 0 ;
25383 int res1 = 0 ;
25384 int val2 ;
25385 int ecode2 = 0 ;
25386 int val3 ;
25387 int ecode3 = 0 ;
25388 PyObject * obj0 = 0 ;
25389 PyObject * obj1 = 0 ;
25390 PyObject * obj2 = 0 ;
25391 char * kwnames[] = {
25392 (char *) "self",(char *) "rows",(char *) "cols", NULL
25393 };
25394
25395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25397 if (!SWIG_IsOK(res1)) {
25398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25399 }
25400 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25401 ecode2 = SWIG_AsVal_int(obj1, &val2);
25402 if (!SWIG_IsOK(ecode2)) {
25403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25404 }
25405 arg2 = static_cast< int >(val2);
25406 ecode3 = SWIG_AsVal_int(obj2, &val3);
25407 if (!SWIG_IsOK(ecode3)) {
25408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25409 }
25410 arg3 = static_cast< int >(val3);
25411 {
25412 PyThreadState* __tstate = wxPyBeginAllowThreads();
25413 (arg1)->SetMaxRowsCols(arg2,arg3);
25414 wxPyEndAllowThreads(__tstate);
25415 if (PyErr_Occurred()) SWIG_fail;
25416 }
25417 resultobj = SWIG_Py_Void();
25418 return resultobj;
25419 fail:
25420 return NULL;
25421 }
25422
25423
25424 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25425 PyObject *resultobj = 0;
25426 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25427 int result;
25428 void *argp1 = 0 ;
25429 int res1 = 0 ;
25430 PyObject *swig_obj[1] ;
25431
25432 if (!args) SWIG_fail;
25433 swig_obj[0] = args;
25434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25435 if (!SWIG_IsOK(res1)) {
25436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25437 }
25438 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25439 {
25440 PyThreadState* __tstate = wxPyBeginAllowThreads();
25441 result = (int)(arg1)->GetMaxRows();
25442 wxPyEndAllowThreads(__tstate);
25443 if (PyErr_Occurred()) SWIG_fail;
25444 }
25445 resultobj = SWIG_From_int(static_cast< int >(result));
25446 return resultobj;
25447 fail:
25448 return NULL;
25449 }
25450
25451
25452 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25453 PyObject *resultobj = 0;
25454 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25455 int result;
25456 void *argp1 = 0 ;
25457 int res1 = 0 ;
25458 PyObject *swig_obj[1] ;
25459
25460 if (!args) SWIG_fail;
25461 swig_obj[0] = args;
25462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25463 if (!SWIG_IsOK(res1)) {
25464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25465 }
25466 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25467 {
25468 PyThreadState* __tstate = wxPyBeginAllowThreads();
25469 result = (int)(arg1)->GetMaxCols();
25470 wxPyEndAllowThreads(__tstate);
25471 if (PyErr_Occurred()) SWIG_fail;
25472 }
25473 resultobj = SWIG_From_int(static_cast< int >(result));
25474 return resultobj;
25475 fail:
25476 return NULL;
25477 }
25478
25479
25480 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25481 PyObject *resultobj = 0;
25482 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25483 wxSize *arg2 = 0 ;
25484 void *argp1 = 0 ;
25485 int res1 = 0 ;
25486 wxSize temp2 ;
25487 PyObject * obj0 = 0 ;
25488 PyObject * obj1 = 0 ;
25489 char * kwnames[] = {
25490 (char *) "self",(char *) "size", NULL
25491 };
25492
25493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25495 if (!SWIG_IsOK(res1)) {
25496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25497 }
25498 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25499 {
25500 arg2 = &temp2;
25501 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25502 }
25503 {
25504 PyThreadState* __tstate = wxPyBeginAllowThreads();
25505 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25506 wxPyEndAllowThreads(__tstate);
25507 if (PyErr_Occurred()) SWIG_fail;
25508 }
25509 resultobj = SWIG_Py_Void();
25510 return resultobj;
25511 fail:
25512 return NULL;
25513 }
25514
25515
25516 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25517 PyObject *resultobj = 0;
25518 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25519 wxSize result;
25520 void *argp1 = 0 ;
25521 int res1 = 0 ;
25522 PyObject *swig_obj[1] ;
25523
25524 if (!args) SWIG_fail;
25525 swig_obj[0] = args;
25526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25527 if (!SWIG_IsOK(res1)) {
25528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25529 }
25530 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25531 {
25532 PyThreadState* __tstate = wxPyBeginAllowThreads();
25533 result = (arg1)->GetToolBitmapSize();
25534 wxPyEndAllowThreads(__tstate);
25535 if (PyErr_Occurred()) SWIG_fail;
25536 }
25537 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25538 return resultobj;
25539 fail:
25540 return NULL;
25541 }
25542
25543
25544 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25545 PyObject *resultobj = 0;
25546 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25547 wxSize result;
25548 void *argp1 = 0 ;
25549 int res1 = 0 ;
25550 PyObject *swig_obj[1] ;
25551
25552 if (!args) SWIG_fail;
25553 swig_obj[0] = args;
25554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25555 if (!SWIG_IsOK(res1)) {
25556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25557 }
25558 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25559 {
25560 PyThreadState* __tstate = wxPyBeginAllowThreads();
25561 result = (arg1)->GetToolSize();
25562 wxPyEndAllowThreads(__tstate);
25563 if (PyErr_Occurred()) SWIG_fail;
25564 }
25565 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25566 return resultobj;
25567 fail:
25568 return NULL;
25569 }
25570
25571
25572 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25573 PyObject *resultobj = 0;
25574 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25575 int arg2 ;
25576 int arg3 ;
25577 wxToolBarToolBase *result = 0 ;
25578 void *argp1 = 0 ;
25579 int res1 = 0 ;
25580 int val2 ;
25581 int ecode2 = 0 ;
25582 int val3 ;
25583 int ecode3 = 0 ;
25584 PyObject * obj0 = 0 ;
25585 PyObject * obj1 = 0 ;
25586 PyObject * obj2 = 0 ;
25587 char * kwnames[] = {
25588 (char *) "self",(char *) "x",(char *) "y", NULL
25589 };
25590
25591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25593 if (!SWIG_IsOK(res1)) {
25594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25595 }
25596 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25597 ecode2 = SWIG_AsVal_int(obj1, &val2);
25598 if (!SWIG_IsOK(ecode2)) {
25599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25600 }
25601 arg2 = static_cast< int >(val2);
25602 ecode3 = SWIG_AsVal_int(obj2, &val3);
25603 if (!SWIG_IsOK(ecode3)) {
25604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25605 }
25606 arg3 = static_cast< int >(val3);
25607 {
25608 PyThreadState* __tstate = wxPyBeginAllowThreads();
25609 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25610 wxPyEndAllowThreads(__tstate);
25611 if (PyErr_Occurred()) SWIG_fail;
25612 }
25613 {
25614 resultobj = wxPyMake_wxObject(result, (bool)0);
25615 }
25616 return resultobj;
25617 fail:
25618 return NULL;
25619 }
25620
25621
25622 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25623 PyObject *resultobj = 0;
25624 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25625 int arg2 ;
25626 wxToolBarToolBase *result = 0 ;
25627 void *argp1 = 0 ;
25628 int res1 = 0 ;
25629 int val2 ;
25630 int ecode2 = 0 ;
25631 PyObject * obj0 = 0 ;
25632 PyObject * obj1 = 0 ;
25633 char * kwnames[] = {
25634 (char *) "self",(char *) "toolid", NULL
25635 };
25636
25637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25639 if (!SWIG_IsOK(res1)) {
25640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25641 }
25642 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25643 ecode2 = SWIG_AsVal_int(obj1, &val2);
25644 if (!SWIG_IsOK(ecode2)) {
25645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25646 }
25647 arg2 = static_cast< int >(val2);
25648 {
25649 PyThreadState* __tstate = wxPyBeginAllowThreads();
25650 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25651 wxPyEndAllowThreads(__tstate);
25652 if (PyErr_Occurred()) SWIG_fail;
25653 }
25654 {
25655 resultobj = wxPyMake_wxObject(result, (bool)0);
25656 }
25657 return resultobj;
25658 fail:
25659 return NULL;
25660 }
25661
25662
25663 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25664 PyObject *resultobj = 0;
25665 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25666 bool result;
25667 void *argp1 = 0 ;
25668 int res1 = 0 ;
25669 PyObject *swig_obj[1] ;
25670
25671 if (!args) SWIG_fail;
25672 swig_obj[0] = args;
25673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25674 if (!SWIG_IsOK(res1)) {
25675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25676 }
25677 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25678 {
25679 PyThreadState* __tstate = wxPyBeginAllowThreads();
25680 result = (bool)(arg1)->IsVertical();
25681 wxPyEndAllowThreads(__tstate);
25682 if (PyErr_Occurred()) SWIG_fail;
25683 }
25684 {
25685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25686 }
25687 return resultobj;
25688 fail:
25689 return NULL;
25690 }
25691
25692
25693 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25694 PyObject *resultobj = 0;
25695 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25696 size_t result;
25697 void *argp1 = 0 ;
25698 int res1 = 0 ;
25699 PyObject *swig_obj[1] ;
25700
25701 if (!args) SWIG_fail;
25702 swig_obj[0] = args;
25703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25704 if (!SWIG_IsOK(res1)) {
25705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25706 }
25707 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25708 {
25709 PyThreadState* __tstate = wxPyBeginAllowThreads();
25710 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25711 wxPyEndAllowThreads(__tstate);
25712 if (PyErr_Occurred()) SWIG_fail;
25713 }
25714 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25715 return resultobj;
25716 fail:
25717 return NULL;
25718 }
25719
25720
25721 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25722 PyObject *obj;
25723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25724 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25725 return SWIG_Py_Void();
25726 }
25727
25728 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25729 PyObject *resultobj = 0;
25730 wxWindow *arg1 = (wxWindow *) 0 ;
25731 int arg2 = (int) -1 ;
25732 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25733 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25734 wxSize const &arg4_defvalue = wxDefaultSize ;
25735 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25736 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25737 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25738 wxString *arg6 = (wxString *) &arg6_defvalue ;
25739 wxToolBar *result = 0 ;
25740 void *argp1 = 0 ;
25741 int res1 = 0 ;
25742 int val2 ;
25743 int ecode2 = 0 ;
25744 wxPoint temp3 ;
25745 wxSize temp4 ;
25746 long val5 ;
25747 int ecode5 = 0 ;
25748 bool temp6 = false ;
25749 PyObject * obj0 = 0 ;
25750 PyObject * obj1 = 0 ;
25751 PyObject * obj2 = 0 ;
25752 PyObject * obj3 = 0 ;
25753 PyObject * obj4 = 0 ;
25754 PyObject * obj5 = 0 ;
25755 char * kwnames[] = {
25756 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25757 };
25758
25759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25761 if (!SWIG_IsOK(res1)) {
25762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25763 }
25764 arg1 = reinterpret_cast< wxWindow * >(argp1);
25765 if (obj1) {
25766 ecode2 = SWIG_AsVal_int(obj1, &val2);
25767 if (!SWIG_IsOK(ecode2)) {
25768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25769 }
25770 arg2 = static_cast< int >(val2);
25771 }
25772 if (obj2) {
25773 {
25774 arg3 = &temp3;
25775 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25776 }
25777 }
25778 if (obj3) {
25779 {
25780 arg4 = &temp4;
25781 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25782 }
25783 }
25784 if (obj4) {
25785 ecode5 = SWIG_AsVal_long(obj4, &val5);
25786 if (!SWIG_IsOK(ecode5)) {
25787 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25788 }
25789 arg5 = static_cast< long >(val5);
25790 }
25791 if (obj5) {
25792 {
25793 arg6 = wxString_in_helper(obj5);
25794 if (arg6 == NULL) SWIG_fail;
25795 temp6 = true;
25796 }
25797 }
25798 {
25799 if (!wxPyCheckForApp()) SWIG_fail;
25800 PyThreadState* __tstate = wxPyBeginAllowThreads();
25801 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25802 wxPyEndAllowThreads(__tstate);
25803 if (PyErr_Occurred()) SWIG_fail;
25804 }
25805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25806 {
25807 if (temp6)
25808 delete arg6;
25809 }
25810 return resultobj;
25811 fail:
25812 {
25813 if (temp6)
25814 delete arg6;
25815 }
25816 return NULL;
25817 }
25818
25819
25820 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25821 PyObject *resultobj = 0;
25822 wxToolBar *result = 0 ;
25823
25824 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25825 {
25826 if (!wxPyCheckForApp()) SWIG_fail;
25827 PyThreadState* __tstate = wxPyBeginAllowThreads();
25828 result = (wxToolBar *)new wxToolBar();
25829 wxPyEndAllowThreads(__tstate);
25830 if (PyErr_Occurred()) SWIG_fail;
25831 }
25832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25833 return resultobj;
25834 fail:
25835 return NULL;
25836 }
25837
25838
25839 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25840 PyObject *resultobj = 0;
25841 wxToolBar *arg1 = (wxToolBar *) 0 ;
25842 wxWindow *arg2 = (wxWindow *) 0 ;
25843 int arg3 = (int) -1 ;
25844 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25845 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25846 wxSize const &arg5_defvalue = wxDefaultSize ;
25847 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25848 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25849 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25850 wxString *arg7 = (wxString *) &arg7_defvalue ;
25851 bool result;
25852 void *argp1 = 0 ;
25853 int res1 = 0 ;
25854 void *argp2 = 0 ;
25855 int res2 = 0 ;
25856 int val3 ;
25857 int ecode3 = 0 ;
25858 wxPoint temp4 ;
25859 wxSize temp5 ;
25860 long val6 ;
25861 int ecode6 = 0 ;
25862 bool temp7 = false ;
25863 PyObject * obj0 = 0 ;
25864 PyObject * obj1 = 0 ;
25865 PyObject * obj2 = 0 ;
25866 PyObject * obj3 = 0 ;
25867 PyObject * obj4 = 0 ;
25868 PyObject * obj5 = 0 ;
25869 PyObject * obj6 = 0 ;
25870 char * kwnames[] = {
25871 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25872 };
25873
25874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25876 if (!SWIG_IsOK(res1)) {
25877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25878 }
25879 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25881 if (!SWIG_IsOK(res2)) {
25882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25883 }
25884 arg2 = reinterpret_cast< wxWindow * >(argp2);
25885 if (obj2) {
25886 ecode3 = SWIG_AsVal_int(obj2, &val3);
25887 if (!SWIG_IsOK(ecode3)) {
25888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25889 }
25890 arg3 = static_cast< int >(val3);
25891 }
25892 if (obj3) {
25893 {
25894 arg4 = &temp4;
25895 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25896 }
25897 }
25898 if (obj4) {
25899 {
25900 arg5 = &temp5;
25901 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25902 }
25903 }
25904 if (obj5) {
25905 ecode6 = SWIG_AsVal_long(obj5, &val6);
25906 if (!SWIG_IsOK(ecode6)) {
25907 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25908 }
25909 arg6 = static_cast< long >(val6);
25910 }
25911 if (obj6) {
25912 {
25913 arg7 = wxString_in_helper(obj6);
25914 if (arg7 == NULL) SWIG_fail;
25915 temp7 = true;
25916 }
25917 }
25918 {
25919 PyThreadState* __tstate = wxPyBeginAllowThreads();
25920 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25921 wxPyEndAllowThreads(__tstate);
25922 if (PyErr_Occurred()) SWIG_fail;
25923 }
25924 {
25925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25926 }
25927 {
25928 if (temp7)
25929 delete arg7;
25930 }
25931 return resultobj;
25932 fail:
25933 {
25934 if (temp7)
25935 delete arg7;
25936 }
25937 return NULL;
25938 }
25939
25940
25941 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25942 PyObject *resultobj = 0;
25943 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25944 SwigValueWrapper<wxVisualAttributes > result;
25945 int val1 ;
25946 int ecode1 = 0 ;
25947 PyObject * obj0 = 0 ;
25948 char * kwnames[] = {
25949 (char *) "variant", NULL
25950 };
25951
25952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25953 if (obj0) {
25954 ecode1 = SWIG_AsVal_int(obj0, &val1);
25955 if (!SWIG_IsOK(ecode1)) {
25956 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25957 }
25958 arg1 = static_cast< wxWindowVariant >(val1);
25959 }
25960 {
25961 if (!wxPyCheckForApp()) SWIG_fail;
25962 PyThreadState* __tstate = wxPyBeginAllowThreads();
25963 result = wxToolBar::GetClassDefaultAttributes(arg1);
25964 wxPyEndAllowThreads(__tstate);
25965 if (PyErr_Occurred()) SWIG_fail;
25966 }
25967 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25968 return resultobj;
25969 fail:
25970 return NULL;
25971 }
25972
25973
25974 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25975 PyObject *obj;
25976 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25977 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25978 return SWIG_Py_Void();
25979 }
25980
25981 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25982 return SWIG_Python_InitShadowInstance(args);
25983 }
25984
25985 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25986 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25987 return 1;
25988 }
25989
25990
25991 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25992 PyObject *pyobj = 0;
25993
25994 {
25995 #if wxUSE_UNICODE
25996 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25997 #else
25998 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25999 #endif
26000 }
26001 return pyobj;
26002 }
26003
26004
26005 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26006 PyObject *resultobj = 0;
26007 wxColour const &arg1_defvalue = wxNullColour ;
26008 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26009 wxColour const &arg2_defvalue = wxNullColour ;
26010 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26011 wxFont const &arg3_defvalue = wxNullFont ;
26012 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26013 wxListItemAttr *result = 0 ;
26014 wxColour temp1 ;
26015 wxColour temp2 ;
26016 void *argp3 = 0 ;
26017 int res3 = 0 ;
26018 PyObject * obj0 = 0 ;
26019 PyObject * obj1 = 0 ;
26020 PyObject * obj2 = 0 ;
26021 char * kwnames[] = {
26022 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26023 };
26024
26025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26026 if (obj0) {
26027 {
26028 arg1 = &temp1;
26029 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26030 }
26031 }
26032 if (obj1) {
26033 {
26034 arg2 = &temp2;
26035 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26036 }
26037 }
26038 if (obj2) {
26039 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26040 if (!SWIG_IsOK(res3)) {
26041 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26042 }
26043 if (!argp3) {
26044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26045 }
26046 arg3 = reinterpret_cast< wxFont * >(argp3);
26047 }
26048 {
26049 PyThreadState* __tstate = wxPyBeginAllowThreads();
26050 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26051 wxPyEndAllowThreads(__tstate);
26052 if (PyErr_Occurred()) SWIG_fail;
26053 }
26054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26055 return resultobj;
26056 fail:
26057 return NULL;
26058 }
26059
26060
26061 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26062 PyObject *resultobj = 0;
26063 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26064 void *argp1 = 0 ;
26065 int res1 = 0 ;
26066 PyObject *swig_obj[1] ;
26067
26068 if (!args) SWIG_fail;
26069 swig_obj[0] = args;
26070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26071 if (!SWIG_IsOK(res1)) {
26072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26073 }
26074 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26075 {
26076 PyThreadState* __tstate = wxPyBeginAllowThreads();
26077 delete arg1;
26078
26079 wxPyEndAllowThreads(__tstate);
26080 if (PyErr_Occurred()) SWIG_fail;
26081 }
26082 resultobj = SWIG_Py_Void();
26083 return resultobj;
26084 fail:
26085 return NULL;
26086 }
26087
26088
26089 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26090 PyObject *resultobj = 0;
26091 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26092 wxColour *arg2 = 0 ;
26093 void *argp1 = 0 ;
26094 int res1 = 0 ;
26095 wxColour temp2 ;
26096 PyObject * obj0 = 0 ;
26097 PyObject * obj1 = 0 ;
26098 char * kwnames[] = {
26099 (char *) "self",(char *) "colText", NULL
26100 };
26101
26102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26104 if (!SWIG_IsOK(res1)) {
26105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26106 }
26107 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26108 {
26109 arg2 = &temp2;
26110 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26111 }
26112 {
26113 PyThreadState* __tstate = wxPyBeginAllowThreads();
26114 (arg1)->SetTextColour((wxColour const &)*arg2);
26115 wxPyEndAllowThreads(__tstate);
26116 if (PyErr_Occurred()) SWIG_fail;
26117 }
26118 resultobj = SWIG_Py_Void();
26119 return resultobj;
26120 fail:
26121 return NULL;
26122 }
26123
26124
26125 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26126 PyObject *resultobj = 0;
26127 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26128 wxColour *arg2 = 0 ;
26129 void *argp1 = 0 ;
26130 int res1 = 0 ;
26131 wxColour temp2 ;
26132 PyObject * obj0 = 0 ;
26133 PyObject * obj1 = 0 ;
26134 char * kwnames[] = {
26135 (char *) "self",(char *) "colBack", NULL
26136 };
26137
26138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26140 if (!SWIG_IsOK(res1)) {
26141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26142 }
26143 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26144 {
26145 arg2 = &temp2;
26146 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26147 }
26148 {
26149 PyThreadState* __tstate = wxPyBeginAllowThreads();
26150 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26151 wxPyEndAllowThreads(__tstate);
26152 if (PyErr_Occurred()) SWIG_fail;
26153 }
26154 resultobj = SWIG_Py_Void();
26155 return resultobj;
26156 fail:
26157 return NULL;
26158 }
26159
26160
26161 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26162 PyObject *resultobj = 0;
26163 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26164 wxFont *arg2 = 0 ;
26165 void *argp1 = 0 ;
26166 int res1 = 0 ;
26167 void *argp2 = 0 ;
26168 int res2 = 0 ;
26169 PyObject * obj0 = 0 ;
26170 PyObject * obj1 = 0 ;
26171 char * kwnames[] = {
26172 (char *) "self",(char *) "font", NULL
26173 };
26174
26175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26177 if (!SWIG_IsOK(res1)) {
26178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26179 }
26180 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26182 if (!SWIG_IsOK(res2)) {
26183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26184 }
26185 if (!argp2) {
26186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26187 }
26188 arg2 = reinterpret_cast< wxFont * >(argp2);
26189 {
26190 PyThreadState* __tstate = wxPyBeginAllowThreads();
26191 (arg1)->SetFont((wxFont const &)*arg2);
26192 wxPyEndAllowThreads(__tstate);
26193 if (PyErr_Occurred()) SWIG_fail;
26194 }
26195 resultobj = SWIG_Py_Void();
26196 return resultobj;
26197 fail:
26198 return NULL;
26199 }
26200
26201
26202 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26203 PyObject *resultobj = 0;
26204 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26205 bool result;
26206 void *argp1 = 0 ;
26207 int res1 = 0 ;
26208 PyObject *swig_obj[1] ;
26209
26210 if (!args) SWIG_fail;
26211 swig_obj[0] = args;
26212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26213 if (!SWIG_IsOK(res1)) {
26214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26215 }
26216 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26217 {
26218 PyThreadState* __tstate = wxPyBeginAllowThreads();
26219 result = (bool)(arg1)->HasTextColour();
26220 wxPyEndAllowThreads(__tstate);
26221 if (PyErr_Occurred()) SWIG_fail;
26222 }
26223 {
26224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26225 }
26226 return resultobj;
26227 fail:
26228 return NULL;
26229 }
26230
26231
26232 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26233 PyObject *resultobj = 0;
26234 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26235 bool result;
26236 void *argp1 = 0 ;
26237 int res1 = 0 ;
26238 PyObject *swig_obj[1] ;
26239
26240 if (!args) SWIG_fail;
26241 swig_obj[0] = args;
26242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26243 if (!SWIG_IsOK(res1)) {
26244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26245 }
26246 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26247 {
26248 PyThreadState* __tstate = wxPyBeginAllowThreads();
26249 result = (bool)(arg1)->HasBackgroundColour();
26250 wxPyEndAllowThreads(__tstate);
26251 if (PyErr_Occurred()) SWIG_fail;
26252 }
26253 {
26254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26255 }
26256 return resultobj;
26257 fail:
26258 return NULL;
26259 }
26260
26261
26262 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26263 PyObject *resultobj = 0;
26264 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26265 bool result;
26266 void *argp1 = 0 ;
26267 int res1 = 0 ;
26268 PyObject *swig_obj[1] ;
26269
26270 if (!args) SWIG_fail;
26271 swig_obj[0] = args;
26272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26273 if (!SWIG_IsOK(res1)) {
26274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26275 }
26276 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26277 {
26278 PyThreadState* __tstate = wxPyBeginAllowThreads();
26279 result = (bool)(arg1)->HasFont();
26280 wxPyEndAllowThreads(__tstate);
26281 if (PyErr_Occurred()) SWIG_fail;
26282 }
26283 {
26284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26285 }
26286 return resultobj;
26287 fail:
26288 return NULL;
26289 }
26290
26291
26292 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26293 PyObject *resultobj = 0;
26294 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26295 wxColour result;
26296 void *argp1 = 0 ;
26297 int res1 = 0 ;
26298 PyObject *swig_obj[1] ;
26299
26300 if (!args) SWIG_fail;
26301 swig_obj[0] = args;
26302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26303 if (!SWIG_IsOK(res1)) {
26304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26305 }
26306 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26307 {
26308 PyThreadState* __tstate = wxPyBeginAllowThreads();
26309 result = (arg1)->GetTextColour();
26310 wxPyEndAllowThreads(__tstate);
26311 if (PyErr_Occurred()) SWIG_fail;
26312 }
26313 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26314 return resultobj;
26315 fail:
26316 return NULL;
26317 }
26318
26319
26320 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26321 PyObject *resultobj = 0;
26322 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26323 wxColour result;
26324 void *argp1 = 0 ;
26325 int res1 = 0 ;
26326 PyObject *swig_obj[1] ;
26327
26328 if (!args) SWIG_fail;
26329 swig_obj[0] = args;
26330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26331 if (!SWIG_IsOK(res1)) {
26332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26333 }
26334 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26335 {
26336 PyThreadState* __tstate = wxPyBeginAllowThreads();
26337 result = (arg1)->GetBackgroundColour();
26338 wxPyEndAllowThreads(__tstate);
26339 if (PyErr_Occurred()) SWIG_fail;
26340 }
26341 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26342 return resultobj;
26343 fail:
26344 return NULL;
26345 }
26346
26347
26348 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26349 PyObject *resultobj = 0;
26350 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26351 wxFont result;
26352 void *argp1 = 0 ;
26353 int res1 = 0 ;
26354 PyObject *swig_obj[1] ;
26355
26356 if (!args) SWIG_fail;
26357 swig_obj[0] = args;
26358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26359 if (!SWIG_IsOK(res1)) {
26360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26361 }
26362 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26363 {
26364 PyThreadState* __tstate = wxPyBeginAllowThreads();
26365 result = (arg1)->GetFont();
26366 wxPyEndAllowThreads(__tstate);
26367 if (PyErr_Occurred()) SWIG_fail;
26368 }
26369 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26370 return resultobj;
26371 fail:
26372 return NULL;
26373 }
26374
26375
26376 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26377 PyObject *resultobj = 0;
26378 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26379 wxListItemAttr *arg2 = 0 ;
26380 void *argp1 = 0 ;
26381 int res1 = 0 ;
26382 void *argp2 = 0 ;
26383 int res2 = 0 ;
26384 PyObject * obj0 = 0 ;
26385 PyObject * obj1 = 0 ;
26386 char * kwnames[] = {
26387 (char *) "self",(char *) "source", NULL
26388 };
26389
26390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26392 if (!SWIG_IsOK(res1)) {
26393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26394 }
26395 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26396 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26397 if (!SWIG_IsOK(res2)) {
26398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26399 }
26400 if (!argp2) {
26401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26402 }
26403 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26404 {
26405 PyThreadState* __tstate = wxPyBeginAllowThreads();
26406 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26407 wxPyEndAllowThreads(__tstate);
26408 if (PyErr_Occurred()) SWIG_fail;
26409 }
26410 resultobj = SWIG_Py_Void();
26411 return resultobj;
26412 fail:
26413 return NULL;
26414 }
26415
26416
26417 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26418 PyObject *resultobj = 0;
26419 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26420 void *argp1 = 0 ;
26421 int res1 = 0 ;
26422 PyObject *swig_obj[1] ;
26423
26424 if (!args) SWIG_fail;
26425 swig_obj[0] = args;
26426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26427 if (!SWIG_IsOK(res1)) {
26428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26429 }
26430 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26431 {
26432 PyThreadState* __tstate = wxPyBeginAllowThreads();
26433 wxListItemAttr_Destroy(arg1);
26434 wxPyEndAllowThreads(__tstate);
26435 if (PyErr_Occurred()) SWIG_fail;
26436 }
26437 resultobj = SWIG_Py_Void();
26438 return resultobj;
26439 fail:
26440 return NULL;
26441 }
26442
26443
26444 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26445 PyObject *obj;
26446 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26447 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26448 return SWIG_Py_Void();
26449 }
26450
26451 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26452 return SWIG_Python_InitShadowInstance(args);
26453 }
26454
26455 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26456 PyObject *resultobj = 0;
26457 wxListItem *result = 0 ;
26458
26459 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26460 {
26461 PyThreadState* __tstate = wxPyBeginAllowThreads();
26462 result = (wxListItem *)new wxListItem();
26463 wxPyEndAllowThreads(__tstate);
26464 if (PyErr_Occurred()) SWIG_fail;
26465 }
26466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26467 return resultobj;
26468 fail:
26469 return NULL;
26470 }
26471
26472
26473 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26474 PyObject *resultobj = 0;
26475 wxListItem *arg1 = (wxListItem *) 0 ;
26476 void *argp1 = 0 ;
26477 int res1 = 0 ;
26478 PyObject *swig_obj[1] ;
26479
26480 if (!args) SWIG_fail;
26481 swig_obj[0] = args;
26482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26483 if (!SWIG_IsOK(res1)) {
26484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26485 }
26486 arg1 = reinterpret_cast< wxListItem * >(argp1);
26487 {
26488 PyThreadState* __tstate = wxPyBeginAllowThreads();
26489 delete arg1;
26490
26491 wxPyEndAllowThreads(__tstate);
26492 if (PyErr_Occurred()) SWIG_fail;
26493 }
26494 resultobj = SWIG_Py_Void();
26495 return resultobj;
26496 fail:
26497 return NULL;
26498 }
26499
26500
26501 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26502 PyObject *resultobj = 0;
26503 wxListItem *arg1 = (wxListItem *) 0 ;
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_wxListItem, 0 | 0 );
26511 if (!SWIG_IsOK(res1)) {
26512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26513 }
26514 arg1 = reinterpret_cast< wxListItem * >(argp1);
26515 {
26516 PyThreadState* __tstate = wxPyBeginAllowThreads();
26517 (arg1)->Clear();
26518 wxPyEndAllowThreads(__tstate);
26519 if (PyErr_Occurred()) SWIG_fail;
26520 }
26521 resultobj = SWIG_Py_Void();
26522 return resultobj;
26523 fail:
26524 return NULL;
26525 }
26526
26527
26528 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26529 PyObject *resultobj = 0;
26530 wxListItem *arg1 = (wxListItem *) 0 ;
26531 void *argp1 = 0 ;
26532 int res1 = 0 ;
26533 PyObject *swig_obj[1] ;
26534
26535 if (!args) SWIG_fail;
26536 swig_obj[0] = args;
26537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26538 if (!SWIG_IsOK(res1)) {
26539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26540 }
26541 arg1 = reinterpret_cast< wxListItem * >(argp1);
26542 {
26543 PyThreadState* __tstate = wxPyBeginAllowThreads();
26544 (arg1)->ClearAttributes();
26545 wxPyEndAllowThreads(__tstate);
26546 if (PyErr_Occurred()) SWIG_fail;
26547 }
26548 resultobj = SWIG_Py_Void();
26549 return resultobj;
26550 fail:
26551 return NULL;
26552 }
26553
26554
26555 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26556 PyObject *resultobj = 0;
26557 wxListItem *arg1 = (wxListItem *) 0 ;
26558 long arg2 ;
26559 void *argp1 = 0 ;
26560 int res1 = 0 ;
26561 long val2 ;
26562 int ecode2 = 0 ;
26563 PyObject * obj0 = 0 ;
26564 PyObject * obj1 = 0 ;
26565 char * kwnames[] = {
26566 (char *) "self",(char *) "mask", NULL
26567 };
26568
26569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26571 if (!SWIG_IsOK(res1)) {
26572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26573 }
26574 arg1 = reinterpret_cast< wxListItem * >(argp1);
26575 ecode2 = SWIG_AsVal_long(obj1, &val2);
26576 if (!SWIG_IsOK(ecode2)) {
26577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26578 }
26579 arg2 = static_cast< long >(val2);
26580 {
26581 PyThreadState* __tstate = wxPyBeginAllowThreads();
26582 (arg1)->SetMask(arg2);
26583 wxPyEndAllowThreads(__tstate);
26584 if (PyErr_Occurred()) SWIG_fail;
26585 }
26586 resultobj = SWIG_Py_Void();
26587 return resultobj;
26588 fail:
26589 return NULL;
26590 }
26591
26592
26593 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26594 PyObject *resultobj = 0;
26595 wxListItem *arg1 = (wxListItem *) 0 ;
26596 long arg2 ;
26597 void *argp1 = 0 ;
26598 int res1 = 0 ;
26599 long val2 ;
26600 int ecode2 = 0 ;
26601 PyObject * obj0 = 0 ;
26602 PyObject * obj1 = 0 ;
26603 char * kwnames[] = {
26604 (char *) "self",(char *) "id", NULL
26605 };
26606
26607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26609 if (!SWIG_IsOK(res1)) {
26610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26611 }
26612 arg1 = reinterpret_cast< wxListItem * >(argp1);
26613 ecode2 = SWIG_AsVal_long(obj1, &val2);
26614 if (!SWIG_IsOK(ecode2)) {
26615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26616 }
26617 arg2 = static_cast< long >(val2);
26618 {
26619 PyThreadState* __tstate = wxPyBeginAllowThreads();
26620 (arg1)->SetId(arg2);
26621 wxPyEndAllowThreads(__tstate);
26622 if (PyErr_Occurred()) SWIG_fail;
26623 }
26624 resultobj = SWIG_Py_Void();
26625 return resultobj;
26626 fail:
26627 return NULL;
26628 }
26629
26630
26631 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26632 PyObject *resultobj = 0;
26633 wxListItem *arg1 = (wxListItem *) 0 ;
26634 int arg2 ;
26635 void *argp1 = 0 ;
26636 int res1 = 0 ;
26637 int val2 ;
26638 int ecode2 = 0 ;
26639 PyObject * obj0 = 0 ;
26640 PyObject * obj1 = 0 ;
26641 char * kwnames[] = {
26642 (char *) "self",(char *) "col", NULL
26643 };
26644
26645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26647 if (!SWIG_IsOK(res1)) {
26648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26649 }
26650 arg1 = reinterpret_cast< wxListItem * >(argp1);
26651 ecode2 = SWIG_AsVal_int(obj1, &val2);
26652 if (!SWIG_IsOK(ecode2)) {
26653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26654 }
26655 arg2 = static_cast< int >(val2);
26656 {
26657 PyThreadState* __tstate = wxPyBeginAllowThreads();
26658 (arg1)->SetColumn(arg2);
26659 wxPyEndAllowThreads(__tstate);
26660 if (PyErr_Occurred()) SWIG_fail;
26661 }
26662 resultobj = SWIG_Py_Void();
26663 return resultobj;
26664 fail:
26665 return NULL;
26666 }
26667
26668
26669 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26670 PyObject *resultobj = 0;
26671 wxListItem *arg1 = (wxListItem *) 0 ;
26672 long arg2 ;
26673 void *argp1 = 0 ;
26674 int res1 = 0 ;
26675 long val2 ;
26676 int ecode2 = 0 ;
26677 PyObject * obj0 = 0 ;
26678 PyObject * obj1 = 0 ;
26679 char * kwnames[] = {
26680 (char *) "self",(char *) "state", NULL
26681 };
26682
26683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26685 if (!SWIG_IsOK(res1)) {
26686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26687 }
26688 arg1 = reinterpret_cast< wxListItem * >(argp1);
26689 ecode2 = SWIG_AsVal_long(obj1, &val2);
26690 if (!SWIG_IsOK(ecode2)) {
26691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26692 }
26693 arg2 = static_cast< long >(val2);
26694 {
26695 PyThreadState* __tstate = wxPyBeginAllowThreads();
26696 (arg1)->SetState(arg2);
26697 wxPyEndAllowThreads(__tstate);
26698 if (PyErr_Occurred()) SWIG_fail;
26699 }
26700 resultobj = SWIG_Py_Void();
26701 return resultobj;
26702 fail:
26703 return NULL;
26704 }
26705
26706
26707 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26708 PyObject *resultobj = 0;
26709 wxListItem *arg1 = (wxListItem *) 0 ;
26710 long arg2 ;
26711 void *argp1 = 0 ;
26712 int res1 = 0 ;
26713 long val2 ;
26714 int ecode2 = 0 ;
26715 PyObject * obj0 = 0 ;
26716 PyObject * obj1 = 0 ;
26717 char * kwnames[] = {
26718 (char *) "self",(char *) "stateMask", NULL
26719 };
26720
26721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26723 if (!SWIG_IsOK(res1)) {
26724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26725 }
26726 arg1 = reinterpret_cast< wxListItem * >(argp1);
26727 ecode2 = SWIG_AsVal_long(obj1, &val2);
26728 if (!SWIG_IsOK(ecode2)) {
26729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26730 }
26731 arg2 = static_cast< long >(val2);
26732 {
26733 PyThreadState* __tstate = wxPyBeginAllowThreads();
26734 (arg1)->SetStateMask(arg2);
26735 wxPyEndAllowThreads(__tstate);
26736 if (PyErr_Occurred()) SWIG_fail;
26737 }
26738 resultobj = SWIG_Py_Void();
26739 return resultobj;
26740 fail:
26741 return NULL;
26742 }
26743
26744
26745 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26746 PyObject *resultobj = 0;
26747 wxListItem *arg1 = (wxListItem *) 0 ;
26748 wxString *arg2 = 0 ;
26749 void *argp1 = 0 ;
26750 int res1 = 0 ;
26751 bool temp2 = false ;
26752 PyObject * obj0 = 0 ;
26753 PyObject * obj1 = 0 ;
26754 char * kwnames[] = {
26755 (char *) "self",(char *) "text", NULL
26756 };
26757
26758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26760 if (!SWIG_IsOK(res1)) {
26761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26762 }
26763 arg1 = reinterpret_cast< wxListItem * >(argp1);
26764 {
26765 arg2 = wxString_in_helper(obj1);
26766 if (arg2 == NULL) SWIG_fail;
26767 temp2 = true;
26768 }
26769 {
26770 PyThreadState* __tstate = wxPyBeginAllowThreads();
26771 (arg1)->SetText((wxString const &)*arg2);
26772 wxPyEndAllowThreads(__tstate);
26773 if (PyErr_Occurred()) SWIG_fail;
26774 }
26775 resultobj = SWIG_Py_Void();
26776 {
26777 if (temp2)
26778 delete arg2;
26779 }
26780 return resultobj;
26781 fail:
26782 {
26783 if (temp2)
26784 delete arg2;
26785 }
26786 return NULL;
26787 }
26788
26789
26790 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26791 PyObject *resultobj = 0;
26792 wxListItem *arg1 = (wxListItem *) 0 ;
26793 int arg2 ;
26794 void *argp1 = 0 ;
26795 int res1 = 0 ;
26796 int val2 ;
26797 int ecode2 = 0 ;
26798 PyObject * obj0 = 0 ;
26799 PyObject * obj1 = 0 ;
26800 char * kwnames[] = {
26801 (char *) "self",(char *) "image", NULL
26802 };
26803
26804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26806 if (!SWIG_IsOK(res1)) {
26807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26808 }
26809 arg1 = reinterpret_cast< wxListItem * >(argp1);
26810 ecode2 = SWIG_AsVal_int(obj1, &val2);
26811 if (!SWIG_IsOK(ecode2)) {
26812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26813 }
26814 arg2 = static_cast< int >(val2);
26815 {
26816 PyThreadState* __tstate = wxPyBeginAllowThreads();
26817 (arg1)->SetImage(arg2);
26818 wxPyEndAllowThreads(__tstate);
26819 if (PyErr_Occurred()) SWIG_fail;
26820 }
26821 resultobj = SWIG_Py_Void();
26822 return resultobj;
26823 fail:
26824 return NULL;
26825 }
26826
26827
26828 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26829 PyObject *resultobj = 0;
26830 wxListItem *arg1 = (wxListItem *) 0 ;
26831 long arg2 ;
26832 void *argp1 = 0 ;
26833 int res1 = 0 ;
26834 long val2 ;
26835 int ecode2 = 0 ;
26836 PyObject * obj0 = 0 ;
26837 PyObject * obj1 = 0 ;
26838 char * kwnames[] = {
26839 (char *) "self",(char *) "data", NULL
26840 };
26841
26842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26844 if (!SWIG_IsOK(res1)) {
26845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26846 }
26847 arg1 = reinterpret_cast< wxListItem * >(argp1);
26848 ecode2 = SWIG_AsVal_long(obj1, &val2);
26849 if (!SWIG_IsOK(ecode2)) {
26850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26851 }
26852 arg2 = static_cast< long >(val2);
26853 {
26854 PyThreadState* __tstate = wxPyBeginAllowThreads();
26855 (arg1)->SetData(arg2);
26856 wxPyEndAllowThreads(__tstate);
26857 if (PyErr_Occurred()) SWIG_fail;
26858 }
26859 resultobj = SWIG_Py_Void();
26860 return resultobj;
26861 fail:
26862 return NULL;
26863 }
26864
26865
26866 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26867 PyObject *resultobj = 0;
26868 wxListItem *arg1 = (wxListItem *) 0 ;
26869 int arg2 ;
26870 void *argp1 = 0 ;
26871 int res1 = 0 ;
26872 int val2 ;
26873 int ecode2 = 0 ;
26874 PyObject * obj0 = 0 ;
26875 PyObject * obj1 = 0 ;
26876 char * kwnames[] = {
26877 (char *) "self",(char *) "width", NULL
26878 };
26879
26880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26882 if (!SWIG_IsOK(res1)) {
26883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26884 }
26885 arg1 = reinterpret_cast< wxListItem * >(argp1);
26886 ecode2 = SWIG_AsVal_int(obj1, &val2);
26887 if (!SWIG_IsOK(ecode2)) {
26888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26889 }
26890 arg2 = static_cast< int >(val2);
26891 {
26892 PyThreadState* __tstate = wxPyBeginAllowThreads();
26893 (arg1)->SetWidth(arg2);
26894 wxPyEndAllowThreads(__tstate);
26895 if (PyErr_Occurred()) SWIG_fail;
26896 }
26897 resultobj = SWIG_Py_Void();
26898 return resultobj;
26899 fail:
26900 return NULL;
26901 }
26902
26903
26904 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26905 PyObject *resultobj = 0;
26906 wxListItem *arg1 = (wxListItem *) 0 ;
26907 wxListColumnFormat arg2 ;
26908 void *argp1 = 0 ;
26909 int res1 = 0 ;
26910 int val2 ;
26911 int ecode2 = 0 ;
26912 PyObject * obj0 = 0 ;
26913 PyObject * obj1 = 0 ;
26914 char * kwnames[] = {
26915 (char *) "self",(char *) "align", NULL
26916 };
26917
26918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26920 if (!SWIG_IsOK(res1)) {
26921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26922 }
26923 arg1 = reinterpret_cast< wxListItem * >(argp1);
26924 ecode2 = SWIG_AsVal_int(obj1, &val2);
26925 if (!SWIG_IsOK(ecode2)) {
26926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26927 }
26928 arg2 = static_cast< wxListColumnFormat >(val2);
26929 {
26930 PyThreadState* __tstate = wxPyBeginAllowThreads();
26931 (arg1)->SetAlign(arg2);
26932 wxPyEndAllowThreads(__tstate);
26933 if (PyErr_Occurred()) SWIG_fail;
26934 }
26935 resultobj = SWIG_Py_Void();
26936 return resultobj;
26937 fail:
26938 return NULL;
26939 }
26940
26941
26942 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26943 PyObject *resultobj = 0;
26944 wxListItem *arg1 = (wxListItem *) 0 ;
26945 wxColour *arg2 = 0 ;
26946 void *argp1 = 0 ;
26947 int res1 = 0 ;
26948 wxColour temp2 ;
26949 PyObject * obj0 = 0 ;
26950 PyObject * obj1 = 0 ;
26951 char * kwnames[] = {
26952 (char *) "self",(char *) "colText", NULL
26953 };
26954
26955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26957 if (!SWIG_IsOK(res1)) {
26958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26959 }
26960 arg1 = reinterpret_cast< wxListItem * >(argp1);
26961 {
26962 arg2 = &temp2;
26963 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26964 }
26965 {
26966 PyThreadState* __tstate = wxPyBeginAllowThreads();
26967 (arg1)->SetTextColour((wxColour const &)*arg2);
26968 wxPyEndAllowThreads(__tstate);
26969 if (PyErr_Occurred()) SWIG_fail;
26970 }
26971 resultobj = SWIG_Py_Void();
26972 return resultobj;
26973 fail:
26974 return NULL;
26975 }
26976
26977
26978 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26979 PyObject *resultobj = 0;
26980 wxListItem *arg1 = (wxListItem *) 0 ;
26981 wxColour *arg2 = 0 ;
26982 void *argp1 = 0 ;
26983 int res1 = 0 ;
26984 wxColour temp2 ;
26985 PyObject * obj0 = 0 ;
26986 PyObject * obj1 = 0 ;
26987 char * kwnames[] = {
26988 (char *) "self",(char *) "colBack", NULL
26989 };
26990
26991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26993 if (!SWIG_IsOK(res1)) {
26994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26995 }
26996 arg1 = reinterpret_cast< wxListItem * >(argp1);
26997 {
26998 arg2 = &temp2;
26999 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27000 }
27001 {
27002 PyThreadState* __tstate = wxPyBeginAllowThreads();
27003 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27004 wxPyEndAllowThreads(__tstate);
27005 if (PyErr_Occurred()) SWIG_fail;
27006 }
27007 resultobj = SWIG_Py_Void();
27008 return resultobj;
27009 fail:
27010 return NULL;
27011 }
27012
27013
27014 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27015 PyObject *resultobj = 0;
27016 wxListItem *arg1 = (wxListItem *) 0 ;
27017 wxFont *arg2 = 0 ;
27018 void *argp1 = 0 ;
27019 int res1 = 0 ;
27020 void *argp2 = 0 ;
27021 int res2 = 0 ;
27022 PyObject * obj0 = 0 ;
27023 PyObject * obj1 = 0 ;
27024 char * kwnames[] = {
27025 (char *) "self",(char *) "font", NULL
27026 };
27027
27028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27030 if (!SWIG_IsOK(res1)) {
27031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27032 }
27033 arg1 = reinterpret_cast< wxListItem * >(argp1);
27034 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27035 if (!SWIG_IsOK(res2)) {
27036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27037 }
27038 if (!argp2) {
27039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27040 }
27041 arg2 = reinterpret_cast< wxFont * >(argp2);
27042 {
27043 PyThreadState* __tstate = wxPyBeginAllowThreads();
27044 (arg1)->SetFont((wxFont const &)*arg2);
27045 wxPyEndAllowThreads(__tstate);
27046 if (PyErr_Occurred()) SWIG_fail;
27047 }
27048 resultobj = SWIG_Py_Void();
27049 return resultobj;
27050 fail:
27051 return NULL;
27052 }
27053
27054
27055 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27056 PyObject *resultobj = 0;
27057 wxListItem *arg1 = (wxListItem *) 0 ;
27058 long result;
27059 void *argp1 = 0 ;
27060 int res1 = 0 ;
27061 PyObject *swig_obj[1] ;
27062
27063 if (!args) SWIG_fail;
27064 swig_obj[0] = args;
27065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27066 if (!SWIG_IsOK(res1)) {
27067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27068 }
27069 arg1 = reinterpret_cast< wxListItem * >(argp1);
27070 {
27071 PyThreadState* __tstate = wxPyBeginAllowThreads();
27072 result = (long)(arg1)->GetMask();
27073 wxPyEndAllowThreads(__tstate);
27074 if (PyErr_Occurred()) SWIG_fail;
27075 }
27076 resultobj = SWIG_From_long(static_cast< long >(result));
27077 return resultobj;
27078 fail:
27079 return NULL;
27080 }
27081
27082
27083 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27084 PyObject *resultobj = 0;
27085 wxListItem *arg1 = (wxListItem *) 0 ;
27086 long result;
27087 void *argp1 = 0 ;
27088 int res1 = 0 ;
27089 PyObject *swig_obj[1] ;
27090
27091 if (!args) SWIG_fail;
27092 swig_obj[0] = args;
27093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27094 if (!SWIG_IsOK(res1)) {
27095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27096 }
27097 arg1 = reinterpret_cast< wxListItem * >(argp1);
27098 {
27099 PyThreadState* __tstate = wxPyBeginAllowThreads();
27100 result = (long)(arg1)->GetId();
27101 wxPyEndAllowThreads(__tstate);
27102 if (PyErr_Occurred()) SWIG_fail;
27103 }
27104 resultobj = SWIG_From_long(static_cast< long >(result));
27105 return resultobj;
27106 fail:
27107 return NULL;
27108 }
27109
27110
27111 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27112 PyObject *resultobj = 0;
27113 wxListItem *arg1 = (wxListItem *) 0 ;
27114 int result;
27115 void *argp1 = 0 ;
27116 int res1 = 0 ;
27117 PyObject *swig_obj[1] ;
27118
27119 if (!args) SWIG_fail;
27120 swig_obj[0] = args;
27121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27122 if (!SWIG_IsOK(res1)) {
27123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27124 }
27125 arg1 = reinterpret_cast< wxListItem * >(argp1);
27126 {
27127 PyThreadState* __tstate = wxPyBeginAllowThreads();
27128 result = (int)(arg1)->GetColumn();
27129 wxPyEndAllowThreads(__tstate);
27130 if (PyErr_Occurred()) SWIG_fail;
27131 }
27132 resultobj = SWIG_From_int(static_cast< int >(result));
27133 return resultobj;
27134 fail:
27135 return NULL;
27136 }
27137
27138
27139 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27140 PyObject *resultobj = 0;
27141 wxListItem *arg1 = (wxListItem *) 0 ;
27142 long result;
27143 void *argp1 = 0 ;
27144 int res1 = 0 ;
27145 PyObject *swig_obj[1] ;
27146
27147 if (!args) SWIG_fail;
27148 swig_obj[0] = args;
27149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27150 if (!SWIG_IsOK(res1)) {
27151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27152 }
27153 arg1 = reinterpret_cast< wxListItem * >(argp1);
27154 {
27155 PyThreadState* __tstate = wxPyBeginAllowThreads();
27156 result = (long)(arg1)->GetState();
27157 wxPyEndAllowThreads(__tstate);
27158 if (PyErr_Occurred()) SWIG_fail;
27159 }
27160 resultobj = SWIG_From_long(static_cast< long >(result));
27161 return resultobj;
27162 fail:
27163 return NULL;
27164 }
27165
27166
27167 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27168 PyObject *resultobj = 0;
27169 wxListItem *arg1 = (wxListItem *) 0 ;
27170 wxString *result = 0 ;
27171 void *argp1 = 0 ;
27172 int res1 = 0 ;
27173 PyObject *swig_obj[1] ;
27174
27175 if (!args) SWIG_fail;
27176 swig_obj[0] = args;
27177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27178 if (!SWIG_IsOK(res1)) {
27179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27180 }
27181 arg1 = reinterpret_cast< wxListItem * >(argp1);
27182 {
27183 PyThreadState* __tstate = wxPyBeginAllowThreads();
27184 {
27185 wxString const &_result_ref = (arg1)->GetText();
27186 result = (wxString *) &_result_ref;
27187 }
27188 wxPyEndAllowThreads(__tstate);
27189 if (PyErr_Occurred()) SWIG_fail;
27190 }
27191 {
27192 #if wxUSE_UNICODE
27193 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27194 #else
27195 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27196 #endif
27197 }
27198 return resultobj;
27199 fail:
27200 return NULL;
27201 }
27202
27203
27204 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27205 PyObject *resultobj = 0;
27206 wxListItem *arg1 = (wxListItem *) 0 ;
27207 int result;
27208 void *argp1 = 0 ;
27209 int res1 = 0 ;
27210 PyObject *swig_obj[1] ;
27211
27212 if (!args) SWIG_fail;
27213 swig_obj[0] = args;
27214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27215 if (!SWIG_IsOK(res1)) {
27216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27217 }
27218 arg1 = reinterpret_cast< wxListItem * >(argp1);
27219 {
27220 PyThreadState* __tstate = wxPyBeginAllowThreads();
27221 result = (int)(arg1)->GetImage();
27222 wxPyEndAllowThreads(__tstate);
27223 if (PyErr_Occurred()) SWIG_fail;
27224 }
27225 resultobj = SWIG_From_int(static_cast< int >(result));
27226 return resultobj;
27227 fail:
27228 return NULL;
27229 }
27230
27231
27232 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27233 PyObject *resultobj = 0;
27234 wxListItem *arg1 = (wxListItem *) 0 ;
27235 long result;
27236 void *argp1 = 0 ;
27237 int res1 = 0 ;
27238 PyObject *swig_obj[1] ;
27239
27240 if (!args) SWIG_fail;
27241 swig_obj[0] = args;
27242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27243 if (!SWIG_IsOK(res1)) {
27244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27245 }
27246 arg1 = reinterpret_cast< wxListItem * >(argp1);
27247 {
27248 PyThreadState* __tstate = wxPyBeginAllowThreads();
27249 result = (long)(arg1)->GetData();
27250 wxPyEndAllowThreads(__tstate);
27251 if (PyErr_Occurred()) SWIG_fail;
27252 }
27253 resultobj = SWIG_From_long(static_cast< long >(result));
27254 return resultobj;
27255 fail:
27256 return NULL;
27257 }
27258
27259
27260 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27261 PyObject *resultobj = 0;
27262 wxListItem *arg1 = (wxListItem *) 0 ;
27263 int result;
27264 void *argp1 = 0 ;
27265 int res1 = 0 ;
27266 PyObject *swig_obj[1] ;
27267
27268 if (!args) SWIG_fail;
27269 swig_obj[0] = args;
27270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27271 if (!SWIG_IsOK(res1)) {
27272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27273 }
27274 arg1 = reinterpret_cast< wxListItem * >(argp1);
27275 {
27276 PyThreadState* __tstate = wxPyBeginAllowThreads();
27277 result = (int)(arg1)->GetWidth();
27278 wxPyEndAllowThreads(__tstate);
27279 if (PyErr_Occurred()) SWIG_fail;
27280 }
27281 resultobj = SWIG_From_int(static_cast< int >(result));
27282 return resultobj;
27283 fail:
27284 return NULL;
27285 }
27286
27287
27288 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27289 PyObject *resultobj = 0;
27290 wxListItem *arg1 = (wxListItem *) 0 ;
27291 wxListColumnFormat result;
27292 void *argp1 = 0 ;
27293 int res1 = 0 ;
27294 PyObject *swig_obj[1] ;
27295
27296 if (!args) SWIG_fail;
27297 swig_obj[0] = args;
27298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27299 if (!SWIG_IsOK(res1)) {
27300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27301 }
27302 arg1 = reinterpret_cast< wxListItem * >(argp1);
27303 {
27304 PyThreadState* __tstate = wxPyBeginAllowThreads();
27305 result = (wxListColumnFormat)(arg1)->GetAlign();
27306 wxPyEndAllowThreads(__tstate);
27307 if (PyErr_Occurred()) SWIG_fail;
27308 }
27309 resultobj = SWIG_From_int(static_cast< int >(result));
27310 return resultobj;
27311 fail:
27312 return NULL;
27313 }
27314
27315
27316 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27317 PyObject *resultobj = 0;
27318 wxListItem *arg1 = (wxListItem *) 0 ;
27319 wxListItemAttr *result = 0 ;
27320 void *argp1 = 0 ;
27321 int res1 = 0 ;
27322 PyObject *swig_obj[1] ;
27323
27324 if (!args) SWIG_fail;
27325 swig_obj[0] = args;
27326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27327 if (!SWIG_IsOK(res1)) {
27328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27329 }
27330 arg1 = reinterpret_cast< wxListItem * >(argp1);
27331 {
27332 PyThreadState* __tstate = wxPyBeginAllowThreads();
27333 result = (wxListItemAttr *)(arg1)->GetAttributes();
27334 wxPyEndAllowThreads(__tstate);
27335 if (PyErr_Occurred()) SWIG_fail;
27336 }
27337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27338 return resultobj;
27339 fail:
27340 return NULL;
27341 }
27342
27343
27344 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27345 PyObject *resultobj = 0;
27346 wxListItem *arg1 = (wxListItem *) 0 ;
27347 bool result;
27348 void *argp1 = 0 ;
27349 int res1 = 0 ;
27350 PyObject *swig_obj[1] ;
27351
27352 if (!args) SWIG_fail;
27353 swig_obj[0] = args;
27354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27355 if (!SWIG_IsOK(res1)) {
27356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27357 }
27358 arg1 = reinterpret_cast< wxListItem * >(argp1);
27359 {
27360 PyThreadState* __tstate = wxPyBeginAllowThreads();
27361 result = (bool)(arg1)->HasAttributes();
27362 wxPyEndAllowThreads(__tstate);
27363 if (PyErr_Occurred()) SWIG_fail;
27364 }
27365 {
27366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27367 }
27368 return resultobj;
27369 fail:
27370 return NULL;
27371 }
27372
27373
27374 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27375 PyObject *resultobj = 0;
27376 wxListItem *arg1 = (wxListItem *) 0 ;
27377 wxColour result;
27378 void *argp1 = 0 ;
27379 int res1 = 0 ;
27380 PyObject *swig_obj[1] ;
27381
27382 if (!args) SWIG_fail;
27383 swig_obj[0] = args;
27384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27385 if (!SWIG_IsOK(res1)) {
27386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27387 }
27388 arg1 = reinterpret_cast< wxListItem * >(argp1);
27389 {
27390 PyThreadState* __tstate = wxPyBeginAllowThreads();
27391 result = ((wxListItem const *)arg1)->GetTextColour();
27392 wxPyEndAllowThreads(__tstate);
27393 if (PyErr_Occurred()) SWIG_fail;
27394 }
27395 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27396 return resultobj;
27397 fail:
27398 return NULL;
27399 }
27400
27401
27402 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27403 PyObject *resultobj = 0;
27404 wxListItem *arg1 = (wxListItem *) 0 ;
27405 wxColour result;
27406 void *argp1 = 0 ;
27407 int res1 = 0 ;
27408 PyObject *swig_obj[1] ;
27409
27410 if (!args) SWIG_fail;
27411 swig_obj[0] = args;
27412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27413 if (!SWIG_IsOK(res1)) {
27414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27415 }
27416 arg1 = reinterpret_cast< wxListItem * >(argp1);
27417 {
27418 PyThreadState* __tstate = wxPyBeginAllowThreads();
27419 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27420 wxPyEndAllowThreads(__tstate);
27421 if (PyErr_Occurred()) SWIG_fail;
27422 }
27423 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27424 return resultobj;
27425 fail:
27426 return NULL;
27427 }
27428
27429
27430 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27431 PyObject *resultobj = 0;
27432 wxListItem *arg1 = (wxListItem *) 0 ;
27433 wxFont result;
27434 void *argp1 = 0 ;
27435 int res1 = 0 ;
27436 PyObject *swig_obj[1] ;
27437
27438 if (!args) SWIG_fail;
27439 swig_obj[0] = args;
27440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27441 if (!SWIG_IsOK(res1)) {
27442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27443 }
27444 arg1 = reinterpret_cast< wxListItem * >(argp1);
27445 {
27446 PyThreadState* __tstate = wxPyBeginAllowThreads();
27447 result = ((wxListItem const *)arg1)->GetFont();
27448 wxPyEndAllowThreads(__tstate);
27449 if (PyErr_Occurred()) SWIG_fail;
27450 }
27451 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27452 return resultobj;
27453 fail:
27454 return NULL;
27455 }
27456
27457
27458 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27459 PyObject *resultobj = 0;
27460 wxListItem *arg1 = (wxListItem *) 0 ;
27461 long arg2 ;
27462 void *argp1 = 0 ;
27463 int res1 = 0 ;
27464 long val2 ;
27465 int ecode2 = 0 ;
27466 PyObject *swig_obj[2] ;
27467
27468 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27470 if (!SWIG_IsOK(res1)) {
27471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27472 }
27473 arg1 = reinterpret_cast< wxListItem * >(argp1);
27474 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27475 if (!SWIG_IsOK(ecode2)) {
27476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27477 }
27478 arg2 = static_cast< long >(val2);
27479 if (arg1) (arg1)->m_mask = arg2;
27480
27481 resultobj = SWIG_Py_Void();
27482 return resultobj;
27483 fail:
27484 return NULL;
27485 }
27486
27487
27488 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27489 PyObject *resultobj = 0;
27490 wxListItem *arg1 = (wxListItem *) 0 ;
27491 long result;
27492 void *argp1 = 0 ;
27493 int res1 = 0 ;
27494 PyObject *swig_obj[1] ;
27495
27496 if (!args) SWIG_fail;
27497 swig_obj[0] = args;
27498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27499 if (!SWIG_IsOK(res1)) {
27500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27501 }
27502 arg1 = reinterpret_cast< wxListItem * >(argp1);
27503 result = (long) ((arg1)->m_mask);
27504 resultobj = SWIG_From_long(static_cast< long >(result));
27505 return resultobj;
27506 fail:
27507 return NULL;
27508 }
27509
27510
27511 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27512 PyObject *resultobj = 0;
27513 wxListItem *arg1 = (wxListItem *) 0 ;
27514 long arg2 ;
27515 void *argp1 = 0 ;
27516 int res1 = 0 ;
27517 long val2 ;
27518 int ecode2 = 0 ;
27519 PyObject *swig_obj[2] ;
27520
27521 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27523 if (!SWIG_IsOK(res1)) {
27524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27525 }
27526 arg1 = reinterpret_cast< wxListItem * >(argp1);
27527 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27528 if (!SWIG_IsOK(ecode2)) {
27529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27530 }
27531 arg2 = static_cast< long >(val2);
27532 if (arg1) (arg1)->m_itemId = arg2;
27533
27534 resultobj = SWIG_Py_Void();
27535 return resultobj;
27536 fail:
27537 return NULL;
27538 }
27539
27540
27541 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27542 PyObject *resultobj = 0;
27543 wxListItem *arg1 = (wxListItem *) 0 ;
27544 long result;
27545 void *argp1 = 0 ;
27546 int res1 = 0 ;
27547 PyObject *swig_obj[1] ;
27548
27549 if (!args) SWIG_fail;
27550 swig_obj[0] = args;
27551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27552 if (!SWIG_IsOK(res1)) {
27553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27554 }
27555 arg1 = reinterpret_cast< wxListItem * >(argp1);
27556 result = (long) ((arg1)->m_itemId);
27557 resultobj = SWIG_From_long(static_cast< long >(result));
27558 return resultobj;
27559 fail:
27560 return NULL;
27561 }
27562
27563
27564 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27565 PyObject *resultobj = 0;
27566 wxListItem *arg1 = (wxListItem *) 0 ;
27567 int arg2 ;
27568 void *argp1 = 0 ;
27569 int res1 = 0 ;
27570 int val2 ;
27571 int ecode2 = 0 ;
27572 PyObject *swig_obj[2] ;
27573
27574 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27576 if (!SWIG_IsOK(res1)) {
27577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27578 }
27579 arg1 = reinterpret_cast< wxListItem * >(argp1);
27580 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27581 if (!SWIG_IsOK(ecode2)) {
27582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27583 }
27584 arg2 = static_cast< int >(val2);
27585 if (arg1) (arg1)->m_col = arg2;
27586
27587 resultobj = SWIG_Py_Void();
27588 return resultobj;
27589 fail:
27590 return NULL;
27591 }
27592
27593
27594 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27595 PyObject *resultobj = 0;
27596 wxListItem *arg1 = (wxListItem *) 0 ;
27597 int result;
27598 void *argp1 = 0 ;
27599 int res1 = 0 ;
27600 PyObject *swig_obj[1] ;
27601
27602 if (!args) SWIG_fail;
27603 swig_obj[0] = args;
27604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27605 if (!SWIG_IsOK(res1)) {
27606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27607 }
27608 arg1 = reinterpret_cast< wxListItem * >(argp1);
27609 result = (int) ((arg1)->m_col);
27610 resultobj = SWIG_From_int(static_cast< int >(result));
27611 return resultobj;
27612 fail:
27613 return NULL;
27614 }
27615
27616
27617 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27618 PyObject *resultobj = 0;
27619 wxListItem *arg1 = (wxListItem *) 0 ;
27620 long arg2 ;
27621 void *argp1 = 0 ;
27622 int res1 = 0 ;
27623 long val2 ;
27624 int ecode2 = 0 ;
27625 PyObject *swig_obj[2] ;
27626
27627 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27629 if (!SWIG_IsOK(res1)) {
27630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27631 }
27632 arg1 = reinterpret_cast< wxListItem * >(argp1);
27633 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27634 if (!SWIG_IsOK(ecode2)) {
27635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27636 }
27637 arg2 = static_cast< long >(val2);
27638 if (arg1) (arg1)->m_state = arg2;
27639
27640 resultobj = SWIG_Py_Void();
27641 return resultobj;
27642 fail:
27643 return NULL;
27644 }
27645
27646
27647 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27648 PyObject *resultobj = 0;
27649 wxListItem *arg1 = (wxListItem *) 0 ;
27650 long result;
27651 void *argp1 = 0 ;
27652 int res1 = 0 ;
27653 PyObject *swig_obj[1] ;
27654
27655 if (!args) SWIG_fail;
27656 swig_obj[0] = args;
27657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27658 if (!SWIG_IsOK(res1)) {
27659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27660 }
27661 arg1 = reinterpret_cast< wxListItem * >(argp1);
27662 result = (long) ((arg1)->m_state);
27663 resultobj = SWIG_From_long(static_cast< long >(result));
27664 return resultobj;
27665 fail:
27666 return NULL;
27667 }
27668
27669
27670 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27671 PyObject *resultobj = 0;
27672 wxListItem *arg1 = (wxListItem *) 0 ;
27673 long arg2 ;
27674 void *argp1 = 0 ;
27675 int res1 = 0 ;
27676 long val2 ;
27677 int ecode2 = 0 ;
27678 PyObject *swig_obj[2] ;
27679
27680 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27682 if (!SWIG_IsOK(res1)) {
27683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27684 }
27685 arg1 = reinterpret_cast< wxListItem * >(argp1);
27686 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27687 if (!SWIG_IsOK(ecode2)) {
27688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27689 }
27690 arg2 = static_cast< long >(val2);
27691 if (arg1) (arg1)->m_stateMask = arg2;
27692
27693 resultobj = SWIG_Py_Void();
27694 return resultobj;
27695 fail:
27696 return NULL;
27697 }
27698
27699
27700 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27701 PyObject *resultobj = 0;
27702 wxListItem *arg1 = (wxListItem *) 0 ;
27703 long 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_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27713 }
27714 arg1 = reinterpret_cast< wxListItem * >(argp1);
27715 result = (long) ((arg1)->m_stateMask);
27716 resultobj = SWIG_From_long(static_cast< long >(result));
27717 return resultobj;
27718 fail:
27719 return NULL;
27720 }
27721
27722
27723 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27724 PyObject *resultobj = 0;
27725 wxListItem *arg1 = (wxListItem *) 0 ;
27726 wxString *arg2 = (wxString *) 0 ;
27727 void *argp1 = 0 ;
27728 int res1 = 0 ;
27729 bool temp2 = false ;
27730 PyObject *swig_obj[2] ;
27731
27732 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27734 if (!SWIG_IsOK(res1)) {
27735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27736 }
27737 arg1 = reinterpret_cast< wxListItem * >(argp1);
27738 {
27739 arg2 = wxString_in_helper(swig_obj[1]);
27740 if (arg2 == NULL) SWIG_fail;
27741 temp2 = true;
27742 }
27743 if (arg1) (arg1)->m_text = *arg2;
27744
27745 resultobj = SWIG_Py_Void();
27746 {
27747 if (temp2)
27748 delete arg2;
27749 }
27750 return resultobj;
27751 fail:
27752 {
27753 if (temp2)
27754 delete arg2;
27755 }
27756 return NULL;
27757 }
27758
27759
27760 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27761 PyObject *resultobj = 0;
27762 wxListItem *arg1 = (wxListItem *) 0 ;
27763 wxString *result = 0 ;
27764 void *argp1 = 0 ;
27765 int res1 = 0 ;
27766 PyObject *swig_obj[1] ;
27767
27768 if (!args) SWIG_fail;
27769 swig_obj[0] = args;
27770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27771 if (!SWIG_IsOK(res1)) {
27772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27773 }
27774 arg1 = reinterpret_cast< wxListItem * >(argp1);
27775 result = (wxString *)& ((arg1)->m_text);
27776 {
27777 #if wxUSE_UNICODE
27778 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27779 #else
27780 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27781 #endif
27782 }
27783 return resultobj;
27784 fail:
27785 return NULL;
27786 }
27787
27788
27789 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27790 PyObject *resultobj = 0;
27791 wxListItem *arg1 = (wxListItem *) 0 ;
27792 int arg2 ;
27793 void *argp1 = 0 ;
27794 int res1 = 0 ;
27795 int val2 ;
27796 int ecode2 = 0 ;
27797 PyObject *swig_obj[2] ;
27798
27799 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27801 if (!SWIG_IsOK(res1)) {
27802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27803 }
27804 arg1 = reinterpret_cast< wxListItem * >(argp1);
27805 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27806 if (!SWIG_IsOK(ecode2)) {
27807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27808 }
27809 arg2 = static_cast< int >(val2);
27810 if (arg1) (arg1)->m_image = arg2;
27811
27812 resultobj = SWIG_Py_Void();
27813 return resultobj;
27814 fail:
27815 return NULL;
27816 }
27817
27818
27819 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27820 PyObject *resultobj = 0;
27821 wxListItem *arg1 = (wxListItem *) 0 ;
27822 int result;
27823 void *argp1 = 0 ;
27824 int res1 = 0 ;
27825 PyObject *swig_obj[1] ;
27826
27827 if (!args) SWIG_fail;
27828 swig_obj[0] = args;
27829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27830 if (!SWIG_IsOK(res1)) {
27831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27832 }
27833 arg1 = reinterpret_cast< wxListItem * >(argp1);
27834 result = (int) ((arg1)->m_image);
27835 resultobj = SWIG_From_int(static_cast< int >(result));
27836 return resultobj;
27837 fail:
27838 return NULL;
27839 }
27840
27841
27842 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27843 PyObject *resultobj = 0;
27844 wxListItem *arg1 = (wxListItem *) 0 ;
27845 long arg2 ;
27846 void *argp1 = 0 ;
27847 int res1 = 0 ;
27848 long val2 ;
27849 int ecode2 = 0 ;
27850 PyObject *swig_obj[2] ;
27851
27852 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27854 if (!SWIG_IsOK(res1)) {
27855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27856 }
27857 arg1 = reinterpret_cast< wxListItem * >(argp1);
27858 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27859 if (!SWIG_IsOK(ecode2)) {
27860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27861 }
27862 arg2 = static_cast< long >(val2);
27863 if (arg1) (arg1)->m_data = arg2;
27864
27865 resultobj = SWIG_Py_Void();
27866 return resultobj;
27867 fail:
27868 return NULL;
27869 }
27870
27871
27872 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27873 PyObject *resultobj = 0;
27874 wxListItem *arg1 = (wxListItem *) 0 ;
27875 long result;
27876 void *argp1 = 0 ;
27877 int res1 = 0 ;
27878 PyObject *swig_obj[1] ;
27879
27880 if (!args) SWIG_fail;
27881 swig_obj[0] = args;
27882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27883 if (!SWIG_IsOK(res1)) {
27884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27885 }
27886 arg1 = reinterpret_cast< wxListItem * >(argp1);
27887 result = (long) ((arg1)->m_data);
27888 resultobj = SWIG_From_long(static_cast< long >(result));
27889 return resultobj;
27890 fail:
27891 return NULL;
27892 }
27893
27894
27895 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27896 PyObject *resultobj = 0;
27897 wxListItem *arg1 = (wxListItem *) 0 ;
27898 int arg2 ;
27899 void *argp1 = 0 ;
27900 int res1 = 0 ;
27901 int val2 ;
27902 int ecode2 = 0 ;
27903 PyObject *swig_obj[2] ;
27904
27905 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27907 if (!SWIG_IsOK(res1)) {
27908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27909 }
27910 arg1 = reinterpret_cast< wxListItem * >(argp1);
27911 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27912 if (!SWIG_IsOK(ecode2)) {
27913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27914 }
27915 arg2 = static_cast< int >(val2);
27916 if (arg1) (arg1)->m_format = arg2;
27917
27918 resultobj = SWIG_Py_Void();
27919 return resultobj;
27920 fail:
27921 return NULL;
27922 }
27923
27924
27925 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27926 PyObject *resultobj = 0;
27927 wxListItem *arg1 = (wxListItem *) 0 ;
27928 int result;
27929 void *argp1 = 0 ;
27930 int res1 = 0 ;
27931 PyObject *swig_obj[1] ;
27932
27933 if (!args) SWIG_fail;
27934 swig_obj[0] = args;
27935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27936 if (!SWIG_IsOK(res1)) {
27937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27938 }
27939 arg1 = reinterpret_cast< wxListItem * >(argp1);
27940 result = (int) ((arg1)->m_format);
27941 resultobj = SWIG_From_int(static_cast< int >(result));
27942 return resultobj;
27943 fail:
27944 return NULL;
27945 }
27946
27947
27948 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27949 PyObject *resultobj = 0;
27950 wxListItem *arg1 = (wxListItem *) 0 ;
27951 int arg2 ;
27952 void *argp1 = 0 ;
27953 int res1 = 0 ;
27954 int val2 ;
27955 int ecode2 = 0 ;
27956 PyObject *swig_obj[2] ;
27957
27958 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27960 if (!SWIG_IsOK(res1)) {
27961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27962 }
27963 arg1 = reinterpret_cast< wxListItem * >(argp1);
27964 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27965 if (!SWIG_IsOK(ecode2)) {
27966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27967 }
27968 arg2 = static_cast< int >(val2);
27969 if (arg1) (arg1)->m_width = arg2;
27970
27971 resultobj = SWIG_Py_Void();
27972 return resultobj;
27973 fail:
27974 return NULL;
27975 }
27976
27977
27978 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27979 PyObject *resultobj = 0;
27980 wxListItem *arg1 = (wxListItem *) 0 ;
27981 int result;
27982 void *argp1 = 0 ;
27983 int res1 = 0 ;
27984 PyObject *swig_obj[1] ;
27985
27986 if (!args) SWIG_fail;
27987 swig_obj[0] = args;
27988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27989 if (!SWIG_IsOK(res1)) {
27990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27991 }
27992 arg1 = reinterpret_cast< wxListItem * >(argp1);
27993 result = (int) ((arg1)->m_width);
27994 resultobj = SWIG_From_int(static_cast< int >(result));
27995 return resultobj;
27996 fail:
27997 return NULL;
27998 }
27999
28000
28001 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28002 PyObject *obj;
28003 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28004 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28005 return SWIG_Py_Void();
28006 }
28007
28008 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28009 return SWIG_Python_InitShadowInstance(args);
28010 }
28011
28012 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28013 PyObject *resultobj = 0;
28014 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28015 int arg2 = (int) 0 ;
28016 wxListEvent *result = 0 ;
28017 int val1 ;
28018 int ecode1 = 0 ;
28019 int val2 ;
28020 int ecode2 = 0 ;
28021 PyObject * obj0 = 0 ;
28022 PyObject * obj1 = 0 ;
28023 char * kwnames[] = {
28024 (char *) "commandType",(char *) "id", NULL
28025 };
28026
28027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28028 if (obj0) {
28029 ecode1 = SWIG_AsVal_int(obj0, &val1);
28030 if (!SWIG_IsOK(ecode1)) {
28031 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28032 }
28033 arg1 = static_cast< wxEventType >(val1);
28034 }
28035 if (obj1) {
28036 ecode2 = SWIG_AsVal_int(obj1, &val2);
28037 if (!SWIG_IsOK(ecode2)) {
28038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28039 }
28040 arg2 = static_cast< int >(val2);
28041 }
28042 {
28043 PyThreadState* __tstate = wxPyBeginAllowThreads();
28044 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28045 wxPyEndAllowThreads(__tstate);
28046 if (PyErr_Occurred()) SWIG_fail;
28047 }
28048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28049 return resultobj;
28050 fail:
28051 return NULL;
28052 }
28053
28054
28055 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28056 PyObject *resultobj = 0;
28057 wxListEvent *arg1 = (wxListEvent *) 0 ;
28058 int arg2 ;
28059 void *argp1 = 0 ;
28060 int res1 = 0 ;
28061 int val2 ;
28062 int ecode2 = 0 ;
28063 PyObject *swig_obj[2] ;
28064
28065 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28067 if (!SWIG_IsOK(res1)) {
28068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28069 }
28070 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28071 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28072 if (!SWIG_IsOK(ecode2)) {
28073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28074 }
28075 arg2 = static_cast< int >(val2);
28076 if (arg1) (arg1)->m_code = arg2;
28077
28078 resultobj = SWIG_Py_Void();
28079 return resultobj;
28080 fail:
28081 return NULL;
28082 }
28083
28084
28085 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28086 PyObject *resultobj = 0;
28087 wxListEvent *arg1 = (wxListEvent *) 0 ;
28088 int result;
28089 void *argp1 = 0 ;
28090 int res1 = 0 ;
28091 PyObject *swig_obj[1] ;
28092
28093 if (!args) SWIG_fail;
28094 swig_obj[0] = args;
28095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28096 if (!SWIG_IsOK(res1)) {
28097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28098 }
28099 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28100 result = (int) ((arg1)->m_code);
28101 resultobj = SWIG_From_int(static_cast< int >(result));
28102 return resultobj;
28103 fail:
28104 return NULL;
28105 }
28106
28107
28108 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28109 PyObject *resultobj = 0;
28110 wxListEvent *arg1 = (wxListEvent *) 0 ;
28111 long arg2 ;
28112 void *argp1 = 0 ;
28113 int res1 = 0 ;
28114 long val2 ;
28115 int ecode2 = 0 ;
28116 PyObject *swig_obj[2] ;
28117
28118 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28120 if (!SWIG_IsOK(res1)) {
28121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28122 }
28123 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28124 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28125 if (!SWIG_IsOK(ecode2)) {
28126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28127 }
28128 arg2 = static_cast< long >(val2);
28129 if (arg1) (arg1)->m_oldItemIndex = arg2;
28130
28131 resultobj = SWIG_Py_Void();
28132 return resultobj;
28133 fail:
28134 return NULL;
28135 }
28136
28137
28138 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28139 PyObject *resultobj = 0;
28140 wxListEvent *arg1 = (wxListEvent *) 0 ;
28141 long result;
28142 void *argp1 = 0 ;
28143 int res1 = 0 ;
28144 PyObject *swig_obj[1] ;
28145
28146 if (!args) SWIG_fail;
28147 swig_obj[0] = args;
28148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28149 if (!SWIG_IsOK(res1)) {
28150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28151 }
28152 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28153 result = (long) ((arg1)->m_oldItemIndex);
28154 resultobj = SWIG_From_long(static_cast< long >(result));
28155 return resultobj;
28156 fail:
28157 return NULL;
28158 }
28159
28160
28161 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28162 PyObject *resultobj = 0;
28163 wxListEvent *arg1 = (wxListEvent *) 0 ;
28164 long arg2 ;
28165 void *argp1 = 0 ;
28166 int res1 = 0 ;
28167 long val2 ;
28168 int ecode2 = 0 ;
28169 PyObject *swig_obj[2] ;
28170
28171 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28173 if (!SWIG_IsOK(res1)) {
28174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28175 }
28176 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28177 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28178 if (!SWIG_IsOK(ecode2)) {
28179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28180 }
28181 arg2 = static_cast< long >(val2);
28182 if (arg1) (arg1)->m_itemIndex = arg2;
28183
28184 resultobj = SWIG_Py_Void();
28185 return resultobj;
28186 fail:
28187 return NULL;
28188 }
28189
28190
28191 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28192 PyObject *resultobj = 0;
28193 wxListEvent *arg1 = (wxListEvent *) 0 ;
28194 long result;
28195 void *argp1 = 0 ;
28196 int res1 = 0 ;
28197 PyObject *swig_obj[1] ;
28198
28199 if (!args) SWIG_fail;
28200 swig_obj[0] = args;
28201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28202 if (!SWIG_IsOK(res1)) {
28203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28204 }
28205 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28206 result = (long) ((arg1)->m_itemIndex);
28207 resultobj = SWIG_From_long(static_cast< long >(result));
28208 return resultobj;
28209 fail:
28210 return NULL;
28211 }
28212
28213
28214 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28215 PyObject *resultobj = 0;
28216 wxListEvent *arg1 = (wxListEvent *) 0 ;
28217 int arg2 ;
28218 void *argp1 = 0 ;
28219 int res1 = 0 ;
28220 int val2 ;
28221 int ecode2 = 0 ;
28222 PyObject *swig_obj[2] ;
28223
28224 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28226 if (!SWIG_IsOK(res1)) {
28227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28228 }
28229 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28230 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28231 if (!SWIG_IsOK(ecode2)) {
28232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28233 }
28234 arg2 = static_cast< int >(val2);
28235 if (arg1) (arg1)->m_col = arg2;
28236
28237 resultobj = SWIG_Py_Void();
28238 return resultobj;
28239 fail:
28240 return NULL;
28241 }
28242
28243
28244 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28245 PyObject *resultobj = 0;
28246 wxListEvent *arg1 = (wxListEvent *) 0 ;
28247 int result;
28248 void *argp1 = 0 ;
28249 int res1 = 0 ;
28250 PyObject *swig_obj[1] ;
28251
28252 if (!args) SWIG_fail;
28253 swig_obj[0] = args;
28254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28255 if (!SWIG_IsOK(res1)) {
28256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28257 }
28258 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28259 result = (int) ((arg1)->m_col);
28260 resultobj = SWIG_From_int(static_cast< int >(result));
28261 return resultobj;
28262 fail:
28263 return NULL;
28264 }
28265
28266
28267 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28268 PyObject *resultobj = 0;
28269 wxListEvent *arg1 = (wxListEvent *) 0 ;
28270 wxPoint *arg2 = (wxPoint *) 0 ;
28271 void *argp1 = 0 ;
28272 int res1 = 0 ;
28273 void *argp2 = 0 ;
28274 int res2 = 0 ;
28275 PyObject *swig_obj[2] ;
28276
28277 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28279 if (!SWIG_IsOK(res1)) {
28280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28281 }
28282 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28283 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28284 if (!SWIG_IsOK(res2)) {
28285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28286 }
28287 arg2 = reinterpret_cast< wxPoint * >(argp2);
28288 if (arg1) (arg1)->m_pointDrag = *arg2;
28289
28290 resultobj = SWIG_Py_Void();
28291 return resultobj;
28292 fail:
28293 return NULL;
28294 }
28295
28296
28297 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28298 PyObject *resultobj = 0;
28299 wxListEvent *arg1 = (wxListEvent *) 0 ;
28300 wxPoint *result = 0 ;
28301 void *argp1 = 0 ;
28302 int res1 = 0 ;
28303 PyObject *swig_obj[1] ;
28304
28305 if (!args) SWIG_fail;
28306 swig_obj[0] = args;
28307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28308 if (!SWIG_IsOK(res1)) {
28309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28310 }
28311 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28312 result = (wxPoint *)& ((arg1)->m_pointDrag);
28313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28314 return resultobj;
28315 fail:
28316 return NULL;
28317 }
28318
28319
28320 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28321 PyObject *resultobj = 0;
28322 wxListEvent *arg1 = (wxListEvent *) 0 ;
28323 wxListItem *result = 0 ;
28324 void *argp1 = 0 ;
28325 int res1 = 0 ;
28326 PyObject *swig_obj[1] ;
28327
28328 if (!args) SWIG_fail;
28329 swig_obj[0] = args;
28330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28331 if (!SWIG_IsOK(res1)) {
28332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28333 }
28334 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28335 result = (wxListItem *)& ((arg1)->m_item);
28336 {
28337 resultobj = wxPyMake_wxObject(result, 0);
28338 }
28339 return resultobj;
28340 fail:
28341 return NULL;
28342 }
28343
28344
28345 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28346 PyObject *resultobj = 0;
28347 wxListEvent *arg1 = (wxListEvent *) 0 ;
28348 int result;
28349 void *argp1 = 0 ;
28350 int res1 = 0 ;
28351 PyObject *swig_obj[1] ;
28352
28353 if (!args) SWIG_fail;
28354 swig_obj[0] = args;
28355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28356 if (!SWIG_IsOK(res1)) {
28357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28358 }
28359 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28360 {
28361 PyThreadState* __tstate = wxPyBeginAllowThreads();
28362 result = (int)(arg1)->GetKeyCode();
28363 wxPyEndAllowThreads(__tstate);
28364 if (PyErr_Occurred()) SWIG_fail;
28365 }
28366 resultobj = SWIG_From_int(static_cast< int >(result));
28367 return resultobj;
28368 fail:
28369 return NULL;
28370 }
28371
28372
28373 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28374 PyObject *resultobj = 0;
28375 wxListEvent *arg1 = (wxListEvent *) 0 ;
28376 long result;
28377 void *argp1 = 0 ;
28378 int res1 = 0 ;
28379 PyObject *swig_obj[1] ;
28380
28381 if (!args) SWIG_fail;
28382 swig_obj[0] = args;
28383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28384 if (!SWIG_IsOK(res1)) {
28385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28386 }
28387 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28388 {
28389 PyThreadState* __tstate = wxPyBeginAllowThreads();
28390 result = (long)(arg1)->GetIndex();
28391 wxPyEndAllowThreads(__tstate);
28392 if (PyErr_Occurred()) SWIG_fail;
28393 }
28394 resultobj = SWIG_From_long(static_cast< long >(result));
28395 return resultobj;
28396 fail:
28397 return NULL;
28398 }
28399
28400
28401 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28402 PyObject *resultobj = 0;
28403 wxListEvent *arg1 = (wxListEvent *) 0 ;
28404 int result;
28405 void *argp1 = 0 ;
28406 int res1 = 0 ;
28407 PyObject *swig_obj[1] ;
28408
28409 if (!args) SWIG_fail;
28410 swig_obj[0] = args;
28411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28412 if (!SWIG_IsOK(res1)) {
28413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28414 }
28415 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28416 {
28417 PyThreadState* __tstate = wxPyBeginAllowThreads();
28418 result = (int)(arg1)->GetColumn();
28419 wxPyEndAllowThreads(__tstate);
28420 if (PyErr_Occurred()) SWIG_fail;
28421 }
28422 resultobj = SWIG_From_int(static_cast< int >(result));
28423 return resultobj;
28424 fail:
28425 return NULL;
28426 }
28427
28428
28429 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28430 PyObject *resultobj = 0;
28431 wxListEvent *arg1 = (wxListEvent *) 0 ;
28432 wxPoint result;
28433 void *argp1 = 0 ;
28434 int res1 = 0 ;
28435 PyObject *swig_obj[1] ;
28436
28437 if (!args) SWIG_fail;
28438 swig_obj[0] = args;
28439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28440 if (!SWIG_IsOK(res1)) {
28441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28442 }
28443 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28444 {
28445 PyThreadState* __tstate = wxPyBeginAllowThreads();
28446 result = (arg1)->GetPoint();
28447 wxPyEndAllowThreads(__tstate);
28448 if (PyErr_Occurred()) SWIG_fail;
28449 }
28450 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28451 return resultobj;
28452 fail:
28453 return NULL;
28454 }
28455
28456
28457 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28458 PyObject *resultobj = 0;
28459 wxListEvent *arg1 = (wxListEvent *) 0 ;
28460 wxString *result = 0 ;
28461 void *argp1 = 0 ;
28462 int res1 = 0 ;
28463 PyObject *swig_obj[1] ;
28464
28465 if (!args) SWIG_fail;
28466 swig_obj[0] = args;
28467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28468 if (!SWIG_IsOK(res1)) {
28469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28470 }
28471 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28472 {
28473 PyThreadState* __tstate = wxPyBeginAllowThreads();
28474 {
28475 wxString const &_result_ref = (arg1)->GetLabel();
28476 result = (wxString *) &_result_ref;
28477 }
28478 wxPyEndAllowThreads(__tstate);
28479 if (PyErr_Occurred()) SWIG_fail;
28480 }
28481 {
28482 #if wxUSE_UNICODE
28483 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28484 #else
28485 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28486 #endif
28487 }
28488 return resultobj;
28489 fail:
28490 return NULL;
28491 }
28492
28493
28494 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28495 PyObject *resultobj = 0;
28496 wxListEvent *arg1 = (wxListEvent *) 0 ;
28497 wxString *result = 0 ;
28498 void *argp1 = 0 ;
28499 int res1 = 0 ;
28500 PyObject *swig_obj[1] ;
28501
28502 if (!args) SWIG_fail;
28503 swig_obj[0] = args;
28504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28505 if (!SWIG_IsOK(res1)) {
28506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28507 }
28508 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28509 {
28510 PyThreadState* __tstate = wxPyBeginAllowThreads();
28511 {
28512 wxString const &_result_ref = (arg1)->GetText();
28513 result = (wxString *) &_result_ref;
28514 }
28515 wxPyEndAllowThreads(__tstate);
28516 if (PyErr_Occurred()) SWIG_fail;
28517 }
28518 {
28519 #if wxUSE_UNICODE
28520 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28521 #else
28522 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28523 #endif
28524 }
28525 return resultobj;
28526 fail:
28527 return NULL;
28528 }
28529
28530
28531 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28532 PyObject *resultobj = 0;
28533 wxListEvent *arg1 = (wxListEvent *) 0 ;
28534 int result;
28535 void *argp1 = 0 ;
28536 int res1 = 0 ;
28537 PyObject *swig_obj[1] ;
28538
28539 if (!args) SWIG_fail;
28540 swig_obj[0] = args;
28541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28542 if (!SWIG_IsOK(res1)) {
28543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28544 }
28545 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28546 {
28547 PyThreadState* __tstate = wxPyBeginAllowThreads();
28548 result = (int)(arg1)->GetImage();
28549 wxPyEndAllowThreads(__tstate);
28550 if (PyErr_Occurred()) SWIG_fail;
28551 }
28552 resultobj = SWIG_From_int(static_cast< int >(result));
28553 return resultobj;
28554 fail:
28555 return NULL;
28556 }
28557
28558
28559 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28560 PyObject *resultobj = 0;
28561 wxListEvent *arg1 = (wxListEvent *) 0 ;
28562 long result;
28563 void *argp1 = 0 ;
28564 int res1 = 0 ;
28565 PyObject *swig_obj[1] ;
28566
28567 if (!args) SWIG_fail;
28568 swig_obj[0] = args;
28569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28570 if (!SWIG_IsOK(res1)) {
28571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28572 }
28573 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28574 {
28575 PyThreadState* __tstate = wxPyBeginAllowThreads();
28576 result = (long)(arg1)->GetData();
28577 wxPyEndAllowThreads(__tstate);
28578 if (PyErr_Occurred()) SWIG_fail;
28579 }
28580 resultobj = SWIG_From_long(static_cast< long >(result));
28581 return resultobj;
28582 fail:
28583 return NULL;
28584 }
28585
28586
28587 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28588 PyObject *resultobj = 0;
28589 wxListEvent *arg1 = (wxListEvent *) 0 ;
28590 long result;
28591 void *argp1 = 0 ;
28592 int res1 = 0 ;
28593 PyObject *swig_obj[1] ;
28594
28595 if (!args) SWIG_fail;
28596 swig_obj[0] = args;
28597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28598 if (!SWIG_IsOK(res1)) {
28599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28600 }
28601 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28602 {
28603 PyThreadState* __tstate = wxPyBeginAllowThreads();
28604 result = (long)(arg1)->GetMask();
28605 wxPyEndAllowThreads(__tstate);
28606 if (PyErr_Occurred()) SWIG_fail;
28607 }
28608 resultobj = SWIG_From_long(static_cast< long >(result));
28609 return resultobj;
28610 fail:
28611 return NULL;
28612 }
28613
28614
28615 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28616 PyObject *resultobj = 0;
28617 wxListEvent *arg1 = (wxListEvent *) 0 ;
28618 wxListItem *result = 0 ;
28619 void *argp1 = 0 ;
28620 int res1 = 0 ;
28621 PyObject *swig_obj[1] ;
28622
28623 if (!args) SWIG_fail;
28624 swig_obj[0] = args;
28625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28626 if (!SWIG_IsOK(res1)) {
28627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28628 }
28629 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28630 {
28631 PyThreadState* __tstate = wxPyBeginAllowThreads();
28632 {
28633 wxListItem const &_result_ref = (arg1)->GetItem();
28634 result = (wxListItem *) &_result_ref;
28635 }
28636 wxPyEndAllowThreads(__tstate);
28637 if (PyErr_Occurred()) SWIG_fail;
28638 }
28639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28640 return resultobj;
28641 fail:
28642 return NULL;
28643 }
28644
28645
28646 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28647 PyObject *resultobj = 0;
28648 wxListEvent *arg1 = (wxListEvent *) 0 ;
28649 long result;
28650 void *argp1 = 0 ;
28651 int res1 = 0 ;
28652 PyObject *swig_obj[1] ;
28653
28654 if (!args) SWIG_fail;
28655 swig_obj[0] = args;
28656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28657 if (!SWIG_IsOK(res1)) {
28658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28659 }
28660 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28661 {
28662 PyThreadState* __tstate = wxPyBeginAllowThreads();
28663 result = (long)(arg1)->GetCacheFrom();
28664 wxPyEndAllowThreads(__tstate);
28665 if (PyErr_Occurred()) SWIG_fail;
28666 }
28667 resultobj = SWIG_From_long(static_cast< long >(result));
28668 return resultobj;
28669 fail:
28670 return NULL;
28671 }
28672
28673
28674 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28675 PyObject *resultobj = 0;
28676 wxListEvent *arg1 = (wxListEvent *) 0 ;
28677 long result;
28678 void *argp1 = 0 ;
28679 int res1 = 0 ;
28680 PyObject *swig_obj[1] ;
28681
28682 if (!args) SWIG_fail;
28683 swig_obj[0] = args;
28684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28685 if (!SWIG_IsOK(res1)) {
28686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28687 }
28688 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28689 {
28690 PyThreadState* __tstate = wxPyBeginAllowThreads();
28691 result = (long)(arg1)->GetCacheTo();
28692 wxPyEndAllowThreads(__tstate);
28693 if (PyErr_Occurred()) SWIG_fail;
28694 }
28695 resultobj = SWIG_From_long(static_cast< long >(result));
28696 return resultobj;
28697 fail:
28698 return NULL;
28699 }
28700
28701
28702 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28703 PyObject *resultobj = 0;
28704 wxListEvent *arg1 = (wxListEvent *) 0 ;
28705 bool result;
28706 void *argp1 = 0 ;
28707 int res1 = 0 ;
28708 PyObject *swig_obj[1] ;
28709
28710 if (!args) SWIG_fail;
28711 swig_obj[0] = args;
28712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28713 if (!SWIG_IsOK(res1)) {
28714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28715 }
28716 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28717 {
28718 PyThreadState* __tstate = wxPyBeginAllowThreads();
28719 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28720 wxPyEndAllowThreads(__tstate);
28721 if (PyErr_Occurred()) SWIG_fail;
28722 }
28723 {
28724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28725 }
28726 return resultobj;
28727 fail:
28728 return NULL;
28729 }
28730
28731
28732 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28733 PyObject *resultobj = 0;
28734 wxListEvent *arg1 = (wxListEvent *) 0 ;
28735 bool arg2 ;
28736 void *argp1 = 0 ;
28737 int res1 = 0 ;
28738 bool val2 ;
28739 int ecode2 = 0 ;
28740 PyObject * obj0 = 0 ;
28741 PyObject * obj1 = 0 ;
28742 char * kwnames[] = {
28743 (char *) "self",(char *) "editCancelled", NULL
28744 };
28745
28746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28748 if (!SWIG_IsOK(res1)) {
28749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28750 }
28751 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28752 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28753 if (!SWIG_IsOK(ecode2)) {
28754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28755 }
28756 arg2 = static_cast< bool >(val2);
28757 {
28758 PyThreadState* __tstate = wxPyBeginAllowThreads();
28759 (arg1)->SetEditCanceled(arg2);
28760 wxPyEndAllowThreads(__tstate);
28761 if (PyErr_Occurred()) SWIG_fail;
28762 }
28763 resultobj = SWIG_Py_Void();
28764 return resultobj;
28765 fail:
28766 return NULL;
28767 }
28768
28769
28770 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28771 PyObject *obj;
28772 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28773 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28774 return SWIG_Py_Void();
28775 }
28776
28777 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28778 return SWIG_Python_InitShadowInstance(args);
28779 }
28780
28781 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28782 PyObject *resultobj = 0;
28783 wxWindow *arg1 = (wxWindow *) 0 ;
28784 int arg2 = (int) -1 ;
28785 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28786 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28787 wxSize const &arg4_defvalue = wxDefaultSize ;
28788 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28789 long arg5 = (long) wxLC_ICON ;
28790 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28791 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28792 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28793 wxString *arg7 = (wxString *) &arg7_defvalue ;
28794 wxPyListCtrl *result = 0 ;
28795 void *argp1 = 0 ;
28796 int res1 = 0 ;
28797 int val2 ;
28798 int ecode2 = 0 ;
28799 wxPoint temp3 ;
28800 wxSize temp4 ;
28801 long val5 ;
28802 int ecode5 = 0 ;
28803 void *argp6 = 0 ;
28804 int res6 = 0 ;
28805 bool temp7 = false ;
28806 PyObject * obj0 = 0 ;
28807 PyObject * obj1 = 0 ;
28808 PyObject * obj2 = 0 ;
28809 PyObject * obj3 = 0 ;
28810 PyObject * obj4 = 0 ;
28811 PyObject * obj5 = 0 ;
28812 PyObject * obj6 = 0 ;
28813 char * kwnames[] = {
28814 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28815 };
28816
28817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28819 if (!SWIG_IsOK(res1)) {
28820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28821 }
28822 arg1 = reinterpret_cast< wxWindow * >(argp1);
28823 if (obj1) {
28824 ecode2 = SWIG_AsVal_int(obj1, &val2);
28825 if (!SWIG_IsOK(ecode2)) {
28826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28827 }
28828 arg2 = static_cast< int >(val2);
28829 }
28830 if (obj2) {
28831 {
28832 arg3 = &temp3;
28833 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28834 }
28835 }
28836 if (obj3) {
28837 {
28838 arg4 = &temp4;
28839 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28840 }
28841 }
28842 if (obj4) {
28843 ecode5 = SWIG_AsVal_long(obj4, &val5);
28844 if (!SWIG_IsOK(ecode5)) {
28845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28846 }
28847 arg5 = static_cast< long >(val5);
28848 }
28849 if (obj5) {
28850 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28851 if (!SWIG_IsOK(res6)) {
28852 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28853 }
28854 if (!argp6) {
28855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28856 }
28857 arg6 = reinterpret_cast< wxValidator * >(argp6);
28858 }
28859 if (obj6) {
28860 {
28861 arg7 = wxString_in_helper(obj6);
28862 if (arg7 == NULL) SWIG_fail;
28863 temp7 = true;
28864 }
28865 }
28866 {
28867 if (!wxPyCheckForApp()) SWIG_fail;
28868 PyThreadState* __tstate = wxPyBeginAllowThreads();
28869 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28870 wxPyEndAllowThreads(__tstate);
28871 if (PyErr_Occurred()) SWIG_fail;
28872 }
28873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28874 {
28875 if (temp7)
28876 delete arg7;
28877 }
28878 return resultobj;
28879 fail:
28880 {
28881 if (temp7)
28882 delete arg7;
28883 }
28884 return NULL;
28885 }
28886
28887
28888 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28889 PyObject *resultobj = 0;
28890 wxPyListCtrl *result = 0 ;
28891
28892 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28893 {
28894 if (!wxPyCheckForApp()) SWIG_fail;
28895 PyThreadState* __tstate = wxPyBeginAllowThreads();
28896 result = (wxPyListCtrl *)new wxPyListCtrl();
28897 wxPyEndAllowThreads(__tstate);
28898 if (PyErr_Occurred()) SWIG_fail;
28899 }
28900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28901 return resultobj;
28902 fail:
28903 return NULL;
28904 }
28905
28906
28907 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28908 PyObject *resultobj = 0;
28909 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28910 wxWindow *arg2 = (wxWindow *) 0 ;
28911 int arg3 = (int) -1 ;
28912 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28913 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28914 wxSize const &arg5_defvalue = wxDefaultSize ;
28915 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28916 long arg6 = (long) wxLC_ICON ;
28917 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28918 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28919 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28920 wxString *arg8 = (wxString *) &arg8_defvalue ;
28921 bool result;
28922 void *argp1 = 0 ;
28923 int res1 = 0 ;
28924 void *argp2 = 0 ;
28925 int res2 = 0 ;
28926 int val3 ;
28927 int ecode3 = 0 ;
28928 wxPoint temp4 ;
28929 wxSize temp5 ;
28930 long val6 ;
28931 int ecode6 = 0 ;
28932 void *argp7 = 0 ;
28933 int res7 = 0 ;
28934 bool temp8 = false ;
28935 PyObject * obj0 = 0 ;
28936 PyObject * obj1 = 0 ;
28937 PyObject * obj2 = 0 ;
28938 PyObject * obj3 = 0 ;
28939 PyObject * obj4 = 0 ;
28940 PyObject * obj5 = 0 ;
28941 PyObject * obj6 = 0 ;
28942 PyObject * obj7 = 0 ;
28943 char * kwnames[] = {
28944 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28945 };
28946
28947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28949 if (!SWIG_IsOK(res1)) {
28950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28951 }
28952 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28953 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28954 if (!SWIG_IsOK(res2)) {
28955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28956 }
28957 arg2 = reinterpret_cast< wxWindow * >(argp2);
28958 if (obj2) {
28959 ecode3 = SWIG_AsVal_int(obj2, &val3);
28960 if (!SWIG_IsOK(ecode3)) {
28961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28962 }
28963 arg3 = static_cast< int >(val3);
28964 }
28965 if (obj3) {
28966 {
28967 arg4 = &temp4;
28968 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28969 }
28970 }
28971 if (obj4) {
28972 {
28973 arg5 = &temp5;
28974 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28975 }
28976 }
28977 if (obj5) {
28978 ecode6 = SWIG_AsVal_long(obj5, &val6);
28979 if (!SWIG_IsOK(ecode6)) {
28980 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28981 }
28982 arg6 = static_cast< long >(val6);
28983 }
28984 if (obj6) {
28985 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28986 if (!SWIG_IsOK(res7)) {
28987 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28988 }
28989 if (!argp7) {
28990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28991 }
28992 arg7 = reinterpret_cast< wxValidator * >(argp7);
28993 }
28994 if (obj7) {
28995 {
28996 arg8 = wxString_in_helper(obj7);
28997 if (arg8 == NULL) SWIG_fail;
28998 temp8 = true;
28999 }
29000 }
29001 {
29002 PyThreadState* __tstate = wxPyBeginAllowThreads();
29003 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29004 wxPyEndAllowThreads(__tstate);
29005 if (PyErr_Occurred()) SWIG_fail;
29006 }
29007 {
29008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29009 }
29010 {
29011 if (temp8)
29012 delete arg8;
29013 }
29014 return resultobj;
29015 fail:
29016 {
29017 if (temp8)
29018 delete arg8;
29019 }
29020 return NULL;
29021 }
29022
29023
29024 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29025 PyObject *resultobj = 0;
29026 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29027 PyObject *arg2 = (PyObject *) 0 ;
29028 PyObject *arg3 = (PyObject *) 0 ;
29029 void *argp1 = 0 ;
29030 int res1 = 0 ;
29031 PyObject * obj0 = 0 ;
29032 PyObject * obj1 = 0 ;
29033 PyObject * obj2 = 0 ;
29034 char * kwnames[] = {
29035 (char *) "self",(char *) "self",(char *) "_class", NULL
29036 };
29037
29038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29040 if (!SWIG_IsOK(res1)) {
29041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29042 }
29043 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29044 arg2 = obj1;
29045 arg3 = obj2;
29046 {
29047 PyThreadState* __tstate = wxPyBeginAllowThreads();
29048 (arg1)->_setCallbackInfo(arg2,arg3);
29049 wxPyEndAllowThreads(__tstate);
29050 if (PyErr_Occurred()) SWIG_fail;
29051 }
29052 resultobj = SWIG_Py_Void();
29053 return resultobj;
29054 fail:
29055 return NULL;
29056 }
29057
29058
29059 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29060 PyObject *resultobj = 0;
29061 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29062 int arg2 ;
29063 wxListItem *result = 0 ;
29064 void *argp1 = 0 ;
29065 int res1 = 0 ;
29066 int val2 ;
29067 int ecode2 = 0 ;
29068 PyObject * obj0 = 0 ;
29069 PyObject * obj1 = 0 ;
29070 char * kwnames[] = {
29071 (char *) "self",(char *) "col", NULL
29072 };
29073
29074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29076 if (!SWIG_IsOK(res1)) {
29077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29078 }
29079 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29080 ecode2 = SWIG_AsVal_int(obj1, &val2);
29081 if (!SWIG_IsOK(ecode2)) {
29082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29083 }
29084 arg2 = static_cast< int >(val2);
29085 {
29086 PyThreadState* __tstate = wxPyBeginAllowThreads();
29087 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29088 wxPyEndAllowThreads(__tstate);
29089 if (PyErr_Occurred()) SWIG_fail;
29090 }
29091 {
29092 resultobj = wxPyMake_wxObject(result, 0);
29093 }
29094 return resultobj;
29095 fail:
29096 return NULL;
29097 }
29098
29099
29100 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29101 PyObject *resultobj = 0;
29102 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29103 int arg2 ;
29104 wxListItem *arg3 = 0 ;
29105 bool result;
29106 void *argp1 = 0 ;
29107 int res1 = 0 ;
29108 int val2 ;
29109 int ecode2 = 0 ;
29110 void *argp3 = 0 ;
29111 int res3 = 0 ;
29112 PyObject * obj0 = 0 ;
29113 PyObject * obj1 = 0 ;
29114 PyObject * obj2 = 0 ;
29115 char * kwnames[] = {
29116 (char *) "self",(char *) "col",(char *) "item", NULL
29117 };
29118
29119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29121 if (!SWIG_IsOK(res1)) {
29122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29123 }
29124 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29125 ecode2 = SWIG_AsVal_int(obj1, &val2);
29126 if (!SWIG_IsOK(ecode2)) {
29127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29128 }
29129 arg2 = static_cast< int >(val2);
29130 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29131 if (!SWIG_IsOK(res3)) {
29132 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29133 }
29134 if (!argp3) {
29135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29136 }
29137 arg3 = reinterpret_cast< wxListItem * >(argp3);
29138 {
29139 PyThreadState* __tstate = wxPyBeginAllowThreads();
29140 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29141 wxPyEndAllowThreads(__tstate);
29142 if (PyErr_Occurred()) SWIG_fail;
29143 }
29144 {
29145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29146 }
29147 return resultobj;
29148 fail:
29149 return NULL;
29150 }
29151
29152
29153 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29154 PyObject *resultobj = 0;
29155 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29156 int arg2 ;
29157 int result;
29158 void *argp1 = 0 ;
29159 int res1 = 0 ;
29160 int val2 ;
29161 int ecode2 = 0 ;
29162 PyObject * obj0 = 0 ;
29163 PyObject * obj1 = 0 ;
29164 char * kwnames[] = {
29165 (char *) "self",(char *) "col", NULL
29166 };
29167
29168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29170 if (!SWIG_IsOK(res1)) {
29171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29172 }
29173 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29174 ecode2 = SWIG_AsVal_int(obj1, &val2);
29175 if (!SWIG_IsOK(ecode2)) {
29176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29177 }
29178 arg2 = static_cast< int >(val2);
29179 {
29180 PyThreadState* __tstate = wxPyBeginAllowThreads();
29181 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29182 wxPyEndAllowThreads(__tstate);
29183 if (PyErr_Occurred()) SWIG_fail;
29184 }
29185 resultobj = SWIG_From_int(static_cast< int >(result));
29186 return resultobj;
29187 fail:
29188 return NULL;
29189 }
29190
29191
29192 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29193 PyObject *resultobj = 0;
29194 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29195 int arg2 ;
29196 int arg3 ;
29197 bool result;
29198 void *argp1 = 0 ;
29199 int res1 = 0 ;
29200 int val2 ;
29201 int ecode2 = 0 ;
29202 int val3 ;
29203 int ecode3 = 0 ;
29204 PyObject * obj0 = 0 ;
29205 PyObject * obj1 = 0 ;
29206 PyObject * obj2 = 0 ;
29207 char * kwnames[] = {
29208 (char *) "self",(char *) "col",(char *) "width", NULL
29209 };
29210
29211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29213 if (!SWIG_IsOK(res1)) {
29214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29215 }
29216 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29217 ecode2 = SWIG_AsVal_int(obj1, &val2);
29218 if (!SWIG_IsOK(ecode2)) {
29219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29220 }
29221 arg2 = static_cast< int >(val2);
29222 ecode3 = SWIG_AsVal_int(obj2, &val3);
29223 if (!SWIG_IsOK(ecode3)) {
29224 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29225 }
29226 arg3 = static_cast< int >(val3);
29227 {
29228 PyThreadState* __tstate = wxPyBeginAllowThreads();
29229 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29230 wxPyEndAllowThreads(__tstate);
29231 if (PyErr_Occurred()) SWIG_fail;
29232 }
29233 {
29234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29235 }
29236 return resultobj;
29237 fail:
29238 return NULL;
29239 }
29240
29241
29242 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29243 PyObject *resultobj = 0;
29244 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29245 int result;
29246 void *argp1 = 0 ;
29247 int res1 = 0 ;
29248 PyObject *swig_obj[1] ;
29249
29250 if (!args) SWIG_fail;
29251 swig_obj[0] = args;
29252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29253 if (!SWIG_IsOK(res1)) {
29254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29255 }
29256 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29257 {
29258 PyThreadState* __tstate = wxPyBeginAllowThreads();
29259 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29260 wxPyEndAllowThreads(__tstate);
29261 if (PyErr_Occurred()) SWIG_fail;
29262 }
29263 resultobj = SWIG_From_int(static_cast< int >(result));
29264 return resultobj;
29265 fail:
29266 return NULL;
29267 }
29268
29269
29270 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29271 PyObject *resultobj = 0;
29272 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29273 wxRect result;
29274 void *argp1 = 0 ;
29275 int res1 = 0 ;
29276 PyObject *swig_obj[1] ;
29277
29278 if (!args) SWIG_fail;
29279 swig_obj[0] = args;
29280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29281 if (!SWIG_IsOK(res1)) {
29282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29283 }
29284 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29285 {
29286 PyThreadState* __tstate = wxPyBeginAllowThreads();
29287 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29288 wxPyEndAllowThreads(__tstate);
29289 if (PyErr_Occurred()) SWIG_fail;
29290 }
29291 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29292 return resultobj;
29293 fail:
29294 return NULL;
29295 }
29296
29297
29298 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29299 PyObject *resultobj = 0;
29300 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29301 wxTextCtrl *result = 0 ;
29302 void *argp1 = 0 ;
29303 int res1 = 0 ;
29304 PyObject *swig_obj[1] ;
29305
29306 if (!args) SWIG_fail;
29307 swig_obj[0] = args;
29308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29309 if (!SWIG_IsOK(res1)) {
29310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29311 }
29312 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29313 {
29314 PyThreadState* __tstate = wxPyBeginAllowThreads();
29315 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29316 wxPyEndAllowThreads(__tstate);
29317 if (PyErr_Occurred()) SWIG_fail;
29318 }
29319 {
29320 resultobj = wxPyMake_wxObject(result, 0);
29321 }
29322 return resultobj;
29323 fail:
29324 return NULL;
29325 }
29326
29327
29328 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29329 PyObject *resultobj = 0;
29330 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29331 long arg2 ;
29332 int arg3 = (int) 0 ;
29333 wxListItem *result = 0 ;
29334 void *argp1 = 0 ;
29335 int res1 = 0 ;
29336 long val2 ;
29337 int ecode2 = 0 ;
29338 int val3 ;
29339 int ecode3 = 0 ;
29340 PyObject * obj0 = 0 ;
29341 PyObject * obj1 = 0 ;
29342 PyObject * obj2 = 0 ;
29343 char * kwnames[] = {
29344 (char *) "self",(char *) "itemId",(char *) "col", NULL
29345 };
29346
29347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29349 if (!SWIG_IsOK(res1)) {
29350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29351 }
29352 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29353 ecode2 = SWIG_AsVal_long(obj1, &val2);
29354 if (!SWIG_IsOK(ecode2)) {
29355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29356 }
29357 arg2 = static_cast< long >(val2);
29358 if (obj2) {
29359 ecode3 = SWIG_AsVal_int(obj2, &val3);
29360 if (!SWIG_IsOK(ecode3)) {
29361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29362 }
29363 arg3 = static_cast< int >(val3);
29364 }
29365 {
29366 PyThreadState* __tstate = wxPyBeginAllowThreads();
29367 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29368 wxPyEndAllowThreads(__tstate);
29369 if (PyErr_Occurred()) SWIG_fail;
29370 }
29371 {
29372 resultobj = wxPyMake_wxObject(result, 0);
29373 }
29374 return resultobj;
29375 fail:
29376 return NULL;
29377 }
29378
29379
29380 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29381 PyObject *resultobj = 0;
29382 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29383 wxListItem *arg2 = 0 ;
29384 bool result;
29385 void *argp1 = 0 ;
29386 int res1 = 0 ;
29387 void *argp2 = 0 ;
29388 int res2 = 0 ;
29389 PyObject * obj0 = 0 ;
29390 PyObject * obj1 = 0 ;
29391 char * kwnames[] = {
29392 (char *) "self",(char *) "info", NULL
29393 };
29394
29395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29397 if (!SWIG_IsOK(res1)) {
29398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29399 }
29400 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29402 if (!SWIG_IsOK(res2)) {
29403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29404 }
29405 if (!argp2) {
29406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29407 }
29408 arg2 = reinterpret_cast< wxListItem * >(argp2);
29409 {
29410 PyThreadState* __tstate = wxPyBeginAllowThreads();
29411 result = (bool)(arg1)->SetItem(*arg2);
29412 wxPyEndAllowThreads(__tstate);
29413 if (PyErr_Occurred()) SWIG_fail;
29414 }
29415 {
29416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29417 }
29418 return resultobj;
29419 fail:
29420 return NULL;
29421 }
29422
29423
29424 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29425 PyObject *resultobj = 0;
29426 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29427 long arg2 ;
29428 int arg3 ;
29429 wxString *arg4 = 0 ;
29430 int arg5 = (int) -1 ;
29431 long result;
29432 void *argp1 = 0 ;
29433 int res1 = 0 ;
29434 long val2 ;
29435 int ecode2 = 0 ;
29436 int val3 ;
29437 int ecode3 = 0 ;
29438 bool temp4 = false ;
29439 int val5 ;
29440 int ecode5 = 0 ;
29441 PyObject * obj0 = 0 ;
29442 PyObject * obj1 = 0 ;
29443 PyObject * obj2 = 0 ;
29444 PyObject * obj3 = 0 ;
29445 PyObject * obj4 = 0 ;
29446 char * kwnames[] = {
29447 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29448 };
29449
29450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29452 if (!SWIG_IsOK(res1)) {
29453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29454 }
29455 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29456 ecode2 = SWIG_AsVal_long(obj1, &val2);
29457 if (!SWIG_IsOK(ecode2)) {
29458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29459 }
29460 arg2 = static_cast< long >(val2);
29461 ecode3 = SWIG_AsVal_int(obj2, &val3);
29462 if (!SWIG_IsOK(ecode3)) {
29463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29464 }
29465 arg3 = static_cast< int >(val3);
29466 {
29467 arg4 = wxString_in_helper(obj3);
29468 if (arg4 == NULL) SWIG_fail;
29469 temp4 = true;
29470 }
29471 if (obj4) {
29472 ecode5 = SWIG_AsVal_int(obj4, &val5);
29473 if (!SWIG_IsOK(ecode5)) {
29474 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29475 }
29476 arg5 = static_cast< int >(val5);
29477 }
29478 {
29479 PyThreadState* __tstate = wxPyBeginAllowThreads();
29480 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29481 wxPyEndAllowThreads(__tstate);
29482 if (PyErr_Occurred()) SWIG_fail;
29483 }
29484 resultobj = SWIG_From_long(static_cast< long >(result));
29485 {
29486 if (temp4)
29487 delete arg4;
29488 }
29489 return resultobj;
29490 fail:
29491 {
29492 if (temp4)
29493 delete arg4;
29494 }
29495 return NULL;
29496 }
29497
29498
29499 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29500 PyObject *resultobj = 0;
29501 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29502 long arg2 ;
29503 long arg3 ;
29504 int result;
29505 void *argp1 = 0 ;
29506 int res1 = 0 ;
29507 long val2 ;
29508 int ecode2 = 0 ;
29509 long val3 ;
29510 int ecode3 = 0 ;
29511 PyObject * obj0 = 0 ;
29512 PyObject * obj1 = 0 ;
29513 PyObject * obj2 = 0 ;
29514 char * kwnames[] = {
29515 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29516 };
29517
29518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29520 if (!SWIG_IsOK(res1)) {
29521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29522 }
29523 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29524 ecode2 = SWIG_AsVal_long(obj1, &val2);
29525 if (!SWIG_IsOK(ecode2)) {
29526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29527 }
29528 arg2 = static_cast< long >(val2);
29529 ecode3 = SWIG_AsVal_long(obj2, &val3);
29530 if (!SWIG_IsOK(ecode3)) {
29531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29532 }
29533 arg3 = static_cast< long >(val3);
29534 {
29535 PyThreadState* __tstate = wxPyBeginAllowThreads();
29536 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29537 wxPyEndAllowThreads(__tstate);
29538 if (PyErr_Occurred()) SWIG_fail;
29539 }
29540 resultobj = SWIG_From_int(static_cast< int >(result));
29541 return resultobj;
29542 fail:
29543 return NULL;
29544 }
29545
29546
29547 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29548 PyObject *resultobj = 0;
29549 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29550 long arg2 ;
29551 long arg3 ;
29552 long arg4 ;
29553 bool result;
29554 void *argp1 = 0 ;
29555 int res1 = 0 ;
29556 long val2 ;
29557 int ecode2 = 0 ;
29558 long val3 ;
29559 int ecode3 = 0 ;
29560 long val4 ;
29561 int ecode4 = 0 ;
29562 PyObject * obj0 = 0 ;
29563 PyObject * obj1 = 0 ;
29564 PyObject * obj2 = 0 ;
29565 PyObject * obj3 = 0 ;
29566 char * kwnames[] = {
29567 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29568 };
29569
29570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29572 if (!SWIG_IsOK(res1)) {
29573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29574 }
29575 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29576 ecode2 = SWIG_AsVal_long(obj1, &val2);
29577 if (!SWIG_IsOK(ecode2)) {
29578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29579 }
29580 arg2 = static_cast< long >(val2);
29581 ecode3 = SWIG_AsVal_long(obj2, &val3);
29582 if (!SWIG_IsOK(ecode3)) {
29583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29584 }
29585 arg3 = static_cast< long >(val3);
29586 ecode4 = SWIG_AsVal_long(obj3, &val4);
29587 if (!SWIG_IsOK(ecode4)) {
29588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29589 }
29590 arg4 = static_cast< long >(val4);
29591 {
29592 PyThreadState* __tstate = wxPyBeginAllowThreads();
29593 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29594 wxPyEndAllowThreads(__tstate);
29595 if (PyErr_Occurred()) SWIG_fail;
29596 }
29597 {
29598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29599 }
29600 return resultobj;
29601 fail:
29602 return NULL;
29603 }
29604
29605
29606 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29607 PyObject *resultobj = 0;
29608 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29609 long arg2 ;
29610 int arg3 ;
29611 int arg4 = (int) -1 ;
29612 bool result;
29613 void *argp1 = 0 ;
29614 int res1 = 0 ;
29615 long val2 ;
29616 int ecode2 = 0 ;
29617 int val3 ;
29618 int ecode3 = 0 ;
29619 int val4 ;
29620 int ecode4 = 0 ;
29621 PyObject * obj0 = 0 ;
29622 PyObject * obj1 = 0 ;
29623 PyObject * obj2 = 0 ;
29624 PyObject * obj3 = 0 ;
29625 char * kwnames[] = {
29626 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29627 };
29628
29629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29631 if (!SWIG_IsOK(res1)) {
29632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29633 }
29634 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29635 ecode2 = SWIG_AsVal_long(obj1, &val2);
29636 if (!SWIG_IsOK(ecode2)) {
29637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29638 }
29639 arg2 = static_cast< long >(val2);
29640 ecode3 = SWIG_AsVal_int(obj2, &val3);
29641 if (!SWIG_IsOK(ecode3)) {
29642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29643 }
29644 arg3 = static_cast< int >(val3);
29645 if (obj3) {
29646 ecode4 = SWIG_AsVal_int(obj3, &val4);
29647 if (!SWIG_IsOK(ecode4)) {
29648 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29649 }
29650 arg4 = static_cast< int >(val4);
29651 }
29652 {
29653 PyThreadState* __tstate = wxPyBeginAllowThreads();
29654 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29655 wxPyEndAllowThreads(__tstate);
29656 if (PyErr_Occurred()) SWIG_fail;
29657 }
29658 {
29659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29660 }
29661 return resultobj;
29662 fail:
29663 return NULL;
29664 }
29665
29666
29667 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29668 PyObject *resultobj = 0;
29669 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29670 long arg2 ;
29671 long arg3 ;
29672 int arg4 ;
29673 bool result;
29674 void *argp1 = 0 ;
29675 int res1 = 0 ;
29676 long val2 ;
29677 int ecode2 = 0 ;
29678 long val3 ;
29679 int ecode3 = 0 ;
29680 int val4 ;
29681 int ecode4 = 0 ;
29682 PyObject * obj0 = 0 ;
29683 PyObject * obj1 = 0 ;
29684 PyObject * obj2 = 0 ;
29685 PyObject * obj3 = 0 ;
29686 char * kwnames[] = {
29687 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29688 };
29689
29690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29692 if (!SWIG_IsOK(res1)) {
29693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29694 }
29695 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29696 ecode2 = SWIG_AsVal_long(obj1, &val2);
29697 if (!SWIG_IsOK(ecode2)) {
29698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29699 }
29700 arg2 = static_cast< long >(val2);
29701 ecode3 = SWIG_AsVal_long(obj2, &val3);
29702 if (!SWIG_IsOK(ecode3)) {
29703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29704 }
29705 arg3 = static_cast< long >(val3);
29706 ecode4 = SWIG_AsVal_int(obj3, &val4);
29707 if (!SWIG_IsOK(ecode4)) {
29708 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29709 }
29710 arg4 = static_cast< int >(val4);
29711 {
29712 PyThreadState* __tstate = wxPyBeginAllowThreads();
29713 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29714 wxPyEndAllowThreads(__tstate);
29715 if (PyErr_Occurred()) SWIG_fail;
29716 }
29717 {
29718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29719 }
29720 return resultobj;
29721 fail:
29722 return NULL;
29723 }
29724
29725
29726 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29727 PyObject *resultobj = 0;
29728 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29729 long arg2 ;
29730 wxString result;
29731 void *argp1 = 0 ;
29732 int res1 = 0 ;
29733 long val2 ;
29734 int ecode2 = 0 ;
29735 PyObject * obj0 = 0 ;
29736 PyObject * obj1 = 0 ;
29737 char * kwnames[] = {
29738 (char *) "self",(char *) "item", NULL
29739 };
29740
29741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29743 if (!SWIG_IsOK(res1)) {
29744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29745 }
29746 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29747 ecode2 = SWIG_AsVal_long(obj1, &val2);
29748 if (!SWIG_IsOK(ecode2)) {
29749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29750 }
29751 arg2 = static_cast< long >(val2);
29752 {
29753 PyThreadState* __tstate = wxPyBeginAllowThreads();
29754 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29755 wxPyEndAllowThreads(__tstate);
29756 if (PyErr_Occurred()) SWIG_fail;
29757 }
29758 {
29759 #if wxUSE_UNICODE
29760 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29761 #else
29762 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29763 #endif
29764 }
29765 return resultobj;
29766 fail:
29767 return NULL;
29768 }
29769
29770
29771 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29772 PyObject *resultobj = 0;
29773 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29774 long arg2 ;
29775 wxString *arg3 = 0 ;
29776 void *argp1 = 0 ;
29777 int res1 = 0 ;
29778 long val2 ;
29779 int ecode2 = 0 ;
29780 bool temp3 = false ;
29781 PyObject * obj0 = 0 ;
29782 PyObject * obj1 = 0 ;
29783 PyObject * obj2 = 0 ;
29784 char * kwnames[] = {
29785 (char *) "self",(char *) "item",(char *) "str", NULL
29786 };
29787
29788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29790 if (!SWIG_IsOK(res1)) {
29791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29792 }
29793 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29794 ecode2 = SWIG_AsVal_long(obj1, &val2);
29795 if (!SWIG_IsOK(ecode2)) {
29796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29797 }
29798 arg2 = static_cast< long >(val2);
29799 {
29800 arg3 = wxString_in_helper(obj2);
29801 if (arg3 == NULL) SWIG_fail;
29802 temp3 = true;
29803 }
29804 {
29805 PyThreadState* __tstate = wxPyBeginAllowThreads();
29806 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29807 wxPyEndAllowThreads(__tstate);
29808 if (PyErr_Occurred()) SWIG_fail;
29809 }
29810 resultobj = SWIG_Py_Void();
29811 {
29812 if (temp3)
29813 delete arg3;
29814 }
29815 return resultobj;
29816 fail:
29817 {
29818 if (temp3)
29819 delete arg3;
29820 }
29821 return NULL;
29822 }
29823
29824
29825 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29826 PyObject *resultobj = 0;
29827 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29828 long arg2 ;
29829 long result;
29830 void *argp1 = 0 ;
29831 int res1 = 0 ;
29832 long val2 ;
29833 int ecode2 = 0 ;
29834 PyObject * obj0 = 0 ;
29835 PyObject * obj1 = 0 ;
29836 char * kwnames[] = {
29837 (char *) "self",(char *) "item", NULL
29838 };
29839
29840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29842 if (!SWIG_IsOK(res1)) {
29843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29844 }
29845 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29846 ecode2 = SWIG_AsVal_long(obj1, &val2);
29847 if (!SWIG_IsOK(ecode2)) {
29848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29849 }
29850 arg2 = static_cast< long >(val2);
29851 {
29852 PyThreadState* __tstate = wxPyBeginAllowThreads();
29853 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29854 wxPyEndAllowThreads(__tstate);
29855 if (PyErr_Occurred()) SWIG_fail;
29856 }
29857 resultobj = SWIG_From_long(static_cast< long >(result));
29858 return resultobj;
29859 fail:
29860 return NULL;
29861 }
29862
29863
29864 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29865 PyObject *resultobj = 0;
29866 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29867 long arg2 ;
29868 long arg3 ;
29869 bool result;
29870 void *argp1 = 0 ;
29871 int res1 = 0 ;
29872 long val2 ;
29873 int ecode2 = 0 ;
29874 long val3 ;
29875 int ecode3 = 0 ;
29876 PyObject * obj0 = 0 ;
29877 PyObject * obj1 = 0 ;
29878 PyObject * obj2 = 0 ;
29879 char * kwnames[] = {
29880 (char *) "self",(char *) "item",(char *) "data", NULL
29881 };
29882
29883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29885 if (!SWIG_IsOK(res1)) {
29886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29887 }
29888 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29889 ecode2 = SWIG_AsVal_long(obj1, &val2);
29890 if (!SWIG_IsOK(ecode2)) {
29891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29892 }
29893 arg2 = static_cast< long >(val2);
29894 ecode3 = SWIG_AsVal_long(obj2, &val3);
29895 if (!SWIG_IsOK(ecode3)) {
29896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29897 }
29898 arg3 = static_cast< long >(val3);
29899 {
29900 PyThreadState* __tstate = wxPyBeginAllowThreads();
29901 result = (bool)(arg1)->SetItemData(arg2,arg3);
29902 wxPyEndAllowThreads(__tstate);
29903 if (PyErr_Occurred()) SWIG_fail;
29904 }
29905 {
29906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29907 }
29908 return resultobj;
29909 fail:
29910 return NULL;
29911 }
29912
29913
29914 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29915 PyObject *resultobj = 0;
29916 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29917 long arg2 ;
29918 wxPoint result;
29919 void *argp1 = 0 ;
29920 int res1 = 0 ;
29921 long val2 ;
29922 int ecode2 = 0 ;
29923 PyObject * obj0 = 0 ;
29924 PyObject * obj1 = 0 ;
29925 char * kwnames[] = {
29926 (char *) "self",(char *) "item", NULL
29927 };
29928
29929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29931 if (!SWIG_IsOK(res1)) {
29932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29933 }
29934 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29935 ecode2 = SWIG_AsVal_long(obj1, &val2);
29936 if (!SWIG_IsOK(ecode2)) {
29937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29938 }
29939 arg2 = static_cast< long >(val2);
29940 {
29941 PyThreadState* __tstate = wxPyBeginAllowThreads();
29942 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29943 wxPyEndAllowThreads(__tstate);
29944 if (PyErr_Occurred()) SWIG_fail;
29945 }
29946 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29947 return resultobj;
29948 fail:
29949 return NULL;
29950 }
29951
29952
29953 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29954 PyObject *resultobj = 0;
29955 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29956 long arg2 ;
29957 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29958 wxRect result;
29959 void *argp1 = 0 ;
29960 int res1 = 0 ;
29961 long val2 ;
29962 int ecode2 = 0 ;
29963 int val3 ;
29964 int ecode3 = 0 ;
29965 PyObject * obj0 = 0 ;
29966 PyObject * obj1 = 0 ;
29967 PyObject * obj2 = 0 ;
29968 char * kwnames[] = {
29969 (char *) "self",(char *) "item",(char *) "code", NULL
29970 };
29971
29972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29974 if (!SWIG_IsOK(res1)) {
29975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29976 }
29977 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29978 ecode2 = SWIG_AsVal_long(obj1, &val2);
29979 if (!SWIG_IsOK(ecode2)) {
29980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29981 }
29982 arg2 = static_cast< long >(val2);
29983 if (obj2) {
29984 ecode3 = SWIG_AsVal_int(obj2, &val3);
29985 if (!SWIG_IsOK(ecode3)) {
29986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29987 }
29988 arg3 = static_cast< int >(val3);
29989 }
29990 {
29991 PyThreadState* __tstate = wxPyBeginAllowThreads();
29992 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29993 wxPyEndAllowThreads(__tstate);
29994 if (PyErr_Occurred()) SWIG_fail;
29995 }
29996 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29997 return resultobj;
29998 fail:
29999 return NULL;
30000 }
30001
30002
30003 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30004 PyObject *resultobj = 0;
30005 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30006 long arg2 ;
30007 wxPoint *arg3 = 0 ;
30008 bool result;
30009 void *argp1 = 0 ;
30010 int res1 = 0 ;
30011 long val2 ;
30012 int ecode2 = 0 ;
30013 wxPoint temp3 ;
30014 PyObject * obj0 = 0 ;
30015 PyObject * obj1 = 0 ;
30016 PyObject * obj2 = 0 ;
30017 char * kwnames[] = {
30018 (char *) "self",(char *) "item",(char *) "pos", NULL
30019 };
30020
30021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30023 if (!SWIG_IsOK(res1)) {
30024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30025 }
30026 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30027 ecode2 = SWIG_AsVal_long(obj1, &val2);
30028 if (!SWIG_IsOK(ecode2)) {
30029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30030 }
30031 arg2 = static_cast< long >(val2);
30032 {
30033 arg3 = &temp3;
30034 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30035 }
30036 {
30037 PyThreadState* __tstate = wxPyBeginAllowThreads();
30038 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30039 wxPyEndAllowThreads(__tstate);
30040 if (PyErr_Occurred()) SWIG_fail;
30041 }
30042 {
30043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30044 }
30045 return resultobj;
30046 fail:
30047 return NULL;
30048 }
30049
30050
30051 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30052 PyObject *resultobj = 0;
30053 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30054 int result;
30055 void *argp1 = 0 ;
30056 int res1 = 0 ;
30057 PyObject *swig_obj[1] ;
30058
30059 if (!args) SWIG_fail;
30060 swig_obj[0] = args;
30061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30062 if (!SWIG_IsOK(res1)) {
30063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30064 }
30065 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30066 {
30067 PyThreadState* __tstate = wxPyBeginAllowThreads();
30068 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30069 wxPyEndAllowThreads(__tstate);
30070 if (PyErr_Occurred()) SWIG_fail;
30071 }
30072 resultobj = SWIG_From_int(static_cast< int >(result));
30073 return resultobj;
30074 fail:
30075 return NULL;
30076 }
30077
30078
30079 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30080 PyObject *resultobj = 0;
30081 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30082 int result;
30083 void *argp1 = 0 ;
30084 int res1 = 0 ;
30085 PyObject *swig_obj[1] ;
30086
30087 if (!args) SWIG_fail;
30088 swig_obj[0] = args;
30089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30090 if (!SWIG_IsOK(res1)) {
30091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30092 }
30093 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30094 {
30095 PyThreadState* __tstate = wxPyBeginAllowThreads();
30096 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30097 wxPyEndAllowThreads(__tstate);
30098 if (PyErr_Occurred()) SWIG_fail;
30099 }
30100 resultobj = SWIG_From_int(static_cast< int >(result));
30101 return resultobj;
30102 fail:
30103 return NULL;
30104 }
30105
30106
30107 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30108 PyObject *resultobj = 0;
30109 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30110 wxSize result;
30111 void *argp1 = 0 ;
30112 int res1 = 0 ;
30113 PyObject *swig_obj[1] ;
30114
30115 if (!args) SWIG_fail;
30116 swig_obj[0] = args;
30117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30118 if (!SWIG_IsOK(res1)) {
30119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30120 }
30121 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30122 {
30123 PyThreadState* __tstate = wxPyBeginAllowThreads();
30124 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30125 wxPyEndAllowThreads(__tstate);
30126 if (PyErr_Occurred()) SWIG_fail;
30127 }
30128 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30129 return resultobj;
30130 fail:
30131 return NULL;
30132 }
30133
30134
30135 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30136 PyObject *resultobj = 0;
30137 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30138 int arg2 ;
30139 bool arg3 = (bool) false ;
30140 void *argp1 = 0 ;
30141 int res1 = 0 ;
30142 int val2 ;
30143 int ecode2 = 0 ;
30144 bool val3 ;
30145 int ecode3 = 0 ;
30146 PyObject * obj0 = 0 ;
30147 PyObject * obj1 = 0 ;
30148 PyObject * obj2 = 0 ;
30149 char * kwnames[] = {
30150 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30151 };
30152
30153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30155 if (!SWIG_IsOK(res1)) {
30156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30157 }
30158 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30159 ecode2 = SWIG_AsVal_int(obj1, &val2);
30160 if (!SWIG_IsOK(ecode2)) {
30161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30162 }
30163 arg2 = static_cast< int >(val2);
30164 if (obj2) {
30165 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30166 if (!SWIG_IsOK(ecode3)) {
30167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30168 }
30169 arg3 = static_cast< bool >(val3);
30170 }
30171 {
30172 PyThreadState* __tstate = wxPyBeginAllowThreads();
30173 (arg1)->SetItemSpacing(arg2,arg3);
30174 wxPyEndAllowThreads(__tstate);
30175 if (PyErr_Occurred()) SWIG_fail;
30176 }
30177 resultobj = SWIG_Py_Void();
30178 return resultobj;
30179 fail:
30180 return NULL;
30181 }
30182
30183
30184 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30185 PyObject *resultobj = 0;
30186 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30187 int result;
30188 void *argp1 = 0 ;
30189 int res1 = 0 ;
30190 PyObject *swig_obj[1] ;
30191
30192 if (!args) SWIG_fail;
30193 swig_obj[0] = args;
30194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30195 if (!SWIG_IsOK(res1)) {
30196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30197 }
30198 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30199 {
30200 PyThreadState* __tstate = wxPyBeginAllowThreads();
30201 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30202 wxPyEndAllowThreads(__tstate);
30203 if (PyErr_Occurred()) SWIG_fail;
30204 }
30205 resultobj = SWIG_From_int(static_cast< int >(result));
30206 return resultobj;
30207 fail:
30208 return NULL;
30209 }
30210
30211
30212 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30213 PyObject *resultobj = 0;
30214 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30215 wxColour result;
30216 void *argp1 = 0 ;
30217 int res1 = 0 ;
30218 PyObject *swig_obj[1] ;
30219
30220 if (!args) SWIG_fail;
30221 swig_obj[0] = args;
30222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30223 if (!SWIG_IsOK(res1)) {
30224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30225 }
30226 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30227 {
30228 PyThreadState* __tstate = wxPyBeginAllowThreads();
30229 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30230 wxPyEndAllowThreads(__tstate);
30231 if (PyErr_Occurred()) SWIG_fail;
30232 }
30233 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30234 return resultobj;
30235 fail:
30236 return NULL;
30237 }
30238
30239
30240 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30241 PyObject *resultobj = 0;
30242 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30243 wxColour *arg2 = 0 ;
30244 void *argp1 = 0 ;
30245 int res1 = 0 ;
30246 wxColour temp2 ;
30247 PyObject * obj0 = 0 ;
30248 PyObject * obj1 = 0 ;
30249 char * kwnames[] = {
30250 (char *) "self",(char *) "col", NULL
30251 };
30252
30253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30255 if (!SWIG_IsOK(res1)) {
30256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30257 }
30258 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30259 {
30260 arg2 = &temp2;
30261 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30262 }
30263 {
30264 PyThreadState* __tstate = wxPyBeginAllowThreads();
30265 (arg1)->SetTextColour((wxColour const &)*arg2);
30266 wxPyEndAllowThreads(__tstate);
30267 if (PyErr_Occurred()) SWIG_fail;
30268 }
30269 resultobj = SWIG_Py_Void();
30270 return resultobj;
30271 fail:
30272 return NULL;
30273 }
30274
30275
30276 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30277 PyObject *resultobj = 0;
30278 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30279 long result;
30280 void *argp1 = 0 ;
30281 int res1 = 0 ;
30282 PyObject *swig_obj[1] ;
30283
30284 if (!args) SWIG_fail;
30285 swig_obj[0] = args;
30286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30287 if (!SWIG_IsOK(res1)) {
30288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30289 }
30290 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30291 {
30292 PyThreadState* __tstate = wxPyBeginAllowThreads();
30293 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30294 wxPyEndAllowThreads(__tstate);
30295 if (PyErr_Occurred()) SWIG_fail;
30296 }
30297 resultobj = SWIG_From_long(static_cast< long >(result));
30298 return resultobj;
30299 fail:
30300 return NULL;
30301 }
30302
30303
30304 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30305 PyObject *resultobj = 0;
30306 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30307 long arg2 ;
30308 bool arg3 = (bool) true ;
30309 void *argp1 = 0 ;
30310 int res1 = 0 ;
30311 long val2 ;
30312 int ecode2 = 0 ;
30313 bool val3 ;
30314 int ecode3 = 0 ;
30315 PyObject * obj0 = 0 ;
30316 PyObject * obj1 = 0 ;
30317 PyObject * obj2 = 0 ;
30318 char * kwnames[] = {
30319 (char *) "self",(char *) "style",(char *) "add", NULL
30320 };
30321
30322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30324 if (!SWIG_IsOK(res1)) {
30325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30326 }
30327 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30328 ecode2 = SWIG_AsVal_long(obj1, &val2);
30329 if (!SWIG_IsOK(ecode2)) {
30330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30331 }
30332 arg2 = static_cast< long >(val2);
30333 if (obj2) {
30334 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30335 if (!SWIG_IsOK(ecode3)) {
30336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30337 }
30338 arg3 = static_cast< bool >(val3);
30339 }
30340 {
30341 PyThreadState* __tstate = wxPyBeginAllowThreads();
30342 (arg1)->SetSingleStyle(arg2,arg3);
30343 wxPyEndAllowThreads(__tstate);
30344 if (PyErr_Occurred()) SWIG_fail;
30345 }
30346 resultobj = SWIG_Py_Void();
30347 return resultobj;
30348 fail:
30349 return NULL;
30350 }
30351
30352
30353 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30354 PyObject *resultobj = 0;
30355 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30356 long arg2 ;
30357 int arg3 = (int) wxLIST_NEXT_ALL ;
30358 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30359 long result;
30360 void *argp1 = 0 ;
30361 int res1 = 0 ;
30362 long val2 ;
30363 int ecode2 = 0 ;
30364 int val3 ;
30365 int ecode3 = 0 ;
30366 int val4 ;
30367 int ecode4 = 0 ;
30368 PyObject * obj0 = 0 ;
30369 PyObject * obj1 = 0 ;
30370 PyObject * obj2 = 0 ;
30371 PyObject * obj3 = 0 ;
30372 char * kwnames[] = {
30373 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30374 };
30375
30376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30378 if (!SWIG_IsOK(res1)) {
30379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30380 }
30381 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30382 ecode2 = SWIG_AsVal_long(obj1, &val2);
30383 if (!SWIG_IsOK(ecode2)) {
30384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30385 }
30386 arg2 = static_cast< long >(val2);
30387 if (obj2) {
30388 ecode3 = SWIG_AsVal_int(obj2, &val3);
30389 if (!SWIG_IsOK(ecode3)) {
30390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30391 }
30392 arg3 = static_cast< int >(val3);
30393 }
30394 if (obj3) {
30395 ecode4 = SWIG_AsVal_int(obj3, &val4);
30396 if (!SWIG_IsOK(ecode4)) {
30397 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30398 }
30399 arg4 = static_cast< int >(val4);
30400 }
30401 {
30402 PyThreadState* __tstate = wxPyBeginAllowThreads();
30403 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30404 wxPyEndAllowThreads(__tstate);
30405 if (PyErr_Occurred()) SWIG_fail;
30406 }
30407 resultobj = SWIG_From_long(static_cast< long >(result));
30408 return resultobj;
30409 fail:
30410 return NULL;
30411 }
30412
30413
30414 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30415 PyObject *resultobj = 0;
30416 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30417 int arg2 ;
30418 wxImageList *result = 0 ;
30419 void *argp1 = 0 ;
30420 int res1 = 0 ;
30421 int val2 ;
30422 int ecode2 = 0 ;
30423 PyObject * obj0 = 0 ;
30424 PyObject * obj1 = 0 ;
30425 char * kwnames[] = {
30426 (char *) "self",(char *) "which", NULL
30427 };
30428
30429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30431 if (!SWIG_IsOK(res1)) {
30432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30433 }
30434 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30435 ecode2 = SWIG_AsVal_int(obj1, &val2);
30436 if (!SWIG_IsOK(ecode2)) {
30437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30438 }
30439 arg2 = static_cast< int >(val2);
30440 {
30441 PyThreadState* __tstate = wxPyBeginAllowThreads();
30442 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30443 wxPyEndAllowThreads(__tstate);
30444 if (PyErr_Occurred()) SWIG_fail;
30445 }
30446 {
30447 resultobj = wxPyMake_wxObject(result, (bool)0);
30448 }
30449 return resultobj;
30450 fail:
30451 return NULL;
30452 }
30453
30454
30455 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30456 PyObject *resultobj = 0;
30457 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30458 wxImageList *arg2 = (wxImageList *) 0 ;
30459 int arg3 ;
30460 void *argp1 = 0 ;
30461 int res1 = 0 ;
30462 void *argp2 = 0 ;
30463 int res2 = 0 ;
30464 int val3 ;
30465 int ecode3 = 0 ;
30466 PyObject * obj0 = 0 ;
30467 PyObject * obj1 = 0 ;
30468 PyObject * obj2 = 0 ;
30469 char * kwnames[] = {
30470 (char *) "self",(char *) "imageList",(char *) "which", NULL
30471 };
30472
30473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30475 if (!SWIG_IsOK(res1)) {
30476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30477 }
30478 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30479 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30480 if (!SWIG_IsOK(res2)) {
30481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30482 }
30483 arg2 = reinterpret_cast< wxImageList * >(argp2);
30484 ecode3 = SWIG_AsVal_int(obj2, &val3);
30485 if (!SWIG_IsOK(ecode3)) {
30486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30487 }
30488 arg3 = static_cast< int >(val3);
30489 {
30490 PyThreadState* __tstate = wxPyBeginAllowThreads();
30491 (arg1)->SetImageList(arg2,arg3);
30492 wxPyEndAllowThreads(__tstate);
30493 if (PyErr_Occurred()) SWIG_fail;
30494 }
30495 resultobj = SWIG_Py_Void();
30496 return resultobj;
30497 fail:
30498 return NULL;
30499 }
30500
30501
30502 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30503 PyObject *resultobj = 0;
30504 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30505 wxImageList *arg2 = (wxImageList *) 0 ;
30506 int arg3 ;
30507 void *argp1 = 0 ;
30508 int res1 = 0 ;
30509 int res2 = 0 ;
30510 int val3 ;
30511 int ecode3 = 0 ;
30512 PyObject * obj0 = 0 ;
30513 PyObject * obj1 = 0 ;
30514 PyObject * obj2 = 0 ;
30515 char * kwnames[] = {
30516 (char *) "self",(char *) "imageList",(char *) "which", NULL
30517 };
30518
30519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30521 if (!SWIG_IsOK(res1)) {
30522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30523 }
30524 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30525 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30526 if (!SWIG_IsOK(res2)) {
30527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30528 }
30529 ecode3 = SWIG_AsVal_int(obj2, &val3);
30530 if (!SWIG_IsOK(ecode3)) {
30531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30532 }
30533 arg3 = static_cast< int >(val3);
30534 {
30535 PyThreadState* __tstate = wxPyBeginAllowThreads();
30536 (arg1)->AssignImageList(arg2,arg3);
30537 wxPyEndAllowThreads(__tstate);
30538 if (PyErr_Occurred()) SWIG_fail;
30539 }
30540 resultobj = SWIG_Py_Void();
30541 return resultobj;
30542 fail:
30543 return NULL;
30544 }
30545
30546
30547 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30548 PyObject *resultobj = 0;
30549 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30550 bool result;
30551 void *argp1 = 0 ;
30552 int res1 = 0 ;
30553 PyObject *swig_obj[1] ;
30554
30555 if (!args) SWIG_fail;
30556 swig_obj[0] = args;
30557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30558 if (!SWIG_IsOK(res1)) {
30559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30560 }
30561 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30562 {
30563 PyThreadState* __tstate = wxPyBeginAllowThreads();
30564 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30565 wxPyEndAllowThreads(__tstate);
30566 if (PyErr_Occurred()) SWIG_fail;
30567 }
30568 {
30569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30570 }
30571 return resultobj;
30572 fail:
30573 return NULL;
30574 }
30575
30576
30577 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30578 PyObject *resultobj = 0;
30579 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30580 bool result;
30581 void *argp1 = 0 ;
30582 int res1 = 0 ;
30583 PyObject *swig_obj[1] ;
30584
30585 if (!args) SWIG_fail;
30586 swig_obj[0] = args;
30587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30588 if (!SWIG_IsOK(res1)) {
30589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30590 }
30591 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30592 {
30593 PyThreadState* __tstate = wxPyBeginAllowThreads();
30594 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30595 wxPyEndAllowThreads(__tstate);
30596 if (PyErr_Occurred()) SWIG_fail;
30597 }
30598 {
30599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30600 }
30601 return resultobj;
30602 fail:
30603 return NULL;
30604 }
30605
30606
30607 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30608 PyObject *resultobj = 0;
30609 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30610 long arg2 ;
30611 void *argp1 = 0 ;
30612 int res1 = 0 ;
30613 long val2 ;
30614 int ecode2 = 0 ;
30615 PyObject * obj0 = 0 ;
30616 PyObject * obj1 = 0 ;
30617 char * kwnames[] = {
30618 (char *) "self",(char *) "item", NULL
30619 };
30620
30621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30623 if (!SWIG_IsOK(res1)) {
30624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30625 }
30626 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30627 ecode2 = SWIG_AsVal_long(obj1, &val2);
30628 if (!SWIG_IsOK(ecode2)) {
30629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30630 }
30631 arg2 = static_cast< long >(val2);
30632 {
30633 PyThreadState* __tstate = wxPyBeginAllowThreads();
30634 (arg1)->RefreshItem(arg2);
30635 wxPyEndAllowThreads(__tstate);
30636 if (PyErr_Occurred()) SWIG_fail;
30637 }
30638 resultobj = SWIG_Py_Void();
30639 return resultobj;
30640 fail:
30641 return NULL;
30642 }
30643
30644
30645 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30646 PyObject *resultobj = 0;
30647 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30648 long arg2 ;
30649 long arg3 ;
30650 void *argp1 = 0 ;
30651 int res1 = 0 ;
30652 long val2 ;
30653 int ecode2 = 0 ;
30654 long val3 ;
30655 int ecode3 = 0 ;
30656 PyObject * obj0 = 0 ;
30657 PyObject * obj1 = 0 ;
30658 PyObject * obj2 = 0 ;
30659 char * kwnames[] = {
30660 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30661 };
30662
30663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30665 if (!SWIG_IsOK(res1)) {
30666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30667 }
30668 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30669 ecode2 = SWIG_AsVal_long(obj1, &val2);
30670 if (!SWIG_IsOK(ecode2)) {
30671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30672 }
30673 arg2 = static_cast< long >(val2);
30674 ecode3 = SWIG_AsVal_long(obj2, &val3);
30675 if (!SWIG_IsOK(ecode3)) {
30676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30677 }
30678 arg3 = static_cast< long >(val3);
30679 {
30680 PyThreadState* __tstate = wxPyBeginAllowThreads();
30681 (arg1)->RefreshItems(arg2,arg3);
30682 wxPyEndAllowThreads(__tstate);
30683 if (PyErr_Occurred()) SWIG_fail;
30684 }
30685 resultobj = SWIG_Py_Void();
30686 return resultobj;
30687 fail:
30688 return NULL;
30689 }
30690
30691
30692 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30693 PyObject *resultobj = 0;
30694 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30695 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30696 bool result;
30697 void *argp1 = 0 ;
30698 int res1 = 0 ;
30699 int val2 ;
30700 int ecode2 = 0 ;
30701 PyObject * obj0 = 0 ;
30702 PyObject * obj1 = 0 ;
30703 char * kwnames[] = {
30704 (char *) "self",(char *) "flag", NULL
30705 };
30706
30707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30709 if (!SWIG_IsOK(res1)) {
30710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30711 }
30712 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30713 if (obj1) {
30714 ecode2 = SWIG_AsVal_int(obj1, &val2);
30715 if (!SWIG_IsOK(ecode2)) {
30716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30717 }
30718 arg2 = static_cast< int >(val2);
30719 }
30720 {
30721 PyThreadState* __tstate = wxPyBeginAllowThreads();
30722 result = (bool)(arg1)->Arrange(arg2);
30723 wxPyEndAllowThreads(__tstate);
30724 if (PyErr_Occurred()) SWIG_fail;
30725 }
30726 {
30727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30728 }
30729 return resultobj;
30730 fail:
30731 return NULL;
30732 }
30733
30734
30735 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30736 PyObject *resultobj = 0;
30737 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30738 long arg2 ;
30739 bool result;
30740 void *argp1 = 0 ;
30741 int res1 = 0 ;
30742 long val2 ;
30743 int ecode2 = 0 ;
30744 PyObject * obj0 = 0 ;
30745 PyObject * obj1 = 0 ;
30746 char * kwnames[] = {
30747 (char *) "self",(char *) "item", NULL
30748 };
30749
30750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30752 if (!SWIG_IsOK(res1)) {
30753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30754 }
30755 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30756 ecode2 = SWIG_AsVal_long(obj1, &val2);
30757 if (!SWIG_IsOK(ecode2)) {
30758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30759 }
30760 arg2 = static_cast< long >(val2);
30761 {
30762 PyThreadState* __tstate = wxPyBeginAllowThreads();
30763 result = (bool)(arg1)->DeleteItem(arg2);
30764 wxPyEndAllowThreads(__tstate);
30765 if (PyErr_Occurred()) SWIG_fail;
30766 }
30767 {
30768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30769 }
30770 return resultobj;
30771 fail:
30772 return NULL;
30773 }
30774
30775
30776 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30777 PyObject *resultobj = 0;
30778 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30779 bool result;
30780 void *argp1 = 0 ;
30781 int res1 = 0 ;
30782 PyObject *swig_obj[1] ;
30783
30784 if (!args) SWIG_fail;
30785 swig_obj[0] = args;
30786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30787 if (!SWIG_IsOK(res1)) {
30788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30789 }
30790 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30791 {
30792 PyThreadState* __tstate = wxPyBeginAllowThreads();
30793 result = (bool)(arg1)->DeleteAllItems();
30794 wxPyEndAllowThreads(__tstate);
30795 if (PyErr_Occurred()) SWIG_fail;
30796 }
30797 {
30798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30799 }
30800 return resultobj;
30801 fail:
30802 return NULL;
30803 }
30804
30805
30806 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30807 PyObject *resultobj = 0;
30808 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30809 int arg2 ;
30810 bool result;
30811 void *argp1 = 0 ;
30812 int res1 = 0 ;
30813 int val2 ;
30814 int ecode2 = 0 ;
30815 PyObject * obj0 = 0 ;
30816 PyObject * obj1 = 0 ;
30817 char * kwnames[] = {
30818 (char *) "self",(char *) "col", NULL
30819 };
30820
30821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30823 if (!SWIG_IsOK(res1)) {
30824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30825 }
30826 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30827 ecode2 = SWIG_AsVal_int(obj1, &val2);
30828 if (!SWIG_IsOK(ecode2)) {
30829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30830 }
30831 arg2 = static_cast< int >(val2);
30832 {
30833 PyThreadState* __tstate = wxPyBeginAllowThreads();
30834 result = (bool)(arg1)->DeleteColumn(arg2);
30835 wxPyEndAllowThreads(__tstate);
30836 if (PyErr_Occurred()) SWIG_fail;
30837 }
30838 {
30839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30840 }
30841 return resultobj;
30842 fail:
30843 return NULL;
30844 }
30845
30846
30847 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30848 PyObject *resultobj = 0;
30849 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30850 bool result;
30851 void *argp1 = 0 ;
30852 int res1 = 0 ;
30853 PyObject *swig_obj[1] ;
30854
30855 if (!args) SWIG_fail;
30856 swig_obj[0] = args;
30857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30858 if (!SWIG_IsOK(res1)) {
30859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30860 }
30861 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30862 {
30863 PyThreadState* __tstate = wxPyBeginAllowThreads();
30864 result = (bool)(arg1)->DeleteAllColumns();
30865 wxPyEndAllowThreads(__tstate);
30866 if (PyErr_Occurred()) SWIG_fail;
30867 }
30868 {
30869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30870 }
30871 return resultobj;
30872 fail:
30873 return NULL;
30874 }
30875
30876
30877 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30878 PyObject *resultobj = 0;
30879 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30880 void *argp1 = 0 ;
30881 int res1 = 0 ;
30882 PyObject *swig_obj[1] ;
30883
30884 if (!args) SWIG_fail;
30885 swig_obj[0] = args;
30886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30887 if (!SWIG_IsOK(res1)) {
30888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30889 }
30890 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30891 {
30892 PyThreadState* __tstate = wxPyBeginAllowThreads();
30893 (arg1)->ClearAll();
30894 wxPyEndAllowThreads(__tstate);
30895 if (PyErr_Occurred()) SWIG_fail;
30896 }
30897 resultobj = SWIG_Py_Void();
30898 return resultobj;
30899 fail:
30900 return NULL;
30901 }
30902
30903
30904 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30905 PyObject *resultobj = 0;
30906 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30907 long arg2 ;
30908 void *argp1 = 0 ;
30909 int res1 = 0 ;
30910 long val2 ;
30911 int ecode2 = 0 ;
30912 PyObject * obj0 = 0 ;
30913 PyObject * obj1 = 0 ;
30914 char * kwnames[] = {
30915 (char *) "self",(char *) "item", NULL
30916 };
30917
30918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30920 if (!SWIG_IsOK(res1)) {
30921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30922 }
30923 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30924 ecode2 = SWIG_AsVal_long(obj1, &val2);
30925 if (!SWIG_IsOK(ecode2)) {
30926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30927 }
30928 arg2 = static_cast< long >(val2);
30929 {
30930 PyThreadState* __tstate = wxPyBeginAllowThreads();
30931 (arg1)->EditLabel(arg2);
30932 wxPyEndAllowThreads(__tstate);
30933 if (PyErr_Occurred()) SWIG_fail;
30934 }
30935 resultobj = SWIG_Py_Void();
30936 return resultobj;
30937 fail:
30938 return NULL;
30939 }
30940
30941
30942 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30943 PyObject *resultobj = 0;
30944 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30945 long arg2 ;
30946 bool result;
30947 void *argp1 = 0 ;
30948 int res1 = 0 ;
30949 long val2 ;
30950 int ecode2 = 0 ;
30951 PyObject * obj0 = 0 ;
30952 PyObject * obj1 = 0 ;
30953 char * kwnames[] = {
30954 (char *) "self",(char *) "item", NULL
30955 };
30956
30957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30959 if (!SWIG_IsOK(res1)) {
30960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30961 }
30962 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30963 ecode2 = SWIG_AsVal_long(obj1, &val2);
30964 if (!SWIG_IsOK(ecode2)) {
30965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30966 }
30967 arg2 = static_cast< long >(val2);
30968 {
30969 PyThreadState* __tstate = wxPyBeginAllowThreads();
30970 result = (bool)(arg1)->EnsureVisible(arg2);
30971 wxPyEndAllowThreads(__tstate);
30972 if (PyErr_Occurred()) SWIG_fail;
30973 }
30974 {
30975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30976 }
30977 return resultobj;
30978 fail:
30979 return NULL;
30980 }
30981
30982
30983 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30984 PyObject *resultobj = 0;
30985 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30986 long arg2 ;
30987 wxString *arg3 = 0 ;
30988 bool arg4 = (bool) false ;
30989 long result;
30990 void *argp1 = 0 ;
30991 int res1 = 0 ;
30992 long val2 ;
30993 int ecode2 = 0 ;
30994 bool temp3 = false ;
30995 bool val4 ;
30996 int ecode4 = 0 ;
30997 PyObject * obj0 = 0 ;
30998 PyObject * obj1 = 0 ;
30999 PyObject * obj2 = 0 ;
31000 PyObject * obj3 = 0 ;
31001 char * kwnames[] = {
31002 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31003 };
31004
31005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31009 }
31010 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31011 ecode2 = SWIG_AsVal_long(obj1, &val2);
31012 if (!SWIG_IsOK(ecode2)) {
31013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31014 }
31015 arg2 = static_cast< long >(val2);
31016 {
31017 arg3 = wxString_in_helper(obj2);
31018 if (arg3 == NULL) SWIG_fail;
31019 temp3 = true;
31020 }
31021 if (obj3) {
31022 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31023 if (!SWIG_IsOK(ecode4)) {
31024 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31025 }
31026 arg4 = static_cast< bool >(val4);
31027 }
31028 {
31029 PyThreadState* __tstate = wxPyBeginAllowThreads();
31030 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31031 wxPyEndAllowThreads(__tstate);
31032 if (PyErr_Occurred()) SWIG_fail;
31033 }
31034 resultobj = SWIG_From_long(static_cast< long >(result));
31035 {
31036 if (temp3)
31037 delete arg3;
31038 }
31039 return resultobj;
31040 fail:
31041 {
31042 if (temp3)
31043 delete arg3;
31044 }
31045 return NULL;
31046 }
31047
31048
31049 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31050 PyObject *resultobj = 0;
31051 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31052 long arg2 ;
31053 long arg3 ;
31054 long result;
31055 void *argp1 = 0 ;
31056 int res1 = 0 ;
31057 long val2 ;
31058 int ecode2 = 0 ;
31059 long val3 ;
31060 int ecode3 = 0 ;
31061 PyObject * obj0 = 0 ;
31062 PyObject * obj1 = 0 ;
31063 PyObject * obj2 = 0 ;
31064 char * kwnames[] = {
31065 (char *) "self",(char *) "start",(char *) "data", NULL
31066 };
31067
31068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31070 if (!SWIG_IsOK(res1)) {
31071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31072 }
31073 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31074 ecode2 = SWIG_AsVal_long(obj1, &val2);
31075 if (!SWIG_IsOK(ecode2)) {
31076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31077 }
31078 arg2 = static_cast< long >(val2);
31079 ecode3 = SWIG_AsVal_long(obj2, &val3);
31080 if (!SWIG_IsOK(ecode3)) {
31081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31082 }
31083 arg3 = static_cast< long >(val3);
31084 {
31085 PyThreadState* __tstate = wxPyBeginAllowThreads();
31086 result = (long)(arg1)->FindItem(arg2,arg3);
31087 wxPyEndAllowThreads(__tstate);
31088 if (PyErr_Occurred()) SWIG_fail;
31089 }
31090 resultobj = SWIG_From_long(static_cast< long >(result));
31091 return resultobj;
31092 fail:
31093 return NULL;
31094 }
31095
31096
31097 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31098 PyObject *resultobj = 0;
31099 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31100 long arg2 ;
31101 wxPoint *arg3 = 0 ;
31102 int arg4 ;
31103 long result;
31104 void *argp1 = 0 ;
31105 int res1 = 0 ;
31106 long val2 ;
31107 int ecode2 = 0 ;
31108 wxPoint temp3 ;
31109 int val4 ;
31110 int ecode4 = 0 ;
31111 PyObject * obj0 = 0 ;
31112 PyObject * obj1 = 0 ;
31113 PyObject * obj2 = 0 ;
31114 PyObject * obj3 = 0 ;
31115 char * kwnames[] = {
31116 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31117 };
31118
31119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31123 }
31124 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31125 ecode2 = SWIG_AsVal_long(obj1, &val2);
31126 if (!SWIG_IsOK(ecode2)) {
31127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31128 }
31129 arg2 = static_cast< long >(val2);
31130 {
31131 arg3 = &temp3;
31132 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31133 }
31134 ecode4 = SWIG_AsVal_int(obj3, &val4);
31135 if (!SWIG_IsOK(ecode4)) {
31136 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31137 }
31138 arg4 = static_cast< int >(val4);
31139 {
31140 PyThreadState* __tstate = wxPyBeginAllowThreads();
31141 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31142 wxPyEndAllowThreads(__tstate);
31143 if (PyErr_Occurred()) SWIG_fail;
31144 }
31145 resultobj = SWIG_From_long(static_cast< long >(result));
31146 return resultobj;
31147 fail:
31148 return NULL;
31149 }
31150
31151
31152 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31153 PyObject *resultobj = 0;
31154 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31155 wxPoint *arg2 = 0 ;
31156 int *arg3 = 0 ;
31157 long result;
31158 void *argp1 = 0 ;
31159 int res1 = 0 ;
31160 wxPoint temp2 ;
31161 int temp3 ;
31162 int res3 = SWIG_TMPOBJ ;
31163 PyObject * obj0 = 0 ;
31164 PyObject * obj1 = 0 ;
31165 char * kwnames[] = {
31166 (char *) "self",(char *) "point", NULL
31167 };
31168
31169 arg3 = &temp3;
31170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31172 if (!SWIG_IsOK(res1)) {
31173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31174 }
31175 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31176 {
31177 arg2 = &temp2;
31178 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31179 }
31180 {
31181 PyThreadState* __tstate = wxPyBeginAllowThreads();
31182 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31183 wxPyEndAllowThreads(__tstate);
31184 if (PyErr_Occurred()) SWIG_fail;
31185 }
31186 resultobj = SWIG_From_long(static_cast< long >(result));
31187 if (SWIG_IsTmpObj(res3)) {
31188 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31189 } else {
31190 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31191 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31192 }
31193 return resultobj;
31194 fail:
31195 return NULL;
31196 }
31197
31198
31199 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31200 PyObject *resultobj = 0;
31201 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31202 wxPoint *arg2 = 0 ;
31203 int *arg3 = 0 ;
31204 long *arg4 = (long *) 0 ;
31205 long result;
31206 void *argp1 = 0 ;
31207 int res1 = 0 ;
31208 wxPoint temp2 ;
31209 int temp3 ;
31210 int res3 = SWIG_TMPOBJ ;
31211 long temp4 ;
31212 int res4 = SWIG_TMPOBJ ;
31213 PyObject * obj0 = 0 ;
31214 PyObject * obj1 = 0 ;
31215 char * kwnames[] = {
31216 (char *) "self",(char *) "point", NULL
31217 };
31218
31219 arg3 = &temp3;
31220 arg4 = &temp4;
31221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31223 if (!SWIG_IsOK(res1)) {
31224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31225 }
31226 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31227 {
31228 arg2 = &temp2;
31229 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31230 }
31231 {
31232 PyThreadState* __tstate = wxPyBeginAllowThreads();
31233 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31234 wxPyEndAllowThreads(__tstate);
31235 if (PyErr_Occurred()) SWIG_fail;
31236 }
31237 resultobj = SWIG_From_long(static_cast< long >(result));
31238 if (SWIG_IsTmpObj(res3)) {
31239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31240 } else {
31241 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31242 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31243 }
31244 if (SWIG_IsTmpObj(res4)) {
31245 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31246 } else {
31247 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31248 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31249 }
31250 return resultobj;
31251 fail:
31252 return NULL;
31253 }
31254
31255
31256 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31257 PyObject *resultobj = 0;
31258 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31259 wxListItem *arg2 = 0 ;
31260 long result;
31261 void *argp1 = 0 ;
31262 int res1 = 0 ;
31263 void *argp2 = 0 ;
31264 int res2 = 0 ;
31265 PyObject * obj0 = 0 ;
31266 PyObject * obj1 = 0 ;
31267 char * kwnames[] = {
31268 (char *) "self",(char *) "info", NULL
31269 };
31270
31271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31273 if (!SWIG_IsOK(res1)) {
31274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31275 }
31276 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31277 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31278 if (!SWIG_IsOK(res2)) {
31279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31280 }
31281 if (!argp2) {
31282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31283 }
31284 arg2 = reinterpret_cast< wxListItem * >(argp2);
31285 {
31286 PyThreadState* __tstate = wxPyBeginAllowThreads();
31287 result = (long)(arg1)->InsertItem(*arg2);
31288 wxPyEndAllowThreads(__tstate);
31289 if (PyErr_Occurred()) SWIG_fail;
31290 }
31291 resultobj = SWIG_From_long(static_cast< long >(result));
31292 return resultobj;
31293 fail:
31294 return NULL;
31295 }
31296
31297
31298 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31299 PyObject *resultobj = 0;
31300 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31301 long arg2 ;
31302 wxString *arg3 = 0 ;
31303 int arg4 = (int) -1 ;
31304 long result;
31305 void *argp1 = 0 ;
31306 int res1 = 0 ;
31307 long val2 ;
31308 int ecode2 = 0 ;
31309 bool temp3 = false ;
31310 int val4 ;
31311 int ecode4 = 0 ;
31312 PyObject * obj0 = 0 ;
31313 PyObject * obj1 = 0 ;
31314 PyObject * obj2 = 0 ;
31315 PyObject * obj3 = 0 ;
31316 char * kwnames[] = {
31317 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31318 };
31319
31320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31322 if (!SWIG_IsOK(res1)) {
31323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31324 }
31325 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31326 ecode2 = SWIG_AsVal_long(obj1, &val2);
31327 if (!SWIG_IsOK(ecode2)) {
31328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31329 }
31330 arg2 = static_cast< long >(val2);
31331 {
31332 arg3 = wxString_in_helper(obj2);
31333 if (arg3 == NULL) SWIG_fail;
31334 temp3 = true;
31335 }
31336 if (obj3) {
31337 ecode4 = SWIG_AsVal_int(obj3, &val4);
31338 if (!SWIG_IsOK(ecode4)) {
31339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31340 }
31341 arg4 = static_cast< int >(val4);
31342 }
31343 {
31344 PyThreadState* __tstate = wxPyBeginAllowThreads();
31345 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31346 wxPyEndAllowThreads(__tstate);
31347 if (PyErr_Occurred()) SWIG_fail;
31348 }
31349 resultobj = SWIG_From_long(static_cast< long >(result));
31350 {
31351 if (temp3)
31352 delete arg3;
31353 }
31354 return resultobj;
31355 fail:
31356 {
31357 if (temp3)
31358 delete arg3;
31359 }
31360 return NULL;
31361 }
31362
31363
31364 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31365 PyObject *resultobj = 0;
31366 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31367 long arg2 ;
31368 int arg3 ;
31369 long result;
31370 void *argp1 = 0 ;
31371 int res1 = 0 ;
31372 long val2 ;
31373 int ecode2 = 0 ;
31374 int val3 ;
31375 int ecode3 = 0 ;
31376 PyObject * obj0 = 0 ;
31377 PyObject * obj1 = 0 ;
31378 PyObject * obj2 = 0 ;
31379 char * kwnames[] = {
31380 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31381 };
31382
31383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31385 if (!SWIG_IsOK(res1)) {
31386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31387 }
31388 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31389 ecode2 = SWIG_AsVal_long(obj1, &val2);
31390 if (!SWIG_IsOK(ecode2)) {
31391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31392 }
31393 arg2 = static_cast< long >(val2);
31394 ecode3 = SWIG_AsVal_int(obj2, &val3);
31395 if (!SWIG_IsOK(ecode3)) {
31396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31397 }
31398 arg3 = static_cast< int >(val3);
31399 {
31400 PyThreadState* __tstate = wxPyBeginAllowThreads();
31401 result = (long)(arg1)->InsertItem(arg2,arg3);
31402 wxPyEndAllowThreads(__tstate);
31403 if (PyErr_Occurred()) SWIG_fail;
31404 }
31405 resultobj = SWIG_From_long(static_cast< long >(result));
31406 return resultobj;
31407 fail:
31408 return NULL;
31409 }
31410
31411
31412 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31413 PyObject *resultobj = 0;
31414 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31415 long arg2 ;
31416 wxString *arg3 = 0 ;
31417 int arg4 ;
31418 long result;
31419 void *argp1 = 0 ;
31420 int res1 = 0 ;
31421 long val2 ;
31422 int ecode2 = 0 ;
31423 bool temp3 = false ;
31424 int val4 ;
31425 int ecode4 = 0 ;
31426 PyObject * obj0 = 0 ;
31427 PyObject * obj1 = 0 ;
31428 PyObject * obj2 = 0 ;
31429 PyObject * obj3 = 0 ;
31430 char * kwnames[] = {
31431 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31432 };
31433
31434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31436 if (!SWIG_IsOK(res1)) {
31437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31438 }
31439 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31440 ecode2 = SWIG_AsVal_long(obj1, &val2);
31441 if (!SWIG_IsOK(ecode2)) {
31442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31443 }
31444 arg2 = static_cast< long >(val2);
31445 {
31446 arg3 = wxString_in_helper(obj2);
31447 if (arg3 == NULL) SWIG_fail;
31448 temp3 = true;
31449 }
31450 ecode4 = SWIG_AsVal_int(obj3, &val4);
31451 if (!SWIG_IsOK(ecode4)) {
31452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31453 }
31454 arg4 = static_cast< int >(val4);
31455 {
31456 PyThreadState* __tstate = wxPyBeginAllowThreads();
31457 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31458 wxPyEndAllowThreads(__tstate);
31459 if (PyErr_Occurred()) SWIG_fail;
31460 }
31461 resultobj = SWIG_From_long(static_cast< long >(result));
31462 {
31463 if (temp3)
31464 delete arg3;
31465 }
31466 return resultobj;
31467 fail:
31468 {
31469 if (temp3)
31470 delete arg3;
31471 }
31472 return NULL;
31473 }
31474
31475
31476 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31477 PyObject *resultobj = 0;
31478 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31479 long arg2 ;
31480 wxListItem *arg3 = 0 ;
31481 long result;
31482 void *argp1 = 0 ;
31483 int res1 = 0 ;
31484 long val2 ;
31485 int ecode2 = 0 ;
31486 void *argp3 = 0 ;
31487 int res3 = 0 ;
31488 PyObject * obj0 = 0 ;
31489 PyObject * obj1 = 0 ;
31490 PyObject * obj2 = 0 ;
31491 char * kwnames[] = {
31492 (char *) "self",(char *) "col",(char *) "info", NULL
31493 };
31494
31495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31497 if (!SWIG_IsOK(res1)) {
31498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31499 }
31500 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31501 ecode2 = SWIG_AsVal_long(obj1, &val2);
31502 if (!SWIG_IsOK(ecode2)) {
31503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31504 }
31505 arg2 = static_cast< long >(val2);
31506 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31507 if (!SWIG_IsOK(res3)) {
31508 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31509 }
31510 if (!argp3) {
31511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31512 }
31513 arg3 = reinterpret_cast< wxListItem * >(argp3);
31514 {
31515 PyThreadState* __tstate = wxPyBeginAllowThreads();
31516 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31517 wxPyEndAllowThreads(__tstate);
31518 if (PyErr_Occurred()) SWIG_fail;
31519 }
31520 resultobj = SWIG_From_long(static_cast< long >(result));
31521 return resultobj;
31522 fail:
31523 return NULL;
31524 }
31525
31526
31527 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31528 PyObject *resultobj = 0;
31529 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31530 long arg2 ;
31531 wxString *arg3 = 0 ;
31532 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31533 int arg5 = (int) -1 ;
31534 long result;
31535 void *argp1 = 0 ;
31536 int res1 = 0 ;
31537 long val2 ;
31538 int ecode2 = 0 ;
31539 bool temp3 = false ;
31540 int val4 ;
31541 int ecode4 = 0 ;
31542 int val5 ;
31543 int ecode5 = 0 ;
31544 PyObject * obj0 = 0 ;
31545 PyObject * obj1 = 0 ;
31546 PyObject * obj2 = 0 ;
31547 PyObject * obj3 = 0 ;
31548 PyObject * obj4 = 0 ;
31549 char * kwnames[] = {
31550 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31551 };
31552
31553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31555 if (!SWIG_IsOK(res1)) {
31556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31557 }
31558 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31559 ecode2 = SWIG_AsVal_long(obj1, &val2);
31560 if (!SWIG_IsOK(ecode2)) {
31561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31562 }
31563 arg2 = static_cast< long >(val2);
31564 {
31565 arg3 = wxString_in_helper(obj2);
31566 if (arg3 == NULL) SWIG_fail;
31567 temp3 = true;
31568 }
31569 if (obj3) {
31570 ecode4 = SWIG_AsVal_int(obj3, &val4);
31571 if (!SWIG_IsOK(ecode4)) {
31572 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31573 }
31574 arg4 = static_cast< int >(val4);
31575 }
31576 if (obj4) {
31577 ecode5 = SWIG_AsVal_int(obj4, &val5);
31578 if (!SWIG_IsOK(ecode5)) {
31579 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31580 }
31581 arg5 = static_cast< int >(val5);
31582 }
31583 {
31584 PyThreadState* __tstate = wxPyBeginAllowThreads();
31585 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31586 wxPyEndAllowThreads(__tstate);
31587 if (PyErr_Occurred()) SWIG_fail;
31588 }
31589 resultobj = SWIG_From_long(static_cast< long >(result));
31590 {
31591 if (temp3)
31592 delete arg3;
31593 }
31594 return resultobj;
31595 fail:
31596 {
31597 if (temp3)
31598 delete arg3;
31599 }
31600 return NULL;
31601 }
31602
31603
31604 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31605 PyObject *resultobj = 0;
31606 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31607 long arg2 ;
31608 void *argp1 = 0 ;
31609 int res1 = 0 ;
31610 long val2 ;
31611 int ecode2 = 0 ;
31612 PyObject * obj0 = 0 ;
31613 PyObject * obj1 = 0 ;
31614 char * kwnames[] = {
31615 (char *) "self",(char *) "count", NULL
31616 };
31617
31618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) 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_SetItemCount" "', 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_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31627 }
31628 arg2 = static_cast< long >(val2);
31629 {
31630 PyThreadState* __tstate = wxPyBeginAllowThreads();
31631 (arg1)->SetItemCount(arg2);
31632 wxPyEndAllowThreads(__tstate);
31633 if (PyErr_Occurred()) SWIG_fail;
31634 }
31635 resultobj = SWIG_Py_Void();
31636 return resultobj;
31637 fail:
31638 return NULL;
31639 }
31640
31641
31642 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31643 PyObject *resultobj = 0;
31644 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31645 int arg2 ;
31646 int arg3 ;
31647 bool result;
31648 void *argp1 = 0 ;
31649 int res1 = 0 ;
31650 int val2 ;
31651 int ecode2 = 0 ;
31652 int val3 ;
31653 int ecode3 = 0 ;
31654 PyObject * obj0 = 0 ;
31655 PyObject * obj1 = 0 ;
31656 PyObject * obj2 = 0 ;
31657 char * kwnames[] = {
31658 (char *) "self",(char *) "dx",(char *) "dy", NULL
31659 };
31660
31661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31663 if (!SWIG_IsOK(res1)) {
31664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31665 }
31666 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31667 ecode2 = SWIG_AsVal_int(obj1, &val2);
31668 if (!SWIG_IsOK(ecode2)) {
31669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31670 }
31671 arg2 = static_cast< int >(val2);
31672 ecode3 = SWIG_AsVal_int(obj2, &val3);
31673 if (!SWIG_IsOK(ecode3)) {
31674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31675 }
31676 arg3 = static_cast< int >(val3);
31677 {
31678 PyThreadState* __tstate = wxPyBeginAllowThreads();
31679 result = (bool)(arg1)->ScrollList(arg2,arg3);
31680 wxPyEndAllowThreads(__tstate);
31681 if (PyErr_Occurred()) SWIG_fail;
31682 }
31683 {
31684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31685 }
31686 return resultobj;
31687 fail:
31688 return NULL;
31689 }
31690
31691
31692 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31693 PyObject *resultobj = 0;
31694 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31695 long arg2 ;
31696 wxColour *arg3 = 0 ;
31697 void *argp1 = 0 ;
31698 int res1 = 0 ;
31699 long val2 ;
31700 int ecode2 = 0 ;
31701 wxColour temp3 ;
31702 PyObject * obj0 = 0 ;
31703 PyObject * obj1 = 0 ;
31704 PyObject * obj2 = 0 ;
31705 char * kwnames[] = {
31706 (char *) "self",(char *) "item",(char *) "col", NULL
31707 };
31708
31709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31711 if (!SWIG_IsOK(res1)) {
31712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31713 }
31714 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31715 ecode2 = SWIG_AsVal_long(obj1, &val2);
31716 if (!SWIG_IsOK(ecode2)) {
31717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31718 }
31719 arg2 = static_cast< long >(val2);
31720 {
31721 arg3 = &temp3;
31722 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31723 }
31724 {
31725 PyThreadState* __tstate = wxPyBeginAllowThreads();
31726 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31727 wxPyEndAllowThreads(__tstate);
31728 if (PyErr_Occurred()) SWIG_fail;
31729 }
31730 resultobj = SWIG_Py_Void();
31731 return resultobj;
31732 fail:
31733 return NULL;
31734 }
31735
31736
31737 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31738 PyObject *resultobj = 0;
31739 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31740 long arg2 ;
31741 wxColour result;
31742 void *argp1 = 0 ;
31743 int res1 = 0 ;
31744 long val2 ;
31745 int ecode2 = 0 ;
31746 PyObject * obj0 = 0 ;
31747 PyObject * obj1 = 0 ;
31748 char * kwnames[] = {
31749 (char *) "self",(char *) "item", NULL
31750 };
31751
31752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31754 if (!SWIG_IsOK(res1)) {
31755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31756 }
31757 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31758 ecode2 = SWIG_AsVal_long(obj1, &val2);
31759 if (!SWIG_IsOK(ecode2)) {
31760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31761 }
31762 arg2 = static_cast< long >(val2);
31763 {
31764 PyThreadState* __tstate = wxPyBeginAllowThreads();
31765 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31766 wxPyEndAllowThreads(__tstate);
31767 if (PyErr_Occurred()) SWIG_fail;
31768 }
31769 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31770 return resultobj;
31771 fail:
31772 return NULL;
31773 }
31774
31775
31776 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31777 PyObject *resultobj = 0;
31778 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31779 long arg2 ;
31780 wxColour *arg3 = 0 ;
31781 void *argp1 = 0 ;
31782 int res1 = 0 ;
31783 long val2 ;
31784 int ecode2 = 0 ;
31785 wxColour temp3 ;
31786 PyObject * obj0 = 0 ;
31787 PyObject * obj1 = 0 ;
31788 PyObject * obj2 = 0 ;
31789 char * kwnames[] = {
31790 (char *) "self",(char *) "item",(char *) "col", NULL
31791 };
31792
31793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",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_SetItemBackgroundColour" "', 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_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31802 }
31803 arg2 = static_cast< long >(val2);
31804 {
31805 arg3 = &temp3;
31806 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31807 }
31808 {
31809 PyThreadState* __tstate = wxPyBeginAllowThreads();
31810 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31811 wxPyEndAllowThreads(__tstate);
31812 if (PyErr_Occurred()) SWIG_fail;
31813 }
31814 resultobj = SWIG_Py_Void();
31815 return resultobj;
31816 fail:
31817 return NULL;
31818 }
31819
31820
31821 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31822 PyObject *resultobj = 0;
31823 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31824 long arg2 ;
31825 wxColour result;
31826 void *argp1 = 0 ;
31827 int res1 = 0 ;
31828 long val2 ;
31829 int ecode2 = 0 ;
31830 PyObject * obj0 = 0 ;
31831 PyObject * obj1 = 0 ;
31832 char * kwnames[] = {
31833 (char *) "self",(char *) "item", NULL
31834 };
31835
31836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31838 if (!SWIG_IsOK(res1)) {
31839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31840 }
31841 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31842 ecode2 = SWIG_AsVal_long(obj1, &val2);
31843 if (!SWIG_IsOK(ecode2)) {
31844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31845 }
31846 arg2 = static_cast< long >(val2);
31847 {
31848 PyThreadState* __tstate = wxPyBeginAllowThreads();
31849 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31850 wxPyEndAllowThreads(__tstate);
31851 if (PyErr_Occurred()) SWIG_fail;
31852 }
31853 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31854 return resultobj;
31855 fail:
31856 return NULL;
31857 }
31858
31859
31860 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31861 PyObject *resultobj = 0;
31862 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31863 long arg2 ;
31864 wxFont *arg3 = 0 ;
31865 void *argp1 = 0 ;
31866 int res1 = 0 ;
31867 long val2 ;
31868 int ecode2 = 0 ;
31869 void *argp3 = 0 ;
31870 int res3 = 0 ;
31871 PyObject * obj0 = 0 ;
31872 PyObject * obj1 = 0 ;
31873 PyObject * obj2 = 0 ;
31874 char * kwnames[] = {
31875 (char *) "self",(char *) "item",(char *) "f", NULL
31876 };
31877
31878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31880 if (!SWIG_IsOK(res1)) {
31881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31882 }
31883 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31884 ecode2 = SWIG_AsVal_long(obj1, &val2);
31885 if (!SWIG_IsOK(ecode2)) {
31886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31887 }
31888 arg2 = static_cast< long >(val2);
31889 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31890 if (!SWIG_IsOK(res3)) {
31891 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31892 }
31893 if (!argp3) {
31894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31895 }
31896 arg3 = reinterpret_cast< wxFont * >(argp3);
31897 {
31898 PyThreadState* __tstate = wxPyBeginAllowThreads();
31899 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31900 wxPyEndAllowThreads(__tstate);
31901 if (PyErr_Occurred()) SWIG_fail;
31902 }
31903 resultobj = SWIG_Py_Void();
31904 return resultobj;
31905 fail:
31906 return NULL;
31907 }
31908
31909
31910 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31911 PyObject *resultobj = 0;
31912 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31913 long arg2 ;
31914 wxFont result;
31915 void *argp1 = 0 ;
31916 int res1 = 0 ;
31917 long val2 ;
31918 int ecode2 = 0 ;
31919 PyObject * obj0 = 0 ;
31920 PyObject * obj1 = 0 ;
31921 char * kwnames[] = {
31922 (char *) "self",(char *) "item", NULL
31923 };
31924
31925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31927 if (!SWIG_IsOK(res1)) {
31928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31929 }
31930 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31931 ecode2 = SWIG_AsVal_long(obj1, &val2);
31932 if (!SWIG_IsOK(ecode2)) {
31933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31934 }
31935 arg2 = static_cast< long >(val2);
31936 {
31937 PyThreadState* __tstate = wxPyBeginAllowThreads();
31938 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31939 wxPyEndAllowThreads(__tstate);
31940 if (PyErr_Occurred()) SWIG_fail;
31941 }
31942 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31943 return resultobj;
31944 fail:
31945 return NULL;
31946 }
31947
31948
31949 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31950 PyObject *resultobj = 0;
31951 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31952 PyObject *arg2 = (PyObject *) 0 ;
31953 bool result;
31954 void *argp1 = 0 ;
31955 int res1 = 0 ;
31956 PyObject * obj0 = 0 ;
31957 PyObject * obj1 = 0 ;
31958 char * kwnames[] = {
31959 (char *) "self",(char *) "func", NULL
31960 };
31961
31962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31964 if (!SWIG_IsOK(res1)) {
31965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31966 }
31967 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31968 arg2 = obj1;
31969 {
31970 PyThreadState* __tstate = wxPyBeginAllowThreads();
31971 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31972 wxPyEndAllowThreads(__tstate);
31973 if (PyErr_Occurred()) SWIG_fail;
31974 }
31975 {
31976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31977 }
31978 return resultobj;
31979 fail:
31980 return NULL;
31981 }
31982
31983
31984 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31985 PyObject *resultobj = 0;
31986 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31987 wxWindow *result = 0 ;
31988 void *argp1 = 0 ;
31989 int res1 = 0 ;
31990 PyObject *swig_obj[1] ;
31991
31992 if (!args) SWIG_fail;
31993 swig_obj[0] = args;
31994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31995 if (!SWIG_IsOK(res1)) {
31996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31997 }
31998 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31999 {
32000 PyThreadState* __tstate = wxPyBeginAllowThreads();
32001 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32002 wxPyEndAllowThreads(__tstate);
32003 if (PyErr_Occurred()) SWIG_fail;
32004 }
32005 {
32006 resultobj = wxPyMake_wxObject(result, 0);
32007 }
32008 return resultobj;
32009 fail:
32010 return NULL;
32011 }
32012
32013
32014 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32015 PyObject *resultobj = 0;
32016 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32017 SwigValueWrapper<wxVisualAttributes > result;
32018 int val1 ;
32019 int ecode1 = 0 ;
32020 PyObject * obj0 = 0 ;
32021 char * kwnames[] = {
32022 (char *) "variant", NULL
32023 };
32024
32025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32026 if (obj0) {
32027 ecode1 = SWIG_AsVal_int(obj0, &val1);
32028 if (!SWIG_IsOK(ecode1)) {
32029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32030 }
32031 arg1 = static_cast< wxWindowVariant >(val1);
32032 }
32033 {
32034 if (!wxPyCheckForApp()) SWIG_fail;
32035 PyThreadState* __tstate = wxPyBeginAllowThreads();
32036 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32037 wxPyEndAllowThreads(__tstate);
32038 if (PyErr_Occurred()) SWIG_fail;
32039 }
32040 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32041 return resultobj;
32042 fail:
32043 return NULL;
32044 }
32045
32046
32047 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32048 PyObject *obj;
32049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32050 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32051 return SWIG_Py_Void();
32052 }
32053
32054 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32055 return SWIG_Python_InitShadowInstance(args);
32056 }
32057
32058 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32059 PyObject *resultobj = 0;
32060 wxWindow *arg1 = (wxWindow *) 0 ;
32061 int arg2 = (int) -1 ;
32062 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32063 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32064 wxSize const &arg4_defvalue = wxDefaultSize ;
32065 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32066 long arg5 = (long) wxLC_REPORT ;
32067 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32068 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32069 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32070 wxString *arg7 = (wxString *) &arg7_defvalue ;
32071 wxListView *result = 0 ;
32072 void *argp1 = 0 ;
32073 int res1 = 0 ;
32074 int val2 ;
32075 int ecode2 = 0 ;
32076 wxPoint temp3 ;
32077 wxSize temp4 ;
32078 long val5 ;
32079 int ecode5 = 0 ;
32080 void *argp6 = 0 ;
32081 int res6 = 0 ;
32082 bool temp7 = false ;
32083 PyObject * obj0 = 0 ;
32084 PyObject * obj1 = 0 ;
32085 PyObject * obj2 = 0 ;
32086 PyObject * obj3 = 0 ;
32087 PyObject * obj4 = 0 ;
32088 PyObject * obj5 = 0 ;
32089 PyObject * obj6 = 0 ;
32090 char * kwnames[] = {
32091 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32092 };
32093
32094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32096 if (!SWIG_IsOK(res1)) {
32097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32098 }
32099 arg1 = reinterpret_cast< wxWindow * >(argp1);
32100 if (obj1) {
32101 ecode2 = SWIG_AsVal_int(obj1, &val2);
32102 if (!SWIG_IsOK(ecode2)) {
32103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32104 }
32105 arg2 = static_cast< int >(val2);
32106 }
32107 if (obj2) {
32108 {
32109 arg3 = &temp3;
32110 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32111 }
32112 }
32113 if (obj3) {
32114 {
32115 arg4 = &temp4;
32116 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32117 }
32118 }
32119 if (obj4) {
32120 ecode5 = SWIG_AsVal_long(obj4, &val5);
32121 if (!SWIG_IsOK(ecode5)) {
32122 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32123 }
32124 arg5 = static_cast< long >(val5);
32125 }
32126 if (obj5) {
32127 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32128 if (!SWIG_IsOK(res6)) {
32129 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32130 }
32131 if (!argp6) {
32132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32133 }
32134 arg6 = reinterpret_cast< wxValidator * >(argp6);
32135 }
32136 if (obj6) {
32137 {
32138 arg7 = wxString_in_helper(obj6);
32139 if (arg7 == NULL) SWIG_fail;
32140 temp7 = true;
32141 }
32142 }
32143 {
32144 if (!wxPyCheckForApp()) SWIG_fail;
32145 PyThreadState* __tstate = wxPyBeginAllowThreads();
32146 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32147 wxPyEndAllowThreads(__tstate);
32148 if (PyErr_Occurred()) SWIG_fail;
32149 }
32150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32151 {
32152 if (temp7)
32153 delete arg7;
32154 }
32155 return resultobj;
32156 fail:
32157 {
32158 if (temp7)
32159 delete arg7;
32160 }
32161 return NULL;
32162 }
32163
32164
32165 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32166 PyObject *resultobj = 0;
32167 wxListView *result = 0 ;
32168
32169 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32170 {
32171 if (!wxPyCheckForApp()) SWIG_fail;
32172 PyThreadState* __tstate = wxPyBeginAllowThreads();
32173 result = (wxListView *)new wxListView();
32174 wxPyEndAllowThreads(__tstate);
32175 if (PyErr_Occurred()) SWIG_fail;
32176 }
32177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32178 return resultobj;
32179 fail:
32180 return NULL;
32181 }
32182
32183
32184 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32185 PyObject *resultobj = 0;
32186 wxListView *arg1 = (wxListView *) 0 ;
32187 wxWindow *arg2 = (wxWindow *) 0 ;
32188 int arg3 = (int) -1 ;
32189 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32190 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32191 wxSize const &arg5_defvalue = wxDefaultSize ;
32192 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32193 long arg6 = (long) wxLC_REPORT ;
32194 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32195 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32196 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32197 wxString *arg8 = (wxString *) &arg8_defvalue ;
32198 bool result;
32199 void *argp1 = 0 ;
32200 int res1 = 0 ;
32201 void *argp2 = 0 ;
32202 int res2 = 0 ;
32203 int val3 ;
32204 int ecode3 = 0 ;
32205 wxPoint temp4 ;
32206 wxSize temp5 ;
32207 long val6 ;
32208 int ecode6 = 0 ;
32209 void *argp7 = 0 ;
32210 int res7 = 0 ;
32211 bool temp8 = false ;
32212 PyObject * obj0 = 0 ;
32213 PyObject * obj1 = 0 ;
32214 PyObject * obj2 = 0 ;
32215 PyObject * obj3 = 0 ;
32216 PyObject * obj4 = 0 ;
32217 PyObject * obj5 = 0 ;
32218 PyObject * obj6 = 0 ;
32219 PyObject * obj7 = 0 ;
32220 char * kwnames[] = {
32221 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32222 };
32223
32224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32226 if (!SWIG_IsOK(res1)) {
32227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32228 }
32229 arg1 = reinterpret_cast< wxListView * >(argp1);
32230 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32231 if (!SWIG_IsOK(res2)) {
32232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32233 }
32234 arg2 = reinterpret_cast< wxWindow * >(argp2);
32235 if (obj2) {
32236 ecode3 = SWIG_AsVal_int(obj2, &val3);
32237 if (!SWIG_IsOK(ecode3)) {
32238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32239 }
32240 arg3 = static_cast< int >(val3);
32241 }
32242 if (obj3) {
32243 {
32244 arg4 = &temp4;
32245 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32246 }
32247 }
32248 if (obj4) {
32249 {
32250 arg5 = &temp5;
32251 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32252 }
32253 }
32254 if (obj5) {
32255 ecode6 = SWIG_AsVal_long(obj5, &val6);
32256 if (!SWIG_IsOK(ecode6)) {
32257 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32258 }
32259 arg6 = static_cast< long >(val6);
32260 }
32261 if (obj6) {
32262 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32263 if (!SWIG_IsOK(res7)) {
32264 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32265 }
32266 if (!argp7) {
32267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32268 }
32269 arg7 = reinterpret_cast< wxValidator * >(argp7);
32270 }
32271 if (obj7) {
32272 {
32273 arg8 = wxString_in_helper(obj7);
32274 if (arg8 == NULL) SWIG_fail;
32275 temp8 = true;
32276 }
32277 }
32278 {
32279 PyThreadState* __tstate = wxPyBeginAllowThreads();
32280 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32281 wxPyEndAllowThreads(__tstate);
32282 if (PyErr_Occurred()) SWIG_fail;
32283 }
32284 {
32285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32286 }
32287 {
32288 if (temp8)
32289 delete arg8;
32290 }
32291 return resultobj;
32292 fail:
32293 {
32294 if (temp8)
32295 delete arg8;
32296 }
32297 return NULL;
32298 }
32299
32300
32301 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32302 PyObject *resultobj = 0;
32303 wxListView *arg1 = (wxListView *) 0 ;
32304 long arg2 ;
32305 bool arg3 = (bool) true ;
32306 void *argp1 = 0 ;
32307 int res1 = 0 ;
32308 long val2 ;
32309 int ecode2 = 0 ;
32310 bool val3 ;
32311 int ecode3 = 0 ;
32312 PyObject * obj0 = 0 ;
32313 PyObject * obj1 = 0 ;
32314 PyObject * obj2 = 0 ;
32315 char * kwnames[] = {
32316 (char *) "self",(char *) "n",(char *) "on", NULL
32317 };
32318
32319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32321 if (!SWIG_IsOK(res1)) {
32322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32323 }
32324 arg1 = reinterpret_cast< wxListView * >(argp1);
32325 ecode2 = SWIG_AsVal_long(obj1, &val2);
32326 if (!SWIG_IsOK(ecode2)) {
32327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32328 }
32329 arg2 = static_cast< long >(val2);
32330 if (obj2) {
32331 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32332 if (!SWIG_IsOK(ecode3)) {
32333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32334 }
32335 arg3 = static_cast< bool >(val3);
32336 }
32337 {
32338 PyThreadState* __tstate = wxPyBeginAllowThreads();
32339 (arg1)->Select(arg2,arg3);
32340 wxPyEndAllowThreads(__tstate);
32341 if (PyErr_Occurred()) SWIG_fail;
32342 }
32343 resultobj = SWIG_Py_Void();
32344 return resultobj;
32345 fail:
32346 return NULL;
32347 }
32348
32349
32350 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32351 PyObject *resultobj = 0;
32352 wxListView *arg1 = (wxListView *) 0 ;
32353 long arg2 ;
32354 void *argp1 = 0 ;
32355 int res1 = 0 ;
32356 long val2 ;
32357 int ecode2 = 0 ;
32358 PyObject * obj0 = 0 ;
32359 PyObject * obj1 = 0 ;
32360 char * kwnames[] = {
32361 (char *) "self",(char *) "index", NULL
32362 };
32363
32364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32366 if (!SWIG_IsOK(res1)) {
32367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32368 }
32369 arg1 = reinterpret_cast< wxListView * >(argp1);
32370 ecode2 = SWIG_AsVal_long(obj1, &val2);
32371 if (!SWIG_IsOK(ecode2)) {
32372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32373 }
32374 arg2 = static_cast< long >(val2);
32375 {
32376 PyThreadState* __tstate = wxPyBeginAllowThreads();
32377 (arg1)->Focus(arg2);
32378 wxPyEndAllowThreads(__tstate);
32379 if (PyErr_Occurred()) SWIG_fail;
32380 }
32381 resultobj = SWIG_Py_Void();
32382 return resultobj;
32383 fail:
32384 return NULL;
32385 }
32386
32387
32388 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32389 PyObject *resultobj = 0;
32390 wxListView *arg1 = (wxListView *) 0 ;
32391 long result;
32392 void *argp1 = 0 ;
32393 int res1 = 0 ;
32394 PyObject *swig_obj[1] ;
32395
32396 if (!args) SWIG_fail;
32397 swig_obj[0] = args;
32398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32399 if (!SWIG_IsOK(res1)) {
32400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32401 }
32402 arg1 = reinterpret_cast< wxListView * >(argp1);
32403 {
32404 PyThreadState* __tstate = wxPyBeginAllowThreads();
32405 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32406 wxPyEndAllowThreads(__tstate);
32407 if (PyErr_Occurred()) SWIG_fail;
32408 }
32409 resultobj = SWIG_From_long(static_cast< long >(result));
32410 return resultobj;
32411 fail:
32412 return NULL;
32413 }
32414
32415
32416 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32417 PyObject *resultobj = 0;
32418 wxListView *arg1 = (wxListView *) 0 ;
32419 long arg2 ;
32420 long result;
32421 void *argp1 = 0 ;
32422 int res1 = 0 ;
32423 long val2 ;
32424 int ecode2 = 0 ;
32425 PyObject * obj0 = 0 ;
32426 PyObject * obj1 = 0 ;
32427 char * kwnames[] = {
32428 (char *) "self",(char *) "item", NULL
32429 };
32430
32431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32433 if (!SWIG_IsOK(res1)) {
32434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32435 }
32436 arg1 = reinterpret_cast< wxListView * >(argp1);
32437 ecode2 = SWIG_AsVal_long(obj1, &val2);
32438 if (!SWIG_IsOK(ecode2)) {
32439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32440 }
32441 arg2 = static_cast< long >(val2);
32442 {
32443 PyThreadState* __tstate = wxPyBeginAllowThreads();
32444 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32445 wxPyEndAllowThreads(__tstate);
32446 if (PyErr_Occurred()) SWIG_fail;
32447 }
32448 resultobj = SWIG_From_long(static_cast< long >(result));
32449 return resultobj;
32450 fail:
32451 return NULL;
32452 }
32453
32454
32455 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32456 PyObject *resultobj = 0;
32457 wxListView *arg1 = (wxListView *) 0 ;
32458 long result;
32459 void *argp1 = 0 ;
32460 int res1 = 0 ;
32461 PyObject *swig_obj[1] ;
32462
32463 if (!args) SWIG_fail;
32464 swig_obj[0] = args;
32465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32466 if (!SWIG_IsOK(res1)) {
32467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32468 }
32469 arg1 = reinterpret_cast< wxListView * >(argp1);
32470 {
32471 PyThreadState* __tstate = wxPyBeginAllowThreads();
32472 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32473 wxPyEndAllowThreads(__tstate);
32474 if (PyErr_Occurred()) SWIG_fail;
32475 }
32476 resultobj = SWIG_From_long(static_cast< long >(result));
32477 return resultobj;
32478 fail:
32479 return NULL;
32480 }
32481
32482
32483 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32484 PyObject *resultobj = 0;
32485 wxListView *arg1 = (wxListView *) 0 ;
32486 long arg2 ;
32487 bool result;
32488 void *argp1 = 0 ;
32489 int res1 = 0 ;
32490 long val2 ;
32491 int ecode2 = 0 ;
32492 PyObject * obj0 = 0 ;
32493 PyObject * obj1 = 0 ;
32494 char * kwnames[] = {
32495 (char *) "self",(char *) "index", NULL
32496 };
32497
32498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32500 if (!SWIG_IsOK(res1)) {
32501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32502 }
32503 arg1 = reinterpret_cast< wxListView * >(argp1);
32504 ecode2 = SWIG_AsVal_long(obj1, &val2);
32505 if (!SWIG_IsOK(ecode2)) {
32506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32507 }
32508 arg2 = static_cast< long >(val2);
32509 {
32510 PyThreadState* __tstate = wxPyBeginAllowThreads();
32511 result = (bool)(arg1)->IsSelected(arg2);
32512 wxPyEndAllowThreads(__tstate);
32513 if (PyErr_Occurred()) SWIG_fail;
32514 }
32515 {
32516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32517 }
32518 return resultobj;
32519 fail:
32520 return NULL;
32521 }
32522
32523
32524 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32525 PyObject *resultobj = 0;
32526 wxListView *arg1 = (wxListView *) 0 ;
32527 int arg2 ;
32528 int arg3 ;
32529 void *argp1 = 0 ;
32530 int res1 = 0 ;
32531 int val2 ;
32532 int ecode2 = 0 ;
32533 int val3 ;
32534 int ecode3 = 0 ;
32535 PyObject * obj0 = 0 ;
32536 PyObject * obj1 = 0 ;
32537 PyObject * obj2 = 0 ;
32538 char * kwnames[] = {
32539 (char *) "self",(char *) "col",(char *) "image", NULL
32540 };
32541
32542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32544 if (!SWIG_IsOK(res1)) {
32545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32546 }
32547 arg1 = reinterpret_cast< wxListView * >(argp1);
32548 ecode2 = SWIG_AsVal_int(obj1, &val2);
32549 if (!SWIG_IsOK(ecode2)) {
32550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32551 }
32552 arg2 = static_cast< int >(val2);
32553 ecode3 = SWIG_AsVal_int(obj2, &val3);
32554 if (!SWIG_IsOK(ecode3)) {
32555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32556 }
32557 arg3 = static_cast< int >(val3);
32558 {
32559 PyThreadState* __tstate = wxPyBeginAllowThreads();
32560 (arg1)->SetColumnImage(arg2,arg3);
32561 wxPyEndAllowThreads(__tstate);
32562 if (PyErr_Occurred()) SWIG_fail;
32563 }
32564 resultobj = SWIG_Py_Void();
32565 return resultobj;
32566 fail:
32567 return NULL;
32568 }
32569
32570
32571 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32572 PyObject *resultobj = 0;
32573 wxListView *arg1 = (wxListView *) 0 ;
32574 int arg2 ;
32575 void *argp1 = 0 ;
32576 int res1 = 0 ;
32577 int val2 ;
32578 int ecode2 = 0 ;
32579 PyObject * obj0 = 0 ;
32580 PyObject * obj1 = 0 ;
32581 char * kwnames[] = {
32582 (char *) "self",(char *) "col", NULL
32583 };
32584
32585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32587 if (!SWIG_IsOK(res1)) {
32588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32589 }
32590 arg1 = reinterpret_cast< wxListView * >(argp1);
32591 ecode2 = SWIG_AsVal_int(obj1, &val2);
32592 if (!SWIG_IsOK(ecode2)) {
32593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32594 }
32595 arg2 = static_cast< int >(val2);
32596 {
32597 PyThreadState* __tstate = wxPyBeginAllowThreads();
32598 (arg1)->ClearColumnImage(arg2);
32599 wxPyEndAllowThreads(__tstate);
32600 if (PyErr_Occurred()) SWIG_fail;
32601 }
32602 resultobj = SWIG_Py_Void();
32603 return resultobj;
32604 fail:
32605 return NULL;
32606 }
32607
32608
32609 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32610 PyObject *obj;
32611 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32612 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32613 return SWIG_Py_Void();
32614 }
32615
32616 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32617 return SWIG_Python_InitShadowInstance(args);
32618 }
32619
32620 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32621 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32622 return 1;
32623 }
32624
32625
32626 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32627 PyObject *pyobj = 0;
32628
32629 {
32630 #if wxUSE_UNICODE
32631 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32632 #else
32633 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32634 #endif
32635 }
32636 return pyobj;
32637 }
32638
32639
32640 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32641 PyObject *resultobj = 0;
32642 wxTreeItemId *result = 0 ;
32643
32644 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32645 {
32646 PyThreadState* __tstate = wxPyBeginAllowThreads();
32647 result = (wxTreeItemId *)new wxTreeItemId();
32648 wxPyEndAllowThreads(__tstate);
32649 if (PyErr_Occurred()) SWIG_fail;
32650 }
32651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32652 return resultobj;
32653 fail:
32654 return NULL;
32655 }
32656
32657
32658 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32659 PyObject *resultobj = 0;
32660 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32661 void *argp1 = 0 ;
32662 int res1 = 0 ;
32663 PyObject *swig_obj[1] ;
32664
32665 if (!args) SWIG_fail;
32666 swig_obj[0] = args;
32667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32668 if (!SWIG_IsOK(res1)) {
32669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32670 }
32671 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32672 {
32673 PyThreadState* __tstate = wxPyBeginAllowThreads();
32674 delete arg1;
32675
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_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32687 PyObject *resultobj = 0;
32688 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32689 bool 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_wxTreeItemId, 0 | 0 );
32697 if (!SWIG_IsOK(res1)) {
32698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32699 }
32700 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32701 {
32702 PyThreadState* __tstate = wxPyBeginAllowThreads();
32703 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32704 wxPyEndAllowThreads(__tstate);
32705 if (PyErr_Occurred()) SWIG_fail;
32706 }
32707 {
32708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32709 }
32710 return resultobj;
32711 fail:
32712 return NULL;
32713 }
32714
32715
32716 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32717 PyObject *resultobj = 0;
32718 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32719 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32720 bool result;
32721 void *argp1 = 0 ;
32722 int res1 = 0 ;
32723 void *argp2 = 0 ;
32724 int res2 = 0 ;
32725 PyObject * obj0 = 0 ;
32726 PyObject * obj1 = 0 ;
32727 char * kwnames[] = {
32728 (char *) "self",(char *) "other", NULL
32729 };
32730
32731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32733 if (!SWIG_IsOK(res1)) {
32734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32735 }
32736 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32737 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32738 if (!SWIG_IsOK(res2)) {
32739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32740 }
32741 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32742 {
32743 PyThreadState* __tstate = wxPyBeginAllowThreads();
32744 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32745 wxPyEndAllowThreads(__tstate);
32746 if (PyErr_Occurred()) SWIG_fail;
32747 }
32748 {
32749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32750 }
32751 return resultobj;
32752 fail:
32753 return NULL;
32754 }
32755
32756
32757 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32758 PyObject *resultobj = 0;
32759 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32760 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32761 bool result;
32762 void *argp1 = 0 ;
32763 int res1 = 0 ;
32764 void *argp2 = 0 ;
32765 int res2 = 0 ;
32766 PyObject * obj0 = 0 ;
32767 PyObject * obj1 = 0 ;
32768 char * kwnames[] = {
32769 (char *) "self",(char *) "other", NULL
32770 };
32771
32772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32774 if (!SWIG_IsOK(res1)) {
32775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32776 }
32777 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32778 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32779 if (!SWIG_IsOK(res2)) {
32780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32781 }
32782 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32783 {
32784 PyThreadState* __tstate = wxPyBeginAllowThreads();
32785 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32786 wxPyEndAllowThreads(__tstate);
32787 if (PyErr_Occurred()) SWIG_fail;
32788 }
32789 {
32790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32791 }
32792 return resultobj;
32793 fail:
32794 return NULL;
32795 }
32796
32797
32798 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32799 PyObject *resultobj = 0;
32800 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32801 void *arg2 = (void *) 0 ;
32802 void *argp1 = 0 ;
32803 int res1 = 0 ;
32804 int res2 ;
32805 PyObject *swig_obj[2] ;
32806
32807 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32809 if (!SWIG_IsOK(res1)) {
32810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32811 }
32812 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32813 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32814 if (!SWIG_IsOK(res2)) {
32815 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32816 }
32817 if (arg1) (arg1)->m_pItem = arg2;
32818
32819 resultobj = SWIG_Py_Void();
32820 return resultobj;
32821 fail:
32822 return NULL;
32823 }
32824
32825
32826 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32827 PyObject *resultobj = 0;
32828 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32829 void *result = 0 ;
32830 void *argp1 = 0 ;
32831 int res1 = 0 ;
32832 PyObject *swig_obj[1] ;
32833
32834 if (!args) SWIG_fail;
32835 swig_obj[0] = args;
32836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32837 if (!SWIG_IsOK(res1)) {
32838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32839 }
32840 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32841 result = (void *) ((arg1)->m_pItem);
32842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32843 return resultobj;
32844 fail:
32845 return NULL;
32846 }
32847
32848
32849 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32850 PyObject *obj;
32851 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32852 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32853 return SWIG_Py_Void();
32854 }
32855
32856 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32857 return SWIG_Python_InitShadowInstance(args);
32858 }
32859
32860 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32861 PyObject *resultobj = 0;
32862 PyObject *arg1 = (PyObject *) NULL ;
32863 wxPyTreeItemData *result = 0 ;
32864 PyObject * obj0 = 0 ;
32865 char * kwnames[] = {
32866 (char *) "obj", NULL
32867 };
32868
32869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32870 if (obj0) {
32871 arg1 = obj0;
32872 }
32873 {
32874 PyThreadState* __tstate = wxPyBeginAllowThreads();
32875 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32876 wxPyEndAllowThreads(__tstate);
32877 if (PyErr_Occurred()) SWIG_fail;
32878 }
32879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32880 return resultobj;
32881 fail:
32882 return NULL;
32883 }
32884
32885
32886 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32887 PyObject *resultobj = 0;
32888 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32889 void *argp1 = 0 ;
32890 int res1 = 0 ;
32891 PyObject *swig_obj[1] ;
32892
32893 if (!args) SWIG_fail;
32894 swig_obj[0] = args;
32895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32896 if (!SWIG_IsOK(res1)) {
32897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32898 }
32899 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32900 {
32901 PyThreadState* __tstate = wxPyBeginAllowThreads();
32902 delete arg1;
32903
32904 wxPyEndAllowThreads(__tstate);
32905 if (PyErr_Occurred()) SWIG_fail;
32906 }
32907 resultobj = SWIG_Py_Void();
32908 return resultobj;
32909 fail:
32910 return NULL;
32911 }
32912
32913
32914 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32915 PyObject *resultobj = 0;
32916 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32917 PyObject *result = 0 ;
32918 void *argp1 = 0 ;
32919 int res1 = 0 ;
32920 PyObject *swig_obj[1] ;
32921
32922 if (!args) SWIG_fail;
32923 swig_obj[0] = args;
32924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32925 if (!SWIG_IsOK(res1)) {
32926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32927 }
32928 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32929 {
32930 PyThreadState* __tstate = wxPyBeginAllowThreads();
32931 result = (PyObject *)(arg1)->GetData();
32932 wxPyEndAllowThreads(__tstate);
32933 if (PyErr_Occurred()) SWIG_fail;
32934 }
32935 resultobj = result;
32936 return resultobj;
32937 fail:
32938 return NULL;
32939 }
32940
32941
32942 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32943 PyObject *resultobj = 0;
32944 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32945 PyObject *arg2 = (PyObject *) 0 ;
32946 void *argp1 = 0 ;
32947 int res1 = 0 ;
32948 PyObject * obj0 = 0 ;
32949 PyObject * obj1 = 0 ;
32950 char * kwnames[] = {
32951 (char *) "self",(char *) "obj", NULL
32952 };
32953
32954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32956 if (!SWIG_IsOK(res1)) {
32957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32958 }
32959 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32960 arg2 = obj1;
32961 {
32962 PyThreadState* __tstate = wxPyBeginAllowThreads();
32963 (arg1)->SetData(arg2);
32964 wxPyEndAllowThreads(__tstate);
32965 if (PyErr_Occurred()) SWIG_fail;
32966 }
32967 resultobj = SWIG_Py_Void();
32968 return resultobj;
32969 fail:
32970 return NULL;
32971 }
32972
32973
32974 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32975 PyObject *resultobj = 0;
32976 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32977 wxTreeItemId *result = 0 ;
32978 void *argp1 = 0 ;
32979 int res1 = 0 ;
32980 PyObject *swig_obj[1] ;
32981
32982 if (!args) SWIG_fail;
32983 swig_obj[0] = args;
32984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32985 if (!SWIG_IsOK(res1)) {
32986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32987 }
32988 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32989 {
32990 PyThreadState* __tstate = wxPyBeginAllowThreads();
32991 {
32992 wxTreeItemId const &_result_ref = (arg1)->GetId();
32993 result = (wxTreeItemId *) &_result_ref;
32994 }
32995 wxPyEndAllowThreads(__tstate);
32996 if (PyErr_Occurred()) SWIG_fail;
32997 }
32998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32999 return resultobj;
33000 fail:
33001 return NULL;
33002 }
33003
33004
33005 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33006 PyObject *resultobj = 0;
33007 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33008 wxTreeItemId *arg2 = 0 ;
33009 void *argp1 = 0 ;
33010 int res1 = 0 ;
33011 void *argp2 = 0 ;
33012 int res2 = 0 ;
33013 PyObject * obj0 = 0 ;
33014 PyObject * obj1 = 0 ;
33015 char * kwnames[] = {
33016 (char *) "self",(char *) "id", NULL
33017 };
33018
33019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33021 if (!SWIG_IsOK(res1)) {
33022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33023 }
33024 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33026 if (!SWIG_IsOK(res2)) {
33027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33028 }
33029 if (!argp2) {
33030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33031 }
33032 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33033 {
33034 PyThreadState* __tstate = wxPyBeginAllowThreads();
33035 (arg1)->SetId((wxTreeItemId const &)*arg2);
33036 wxPyEndAllowThreads(__tstate);
33037 if (PyErr_Occurred()) SWIG_fail;
33038 }
33039 resultobj = SWIG_Py_Void();
33040 return resultobj;
33041 fail:
33042 return NULL;
33043 }
33044
33045
33046 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33047 PyObject *resultobj = 0;
33048 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33049 void *argp1 = 0 ;
33050 int res1 = 0 ;
33051 PyObject *swig_obj[1] ;
33052
33053 if (!args) SWIG_fail;
33054 swig_obj[0] = args;
33055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33056 if (!SWIG_IsOK(res1)) {
33057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33058 }
33059 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33060 {
33061 PyThreadState* __tstate = wxPyBeginAllowThreads();
33062 wxPyTreeItemData_Destroy(arg1);
33063 wxPyEndAllowThreads(__tstate);
33064 if (PyErr_Occurred()) SWIG_fail;
33065 }
33066 resultobj = SWIG_Py_Void();
33067 return resultobj;
33068 fail:
33069 return NULL;
33070 }
33071
33072
33073 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33074 PyObject *obj;
33075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33076 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33077 return SWIG_Py_Void();
33078 }
33079
33080 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33081 return SWIG_Python_InitShadowInstance(args);
33082 }
33083
33084 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33085 {
33086 void *argp = 0;
33087 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33088 if (!SWIG_IsOK(res)) {
33089 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33090 }
33091 if (!argp) {
33092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33093 } else {
33094 wxTreeItemId * temp;
33095 temp = reinterpret_cast< wxTreeItemId * >(argp);
33096 wxNullTreeItemId = *temp;
33097 if (SWIG_IsNewObj(res)) delete temp;
33098 }
33099 }
33100 return 0;
33101 fail:
33102 return 1;
33103 }
33104
33105
33106 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33107 PyObject *pyobj = 0;
33108
33109 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33110 return pyobj;
33111 }
33112
33113
33114 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33115 PyObject *resultobj = 0;
33116 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33117 int arg2 = (int) 0 ;
33118 wxTreeEvent *result = 0 ;
33119 int val1 ;
33120 int ecode1 = 0 ;
33121 int val2 ;
33122 int ecode2 = 0 ;
33123
33124 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33125 if (swig_obj[0]) {
33126 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33127 if (!SWIG_IsOK(ecode1)) {
33128 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33129 }
33130 arg1 = static_cast< wxEventType >(val1);
33131 }
33132 if (swig_obj[1]) {
33133 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33134 if (!SWIG_IsOK(ecode2)) {
33135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33136 }
33137 arg2 = static_cast< int >(val2);
33138 }
33139 {
33140 PyThreadState* __tstate = wxPyBeginAllowThreads();
33141 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33142 wxPyEndAllowThreads(__tstate);
33143 if (PyErr_Occurred()) SWIG_fail;
33144 }
33145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33146 return resultobj;
33147 fail:
33148 return NULL;
33149 }
33150
33151
33152 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33153 PyObject *resultobj = 0;
33154 wxEventType arg1 ;
33155 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33156 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33157 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33158 wxTreeEvent *result = 0 ;
33159 int val1 ;
33160 int ecode1 = 0 ;
33161 void *argp2 = 0 ;
33162 int res2 = 0 ;
33163 void *argp3 = 0 ;
33164 int res3 = 0 ;
33165
33166 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33167 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33168 if (!SWIG_IsOK(ecode1)) {
33169 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33170 }
33171 arg1 = static_cast< wxEventType >(val1);
33172 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33173 if (!SWIG_IsOK(res2)) {
33174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33175 }
33176 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33177 if (swig_obj[2]) {
33178 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33179 if (!SWIG_IsOK(res3)) {
33180 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33181 }
33182 if (!argp3) {
33183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33184 }
33185 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33186 }
33187 {
33188 PyThreadState* __tstate = wxPyBeginAllowThreads();
33189 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33190 wxPyEndAllowThreads(__tstate);
33191 if (PyErr_Occurred()) SWIG_fail;
33192 }
33193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33194 return resultobj;
33195 fail:
33196 return NULL;
33197 }
33198
33199
33200 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33201 int argc;
33202 PyObject *argv[4];
33203
33204 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33205 --argc;
33206 if ((argc >= 0) && (argc <= 2)) {
33207 int _v = 0;
33208 if (argc > 1) {
33209 {
33210 {
33211 int res = SWIG_AsVal_int(argv[1], NULL);
33212 _v = SWIG_CheckState(res);
33213 }
33214 }
33215 if (!_v) goto check_1;
33216 }
33217 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33218 }
33219 check_1:
33220
33221 if ((argc >= 2) && (argc <= 3)) {
33222 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33223 }
33224
33225 fail:
33226 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33227 return NULL;
33228 }
33229
33230
33231 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33232 PyObject *resultobj = 0;
33233 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33234 wxTreeItemId result;
33235 void *argp1 = 0 ;
33236 int res1 = 0 ;
33237 PyObject *swig_obj[1] ;
33238
33239 if (!args) SWIG_fail;
33240 swig_obj[0] = args;
33241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33242 if (!SWIG_IsOK(res1)) {
33243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33244 }
33245 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33246 {
33247 PyThreadState* __tstate = wxPyBeginAllowThreads();
33248 result = ((wxTreeEvent const *)arg1)->GetItem();
33249 wxPyEndAllowThreads(__tstate);
33250 if (PyErr_Occurred()) SWIG_fail;
33251 }
33252 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33253 return resultobj;
33254 fail:
33255 return NULL;
33256 }
33257
33258
33259 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33260 PyObject *resultobj = 0;
33261 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33262 wxTreeItemId *arg2 = 0 ;
33263 void *argp1 = 0 ;
33264 int res1 = 0 ;
33265 void *argp2 = 0 ;
33266 int res2 = 0 ;
33267 PyObject * obj0 = 0 ;
33268 PyObject * obj1 = 0 ;
33269 char * kwnames[] = {
33270 (char *) "self",(char *) "item", NULL
33271 };
33272
33273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33275 if (!SWIG_IsOK(res1)) {
33276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33277 }
33278 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33280 if (!SWIG_IsOK(res2)) {
33281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33282 }
33283 if (!argp2) {
33284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33285 }
33286 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33287 {
33288 PyThreadState* __tstate = wxPyBeginAllowThreads();
33289 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33290 wxPyEndAllowThreads(__tstate);
33291 if (PyErr_Occurred()) SWIG_fail;
33292 }
33293 resultobj = SWIG_Py_Void();
33294 return resultobj;
33295 fail:
33296 return NULL;
33297 }
33298
33299
33300 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33301 PyObject *resultobj = 0;
33302 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33303 wxTreeItemId result;
33304 void *argp1 = 0 ;
33305 int res1 = 0 ;
33306 PyObject *swig_obj[1] ;
33307
33308 if (!args) SWIG_fail;
33309 swig_obj[0] = args;
33310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33311 if (!SWIG_IsOK(res1)) {
33312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33313 }
33314 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33315 {
33316 PyThreadState* __tstate = wxPyBeginAllowThreads();
33317 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33318 wxPyEndAllowThreads(__tstate);
33319 if (PyErr_Occurred()) SWIG_fail;
33320 }
33321 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33322 return resultobj;
33323 fail:
33324 return NULL;
33325 }
33326
33327
33328 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33329 PyObject *resultobj = 0;
33330 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33331 wxTreeItemId *arg2 = 0 ;
33332 void *argp1 = 0 ;
33333 int res1 = 0 ;
33334 void *argp2 = 0 ;
33335 int res2 = 0 ;
33336 PyObject * obj0 = 0 ;
33337 PyObject * obj1 = 0 ;
33338 char * kwnames[] = {
33339 (char *) "self",(char *) "item", NULL
33340 };
33341
33342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33344 if (!SWIG_IsOK(res1)) {
33345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33346 }
33347 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33348 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33349 if (!SWIG_IsOK(res2)) {
33350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33351 }
33352 if (!argp2) {
33353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33354 }
33355 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33356 {
33357 PyThreadState* __tstate = wxPyBeginAllowThreads();
33358 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33359 wxPyEndAllowThreads(__tstate);
33360 if (PyErr_Occurred()) SWIG_fail;
33361 }
33362 resultobj = SWIG_Py_Void();
33363 return resultobj;
33364 fail:
33365 return NULL;
33366 }
33367
33368
33369 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33370 PyObject *resultobj = 0;
33371 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33372 wxPoint result;
33373 void *argp1 = 0 ;
33374 int res1 = 0 ;
33375 PyObject *swig_obj[1] ;
33376
33377 if (!args) SWIG_fail;
33378 swig_obj[0] = args;
33379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33380 if (!SWIG_IsOK(res1)) {
33381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33382 }
33383 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33384 {
33385 PyThreadState* __tstate = wxPyBeginAllowThreads();
33386 result = ((wxTreeEvent const *)arg1)->GetPoint();
33387 wxPyEndAllowThreads(__tstate);
33388 if (PyErr_Occurred()) SWIG_fail;
33389 }
33390 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33391 return resultobj;
33392 fail:
33393 return NULL;
33394 }
33395
33396
33397 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33398 PyObject *resultobj = 0;
33399 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33400 wxPoint *arg2 = 0 ;
33401 void *argp1 = 0 ;
33402 int res1 = 0 ;
33403 wxPoint temp2 ;
33404 PyObject * obj0 = 0 ;
33405 PyObject * obj1 = 0 ;
33406 char * kwnames[] = {
33407 (char *) "self",(char *) "pt", NULL
33408 };
33409
33410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33412 if (!SWIG_IsOK(res1)) {
33413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33414 }
33415 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33416 {
33417 arg2 = &temp2;
33418 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33419 }
33420 {
33421 PyThreadState* __tstate = wxPyBeginAllowThreads();
33422 (arg1)->SetPoint((wxPoint const &)*arg2);
33423 wxPyEndAllowThreads(__tstate);
33424 if (PyErr_Occurred()) SWIG_fail;
33425 }
33426 resultobj = SWIG_Py_Void();
33427 return resultobj;
33428 fail:
33429 return NULL;
33430 }
33431
33432
33433 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33434 PyObject *resultobj = 0;
33435 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33436 wxKeyEvent *result = 0 ;
33437 void *argp1 = 0 ;
33438 int res1 = 0 ;
33439 PyObject *swig_obj[1] ;
33440
33441 if (!args) SWIG_fail;
33442 swig_obj[0] = args;
33443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33444 if (!SWIG_IsOK(res1)) {
33445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33446 }
33447 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33448 {
33449 PyThreadState* __tstate = wxPyBeginAllowThreads();
33450 {
33451 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33452 result = (wxKeyEvent *) &_result_ref;
33453 }
33454 wxPyEndAllowThreads(__tstate);
33455 if (PyErr_Occurred()) SWIG_fail;
33456 }
33457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33458 return resultobj;
33459 fail:
33460 return NULL;
33461 }
33462
33463
33464 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33465 PyObject *resultobj = 0;
33466 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33467 int result;
33468 void *argp1 = 0 ;
33469 int res1 = 0 ;
33470 PyObject *swig_obj[1] ;
33471
33472 if (!args) SWIG_fail;
33473 swig_obj[0] = args;
33474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33475 if (!SWIG_IsOK(res1)) {
33476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33477 }
33478 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33479 {
33480 PyThreadState* __tstate = wxPyBeginAllowThreads();
33481 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33482 wxPyEndAllowThreads(__tstate);
33483 if (PyErr_Occurred()) SWIG_fail;
33484 }
33485 resultobj = SWIG_From_int(static_cast< int >(result));
33486 return resultobj;
33487 fail:
33488 return NULL;
33489 }
33490
33491
33492 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33493 PyObject *resultobj = 0;
33494 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33495 wxKeyEvent *arg2 = 0 ;
33496 void *argp1 = 0 ;
33497 int res1 = 0 ;
33498 void *argp2 = 0 ;
33499 int res2 = 0 ;
33500 PyObject * obj0 = 0 ;
33501 PyObject * obj1 = 0 ;
33502 char * kwnames[] = {
33503 (char *) "self",(char *) "evt", NULL
33504 };
33505
33506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33508 if (!SWIG_IsOK(res1)) {
33509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33510 }
33511 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33512 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33513 if (!SWIG_IsOK(res2)) {
33514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33515 }
33516 if (!argp2) {
33517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33518 }
33519 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33520 {
33521 PyThreadState* __tstate = wxPyBeginAllowThreads();
33522 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33523 wxPyEndAllowThreads(__tstate);
33524 if (PyErr_Occurred()) SWIG_fail;
33525 }
33526 resultobj = SWIG_Py_Void();
33527 return resultobj;
33528 fail:
33529 return NULL;
33530 }
33531
33532
33533 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33534 PyObject *resultobj = 0;
33535 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33536 wxString *result = 0 ;
33537 void *argp1 = 0 ;
33538 int res1 = 0 ;
33539 PyObject *swig_obj[1] ;
33540
33541 if (!args) SWIG_fail;
33542 swig_obj[0] = args;
33543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33544 if (!SWIG_IsOK(res1)) {
33545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33546 }
33547 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33548 {
33549 PyThreadState* __tstate = wxPyBeginAllowThreads();
33550 {
33551 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33552 result = (wxString *) &_result_ref;
33553 }
33554 wxPyEndAllowThreads(__tstate);
33555 if (PyErr_Occurred()) SWIG_fail;
33556 }
33557 {
33558 #if wxUSE_UNICODE
33559 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33560 #else
33561 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33562 #endif
33563 }
33564 return resultobj;
33565 fail:
33566 return NULL;
33567 }
33568
33569
33570 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33571 PyObject *resultobj = 0;
33572 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33573 wxString *arg2 = 0 ;
33574 void *argp1 = 0 ;
33575 int res1 = 0 ;
33576 bool temp2 = false ;
33577 PyObject * obj0 = 0 ;
33578 PyObject * obj1 = 0 ;
33579 char * kwnames[] = {
33580 (char *) "self",(char *) "label", NULL
33581 };
33582
33583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33585 if (!SWIG_IsOK(res1)) {
33586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33587 }
33588 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33589 {
33590 arg2 = wxString_in_helper(obj1);
33591 if (arg2 == NULL) SWIG_fail;
33592 temp2 = true;
33593 }
33594 {
33595 PyThreadState* __tstate = wxPyBeginAllowThreads();
33596 (arg1)->SetLabel((wxString const &)*arg2);
33597 wxPyEndAllowThreads(__tstate);
33598 if (PyErr_Occurred()) SWIG_fail;
33599 }
33600 resultobj = SWIG_Py_Void();
33601 {
33602 if (temp2)
33603 delete arg2;
33604 }
33605 return resultobj;
33606 fail:
33607 {
33608 if (temp2)
33609 delete arg2;
33610 }
33611 return NULL;
33612 }
33613
33614
33615 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33616 PyObject *resultobj = 0;
33617 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33618 bool result;
33619 void *argp1 = 0 ;
33620 int res1 = 0 ;
33621 PyObject *swig_obj[1] ;
33622
33623 if (!args) SWIG_fail;
33624 swig_obj[0] = args;
33625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33626 if (!SWIG_IsOK(res1)) {
33627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33628 }
33629 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33630 {
33631 PyThreadState* __tstate = wxPyBeginAllowThreads();
33632 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33633 wxPyEndAllowThreads(__tstate);
33634 if (PyErr_Occurred()) SWIG_fail;
33635 }
33636 {
33637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33638 }
33639 return resultobj;
33640 fail:
33641 return NULL;
33642 }
33643
33644
33645 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33646 PyObject *resultobj = 0;
33647 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33648 bool arg2 ;
33649 void *argp1 = 0 ;
33650 int res1 = 0 ;
33651 bool val2 ;
33652 int ecode2 = 0 ;
33653 PyObject * obj0 = 0 ;
33654 PyObject * obj1 = 0 ;
33655 char * kwnames[] = {
33656 (char *) "self",(char *) "editCancelled", NULL
33657 };
33658
33659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33661 if (!SWIG_IsOK(res1)) {
33662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33663 }
33664 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33665 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33666 if (!SWIG_IsOK(ecode2)) {
33667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33668 }
33669 arg2 = static_cast< bool >(val2);
33670 {
33671 PyThreadState* __tstate = wxPyBeginAllowThreads();
33672 (arg1)->SetEditCanceled(arg2);
33673 wxPyEndAllowThreads(__tstate);
33674 if (PyErr_Occurred()) SWIG_fail;
33675 }
33676 resultobj = SWIG_Py_Void();
33677 return resultobj;
33678 fail:
33679 return NULL;
33680 }
33681
33682
33683 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33684 PyObject *resultobj = 0;
33685 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33686 wxString *arg2 = 0 ;
33687 void *argp1 = 0 ;
33688 int res1 = 0 ;
33689 bool temp2 = false ;
33690 PyObject * obj0 = 0 ;
33691 PyObject * obj1 = 0 ;
33692 char * kwnames[] = {
33693 (char *) "self",(char *) "toolTip", NULL
33694 };
33695
33696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33698 if (!SWIG_IsOK(res1)) {
33699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33700 }
33701 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33702 {
33703 arg2 = wxString_in_helper(obj1);
33704 if (arg2 == NULL) SWIG_fail;
33705 temp2 = true;
33706 }
33707 {
33708 PyThreadState* __tstate = wxPyBeginAllowThreads();
33709 (arg1)->SetToolTip((wxString const &)*arg2);
33710 wxPyEndAllowThreads(__tstate);
33711 if (PyErr_Occurred()) SWIG_fail;
33712 }
33713 resultobj = SWIG_Py_Void();
33714 {
33715 if (temp2)
33716 delete arg2;
33717 }
33718 return resultobj;
33719 fail:
33720 {
33721 if (temp2)
33722 delete arg2;
33723 }
33724 return NULL;
33725 }
33726
33727
33728 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33729 PyObject *resultobj = 0;
33730 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33731 wxString result;
33732 void *argp1 = 0 ;
33733 int res1 = 0 ;
33734 PyObject *swig_obj[1] ;
33735
33736 if (!args) SWIG_fail;
33737 swig_obj[0] = args;
33738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33739 if (!SWIG_IsOK(res1)) {
33740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33741 }
33742 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33743 {
33744 PyThreadState* __tstate = wxPyBeginAllowThreads();
33745 result = (arg1)->GetToolTip();
33746 wxPyEndAllowThreads(__tstate);
33747 if (PyErr_Occurred()) SWIG_fail;
33748 }
33749 {
33750 #if wxUSE_UNICODE
33751 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33752 #else
33753 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33754 #endif
33755 }
33756 return resultobj;
33757 fail:
33758 return NULL;
33759 }
33760
33761
33762 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33763 PyObject *obj;
33764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33765 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33766 return SWIG_Py_Void();
33767 }
33768
33769 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33770 return SWIG_Python_InitShadowInstance(args);
33771 }
33772
33773 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33774 PyObject *resultobj = 0;
33775 wxWindow *arg1 = (wxWindow *) 0 ;
33776 int arg2 = (int) -1 ;
33777 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33778 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33779 wxSize const &arg4_defvalue = wxDefaultSize ;
33780 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33781 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33782 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33783 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33784 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33785 wxString *arg7 = (wxString *) &arg7_defvalue ;
33786 wxPyTreeCtrl *result = 0 ;
33787 void *argp1 = 0 ;
33788 int res1 = 0 ;
33789 int val2 ;
33790 int ecode2 = 0 ;
33791 wxPoint temp3 ;
33792 wxSize temp4 ;
33793 long val5 ;
33794 int ecode5 = 0 ;
33795 void *argp6 = 0 ;
33796 int res6 = 0 ;
33797 bool temp7 = false ;
33798 PyObject * obj0 = 0 ;
33799 PyObject * obj1 = 0 ;
33800 PyObject * obj2 = 0 ;
33801 PyObject * obj3 = 0 ;
33802 PyObject * obj4 = 0 ;
33803 PyObject * obj5 = 0 ;
33804 PyObject * obj6 = 0 ;
33805 char * kwnames[] = {
33806 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33807 };
33808
33809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33811 if (!SWIG_IsOK(res1)) {
33812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33813 }
33814 arg1 = reinterpret_cast< wxWindow * >(argp1);
33815 if (obj1) {
33816 ecode2 = SWIG_AsVal_int(obj1, &val2);
33817 if (!SWIG_IsOK(ecode2)) {
33818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33819 }
33820 arg2 = static_cast< int >(val2);
33821 }
33822 if (obj2) {
33823 {
33824 arg3 = &temp3;
33825 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33826 }
33827 }
33828 if (obj3) {
33829 {
33830 arg4 = &temp4;
33831 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33832 }
33833 }
33834 if (obj4) {
33835 ecode5 = SWIG_AsVal_long(obj4, &val5);
33836 if (!SWIG_IsOK(ecode5)) {
33837 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33838 }
33839 arg5 = static_cast< long >(val5);
33840 }
33841 if (obj5) {
33842 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33843 if (!SWIG_IsOK(res6)) {
33844 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33845 }
33846 if (!argp6) {
33847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33848 }
33849 arg6 = reinterpret_cast< wxValidator * >(argp6);
33850 }
33851 if (obj6) {
33852 {
33853 arg7 = wxString_in_helper(obj6);
33854 if (arg7 == NULL) SWIG_fail;
33855 temp7 = true;
33856 }
33857 }
33858 {
33859 if (!wxPyCheckForApp()) SWIG_fail;
33860 PyThreadState* __tstate = wxPyBeginAllowThreads();
33861 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33862 wxPyEndAllowThreads(__tstate);
33863 if (PyErr_Occurred()) SWIG_fail;
33864 }
33865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33866 {
33867 if (temp7)
33868 delete arg7;
33869 }
33870 return resultobj;
33871 fail:
33872 {
33873 if (temp7)
33874 delete arg7;
33875 }
33876 return NULL;
33877 }
33878
33879
33880 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33881 PyObject *resultobj = 0;
33882 wxPyTreeCtrl *result = 0 ;
33883
33884 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33885 {
33886 if (!wxPyCheckForApp()) SWIG_fail;
33887 PyThreadState* __tstate = wxPyBeginAllowThreads();
33888 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33889 wxPyEndAllowThreads(__tstate);
33890 if (PyErr_Occurred()) SWIG_fail;
33891 }
33892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33893 return resultobj;
33894 fail:
33895 return NULL;
33896 }
33897
33898
33899 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33900 PyObject *resultobj = 0;
33901 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33902 wxWindow *arg2 = (wxWindow *) 0 ;
33903 int arg3 = (int) -1 ;
33904 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33905 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33906 wxSize const &arg5_defvalue = wxDefaultSize ;
33907 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33908 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33909 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33910 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33911 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33912 wxString *arg8 = (wxString *) &arg8_defvalue ;
33913 bool result;
33914 void *argp1 = 0 ;
33915 int res1 = 0 ;
33916 void *argp2 = 0 ;
33917 int res2 = 0 ;
33918 int val3 ;
33919 int ecode3 = 0 ;
33920 wxPoint temp4 ;
33921 wxSize temp5 ;
33922 long val6 ;
33923 int ecode6 = 0 ;
33924 void *argp7 = 0 ;
33925 int res7 = 0 ;
33926 bool temp8 = false ;
33927 PyObject * obj0 = 0 ;
33928 PyObject * obj1 = 0 ;
33929 PyObject * obj2 = 0 ;
33930 PyObject * obj3 = 0 ;
33931 PyObject * obj4 = 0 ;
33932 PyObject * obj5 = 0 ;
33933 PyObject * obj6 = 0 ;
33934 PyObject * obj7 = 0 ;
33935 char * kwnames[] = {
33936 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33937 };
33938
33939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33941 if (!SWIG_IsOK(res1)) {
33942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33943 }
33944 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33945 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33946 if (!SWIG_IsOK(res2)) {
33947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33948 }
33949 arg2 = reinterpret_cast< wxWindow * >(argp2);
33950 if (obj2) {
33951 ecode3 = SWIG_AsVal_int(obj2, &val3);
33952 if (!SWIG_IsOK(ecode3)) {
33953 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33954 }
33955 arg3 = static_cast< int >(val3);
33956 }
33957 if (obj3) {
33958 {
33959 arg4 = &temp4;
33960 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33961 }
33962 }
33963 if (obj4) {
33964 {
33965 arg5 = &temp5;
33966 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33967 }
33968 }
33969 if (obj5) {
33970 ecode6 = SWIG_AsVal_long(obj5, &val6);
33971 if (!SWIG_IsOK(ecode6)) {
33972 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33973 }
33974 arg6 = static_cast< long >(val6);
33975 }
33976 if (obj6) {
33977 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33978 if (!SWIG_IsOK(res7)) {
33979 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33980 }
33981 if (!argp7) {
33982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33983 }
33984 arg7 = reinterpret_cast< wxValidator * >(argp7);
33985 }
33986 if (obj7) {
33987 {
33988 arg8 = wxString_in_helper(obj7);
33989 if (arg8 == NULL) SWIG_fail;
33990 temp8 = true;
33991 }
33992 }
33993 {
33994 PyThreadState* __tstate = wxPyBeginAllowThreads();
33995 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33996 wxPyEndAllowThreads(__tstate);
33997 if (PyErr_Occurred()) SWIG_fail;
33998 }
33999 {
34000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34001 }
34002 {
34003 if (temp8)
34004 delete arg8;
34005 }
34006 return resultobj;
34007 fail:
34008 {
34009 if (temp8)
34010 delete arg8;
34011 }
34012 return NULL;
34013 }
34014
34015
34016 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34017 PyObject *resultobj = 0;
34018 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34019 PyObject *arg2 = (PyObject *) 0 ;
34020 PyObject *arg3 = (PyObject *) 0 ;
34021 void *argp1 = 0 ;
34022 int res1 = 0 ;
34023 PyObject * obj0 = 0 ;
34024 PyObject * obj1 = 0 ;
34025 PyObject * obj2 = 0 ;
34026 char * kwnames[] = {
34027 (char *) "self",(char *) "self",(char *) "_class", NULL
34028 };
34029
34030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34032 if (!SWIG_IsOK(res1)) {
34033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34034 }
34035 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34036 arg2 = obj1;
34037 arg3 = obj2;
34038 {
34039 PyThreadState* __tstate = wxPyBeginAllowThreads();
34040 (arg1)->_setCallbackInfo(arg2,arg3);
34041 wxPyEndAllowThreads(__tstate);
34042 if (PyErr_Occurred()) SWIG_fail;
34043 }
34044 resultobj = SWIG_Py_Void();
34045 return resultobj;
34046 fail:
34047 return NULL;
34048 }
34049
34050
34051 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34052 PyObject *resultobj = 0;
34053 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34054 unsigned int result;
34055 void *argp1 = 0 ;
34056 int res1 = 0 ;
34057 PyObject *swig_obj[1] ;
34058
34059 if (!args) SWIG_fail;
34060 swig_obj[0] = args;
34061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34062 if (!SWIG_IsOK(res1)) {
34063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34064 }
34065 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34066 {
34067 PyThreadState* __tstate = wxPyBeginAllowThreads();
34068 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34069 wxPyEndAllowThreads(__tstate);
34070 if (PyErr_Occurred()) SWIG_fail;
34071 }
34072 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34073 return resultobj;
34074 fail:
34075 return NULL;
34076 }
34077
34078
34079 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34080 PyObject *resultobj = 0;
34081 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34082 unsigned int result;
34083 void *argp1 = 0 ;
34084 int res1 = 0 ;
34085 PyObject *swig_obj[1] ;
34086
34087 if (!args) SWIG_fail;
34088 swig_obj[0] = args;
34089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34090 if (!SWIG_IsOK(res1)) {
34091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34092 }
34093 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34094 {
34095 PyThreadState* __tstate = wxPyBeginAllowThreads();
34096 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34097 wxPyEndAllowThreads(__tstate);
34098 if (PyErr_Occurred()) SWIG_fail;
34099 }
34100 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34101 return resultobj;
34102 fail:
34103 return NULL;
34104 }
34105
34106
34107 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34108 PyObject *resultobj = 0;
34109 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34110 unsigned int arg2 ;
34111 void *argp1 = 0 ;
34112 int res1 = 0 ;
34113 unsigned int val2 ;
34114 int ecode2 = 0 ;
34115 PyObject * obj0 = 0 ;
34116 PyObject * obj1 = 0 ;
34117 char * kwnames[] = {
34118 (char *) "self",(char *) "indent", NULL
34119 };
34120
34121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34123 if (!SWIG_IsOK(res1)) {
34124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34125 }
34126 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34127 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34128 if (!SWIG_IsOK(ecode2)) {
34129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34130 }
34131 arg2 = static_cast< unsigned int >(val2);
34132 {
34133 PyThreadState* __tstate = wxPyBeginAllowThreads();
34134 (arg1)->SetIndent(arg2);
34135 wxPyEndAllowThreads(__tstate);
34136 if (PyErr_Occurred()) SWIG_fail;
34137 }
34138 resultobj = SWIG_Py_Void();
34139 return resultobj;
34140 fail:
34141 return NULL;
34142 }
34143
34144
34145 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34146 PyObject *resultobj = 0;
34147 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34148 unsigned int result;
34149 void *argp1 = 0 ;
34150 int res1 = 0 ;
34151 PyObject *swig_obj[1] ;
34152
34153 if (!args) SWIG_fail;
34154 swig_obj[0] = args;
34155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34156 if (!SWIG_IsOK(res1)) {
34157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34158 }
34159 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34160 {
34161 PyThreadState* __tstate = wxPyBeginAllowThreads();
34162 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34163 wxPyEndAllowThreads(__tstate);
34164 if (PyErr_Occurred()) SWIG_fail;
34165 }
34166 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34167 return resultobj;
34168 fail:
34169 return NULL;
34170 }
34171
34172
34173 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34174 PyObject *resultobj = 0;
34175 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34176 unsigned int arg2 ;
34177 void *argp1 = 0 ;
34178 int res1 = 0 ;
34179 unsigned int val2 ;
34180 int ecode2 = 0 ;
34181 PyObject * obj0 = 0 ;
34182 PyObject * obj1 = 0 ;
34183 char * kwnames[] = {
34184 (char *) "self",(char *) "spacing", NULL
34185 };
34186
34187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34189 if (!SWIG_IsOK(res1)) {
34190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34191 }
34192 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34193 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34194 if (!SWIG_IsOK(ecode2)) {
34195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34196 }
34197 arg2 = static_cast< unsigned int >(val2);
34198 {
34199 PyThreadState* __tstate = wxPyBeginAllowThreads();
34200 (arg1)->SetSpacing(arg2);
34201 wxPyEndAllowThreads(__tstate);
34202 if (PyErr_Occurred()) SWIG_fail;
34203 }
34204 resultobj = SWIG_Py_Void();
34205 return resultobj;
34206 fail:
34207 return NULL;
34208 }
34209
34210
34211 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34212 PyObject *resultobj = 0;
34213 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34214 wxImageList *result = 0 ;
34215 void *argp1 = 0 ;
34216 int res1 = 0 ;
34217 PyObject *swig_obj[1] ;
34218
34219 if (!args) SWIG_fail;
34220 swig_obj[0] = args;
34221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34222 if (!SWIG_IsOK(res1)) {
34223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34224 }
34225 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34226 {
34227 PyThreadState* __tstate = wxPyBeginAllowThreads();
34228 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34229 wxPyEndAllowThreads(__tstate);
34230 if (PyErr_Occurred()) SWIG_fail;
34231 }
34232 {
34233 resultobj = wxPyMake_wxObject(result, (bool)0);
34234 }
34235 return resultobj;
34236 fail:
34237 return NULL;
34238 }
34239
34240
34241 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34242 PyObject *resultobj = 0;
34243 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34244 wxImageList *result = 0 ;
34245 void *argp1 = 0 ;
34246 int res1 = 0 ;
34247 PyObject *swig_obj[1] ;
34248
34249 if (!args) SWIG_fail;
34250 swig_obj[0] = args;
34251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34252 if (!SWIG_IsOK(res1)) {
34253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34254 }
34255 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34256 {
34257 PyThreadState* __tstate = wxPyBeginAllowThreads();
34258 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34259 wxPyEndAllowThreads(__tstate);
34260 if (PyErr_Occurred()) SWIG_fail;
34261 }
34262 {
34263 resultobj = wxPyMake_wxObject(result, (bool)0);
34264 }
34265 return resultobj;
34266 fail:
34267 return NULL;
34268 }
34269
34270
34271 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34272 PyObject *resultobj = 0;
34273 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34274 wxImageList *arg2 = (wxImageList *) 0 ;
34275 void *argp1 = 0 ;
34276 int res1 = 0 ;
34277 void *argp2 = 0 ;
34278 int res2 = 0 ;
34279 PyObject * obj0 = 0 ;
34280 PyObject * obj1 = 0 ;
34281 char * kwnames[] = {
34282 (char *) "self",(char *) "imageList", NULL
34283 };
34284
34285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34287 if (!SWIG_IsOK(res1)) {
34288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34289 }
34290 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34291 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34292 if (!SWIG_IsOK(res2)) {
34293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34294 }
34295 arg2 = reinterpret_cast< wxImageList * >(argp2);
34296 {
34297 PyThreadState* __tstate = wxPyBeginAllowThreads();
34298 (arg1)->SetImageList(arg2);
34299 wxPyEndAllowThreads(__tstate);
34300 if (PyErr_Occurred()) SWIG_fail;
34301 }
34302 resultobj = SWIG_Py_Void();
34303 return resultobj;
34304 fail:
34305 return NULL;
34306 }
34307
34308
34309 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34310 PyObject *resultobj = 0;
34311 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34312 wxImageList *arg2 = (wxImageList *) 0 ;
34313 void *argp1 = 0 ;
34314 int res1 = 0 ;
34315 void *argp2 = 0 ;
34316 int res2 = 0 ;
34317 PyObject * obj0 = 0 ;
34318 PyObject * obj1 = 0 ;
34319 char * kwnames[] = {
34320 (char *) "self",(char *) "imageList", NULL
34321 };
34322
34323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34325 if (!SWIG_IsOK(res1)) {
34326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34327 }
34328 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34329 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34330 if (!SWIG_IsOK(res2)) {
34331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34332 }
34333 arg2 = reinterpret_cast< wxImageList * >(argp2);
34334 {
34335 PyThreadState* __tstate = wxPyBeginAllowThreads();
34336 (arg1)->SetStateImageList(arg2);
34337 wxPyEndAllowThreads(__tstate);
34338 if (PyErr_Occurred()) SWIG_fail;
34339 }
34340 resultobj = SWIG_Py_Void();
34341 return resultobj;
34342 fail:
34343 return NULL;
34344 }
34345
34346
34347 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34348 PyObject *resultobj = 0;
34349 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34350 wxImageList *arg2 = (wxImageList *) 0 ;
34351 void *argp1 = 0 ;
34352 int res1 = 0 ;
34353 int res2 = 0 ;
34354 PyObject * obj0 = 0 ;
34355 PyObject * obj1 = 0 ;
34356 char * kwnames[] = {
34357 (char *) "self",(char *) "imageList", NULL
34358 };
34359
34360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34362 if (!SWIG_IsOK(res1)) {
34363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34364 }
34365 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34366 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34367 if (!SWIG_IsOK(res2)) {
34368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34369 }
34370 {
34371 PyThreadState* __tstate = wxPyBeginAllowThreads();
34372 (arg1)->AssignImageList(arg2);
34373 wxPyEndAllowThreads(__tstate);
34374 if (PyErr_Occurred()) SWIG_fail;
34375 }
34376 resultobj = SWIG_Py_Void();
34377 return resultobj;
34378 fail:
34379 return NULL;
34380 }
34381
34382
34383 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34384 PyObject *resultobj = 0;
34385 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34386 wxImageList *arg2 = (wxImageList *) 0 ;
34387 void *argp1 = 0 ;
34388 int res1 = 0 ;
34389 int res2 = 0 ;
34390 PyObject * obj0 = 0 ;
34391 PyObject * obj1 = 0 ;
34392 char * kwnames[] = {
34393 (char *) "self",(char *) "imageList", NULL
34394 };
34395
34396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34398 if (!SWIG_IsOK(res1)) {
34399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34400 }
34401 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34402 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34403 if (!SWIG_IsOK(res2)) {
34404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34405 }
34406 {
34407 PyThreadState* __tstate = wxPyBeginAllowThreads();
34408 (arg1)->AssignStateImageList(arg2);
34409 wxPyEndAllowThreads(__tstate);
34410 if (PyErr_Occurred()) SWIG_fail;
34411 }
34412 resultobj = SWIG_Py_Void();
34413 return resultobj;
34414 fail:
34415 return NULL;
34416 }
34417
34418
34419 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34420 PyObject *resultobj = 0;
34421 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34422 wxTreeItemId *arg2 = 0 ;
34423 wxString result;
34424 void *argp1 = 0 ;
34425 int res1 = 0 ;
34426 void *argp2 = 0 ;
34427 int res2 = 0 ;
34428 PyObject * obj0 = 0 ;
34429 PyObject * obj1 = 0 ;
34430 char * kwnames[] = {
34431 (char *) "self",(char *) "item", NULL
34432 };
34433
34434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34436 if (!SWIG_IsOK(res1)) {
34437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34438 }
34439 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34440 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34441 if (!SWIG_IsOK(res2)) {
34442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34443 }
34444 if (!argp2) {
34445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34446 }
34447 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34448 {
34449 PyThreadState* __tstate = wxPyBeginAllowThreads();
34450 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34451 wxPyEndAllowThreads(__tstate);
34452 if (PyErr_Occurred()) SWIG_fail;
34453 }
34454 {
34455 #if wxUSE_UNICODE
34456 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34457 #else
34458 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34459 #endif
34460 }
34461 return resultobj;
34462 fail:
34463 return NULL;
34464 }
34465
34466
34467 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34468 PyObject *resultobj = 0;
34469 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34470 wxTreeItemId *arg2 = 0 ;
34471 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34472 int result;
34473 void *argp1 = 0 ;
34474 int res1 = 0 ;
34475 void *argp2 = 0 ;
34476 int res2 = 0 ;
34477 int val3 ;
34478 int ecode3 = 0 ;
34479 PyObject * obj0 = 0 ;
34480 PyObject * obj1 = 0 ;
34481 PyObject * obj2 = 0 ;
34482 char * kwnames[] = {
34483 (char *) "self",(char *) "item",(char *) "which", NULL
34484 };
34485
34486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34488 if (!SWIG_IsOK(res1)) {
34489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34490 }
34491 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34493 if (!SWIG_IsOK(res2)) {
34494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34495 }
34496 if (!argp2) {
34497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34498 }
34499 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34500 if (obj2) {
34501 ecode3 = SWIG_AsVal_int(obj2, &val3);
34502 if (!SWIG_IsOK(ecode3)) {
34503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34504 }
34505 arg3 = static_cast< wxTreeItemIcon >(val3);
34506 }
34507 {
34508 PyThreadState* __tstate = wxPyBeginAllowThreads();
34509 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34510 wxPyEndAllowThreads(__tstate);
34511 if (PyErr_Occurred()) SWIG_fail;
34512 }
34513 resultobj = SWIG_From_int(static_cast< int >(result));
34514 return resultobj;
34515 fail:
34516 return NULL;
34517 }
34518
34519
34520 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34521 PyObject *resultobj = 0;
34522 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34523 wxTreeItemId *arg2 = 0 ;
34524 wxPyTreeItemData *result = 0 ;
34525 void *argp1 = 0 ;
34526 int res1 = 0 ;
34527 void *argp2 = 0 ;
34528 int res2 = 0 ;
34529 PyObject * obj0 = 0 ;
34530 PyObject * obj1 = 0 ;
34531 char * kwnames[] = {
34532 (char *) "self",(char *) "item", NULL
34533 };
34534
34535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34537 if (!SWIG_IsOK(res1)) {
34538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34539 }
34540 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34542 if (!SWIG_IsOK(res2)) {
34543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34544 }
34545 if (!argp2) {
34546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34547 }
34548 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34549 {
34550 PyThreadState* __tstate = wxPyBeginAllowThreads();
34551 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34552 wxPyEndAllowThreads(__tstate);
34553 if (PyErr_Occurred()) SWIG_fail;
34554 }
34555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34556 return resultobj;
34557 fail:
34558 return NULL;
34559 }
34560
34561
34562 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34563 PyObject *resultobj = 0;
34564 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34565 wxTreeItemId *arg2 = 0 ;
34566 PyObject *result = 0 ;
34567 void *argp1 = 0 ;
34568 int res1 = 0 ;
34569 void *argp2 = 0 ;
34570 int res2 = 0 ;
34571 PyObject * obj0 = 0 ;
34572 PyObject * obj1 = 0 ;
34573 char * kwnames[] = {
34574 (char *) "self",(char *) "item", NULL
34575 };
34576
34577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34579 if (!SWIG_IsOK(res1)) {
34580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34581 }
34582 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34584 if (!SWIG_IsOK(res2)) {
34585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34586 }
34587 if (!argp2) {
34588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34589 }
34590 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34591 {
34592 PyThreadState* __tstate = wxPyBeginAllowThreads();
34593 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34594 wxPyEndAllowThreads(__tstate);
34595 if (PyErr_Occurred()) SWIG_fail;
34596 }
34597 resultobj = result;
34598 return resultobj;
34599 fail:
34600 return NULL;
34601 }
34602
34603
34604 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34605 PyObject *resultobj = 0;
34606 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34607 wxTreeItemId *arg2 = 0 ;
34608 wxColour result;
34609 void *argp1 = 0 ;
34610 int res1 = 0 ;
34611 void *argp2 = 0 ;
34612 int res2 = 0 ;
34613 PyObject * obj0 = 0 ;
34614 PyObject * obj1 = 0 ;
34615 char * kwnames[] = {
34616 (char *) "self",(char *) "item", NULL
34617 };
34618
34619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34621 if (!SWIG_IsOK(res1)) {
34622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34623 }
34624 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34626 if (!SWIG_IsOK(res2)) {
34627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34628 }
34629 if (!argp2) {
34630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34631 }
34632 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34633 {
34634 PyThreadState* __tstate = wxPyBeginAllowThreads();
34635 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34636 wxPyEndAllowThreads(__tstate);
34637 if (PyErr_Occurred()) SWIG_fail;
34638 }
34639 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34640 return resultobj;
34641 fail:
34642 return NULL;
34643 }
34644
34645
34646 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34647 PyObject *resultobj = 0;
34648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34649 wxTreeItemId *arg2 = 0 ;
34650 wxColour result;
34651 void *argp1 = 0 ;
34652 int res1 = 0 ;
34653 void *argp2 = 0 ;
34654 int res2 = 0 ;
34655 PyObject * obj0 = 0 ;
34656 PyObject * obj1 = 0 ;
34657 char * kwnames[] = {
34658 (char *) "self",(char *) "item", NULL
34659 };
34660
34661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34663 if (!SWIG_IsOK(res1)) {
34664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34665 }
34666 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34667 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34668 if (!SWIG_IsOK(res2)) {
34669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34670 }
34671 if (!argp2) {
34672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34673 }
34674 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34675 {
34676 PyThreadState* __tstate = wxPyBeginAllowThreads();
34677 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34678 wxPyEndAllowThreads(__tstate);
34679 if (PyErr_Occurred()) SWIG_fail;
34680 }
34681 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34682 return resultobj;
34683 fail:
34684 return NULL;
34685 }
34686
34687
34688 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34689 PyObject *resultobj = 0;
34690 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34691 wxTreeItemId *arg2 = 0 ;
34692 wxFont result;
34693 void *argp1 = 0 ;
34694 int res1 = 0 ;
34695 void *argp2 = 0 ;
34696 int res2 = 0 ;
34697 PyObject * obj0 = 0 ;
34698 PyObject * obj1 = 0 ;
34699 char * kwnames[] = {
34700 (char *) "self",(char *) "item", NULL
34701 };
34702
34703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34705 if (!SWIG_IsOK(res1)) {
34706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34707 }
34708 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34709 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34710 if (!SWIG_IsOK(res2)) {
34711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34712 }
34713 if (!argp2) {
34714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34715 }
34716 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34717 {
34718 PyThreadState* __tstate = wxPyBeginAllowThreads();
34719 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34720 wxPyEndAllowThreads(__tstate);
34721 if (PyErr_Occurred()) SWIG_fail;
34722 }
34723 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34724 return resultobj;
34725 fail:
34726 return NULL;
34727 }
34728
34729
34730 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34731 PyObject *resultobj = 0;
34732 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34733 wxTreeItemId *arg2 = 0 ;
34734 wxString *arg3 = 0 ;
34735 void *argp1 = 0 ;
34736 int res1 = 0 ;
34737 void *argp2 = 0 ;
34738 int res2 = 0 ;
34739 bool temp3 = false ;
34740 PyObject * obj0 = 0 ;
34741 PyObject * obj1 = 0 ;
34742 PyObject * obj2 = 0 ;
34743 char * kwnames[] = {
34744 (char *) "self",(char *) "item",(char *) "text", NULL
34745 };
34746
34747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34749 if (!SWIG_IsOK(res1)) {
34750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34751 }
34752 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34753 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34754 if (!SWIG_IsOK(res2)) {
34755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34756 }
34757 if (!argp2) {
34758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34759 }
34760 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34761 {
34762 arg3 = wxString_in_helper(obj2);
34763 if (arg3 == NULL) SWIG_fail;
34764 temp3 = true;
34765 }
34766 {
34767 PyThreadState* __tstate = wxPyBeginAllowThreads();
34768 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34769 wxPyEndAllowThreads(__tstate);
34770 if (PyErr_Occurred()) SWIG_fail;
34771 }
34772 resultobj = SWIG_Py_Void();
34773 {
34774 if (temp3)
34775 delete arg3;
34776 }
34777 return resultobj;
34778 fail:
34779 {
34780 if (temp3)
34781 delete arg3;
34782 }
34783 return NULL;
34784 }
34785
34786
34787 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34788 PyObject *resultobj = 0;
34789 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34790 wxTreeItemId *arg2 = 0 ;
34791 int arg3 ;
34792 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34793 void *argp1 = 0 ;
34794 int res1 = 0 ;
34795 void *argp2 = 0 ;
34796 int res2 = 0 ;
34797 int val3 ;
34798 int ecode3 = 0 ;
34799 int val4 ;
34800 int ecode4 = 0 ;
34801 PyObject * obj0 = 0 ;
34802 PyObject * obj1 = 0 ;
34803 PyObject * obj2 = 0 ;
34804 PyObject * obj3 = 0 ;
34805 char * kwnames[] = {
34806 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34807 };
34808
34809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34811 if (!SWIG_IsOK(res1)) {
34812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34813 }
34814 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34816 if (!SWIG_IsOK(res2)) {
34817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34818 }
34819 if (!argp2) {
34820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34821 }
34822 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34823 ecode3 = SWIG_AsVal_int(obj2, &val3);
34824 if (!SWIG_IsOK(ecode3)) {
34825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34826 }
34827 arg3 = static_cast< int >(val3);
34828 if (obj3) {
34829 ecode4 = SWIG_AsVal_int(obj3, &val4);
34830 if (!SWIG_IsOK(ecode4)) {
34831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34832 }
34833 arg4 = static_cast< wxTreeItemIcon >(val4);
34834 }
34835 {
34836 PyThreadState* __tstate = wxPyBeginAllowThreads();
34837 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34838 wxPyEndAllowThreads(__tstate);
34839 if (PyErr_Occurred()) SWIG_fail;
34840 }
34841 resultobj = SWIG_Py_Void();
34842 return resultobj;
34843 fail:
34844 return NULL;
34845 }
34846
34847
34848 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34849 PyObject *resultobj = 0;
34850 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34851 wxTreeItemId *arg2 = 0 ;
34852 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34853 void *argp1 = 0 ;
34854 int res1 = 0 ;
34855 void *argp2 = 0 ;
34856 int res2 = 0 ;
34857 int res3 = 0 ;
34858 PyObject * obj0 = 0 ;
34859 PyObject * obj1 = 0 ;
34860 PyObject * obj2 = 0 ;
34861 char * kwnames[] = {
34862 (char *) "self",(char *) "item",(char *) "data", NULL
34863 };
34864
34865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34867 if (!SWIG_IsOK(res1)) {
34868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34869 }
34870 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34872 if (!SWIG_IsOK(res2)) {
34873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34874 }
34875 if (!argp2) {
34876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34877 }
34878 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34879 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34880 if (!SWIG_IsOK(res3)) {
34881 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34882 }
34883 {
34884 PyThreadState* __tstate = wxPyBeginAllowThreads();
34885 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34886 wxPyEndAllowThreads(__tstate);
34887 if (PyErr_Occurred()) SWIG_fail;
34888 }
34889 resultobj = SWIG_Py_Void();
34890 return resultobj;
34891 fail:
34892 return NULL;
34893 }
34894
34895
34896 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34897 PyObject *resultobj = 0;
34898 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34899 wxTreeItemId *arg2 = 0 ;
34900 PyObject *arg3 = (PyObject *) 0 ;
34901 void *argp1 = 0 ;
34902 int res1 = 0 ;
34903 void *argp2 = 0 ;
34904 int res2 = 0 ;
34905 PyObject * obj0 = 0 ;
34906 PyObject * obj1 = 0 ;
34907 PyObject * obj2 = 0 ;
34908 char * kwnames[] = {
34909 (char *) "self",(char *) "item",(char *) "obj", NULL
34910 };
34911
34912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34914 if (!SWIG_IsOK(res1)) {
34915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34916 }
34917 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34918 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34919 if (!SWIG_IsOK(res2)) {
34920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34921 }
34922 if (!argp2) {
34923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34924 }
34925 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34926 arg3 = obj2;
34927 {
34928 PyThreadState* __tstate = wxPyBeginAllowThreads();
34929 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34930 wxPyEndAllowThreads(__tstate);
34931 if (PyErr_Occurred()) SWIG_fail;
34932 }
34933 resultobj = SWIG_Py_Void();
34934 return resultobj;
34935 fail:
34936 return NULL;
34937 }
34938
34939
34940 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34941 PyObject *resultobj = 0;
34942 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34943 wxTreeItemId *arg2 = 0 ;
34944 bool arg3 = (bool) true ;
34945 void *argp1 = 0 ;
34946 int res1 = 0 ;
34947 void *argp2 = 0 ;
34948 int res2 = 0 ;
34949 bool val3 ;
34950 int ecode3 = 0 ;
34951 PyObject * obj0 = 0 ;
34952 PyObject * obj1 = 0 ;
34953 PyObject * obj2 = 0 ;
34954 char * kwnames[] = {
34955 (char *) "self",(char *) "item",(char *) "has", NULL
34956 };
34957
34958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34960 if (!SWIG_IsOK(res1)) {
34961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34962 }
34963 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34965 if (!SWIG_IsOK(res2)) {
34966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34967 }
34968 if (!argp2) {
34969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34970 }
34971 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34972 if (obj2) {
34973 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34974 if (!SWIG_IsOK(ecode3)) {
34975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34976 }
34977 arg3 = static_cast< bool >(val3);
34978 }
34979 {
34980 PyThreadState* __tstate = wxPyBeginAllowThreads();
34981 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34982 wxPyEndAllowThreads(__tstate);
34983 if (PyErr_Occurred()) SWIG_fail;
34984 }
34985 resultobj = SWIG_Py_Void();
34986 return resultobj;
34987 fail:
34988 return NULL;
34989 }
34990
34991
34992 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34993 PyObject *resultobj = 0;
34994 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34995 wxTreeItemId *arg2 = 0 ;
34996 bool arg3 = (bool) true ;
34997 void *argp1 = 0 ;
34998 int res1 = 0 ;
34999 void *argp2 = 0 ;
35000 int res2 = 0 ;
35001 bool val3 ;
35002 int ecode3 = 0 ;
35003 PyObject * obj0 = 0 ;
35004 PyObject * obj1 = 0 ;
35005 PyObject * obj2 = 0 ;
35006 char * kwnames[] = {
35007 (char *) "self",(char *) "item",(char *) "bold", NULL
35008 };
35009
35010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35012 if (!SWIG_IsOK(res1)) {
35013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35014 }
35015 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35017 if (!SWIG_IsOK(res2)) {
35018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35019 }
35020 if (!argp2) {
35021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35022 }
35023 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35024 if (obj2) {
35025 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35026 if (!SWIG_IsOK(ecode3)) {
35027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35028 }
35029 arg3 = static_cast< bool >(val3);
35030 }
35031 {
35032 PyThreadState* __tstate = wxPyBeginAllowThreads();
35033 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35034 wxPyEndAllowThreads(__tstate);
35035 if (PyErr_Occurred()) SWIG_fail;
35036 }
35037 resultobj = SWIG_Py_Void();
35038 return resultobj;
35039 fail:
35040 return NULL;
35041 }
35042
35043
35044 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35045 PyObject *resultobj = 0;
35046 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35047 wxTreeItemId *arg2 = 0 ;
35048 bool arg3 = (bool) true ;
35049 void *argp1 = 0 ;
35050 int res1 = 0 ;
35051 void *argp2 = 0 ;
35052 int res2 = 0 ;
35053 bool val3 ;
35054 int ecode3 = 0 ;
35055 PyObject * obj0 = 0 ;
35056 PyObject * obj1 = 0 ;
35057 PyObject * obj2 = 0 ;
35058 char * kwnames[] = {
35059 (char *) "self",(char *) "item",(char *) "highlight", NULL
35060 };
35061
35062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35064 if (!SWIG_IsOK(res1)) {
35065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35066 }
35067 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35068 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35069 if (!SWIG_IsOK(res2)) {
35070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35071 }
35072 if (!argp2) {
35073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35074 }
35075 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35076 if (obj2) {
35077 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35078 if (!SWIG_IsOK(ecode3)) {
35079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35080 }
35081 arg3 = static_cast< bool >(val3);
35082 }
35083 {
35084 PyThreadState* __tstate = wxPyBeginAllowThreads();
35085 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35086 wxPyEndAllowThreads(__tstate);
35087 if (PyErr_Occurred()) SWIG_fail;
35088 }
35089 resultobj = SWIG_Py_Void();
35090 return resultobj;
35091 fail:
35092 return NULL;
35093 }
35094
35095
35096 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35097 PyObject *resultobj = 0;
35098 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35099 wxTreeItemId *arg2 = 0 ;
35100 wxColour *arg3 = 0 ;
35101 void *argp1 = 0 ;
35102 int res1 = 0 ;
35103 void *argp2 = 0 ;
35104 int res2 = 0 ;
35105 wxColour temp3 ;
35106 PyObject * obj0 = 0 ;
35107 PyObject * obj1 = 0 ;
35108 PyObject * obj2 = 0 ;
35109 char * kwnames[] = {
35110 (char *) "self",(char *) "item",(char *) "col", NULL
35111 };
35112
35113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35115 if (!SWIG_IsOK(res1)) {
35116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35117 }
35118 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35119 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35120 if (!SWIG_IsOK(res2)) {
35121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35122 }
35123 if (!argp2) {
35124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35125 }
35126 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35127 {
35128 arg3 = &temp3;
35129 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35130 }
35131 {
35132 PyThreadState* __tstate = wxPyBeginAllowThreads();
35133 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35134 wxPyEndAllowThreads(__tstate);
35135 if (PyErr_Occurred()) SWIG_fail;
35136 }
35137 resultobj = SWIG_Py_Void();
35138 return resultobj;
35139 fail:
35140 return NULL;
35141 }
35142
35143
35144 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35145 PyObject *resultobj = 0;
35146 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35147 wxTreeItemId *arg2 = 0 ;
35148 wxColour *arg3 = 0 ;
35149 void *argp1 = 0 ;
35150 int res1 = 0 ;
35151 void *argp2 = 0 ;
35152 int res2 = 0 ;
35153 wxColour temp3 ;
35154 PyObject * obj0 = 0 ;
35155 PyObject * obj1 = 0 ;
35156 PyObject * obj2 = 0 ;
35157 char * kwnames[] = {
35158 (char *) "self",(char *) "item",(char *) "col", NULL
35159 };
35160
35161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35163 if (!SWIG_IsOK(res1)) {
35164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35165 }
35166 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35168 if (!SWIG_IsOK(res2)) {
35169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35170 }
35171 if (!argp2) {
35172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35173 }
35174 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35175 {
35176 arg3 = &temp3;
35177 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35178 }
35179 {
35180 PyThreadState* __tstate = wxPyBeginAllowThreads();
35181 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35182 wxPyEndAllowThreads(__tstate);
35183 if (PyErr_Occurred()) SWIG_fail;
35184 }
35185 resultobj = SWIG_Py_Void();
35186 return resultobj;
35187 fail:
35188 return NULL;
35189 }
35190
35191
35192 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35193 PyObject *resultobj = 0;
35194 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35195 wxTreeItemId *arg2 = 0 ;
35196 wxFont *arg3 = 0 ;
35197 void *argp1 = 0 ;
35198 int res1 = 0 ;
35199 void *argp2 = 0 ;
35200 int res2 = 0 ;
35201 void *argp3 = 0 ;
35202 int res3 = 0 ;
35203 PyObject * obj0 = 0 ;
35204 PyObject * obj1 = 0 ;
35205 PyObject * obj2 = 0 ;
35206 char * kwnames[] = {
35207 (char *) "self",(char *) "item",(char *) "font", NULL
35208 };
35209
35210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",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_SetItemFont" "', 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_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35219 }
35220 if (!argp2) {
35221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35222 }
35223 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35224 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35225 if (!SWIG_IsOK(res3)) {
35226 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35227 }
35228 if (!argp3) {
35229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35230 }
35231 arg3 = reinterpret_cast< wxFont * >(argp3);
35232 {
35233 PyThreadState* __tstate = wxPyBeginAllowThreads();
35234 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35235 wxPyEndAllowThreads(__tstate);
35236 if (PyErr_Occurred()) SWIG_fail;
35237 }
35238 resultobj = SWIG_Py_Void();
35239 return resultobj;
35240 fail:
35241 return NULL;
35242 }
35243
35244
35245 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35246 PyObject *resultobj = 0;
35247 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35248 wxTreeItemId *arg2 = 0 ;
35249 bool result;
35250 void *argp1 = 0 ;
35251 int res1 = 0 ;
35252 void *argp2 = 0 ;
35253 int res2 = 0 ;
35254 PyObject * obj0 = 0 ;
35255 PyObject * obj1 = 0 ;
35256 char * kwnames[] = {
35257 (char *) "self",(char *) "item", NULL
35258 };
35259
35260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35262 if (!SWIG_IsOK(res1)) {
35263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35264 }
35265 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35266 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35267 if (!SWIG_IsOK(res2)) {
35268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35269 }
35270 if (!argp2) {
35271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35272 }
35273 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35274 {
35275 PyThreadState* __tstate = wxPyBeginAllowThreads();
35276 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35277 wxPyEndAllowThreads(__tstate);
35278 if (PyErr_Occurred()) SWIG_fail;
35279 }
35280 {
35281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35282 }
35283 return resultobj;
35284 fail:
35285 return NULL;
35286 }
35287
35288
35289 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35290 PyObject *resultobj = 0;
35291 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35292 wxTreeItemId *arg2 = 0 ;
35293 bool result;
35294 void *argp1 = 0 ;
35295 int res1 = 0 ;
35296 void *argp2 = 0 ;
35297 int res2 = 0 ;
35298 PyObject * obj0 = 0 ;
35299 PyObject * obj1 = 0 ;
35300 char * kwnames[] = {
35301 (char *) "self",(char *) "item", NULL
35302 };
35303
35304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35306 if (!SWIG_IsOK(res1)) {
35307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35308 }
35309 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35310 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35311 if (!SWIG_IsOK(res2)) {
35312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35313 }
35314 if (!argp2) {
35315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35316 }
35317 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35318 {
35319 PyThreadState* __tstate = wxPyBeginAllowThreads();
35320 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35321 wxPyEndAllowThreads(__tstate);
35322 if (PyErr_Occurred()) SWIG_fail;
35323 }
35324 {
35325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35326 }
35327 return resultobj;
35328 fail:
35329 return NULL;
35330 }
35331
35332
35333 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35334 PyObject *resultobj = 0;
35335 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35336 wxTreeItemId *arg2 = 0 ;
35337 bool result;
35338 void *argp1 = 0 ;
35339 int res1 = 0 ;
35340 void *argp2 = 0 ;
35341 int res2 = 0 ;
35342 PyObject * obj0 = 0 ;
35343 PyObject * obj1 = 0 ;
35344 char * kwnames[] = {
35345 (char *) "self",(char *) "item", NULL
35346 };
35347
35348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35350 if (!SWIG_IsOK(res1)) {
35351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35352 }
35353 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35354 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35355 if (!SWIG_IsOK(res2)) {
35356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35357 }
35358 if (!argp2) {
35359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35360 }
35361 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35362 {
35363 PyThreadState* __tstate = wxPyBeginAllowThreads();
35364 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35365 wxPyEndAllowThreads(__tstate);
35366 if (PyErr_Occurred()) SWIG_fail;
35367 }
35368 {
35369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35370 }
35371 return resultobj;
35372 fail:
35373 return NULL;
35374 }
35375
35376
35377 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35378 PyObject *resultobj = 0;
35379 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35380 wxTreeItemId *arg2 = 0 ;
35381 bool result;
35382 void *argp1 = 0 ;
35383 int res1 = 0 ;
35384 void *argp2 = 0 ;
35385 int res2 = 0 ;
35386 PyObject * obj0 = 0 ;
35387 PyObject * obj1 = 0 ;
35388 char * kwnames[] = {
35389 (char *) "self",(char *) "item", NULL
35390 };
35391
35392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35394 if (!SWIG_IsOK(res1)) {
35395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35396 }
35397 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35398 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35399 if (!SWIG_IsOK(res2)) {
35400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35401 }
35402 if (!argp2) {
35403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35404 }
35405 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35406 {
35407 PyThreadState* __tstate = wxPyBeginAllowThreads();
35408 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35409 wxPyEndAllowThreads(__tstate);
35410 if (PyErr_Occurred()) SWIG_fail;
35411 }
35412 {
35413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35414 }
35415 return resultobj;
35416 fail:
35417 return NULL;
35418 }
35419
35420
35421 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35422 PyObject *resultobj = 0;
35423 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35424 wxTreeItemId *arg2 = 0 ;
35425 bool result;
35426 void *argp1 = 0 ;
35427 int res1 = 0 ;
35428 void *argp2 = 0 ;
35429 int res2 = 0 ;
35430 PyObject * obj0 = 0 ;
35431 PyObject * obj1 = 0 ;
35432 char * kwnames[] = {
35433 (char *) "self",(char *) "item", NULL
35434 };
35435
35436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35438 if (!SWIG_IsOK(res1)) {
35439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35440 }
35441 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35443 if (!SWIG_IsOK(res2)) {
35444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35445 }
35446 if (!argp2) {
35447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35448 }
35449 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35450 {
35451 PyThreadState* __tstate = wxPyBeginAllowThreads();
35452 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35453 wxPyEndAllowThreads(__tstate);
35454 if (PyErr_Occurred()) SWIG_fail;
35455 }
35456 {
35457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35458 }
35459 return resultobj;
35460 fail:
35461 return NULL;
35462 }
35463
35464
35465 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35466 PyObject *resultobj = 0;
35467 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35468 wxTreeItemId *arg2 = 0 ;
35469 bool arg3 = (bool) true ;
35470 size_t result;
35471 void *argp1 = 0 ;
35472 int res1 = 0 ;
35473 void *argp2 = 0 ;
35474 int res2 = 0 ;
35475 bool val3 ;
35476 int ecode3 = 0 ;
35477 PyObject * obj0 = 0 ;
35478 PyObject * obj1 = 0 ;
35479 PyObject * obj2 = 0 ;
35480 char * kwnames[] = {
35481 (char *) "self",(char *) "item",(char *) "recursively", NULL
35482 };
35483
35484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35486 if (!SWIG_IsOK(res1)) {
35487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35488 }
35489 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35491 if (!SWIG_IsOK(res2)) {
35492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35493 }
35494 if (!argp2) {
35495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35496 }
35497 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35498 if (obj2) {
35499 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35500 if (!SWIG_IsOK(ecode3)) {
35501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35502 }
35503 arg3 = static_cast< bool >(val3);
35504 }
35505 {
35506 PyThreadState* __tstate = wxPyBeginAllowThreads();
35507 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35508 wxPyEndAllowThreads(__tstate);
35509 if (PyErr_Occurred()) SWIG_fail;
35510 }
35511 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35512 return resultobj;
35513 fail:
35514 return NULL;
35515 }
35516
35517
35518 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35519 PyObject *resultobj = 0;
35520 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35521 wxTreeItemId result;
35522 void *argp1 = 0 ;
35523 int res1 = 0 ;
35524 PyObject *swig_obj[1] ;
35525
35526 if (!args) SWIG_fail;
35527 swig_obj[0] = args;
35528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35529 if (!SWIG_IsOK(res1)) {
35530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35531 }
35532 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35533 {
35534 PyThreadState* __tstate = wxPyBeginAllowThreads();
35535 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35536 wxPyEndAllowThreads(__tstate);
35537 if (PyErr_Occurred()) SWIG_fail;
35538 }
35539 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35540 return resultobj;
35541 fail:
35542 return NULL;
35543 }
35544
35545
35546 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35547 PyObject *resultobj = 0;
35548 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35549 wxTreeItemId result;
35550 void *argp1 = 0 ;
35551 int res1 = 0 ;
35552 PyObject *swig_obj[1] ;
35553
35554 if (!args) SWIG_fail;
35555 swig_obj[0] = args;
35556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35557 if (!SWIG_IsOK(res1)) {
35558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35559 }
35560 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35561 {
35562 PyThreadState* __tstate = wxPyBeginAllowThreads();
35563 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35564 wxPyEndAllowThreads(__tstate);
35565 if (PyErr_Occurred()) SWIG_fail;
35566 }
35567 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35568 return resultobj;
35569 fail:
35570 return NULL;
35571 }
35572
35573
35574 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35575 PyObject *resultobj = 0;
35576 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35577 PyObject *result = 0 ;
35578 void *argp1 = 0 ;
35579 int res1 = 0 ;
35580 PyObject *swig_obj[1] ;
35581
35582 if (!args) SWIG_fail;
35583 swig_obj[0] = args;
35584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35585 if (!SWIG_IsOK(res1)) {
35586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35587 }
35588 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35589 {
35590 PyThreadState* __tstate = wxPyBeginAllowThreads();
35591 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35592 wxPyEndAllowThreads(__tstate);
35593 if (PyErr_Occurred()) SWIG_fail;
35594 }
35595 resultobj = result;
35596 return resultobj;
35597 fail:
35598 return NULL;
35599 }
35600
35601
35602 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35603 PyObject *resultobj = 0;
35604 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35605 wxTreeItemId *arg2 = 0 ;
35606 wxTreeItemId result;
35607 void *argp1 = 0 ;
35608 int res1 = 0 ;
35609 void *argp2 = 0 ;
35610 int res2 = 0 ;
35611 PyObject * obj0 = 0 ;
35612 PyObject * obj1 = 0 ;
35613 char * kwnames[] = {
35614 (char *) "self",(char *) "item", NULL
35615 };
35616
35617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35619 if (!SWIG_IsOK(res1)) {
35620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35621 }
35622 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35624 if (!SWIG_IsOK(res2)) {
35625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35626 }
35627 if (!argp2) {
35628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35629 }
35630 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35631 {
35632 PyThreadState* __tstate = wxPyBeginAllowThreads();
35633 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35634 wxPyEndAllowThreads(__tstate);
35635 if (PyErr_Occurred()) SWIG_fail;
35636 }
35637 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35638 return resultobj;
35639 fail:
35640 return NULL;
35641 }
35642
35643
35644 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35645 PyObject *resultobj = 0;
35646 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35647 wxTreeItemId *arg2 = 0 ;
35648 PyObject *result = 0 ;
35649 void *argp1 = 0 ;
35650 int res1 = 0 ;
35651 void *argp2 = 0 ;
35652 int res2 = 0 ;
35653 PyObject * obj0 = 0 ;
35654 PyObject * obj1 = 0 ;
35655 char * kwnames[] = {
35656 (char *) "self",(char *) "item", NULL
35657 };
35658
35659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35661 if (!SWIG_IsOK(res1)) {
35662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35663 }
35664 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35666 if (!SWIG_IsOK(res2)) {
35667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35668 }
35669 if (!argp2) {
35670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35671 }
35672 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35673 {
35674 PyThreadState* __tstate = wxPyBeginAllowThreads();
35675 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35676 wxPyEndAllowThreads(__tstate);
35677 if (PyErr_Occurred()) SWIG_fail;
35678 }
35679 resultobj = result;
35680 return resultobj;
35681 fail:
35682 return NULL;
35683 }
35684
35685
35686 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35687 PyObject *resultobj = 0;
35688 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35689 wxTreeItemId *arg2 = 0 ;
35690 void *arg3 = (void *) 0 ;
35691 PyObject *result = 0 ;
35692 void *argp1 = 0 ;
35693 int res1 = 0 ;
35694 void *argp2 = 0 ;
35695 int res2 = 0 ;
35696 int res3 ;
35697 PyObject * obj0 = 0 ;
35698 PyObject * obj1 = 0 ;
35699 PyObject * obj2 = 0 ;
35700 char * kwnames[] = {
35701 (char *) "self",(char *) "item",(char *) "cookie", NULL
35702 };
35703
35704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35706 if (!SWIG_IsOK(res1)) {
35707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35708 }
35709 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35711 if (!SWIG_IsOK(res2)) {
35712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35713 }
35714 if (!argp2) {
35715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35716 }
35717 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35718 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35719 if (!SWIG_IsOK(res3)) {
35720 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35721 }
35722 {
35723 PyThreadState* __tstate = wxPyBeginAllowThreads();
35724 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35725 wxPyEndAllowThreads(__tstate);
35726 if (PyErr_Occurred()) SWIG_fail;
35727 }
35728 resultobj = result;
35729 return resultobj;
35730 fail:
35731 return NULL;
35732 }
35733
35734
35735 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35736 PyObject *resultobj = 0;
35737 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35738 wxTreeItemId *arg2 = 0 ;
35739 wxTreeItemId result;
35740 void *argp1 = 0 ;
35741 int res1 = 0 ;
35742 void *argp2 = 0 ;
35743 int res2 = 0 ;
35744 PyObject * obj0 = 0 ;
35745 PyObject * obj1 = 0 ;
35746 char * kwnames[] = {
35747 (char *) "self",(char *) "item", NULL
35748 };
35749
35750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35752 if (!SWIG_IsOK(res1)) {
35753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35754 }
35755 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35757 if (!SWIG_IsOK(res2)) {
35758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35759 }
35760 if (!argp2) {
35761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35762 }
35763 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35764 {
35765 PyThreadState* __tstate = wxPyBeginAllowThreads();
35766 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35767 wxPyEndAllowThreads(__tstate);
35768 if (PyErr_Occurred()) SWIG_fail;
35769 }
35770 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35771 return resultobj;
35772 fail:
35773 return NULL;
35774 }
35775
35776
35777 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35778 PyObject *resultobj = 0;
35779 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35780 wxTreeItemId *arg2 = 0 ;
35781 wxTreeItemId result;
35782 void *argp1 = 0 ;
35783 int res1 = 0 ;
35784 void *argp2 = 0 ;
35785 int res2 = 0 ;
35786 PyObject * obj0 = 0 ;
35787 PyObject * obj1 = 0 ;
35788 char * kwnames[] = {
35789 (char *) "self",(char *) "item", NULL
35790 };
35791
35792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35794 if (!SWIG_IsOK(res1)) {
35795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35796 }
35797 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35798 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35799 if (!SWIG_IsOK(res2)) {
35800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35801 }
35802 if (!argp2) {
35803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35804 }
35805 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35806 {
35807 PyThreadState* __tstate = wxPyBeginAllowThreads();
35808 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35809 wxPyEndAllowThreads(__tstate);
35810 if (PyErr_Occurred()) SWIG_fail;
35811 }
35812 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35813 return resultobj;
35814 fail:
35815 return NULL;
35816 }
35817
35818
35819 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35820 PyObject *resultobj = 0;
35821 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35822 wxTreeItemId *arg2 = 0 ;
35823 wxTreeItemId result;
35824 void *argp1 = 0 ;
35825 int res1 = 0 ;
35826 void *argp2 = 0 ;
35827 int res2 = 0 ;
35828 PyObject * obj0 = 0 ;
35829 PyObject * obj1 = 0 ;
35830 char * kwnames[] = {
35831 (char *) "self",(char *) "item", NULL
35832 };
35833
35834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35836 if (!SWIG_IsOK(res1)) {
35837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35838 }
35839 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35840 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35841 if (!SWIG_IsOK(res2)) {
35842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35843 }
35844 if (!argp2) {
35845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35846 }
35847 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35848 {
35849 PyThreadState* __tstate = wxPyBeginAllowThreads();
35850 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35851 wxPyEndAllowThreads(__tstate);
35852 if (PyErr_Occurred()) SWIG_fail;
35853 }
35854 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35855 return resultobj;
35856 fail:
35857 return NULL;
35858 }
35859
35860
35861 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35862 PyObject *resultobj = 0;
35863 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35864 wxTreeItemId result;
35865 void *argp1 = 0 ;
35866 int res1 = 0 ;
35867 PyObject *swig_obj[1] ;
35868
35869 if (!args) SWIG_fail;
35870 swig_obj[0] = args;
35871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35872 if (!SWIG_IsOK(res1)) {
35873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35874 }
35875 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35876 {
35877 PyThreadState* __tstate = wxPyBeginAllowThreads();
35878 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35879 wxPyEndAllowThreads(__tstate);
35880 if (PyErr_Occurred()) SWIG_fail;
35881 }
35882 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35883 return resultobj;
35884 fail:
35885 return NULL;
35886 }
35887
35888
35889 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35890 PyObject *resultobj = 0;
35891 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35892 wxTreeItemId *arg2 = 0 ;
35893 wxTreeItemId result;
35894 void *argp1 = 0 ;
35895 int res1 = 0 ;
35896 void *argp2 = 0 ;
35897 int res2 = 0 ;
35898 PyObject * obj0 = 0 ;
35899 PyObject * obj1 = 0 ;
35900 char * kwnames[] = {
35901 (char *) "self",(char *) "item", NULL
35902 };
35903
35904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35906 if (!SWIG_IsOK(res1)) {
35907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35908 }
35909 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35911 if (!SWIG_IsOK(res2)) {
35912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35913 }
35914 if (!argp2) {
35915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35916 }
35917 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35918 {
35919 PyThreadState* __tstate = wxPyBeginAllowThreads();
35920 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35921 wxPyEndAllowThreads(__tstate);
35922 if (PyErr_Occurred()) SWIG_fail;
35923 }
35924 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35925 return resultobj;
35926 fail:
35927 return NULL;
35928 }
35929
35930
35931 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35932 PyObject *resultobj = 0;
35933 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35934 wxTreeItemId *arg2 = 0 ;
35935 wxTreeItemId result;
35936 void *argp1 = 0 ;
35937 int res1 = 0 ;
35938 void *argp2 = 0 ;
35939 int res2 = 0 ;
35940 PyObject * obj0 = 0 ;
35941 PyObject * obj1 = 0 ;
35942 char * kwnames[] = {
35943 (char *) "self",(char *) "item", NULL
35944 };
35945
35946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35948 if (!SWIG_IsOK(res1)) {
35949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35950 }
35951 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35952 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35953 if (!SWIG_IsOK(res2)) {
35954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35955 }
35956 if (!argp2) {
35957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35958 }
35959 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35960 {
35961 PyThreadState* __tstate = wxPyBeginAllowThreads();
35962 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35963 wxPyEndAllowThreads(__tstate);
35964 if (PyErr_Occurred()) SWIG_fail;
35965 }
35966 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35967 return resultobj;
35968 fail:
35969 return NULL;
35970 }
35971
35972
35973 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35974 PyObject *resultobj = 0;
35975 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35976 wxString *arg2 = 0 ;
35977 int arg3 = (int) -1 ;
35978 int arg4 = (int) -1 ;
35979 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35980 wxTreeItemId result;
35981 void *argp1 = 0 ;
35982 int res1 = 0 ;
35983 bool temp2 = false ;
35984 int val3 ;
35985 int ecode3 = 0 ;
35986 int val4 ;
35987 int ecode4 = 0 ;
35988 int res5 = 0 ;
35989 PyObject * obj0 = 0 ;
35990 PyObject * obj1 = 0 ;
35991 PyObject * obj2 = 0 ;
35992 PyObject * obj3 = 0 ;
35993 PyObject * obj4 = 0 ;
35994 char * kwnames[] = {
35995 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35996 };
35997
35998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36000 if (!SWIG_IsOK(res1)) {
36001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36002 }
36003 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36004 {
36005 arg2 = wxString_in_helper(obj1);
36006 if (arg2 == NULL) SWIG_fail;
36007 temp2 = true;
36008 }
36009 if (obj2) {
36010 ecode3 = SWIG_AsVal_int(obj2, &val3);
36011 if (!SWIG_IsOK(ecode3)) {
36012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36013 }
36014 arg3 = static_cast< int >(val3);
36015 }
36016 if (obj3) {
36017 ecode4 = SWIG_AsVal_int(obj3, &val4);
36018 if (!SWIG_IsOK(ecode4)) {
36019 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36020 }
36021 arg4 = static_cast< int >(val4);
36022 }
36023 if (obj4) {
36024 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36025 if (!SWIG_IsOK(res5)) {
36026 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36027 }
36028 }
36029 {
36030 PyThreadState* __tstate = wxPyBeginAllowThreads();
36031 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36032 wxPyEndAllowThreads(__tstate);
36033 if (PyErr_Occurred()) SWIG_fail;
36034 }
36035 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36036 {
36037 if (temp2)
36038 delete arg2;
36039 }
36040 return resultobj;
36041 fail:
36042 {
36043 if (temp2)
36044 delete arg2;
36045 }
36046 return NULL;
36047 }
36048
36049
36050 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36051 PyObject *resultobj = 0;
36052 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36053 wxTreeItemId *arg2 = 0 ;
36054 wxString *arg3 = 0 ;
36055 int arg4 = (int) -1 ;
36056 int arg5 = (int) -1 ;
36057 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36058 wxTreeItemId result;
36059 void *argp1 = 0 ;
36060 int res1 = 0 ;
36061 void *argp2 = 0 ;
36062 int res2 = 0 ;
36063 bool temp3 = false ;
36064 int val4 ;
36065 int ecode4 = 0 ;
36066 int val5 ;
36067 int ecode5 = 0 ;
36068 int res6 = 0 ;
36069 PyObject * obj0 = 0 ;
36070 PyObject * obj1 = 0 ;
36071 PyObject * obj2 = 0 ;
36072 PyObject * obj3 = 0 ;
36073 PyObject * obj4 = 0 ;
36074 PyObject * obj5 = 0 ;
36075 char * kwnames[] = {
36076 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36077 };
36078
36079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36081 if (!SWIG_IsOK(res1)) {
36082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36083 }
36084 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36085 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36086 if (!SWIG_IsOK(res2)) {
36087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36088 }
36089 if (!argp2) {
36090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36091 }
36092 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36093 {
36094 arg3 = wxString_in_helper(obj2);
36095 if (arg3 == NULL) SWIG_fail;
36096 temp3 = true;
36097 }
36098 if (obj3) {
36099 ecode4 = SWIG_AsVal_int(obj3, &val4);
36100 if (!SWIG_IsOK(ecode4)) {
36101 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36102 }
36103 arg4 = static_cast< int >(val4);
36104 }
36105 if (obj4) {
36106 ecode5 = SWIG_AsVal_int(obj4, &val5);
36107 if (!SWIG_IsOK(ecode5)) {
36108 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36109 }
36110 arg5 = static_cast< int >(val5);
36111 }
36112 if (obj5) {
36113 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36114 if (!SWIG_IsOK(res6)) {
36115 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36116 }
36117 }
36118 {
36119 PyThreadState* __tstate = wxPyBeginAllowThreads();
36120 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36121 wxPyEndAllowThreads(__tstate);
36122 if (PyErr_Occurred()) SWIG_fail;
36123 }
36124 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36125 {
36126 if (temp3)
36127 delete arg3;
36128 }
36129 return resultobj;
36130 fail:
36131 {
36132 if (temp3)
36133 delete arg3;
36134 }
36135 return NULL;
36136 }
36137
36138
36139 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36140 PyObject *resultobj = 0;
36141 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36142 wxTreeItemId *arg2 = 0 ;
36143 wxTreeItemId *arg3 = 0 ;
36144 wxString *arg4 = 0 ;
36145 int arg5 = (int) -1 ;
36146 int arg6 = (int) -1 ;
36147 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36148 wxTreeItemId result;
36149 void *argp1 = 0 ;
36150 int res1 = 0 ;
36151 void *argp2 = 0 ;
36152 int res2 = 0 ;
36153 void *argp3 = 0 ;
36154 int res3 = 0 ;
36155 bool temp4 = false ;
36156 int val5 ;
36157 int ecode5 = 0 ;
36158 int val6 ;
36159 int ecode6 = 0 ;
36160 int res7 = 0 ;
36161 PyObject * obj0 = 0 ;
36162 PyObject * obj1 = 0 ;
36163 PyObject * obj2 = 0 ;
36164 PyObject * obj3 = 0 ;
36165 PyObject * obj4 = 0 ;
36166 PyObject * obj5 = 0 ;
36167 PyObject * obj6 = 0 ;
36168 char * kwnames[] = {
36169 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36170 };
36171
36172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36174 if (!SWIG_IsOK(res1)) {
36175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36176 }
36177 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36178 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36179 if (!SWIG_IsOK(res2)) {
36180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36181 }
36182 if (!argp2) {
36183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36184 }
36185 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36186 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36187 if (!SWIG_IsOK(res3)) {
36188 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36189 }
36190 if (!argp3) {
36191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36192 }
36193 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36194 {
36195 arg4 = wxString_in_helper(obj3);
36196 if (arg4 == NULL) SWIG_fail;
36197 temp4 = true;
36198 }
36199 if (obj4) {
36200 ecode5 = SWIG_AsVal_int(obj4, &val5);
36201 if (!SWIG_IsOK(ecode5)) {
36202 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36203 }
36204 arg5 = static_cast< int >(val5);
36205 }
36206 if (obj5) {
36207 ecode6 = SWIG_AsVal_int(obj5, &val6);
36208 if (!SWIG_IsOK(ecode6)) {
36209 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36210 }
36211 arg6 = static_cast< int >(val6);
36212 }
36213 if (obj6) {
36214 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36215 if (!SWIG_IsOK(res7)) {
36216 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36217 }
36218 }
36219 {
36220 PyThreadState* __tstate = wxPyBeginAllowThreads();
36221 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36222 wxPyEndAllowThreads(__tstate);
36223 if (PyErr_Occurred()) SWIG_fail;
36224 }
36225 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36226 {
36227 if (temp4)
36228 delete arg4;
36229 }
36230 return resultobj;
36231 fail:
36232 {
36233 if (temp4)
36234 delete arg4;
36235 }
36236 return NULL;
36237 }
36238
36239
36240 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36241 PyObject *resultobj = 0;
36242 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36243 wxTreeItemId *arg2 = 0 ;
36244 size_t arg3 ;
36245 wxString *arg4 = 0 ;
36246 int arg5 = (int) -1 ;
36247 int arg6 = (int) -1 ;
36248 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36249 wxTreeItemId result;
36250 void *argp1 = 0 ;
36251 int res1 = 0 ;
36252 void *argp2 = 0 ;
36253 int res2 = 0 ;
36254 size_t val3 ;
36255 int ecode3 = 0 ;
36256 bool temp4 = false ;
36257 int val5 ;
36258 int ecode5 = 0 ;
36259 int val6 ;
36260 int ecode6 = 0 ;
36261 int res7 = 0 ;
36262 PyObject * obj0 = 0 ;
36263 PyObject * obj1 = 0 ;
36264 PyObject * obj2 = 0 ;
36265 PyObject * obj3 = 0 ;
36266 PyObject * obj4 = 0 ;
36267 PyObject * obj5 = 0 ;
36268 PyObject * obj6 = 0 ;
36269 char * kwnames[] = {
36270 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36271 };
36272
36273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36275 if (!SWIG_IsOK(res1)) {
36276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36277 }
36278 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36280 if (!SWIG_IsOK(res2)) {
36281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36282 }
36283 if (!argp2) {
36284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36285 }
36286 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36287 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36288 if (!SWIG_IsOK(ecode3)) {
36289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36290 }
36291 arg3 = static_cast< size_t >(val3);
36292 {
36293 arg4 = wxString_in_helper(obj3);
36294 if (arg4 == NULL) SWIG_fail;
36295 temp4 = true;
36296 }
36297 if (obj4) {
36298 ecode5 = SWIG_AsVal_int(obj4, &val5);
36299 if (!SWIG_IsOK(ecode5)) {
36300 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36301 }
36302 arg5 = static_cast< int >(val5);
36303 }
36304 if (obj5) {
36305 ecode6 = SWIG_AsVal_int(obj5, &val6);
36306 if (!SWIG_IsOK(ecode6)) {
36307 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36308 }
36309 arg6 = static_cast< int >(val6);
36310 }
36311 if (obj6) {
36312 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36313 if (!SWIG_IsOK(res7)) {
36314 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36315 }
36316 }
36317 {
36318 PyThreadState* __tstate = wxPyBeginAllowThreads();
36319 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36320 wxPyEndAllowThreads(__tstate);
36321 if (PyErr_Occurred()) SWIG_fail;
36322 }
36323 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36324 {
36325 if (temp4)
36326 delete arg4;
36327 }
36328 return resultobj;
36329 fail:
36330 {
36331 if (temp4)
36332 delete arg4;
36333 }
36334 return NULL;
36335 }
36336
36337
36338 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36339 PyObject *resultobj = 0;
36340 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36341 wxTreeItemId *arg2 = 0 ;
36342 wxString *arg3 = 0 ;
36343 int arg4 = (int) -1 ;
36344 int arg5 = (int) -1 ;
36345 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36346 wxTreeItemId result;
36347 void *argp1 = 0 ;
36348 int res1 = 0 ;
36349 void *argp2 = 0 ;
36350 int res2 = 0 ;
36351 bool temp3 = false ;
36352 int val4 ;
36353 int ecode4 = 0 ;
36354 int val5 ;
36355 int ecode5 = 0 ;
36356 int res6 = 0 ;
36357 PyObject * obj0 = 0 ;
36358 PyObject * obj1 = 0 ;
36359 PyObject * obj2 = 0 ;
36360 PyObject * obj3 = 0 ;
36361 PyObject * obj4 = 0 ;
36362 PyObject * obj5 = 0 ;
36363 char * kwnames[] = {
36364 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36365 };
36366
36367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36369 if (!SWIG_IsOK(res1)) {
36370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36371 }
36372 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36373 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36374 if (!SWIG_IsOK(res2)) {
36375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36376 }
36377 if (!argp2) {
36378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36379 }
36380 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36381 {
36382 arg3 = wxString_in_helper(obj2);
36383 if (arg3 == NULL) SWIG_fail;
36384 temp3 = true;
36385 }
36386 if (obj3) {
36387 ecode4 = SWIG_AsVal_int(obj3, &val4);
36388 if (!SWIG_IsOK(ecode4)) {
36389 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36390 }
36391 arg4 = static_cast< int >(val4);
36392 }
36393 if (obj4) {
36394 ecode5 = SWIG_AsVal_int(obj4, &val5);
36395 if (!SWIG_IsOK(ecode5)) {
36396 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36397 }
36398 arg5 = static_cast< int >(val5);
36399 }
36400 if (obj5) {
36401 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36402 if (!SWIG_IsOK(res6)) {
36403 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36404 }
36405 }
36406 {
36407 PyThreadState* __tstate = wxPyBeginAllowThreads();
36408 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36409 wxPyEndAllowThreads(__tstate);
36410 if (PyErr_Occurred()) SWIG_fail;
36411 }
36412 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36413 {
36414 if (temp3)
36415 delete arg3;
36416 }
36417 return resultobj;
36418 fail:
36419 {
36420 if (temp3)
36421 delete arg3;
36422 }
36423 return NULL;
36424 }
36425
36426
36427 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36428 PyObject *resultobj = 0;
36429 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36430 wxTreeItemId *arg2 = 0 ;
36431 void *argp1 = 0 ;
36432 int res1 = 0 ;
36433 void *argp2 = 0 ;
36434 int res2 = 0 ;
36435 PyObject * obj0 = 0 ;
36436 PyObject * obj1 = 0 ;
36437 char * kwnames[] = {
36438 (char *) "self",(char *) "item", NULL
36439 };
36440
36441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36443 if (!SWIG_IsOK(res1)) {
36444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36445 }
36446 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36447 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36448 if (!SWIG_IsOK(res2)) {
36449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36450 }
36451 if (!argp2) {
36452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36453 }
36454 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36455 {
36456 PyThreadState* __tstate = wxPyBeginAllowThreads();
36457 (arg1)->Delete((wxTreeItemId const &)*arg2);
36458 wxPyEndAllowThreads(__tstate);
36459 if (PyErr_Occurred()) SWIG_fail;
36460 }
36461 resultobj = SWIG_Py_Void();
36462 return resultobj;
36463 fail:
36464 return NULL;
36465 }
36466
36467
36468 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36469 PyObject *resultobj = 0;
36470 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36471 wxTreeItemId *arg2 = 0 ;
36472 void *argp1 = 0 ;
36473 int res1 = 0 ;
36474 void *argp2 = 0 ;
36475 int res2 = 0 ;
36476 PyObject * obj0 = 0 ;
36477 PyObject * obj1 = 0 ;
36478 char * kwnames[] = {
36479 (char *) "self",(char *) "item", NULL
36480 };
36481
36482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36484 if (!SWIG_IsOK(res1)) {
36485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36486 }
36487 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36488 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36489 if (!SWIG_IsOK(res2)) {
36490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36491 }
36492 if (!argp2) {
36493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36494 }
36495 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36496 {
36497 PyThreadState* __tstate = wxPyBeginAllowThreads();
36498 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36499 wxPyEndAllowThreads(__tstate);
36500 if (PyErr_Occurred()) SWIG_fail;
36501 }
36502 resultobj = SWIG_Py_Void();
36503 return resultobj;
36504 fail:
36505 return NULL;
36506 }
36507
36508
36509 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36510 PyObject *resultobj = 0;
36511 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36512 void *argp1 = 0 ;
36513 int res1 = 0 ;
36514 PyObject *swig_obj[1] ;
36515
36516 if (!args) SWIG_fail;
36517 swig_obj[0] = args;
36518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36519 if (!SWIG_IsOK(res1)) {
36520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36521 }
36522 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36523 {
36524 PyThreadState* __tstate = wxPyBeginAllowThreads();
36525 (arg1)->DeleteAllItems();
36526 wxPyEndAllowThreads(__tstate);
36527 if (PyErr_Occurred()) SWIG_fail;
36528 }
36529 resultobj = SWIG_Py_Void();
36530 return resultobj;
36531 fail:
36532 return NULL;
36533 }
36534
36535
36536 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36537 PyObject *resultobj = 0;
36538 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36539 wxTreeItemId *arg2 = 0 ;
36540 void *argp1 = 0 ;
36541 int res1 = 0 ;
36542 void *argp2 = 0 ;
36543 int res2 = 0 ;
36544 PyObject * obj0 = 0 ;
36545 PyObject * obj1 = 0 ;
36546 char * kwnames[] = {
36547 (char *) "self",(char *) "item", NULL
36548 };
36549
36550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36552 if (!SWIG_IsOK(res1)) {
36553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36554 }
36555 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36556 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36557 if (!SWIG_IsOK(res2)) {
36558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36559 }
36560 if (!argp2) {
36561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36562 }
36563 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36564 {
36565 PyThreadState* __tstate = wxPyBeginAllowThreads();
36566 (arg1)->Expand((wxTreeItemId const &)*arg2);
36567 wxPyEndAllowThreads(__tstate);
36568 if (PyErr_Occurred()) SWIG_fail;
36569 }
36570 resultobj = SWIG_Py_Void();
36571 return resultobj;
36572 fail:
36573 return NULL;
36574 }
36575
36576
36577 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36578 PyObject *resultobj = 0;
36579 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36580 wxTreeItemId *arg2 = 0 ;
36581 void *argp1 = 0 ;
36582 int res1 = 0 ;
36583 void *argp2 = 0 ;
36584 int res2 = 0 ;
36585 PyObject * obj0 = 0 ;
36586 PyObject * obj1 = 0 ;
36587 char * kwnames[] = {
36588 (char *) "self",(char *) "item", NULL
36589 };
36590
36591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36593 if (!SWIG_IsOK(res1)) {
36594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36595 }
36596 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36597 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36598 if (!SWIG_IsOK(res2)) {
36599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36600 }
36601 if (!argp2) {
36602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36603 }
36604 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36605 {
36606 PyThreadState* __tstate = wxPyBeginAllowThreads();
36607 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36608 wxPyEndAllowThreads(__tstate);
36609 if (PyErr_Occurred()) SWIG_fail;
36610 }
36611 resultobj = SWIG_Py_Void();
36612 return resultobj;
36613 fail:
36614 return NULL;
36615 }
36616
36617
36618 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36619 PyObject *resultobj = 0;
36620 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36621 void *argp1 = 0 ;
36622 int res1 = 0 ;
36623 PyObject *swig_obj[1] ;
36624
36625 if (!args) SWIG_fail;
36626 swig_obj[0] = args;
36627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36628 if (!SWIG_IsOK(res1)) {
36629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36630 }
36631 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36632 {
36633 PyThreadState* __tstate = wxPyBeginAllowThreads();
36634 (arg1)->ExpandAll();
36635 wxPyEndAllowThreads(__tstate);
36636 if (PyErr_Occurred()) SWIG_fail;
36637 }
36638 resultobj = SWIG_Py_Void();
36639 return resultobj;
36640 fail:
36641 return NULL;
36642 }
36643
36644
36645 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36646 PyObject *resultobj = 0;
36647 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36648 wxTreeItemId *arg2 = 0 ;
36649 void *argp1 = 0 ;
36650 int res1 = 0 ;
36651 void *argp2 = 0 ;
36652 int res2 = 0 ;
36653 PyObject * obj0 = 0 ;
36654 PyObject * obj1 = 0 ;
36655 char * kwnames[] = {
36656 (char *) "self",(char *) "item", NULL
36657 };
36658
36659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36661 if (!SWIG_IsOK(res1)) {
36662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36663 }
36664 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36666 if (!SWIG_IsOK(res2)) {
36667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36668 }
36669 if (!argp2) {
36670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36671 }
36672 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36673 {
36674 PyThreadState* __tstate = wxPyBeginAllowThreads();
36675 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36676 wxPyEndAllowThreads(__tstate);
36677 if (PyErr_Occurred()) SWIG_fail;
36678 }
36679 resultobj = SWIG_Py_Void();
36680 return resultobj;
36681 fail:
36682 return NULL;
36683 }
36684
36685
36686 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36687 PyObject *resultobj = 0;
36688 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36689 wxTreeItemId *arg2 = 0 ;
36690 void *argp1 = 0 ;
36691 int res1 = 0 ;
36692 void *argp2 = 0 ;
36693 int res2 = 0 ;
36694 PyObject * obj0 = 0 ;
36695 PyObject * obj1 = 0 ;
36696 char * kwnames[] = {
36697 (char *) "self",(char *) "item", NULL
36698 };
36699
36700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36702 if (!SWIG_IsOK(res1)) {
36703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36704 }
36705 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36706 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36707 if (!SWIG_IsOK(res2)) {
36708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36709 }
36710 if (!argp2) {
36711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36712 }
36713 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36714 {
36715 PyThreadState* __tstate = wxPyBeginAllowThreads();
36716 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36717 wxPyEndAllowThreads(__tstate);
36718 if (PyErr_Occurred()) SWIG_fail;
36719 }
36720 resultobj = SWIG_Py_Void();
36721 return resultobj;
36722 fail:
36723 return NULL;
36724 }
36725
36726
36727 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36728 PyObject *resultobj = 0;
36729 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36730 wxTreeItemId *arg2 = 0 ;
36731 void *argp1 = 0 ;
36732 int res1 = 0 ;
36733 void *argp2 = 0 ;
36734 int res2 = 0 ;
36735 PyObject * obj0 = 0 ;
36736 PyObject * obj1 = 0 ;
36737 char * kwnames[] = {
36738 (char *) "self",(char *) "item", NULL
36739 };
36740
36741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36743 if (!SWIG_IsOK(res1)) {
36744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36745 }
36746 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36747 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36748 if (!SWIG_IsOK(res2)) {
36749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36750 }
36751 if (!argp2) {
36752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36753 }
36754 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36755 {
36756 PyThreadState* __tstate = wxPyBeginAllowThreads();
36757 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36758 wxPyEndAllowThreads(__tstate);
36759 if (PyErr_Occurred()) SWIG_fail;
36760 }
36761 resultobj = SWIG_Py_Void();
36762 return resultobj;
36763 fail:
36764 return NULL;
36765 }
36766
36767
36768 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36769 PyObject *resultobj = 0;
36770 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36771 void *argp1 = 0 ;
36772 int res1 = 0 ;
36773 PyObject *swig_obj[1] ;
36774
36775 if (!args) SWIG_fail;
36776 swig_obj[0] = args;
36777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36778 if (!SWIG_IsOK(res1)) {
36779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36780 }
36781 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36782 {
36783 PyThreadState* __tstate = wxPyBeginAllowThreads();
36784 (arg1)->Unselect();
36785 wxPyEndAllowThreads(__tstate);
36786 if (PyErr_Occurred()) SWIG_fail;
36787 }
36788 resultobj = SWIG_Py_Void();
36789 return resultobj;
36790 fail:
36791 return NULL;
36792 }
36793
36794
36795 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36796 PyObject *resultobj = 0;
36797 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36798 wxTreeItemId *arg2 = 0 ;
36799 void *argp1 = 0 ;
36800 int res1 = 0 ;
36801 void *argp2 = 0 ;
36802 int res2 = 0 ;
36803 PyObject * obj0 = 0 ;
36804 PyObject * obj1 = 0 ;
36805 char * kwnames[] = {
36806 (char *) "self",(char *) "item", NULL
36807 };
36808
36809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36811 if (!SWIG_IsOK(res1)) {
36812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36813 }
36814 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36816 if (!SWIG_IsOK(res2)) {
36817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36818 }
36819 if (!argp2) {
36820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36821 }
36822 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36823 {
36824 PyThreadState* __tstate = wxPyBeginAllowThreads();
36825 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36826 wxPyEndAllowThreads(__tstate);
36827 if (PyErr_Occurred()) SWIG_fail;
36828 }
36829 resultobj = SWIG_Py_Void();
36830 return resultobj;
36831 fail:
36832 return NULL;
36833 }
36834
36835
36836 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36837 PyObject *resultobj = 0;
36838 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36839 void *argp1 = 0 ;
36840 int res1 = 0 ;
36841 PyObject *swig_obj[1] ;
36842
36843 if (!args) SWIG_fail;
36844 swig_obj[0] = args;
36845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36846 if (!SWIG_IsOK(res1)) {
36847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36848 }
36849 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36850 {
36851 PyThreadState* __tstate = wxPyBeginAllowThreads();
36852 (arg1)->UnselectAll();
36853 wxPyEndAllowThreads(__tstate);
36854 if (PyErr_Occurred()) SWIG_fail;
36855 }
36856 resultobj = SWIG_Py_Void();
36857 return resultobj;
36858 fail:
36859 return NULL;
36860 }
36861
36862
36863 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36864 PyObject *resultobj = 0;
36865 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36866 wxTreeItemId *arg2 = 0 ;
36867 bool arg3 = (bool) true ;
36868 void *argp1 = 0 ;
36869 int res1 = 0 ;
36870 void *argp2 = 0 ;
36871 int res2 = 0 ;
36872 bool val3 ;
36873 int ecode3 = 0 ;
36874 PyObject * obj0 = 0 ;
36875 PyObject * obj1 = 0 ;
36876 PyObject * obj2 = 0 ;
36877 char * kwnames[] = {
36878 (char *) "self",(char *) "item",(char *) "select", NULL
36879 };
36880
36881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36883 if (!SWIG_IsOK(res1)) {
36884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36885 }
36886 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36887 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36888 if (!SWIG_IsOK(res2)) {
36889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36890 }
36891 if (!argp2) {
36892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36893 }
36894 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36895 if (obj2) {
36896 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36897 if (!SWIG_IsOK(ecode3)) {
36898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36899 }
36900 arg3 = static_cast< bool >(val3);
36901 }
36902 {
36903 PyThreadState* __tstate = wxPyBeginAllowThreads();
36904 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36905 wxPyEndAllowThreads(__tstate);
36906 if (PyErr_Occurred()) SWIG_fail;
36907 }
36908 resultobj = SWIG_Py_Void();
36909 return resultobj;
36910 fail:
36911 return NULL;
36912 }
36913
36914
36915 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36916 PyObject *resultobj = 0;
36917 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36918 wxTreeItemId *arg2 = 0 ;
36919 void *argp1 = 0 ;
36920 int res1 = 0 ;
36921 void *argp2 = 0 ;
36922 int res2 = 0 ;
36923 PyObject * obj0 = 0 ;
36924 PyObject * obj1 = 0 ;
36925 char * kwnames[] = {
36926 (char *) "self",(char *) "item", NULL
36927 };
36928
36929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36931 if (!SWIG_IsOK(res1)) {
36932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36933 }
36934 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36936 if (!SWIG_IsOK(res2)) {
36937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36938 }
36939 if (!argp2) {
36940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36941 }
36942 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36943 {
36944 PyThreadState* __tstate = wxPyBeginAllowThreads();
36945 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36946 wxPyEndAllowThreads(__tstate);
36947 if (PyErr_Occurred()) SWIG_fail;
36948 }
36949 resultobj = SWIG_Py_Void();
36950 return resultobj;
36951 fail:
36952 return NULL;
36953 }
36954
36955
36956 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36957 PyObject *resultobj = 0;
36958 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36959 wxTreeItemId *arg2 = 0 ;
36960 void *argp1 = 0 ;
36961 int res1 = 0 ;
36962 void *argp2 = 0 ;
36963 int res2 = 0 ;
36964 PyObject * obj0 = 0 ;
36965 PyObject * obj1 = 0 ;
36966 char * kwnames[] = {
36967 (char *) "self",(char *) "item", NULL
36968 };
36969
36970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36972 if (!SWIG_IsOK(res1)) {
36973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36974 }
36975 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36977 if (!SWIG_IsOK(res2)) {
36978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36979 }
36980 if (!argp2) {
36981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36982 }
36983 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36984 {
36985 PyThreadState* __tstate = wxPyBeginAllowThreads();
36986 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36987 wxPyEndAllowThreads(__tstate);
36988 if (PyErr_Occurred()) SWIG_fail;
36989 }
36990 resultobj = SWIG_Py_Void();
36991 return resultobj;
36992 fail:
36993 return NULL;
36994 }
36995
36996
36997 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36998 PyObject *resultobj = 0;
36999 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37000 wxTreeItemId *arg2 = 0 ;
37001 void *argp1 = 0 ;
37002 int res1 = 0 ;
37003 void *argp2 = 0 ;
37004 int res2 = 0 ;
37005 PyObject * obj0 = 0 ;
37006 PyObject * obj1 = 0 ;
37007 char * kwnames[] = {
37008 (char *) "self",(char *) "item", NULL
37009 };
37010
37011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37013 if (!SWIG_IsOK(res1)) {
37014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37015 }
37016 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37018 if (!SWIG_IsOK(res2)) {
37019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37020 }
37021 if (!argp2) {
37022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37023 }
37024 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37025 {
37026 PyThreadState* __tstate = wxPyBeginAllowThreads();
37027 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37028 wxPyEndAllowThreads(__tstate);
37029 if (PyErr_Occurred()) SWIG_fail;
37030 }
37031 resultobj = SWIG_Py_Void();
37032 return resultobj;
37033 fail:
37034 return NULL;
37035 }
37036
37037
37038 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37039 PyObject *resultobj = 0;
37040 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37041 wxTreeItemId *arg2 = 0 ;
37042 void *argp1 = 0 ;
37043 int res1 = 0 ;
37044 void *argp2 = 0 ;
37045 int res2 = 0 ;
37046 PyObject * obj0 = 0 ;
37047 PyObject * obj1 = 0 ;
37048 char * kwnames[] = {
37049 (char *) "self",(char *) "item", NULL
37050 };
37051
37052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37054 if (!SWIG_IsOK(res1)) {
37055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37056 }
37057 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37058 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37059 if (!SWIG_IsOK(res2)) {
37060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37061 }
37062 if (!argp2) {
37063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37064 }
37065 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37066 {
37067 PyThreadState* __tstate = wxPyBeginAllowThreads();
37068 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37069 wxPyEndAllowThreads(__tstate);
37070 if (PyErr_Occurred()) SWIG_fail;
37071 }
37072 resultobj = SWIG_Py_Void();
37073 return resultobj;
37074 fail:
37075 return NULL;
37076 }
37077
37078
37079 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37080 PyObject *resultobj = 0;
37081 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37082 wxTextCtrl *result = 0 ;
37083 void *argp1 = 0 ;
37084 int res1 = 0 ;
37085 PyObject *swig_obj[1] ;
37086
37087 if (!args) SWIG_fail;
37088 swig_obj[0] = args;
37089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37090 if (!SWIG_IsOK(res1)) {
37091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37092 }
37093 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37094 {
37095 PyThreadState* __tstate = wxPyBeginAllowThreads();
37096 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37097 wxPyEndAllowThreads(__tstate);
37098 if (PyErr_Occurred()) SWIG_fail;
37099 }
37100 {
37101 resultobj = wxPyMake_wxObject(result, 0);
37102 }
37103 return resultobj;
37104 fail:
37105 return NULL;
37106 }
37107
37108
37109 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37110 PyObject *resultobj = 0;
37111 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37112 wxTreeItemId *arg2 = 0 ;
37113 void *argp1 = 0 ;
37114 int res1 = 0 ;
37115 void *argp2 = 0 ;
37116 int res2 = 0 ;
37117 PyObject * obj0 = 0 ;
37118 PyObject * obj1 = 0 ;
37119 char * kwnames[] = {
37120 (char *) "self",(char *) "item", NULL
37121 };
37122
37123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37125 if (!SWIG_IsOK(res1)) {
37126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37127 }
37128 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37130 if (!SWIG_IsOK(res2)) {
37131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37132 }
37133 if (!argp2) {
37134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37135 }
37136 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37137 {
37138 PyThreadState* __tstate = wxPyBeginAllowThreads();
37139 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37140 wxPyEndAllowThreads(__tstate);
37141 if (PyErr_Occurred()) SWIG_fail;
37142 }
37143 resultobj = SWIG_Py_Void();
37144 return resultobj;
37145 fail:
37146 return NULL;
37147 }
37148
37149
37150 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37151 PyObject *resultobj = 0;
37152 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37153 wxPoint *arg2 = 0 ;
37154 int *arg3 = 0 ;
37155 wxTreeItemId result;
37156 void *argp1 = 0 ;
37157 int res1 = 0 ;
37158 wxPoint temp2 ;
37159 int temp3 ;
37160 int res3 = SWIG_TMPOBJ ;
37161 PyObject * obj0 = 0 ;
37162 PyObject * obj1 = 0 ;
37163 char * kwnames[] = {
37164 (char *) "self",(char *) "point", NULL
37165 };
37166
37167 arg3 = &temp3;
37168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37170 if (!SWIG_IsOK(res1)) {
37171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37172 }
37173 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37174 {
37175 arg2 = &temp2;
37176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37177 }
37178 {
37179 PyThreadState* __tstate = wxPyBeginAllowThreads();
37180 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37181 wxPyEndAllowThreads(__tstate);
37182 if (PyErr_Occurred()) SWIG_fail;
37183 }
37184 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37185 if (SWIG_IsTmpObj(res3)) {
37186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37187 } else {
37188 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37190 }
37191 return resultobj;
37192 fail:
37193 return NULL;
37194 }
37195
37196
37197 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37198 PyObject *resultobj = 0;
37199 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37200 wxTreeItemId *arg2 = 0 ;
37201 bool arg3 = (bool) false ;
37202 PyObject *result = 0 ;
37203 void *argp1 = 0 ;
37204 int res1 = 0 ;
37205 void *argp2 = 0 ;
37206 int res2 = 0 ;
37207 bool val3 ;
37208 int ecode3 = 0 ;
37209 PyObject * obj0 = 0 ;
37210 PyObject * obj1 = 0 ;
37211 PyObject * obj2 = 0 ;
37212 char * kwnames[] = {
37213 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37214 };
37215
37216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37218 if (!SWIG_IsOK(res1)) {
37219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37220 }
37221 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37223 if (!SWIG_IsOK(res2)) {
37224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37225 }
37226 if (!argp2) {
37227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37228 }
37229 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37230 if (obj2) {
37231 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37232 if (!SWIG_IsOK(ecode3)) {
37233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37234 }
37235 arg3 = static_cast< bool >(val3);
37236 }
37237 {
37238 PyThreadState* __tstate = wxPyBeginAllowThreads();
37239 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37240 wxPyEndAllowThreads(__tstate);
37241 if (PyErr_Occurred()) SWIG_fail;
37242 }
37243 resultobj = result;
37244 return resultobj;
37245 fail:
37246 return NULL;
37247 }
37248
37249
37250 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37251 PyObject *resultobj = 0;
37252 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37253 SwigValueWrapper<wxVisualAttributes > result;
37254 int val1 ;
37255 int ecode1 = 0 ;
37256 PyObject * obj0 = 0 ;
37257 char * kwnames[] = {
37258 (char *) "variant", NULL
37259 };
37260
37261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37262 if (obj0) {
37263 ecode1 = SWIG_AsVal_int(obj0, &val1);
37264 if (!SWIG_IsOK(ecode1)) {
37265 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37266 }
37267 arg1 = static_cast< wxWindowVariant >(val1);
37268 }
37269 {
37270 if (!wxPyCheckForApp()) SWIG_fail;
37271 PyThreadState* __tstate = wxPyBeginAllowThreads();
37272 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37273 wxPyEndAllowThreads(__tstate);
37274 if (PyErr_Occurred()) SWIG_fail;
37275 }
37276 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37277 return resultobj;
37278 fail:
37279 return NULL;
37280 }
37281
37282
37283 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37284 PyObject *resultobj = 0;
37285 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37286 bool arg2 ;
37287 void *argp1 = 0 ;
37288 int res1 = 0 ;
37289 bool val2 ;
37290 int ecode2 = 0 ;
37291 PyObject * obj0 = 0 ;
37292 PyObject * obj1 = 0 ;
37293 char * kwnames[] = {
37294 (char *) "self",(char *) "q", NULL
37295 };
37296
37297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37299 if (!SWIG_IsOK(res1)) {
37300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37301 }
37302 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37303 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37304 if (!SWIG_IsOK(ecode2)) {
37305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37306 }
37307 arg2 = static_cast< bool >(val2);
37308 {
37309 PyThreadState* __tstate = wxPyBeginAllowThreads();
37310 (arg1)->SetQuickBestSize(arg2);
37311 wxPyEndAllowThreads(__tstate);
37312 if (PyErr_Occurred()) SWIG_fail;
37313 }
37314 resultobj = SWIG_Py_Void();
37315 return resultobj;
37316 fail:
37317 return NULL;
37318 }
37319
37320
37321 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37322 PyObject *resultobj = 0;
37323 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37324 bool result;
37325 void *argp1 = 0 ;
37326 int res1 = 0 ;
37327 PyObject *swig_obj[1] ;
37328
37329 if (!args) SWIG_fail;
37330 swig_obj[0] = args;
37331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37332 if (!SWIG_IsOK(res1)) {
37333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37334 }
37335 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37336 {
37337 PyThreadState* __tstate = wxPyBeginAllowThreads();
37338 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37339 wxPyEndAllowThreads(__tstate);
37340 if (PyErr_Occurred()) SWIG_fail;
37341 }
37342 {
37343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37344 }
37345 return resultobj;
37346 fail:
37347 return NULL;
37348 }
37349
37350
37351 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37352 PyObject *obj;
37353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37354 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37355 return SWIG_Py_Void();
37356 }
37357
37358 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37359 return SWIG_Python_InitShadowInstance(args);
37360 }
37361
37362 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37363 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37364 return 1;
37365 }
37366
37367
37368 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37369 PyObject *pyobj = 0;
37370
37371 {
37372 #if wxUSE_UNICODE
37373 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37374 #else
37375 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37376 #endif
37377 }
37378 return pyobj;
37379 }
37380
37381
37382 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37383 PyObject *resultobj = 0;
37384 wxWindow *arg1 = (wxWindow *) 0 ;
37385 int arg2 = (int) (int)-1 ;
37386 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37387 wxString *arg3 = (wxString *) &arg3_defvalue ;
37388 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37389 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37390 wxSize const &arg5_defvalue = wxDefaultSize ;
37391 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37392 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37393 wxString const &arg7_defvalue = wxPyEmptyString ;
37394 wxString *arg7 = (wxString *) &arg7_defvalue ;
37395 int arg8 = (int) 0 ;
37396 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37397 wxString *arg9 = (wxString *) &arg9_defvalue ;
37398 wxGenericDirCtrl *result = 0 ;
37399 void *argp1 = 0 ;
37400 int res1 = 0 ;
37401 int val2 ;
37402 int ecode2 = 0 ;
37403 bool temp3 = false ;
37404 wxPoint temp4 ;
37405 wxSize temp5 ;
37406 long val6 ;
37407 int ecode6 = 0 ;
37408 bool temp7 = false ;
37409 int val8 ;
37410 int ecode8 = 0 ;
37411 bool temp9 = false ;
37412 PyObject * obj0 = 0 ;
37413 PyObject * obj1 = 0 ;
37414 PyObject * obj2 = 0 ;
37415 PyObject * obj3 = 0 ;
37416 PyObject * obj4 = 0 ;
37417 PyObject * obj5 = 0 ;
37418 PyObject * obj6 = 0 ;
37419 PyObject * obj7 = 0 ;
37420 PyObject * obj8 = 0 ;
37421 char * kwnames[] = {
37422 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37423 };
37424
37425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37427 if (!SWIG_IsOK(res1)) {
37428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37429 }
37430 arg1 = reinterpret_cast< wxWindow * >(argp1);
37431 if (obj1) {
37432 ecode2 = SWIG_AsVal_int(obj1, &val2);
37433 if (!SWIG_IsOK(ecode2)) {
37434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37435 }
37436 arg2 = static_cast< int >(val2);
37437 }
37438 if (obj2) {
37439 {
37440 arg3 = wxString_in_helper(obj2);
37441 if (arg3 == NULL) SWIG_fail;
37442 temp3 = true;
37443 }
37444 }
37445 if (obj3) {
37446 {
37447 arg4 = &temp4;
37448 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37449 }
37450 }
37451 if (obj4) {
37452 {
37453 arg5 = &temp5;
37454 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37455 }
37456 }
37457 if (obj5) {
37458 ecode6 = SWIG_AsVal_long(obj5, &val6);
37459 if (!SWIG_IsOK(ecode6)) {
37460 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37461 }
37462 arg6 = static_cast< long >(val6);
37463 }
37464 if (obj6) {
37465 {
37466 arg7 = wxString_in_helper(obj6);
37467 if (arg7 == NULL) SWIG_fail;
37468 temp7 = true;
37469 }
37470 }
37471 if (obj7) {
37472 ecode8 = SWIG_AsVal_int(obj7, &val8);
37473 if (!SWIG_IsOK(ecode8)) {
37474 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37475 }
37476 arg8 = static_cast< int >(val8);
37477 }
37478 if (obj8) {
37479 {
37480 arg9 = wxString_in_helper(obj8);
37481 if (arg9 == NULL) SWIG_fail;
37482 temp9 = true;
37483 }
37484 }
37485 {
37486 if (!wxPyCheckForApp()) SWIG_fail;
37487 PyThreadState* __tstate = wxPyBeginAllowThreads();
37488 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37489 wxPyEndAllowThreads(__tstate);
37490 if (PyErr_Occurred()) SWIG_fail;
37491 }
37492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37493 {
37494 if (temp3)
37495 delete arg3;
37496 }
37497 {
37498 if (temp7)
37499 delete arg7;
37500 }
37501 {
37502 if (temp9)
37503 delete arg9;
37504 }
37505 return resultobj;
37506 fail:
37507 {
37508 if (temp3)
37509 delete arg3;
37510 }
37511 {
37512 if (temp7)
37513 delete arg7;
37514 }
37515 {
37516 if (temp9)
37517 delete arg9;
37518 }
37519 return NULL;
37520 }
37521
37522
37523 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37524 PyObject *resultobj = 0;
37525 wxGenericDirCtrl *result = 0 ;
37526
37527 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37528 {
37529 if (!wxPyCheckForApp()) SWIG_fail;
37530 PyThreadState* __tstate = wxPyBeginAllowThreads();
37531 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37532 wxPyEndAllowThreads(__tstate);
37533 if (PyErr_Occurred()) SWIG_fail;
37534 }
37535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37536 return resultobj;
37537 fail:
37538 return NULL;
37539 }
37540
37541
37542 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37543 PyObject *resultobj = 0;
37544 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37545 wxWindow *arg2 = (wxWindow *) 0 ;
37546 int arg3 = (int) (int)-1 ;
37547 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37548 wxString *arg4 = (wxString *) &arg4_defvalue ;
37549 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37550 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37551 wxSize const &arg6_defvalue = wxDefaultSize ;
37552 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37553 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37554 wxString const &arg8_defvalue = wxPyEmptyString ;
37555 wxString *arg8 = (wxString *) &arg8_defvalue ;
37556 int arg9 = (int) 0 ;
37557 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37558 wxString *arg10 = (wxString *) &arg10_defvalue ;
37559 bool result;
37560 void *argp1 = 0 ;
37561 int res1 = 0 ;
37562 void *argp2 = 0 ;
37563 int res2 = 0 ;
37564 int val3 ;
37565 int ecode3 = 0 ;
37566 bool temp4 = false ;
37567 wxPoint temp5 ;
37568 wxSize temp6 ;
37569 long val7 ;
37570 int ecode7 = 0 ;
37571 bool temp8 = false ;
37572 int val9 ;
37573 int ecode9 = 0 ;
37574 bool temp10 = false ;
37575 PyObject * obj0 = 0 ;
37576 PyObject * obj1 = 0 ;
37577 PyObject * obj2 = 0 ;
37578 PyObject * obj3 = 0 ;
37579 PyObject * obj4 = 0 ;
37580 PyObject * obj5 = 0 ;
37581 PyObject * obj6 = 0 ;
37582 PyObject * obj7 = 0 ;
37583 PyObject * obj8 = 0 ;
37584 PyObject * obj9 = 0 ;
37585 char * kwnames[] = {
37586 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37587 };
37588
37589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37591 if (!SWIG_IsOK(res1)) {
37592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37593 }
37594 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37595 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37596 if (!SWIG_IsOK(res2)) {
37597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37598 }
37599 arg2 = reinterpret_cast< wxWindow * >(argp2);
37600 if (obj2) {
37601 ecode3 = SWIG_AsVal_int(obj2, &val3);
37602 if (!SWIG_IsOK(ecode3)) {
37603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37604 }
37605 arg3 = static_cast< int >(val3);
37606 }
37607 if (obj3) {
37608 {
37609 arg4 = wxString_in_helper(obj3);
37610 if (arg4 == NULL) SWIG_fail;
37611 temp4 = true;
37612 }
37613 }
37614 if (obj4) {
37615 {
37616 arg5 = &temp5;
37617 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37618 }
37619 }
37620 if (obj5) {
37621 {
37622 arg6 = &temp6;
37623 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37624 }
37625 }
37626 if (obj6) {
37627 ecode7 = SWIG_AsVal_long(obj6, &val7);
37628 if (!SWIG_IsOK(ecode7)) {
37629 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37630 }
37631 arg7 = static_cast< long >(val7);
37632 }
37633 if (obj7) {
37634 {
37635 arg8 = wxString_in_helper(obj7);
37636 if (arg8 == NULL) SWIG_fail;
37637 temp8 = true;
37638 }
37639 }
37640 if (obj8) {
37641 ecode9 = SWIG_AsVal_int(obj8, &val9);
37642 if (!SWIG_IsOK(ecode9)) {
37643 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37644 }
37645 arg9 = static_cast< int >(val9);
37646 }
37647 if (obj9) {
37648 {
37649 arg10 = wxString_in_helper(obj9);
37650 if (arg10 == NULL) SWIG_fail;
37651 temp10 = true;
37652 }
37653 }
37654 {
37655 PyThreadState* __tstate = wxPyBeginAllowThreads();
37656 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37657 wxPyEndAllowThreads(__tstate);
37658 if (PyErr_Occurred()) SWIG_fail;
37659 }
37660 {
37661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37662 }
37663 {
37664 if (temp4)
37665 delete arg4;
37666 }
37667 {
37668 if (temp8)
37669 delete arg8;
37670 }
37671 {
37672 if (temp10)
37673 delete arg10;
37674 }
37675 return resultobj;
37676 fail:
37677 {
37678 if (temp4)
37679 delete arg4;
37680 }
37681 {
37682 if (temp8)
37683 delete arg8;
37684 }
37685 {
37686 if (temp10)
37687 delete arg10;
37688 }
37689 return NULL;
37690 }
37691
37692
37693 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37694 PyObject *resultobj = 0;
37695 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37696 wxString *arg2 = 0 ;
37697 bool result;
37698 void *argp1 = 0 ;
37699 int res1 = 0 ;
37700 bool temp2 = false ;
37701 PyObject * obj0 = 0 ;
37702 PyObject * obj1 = 0 ;
37703 char * kwnames[] = {
37704 (char *) "self",(char *) "path", NULL
37705 };
37706
37707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37709 if (!SWIG_IsOK(res1)) {
37710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37711 }
37712 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37713 {
37714 arg2 = wxString_in_helper(obj1);
37715 if (arg2 == NULL) SWIG_fail;
37716 temp2 = true;
37717 }
37718 {
37719 PyThreadState* __tstate = wxPyBeginAllowThreads();
37720 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37721 wxPyEndAllowThreads(__tstate);
37722 if (PyErr_Occurred()) SWIG_fail;
37723 }
37724 {
37725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37726 }
37727 {
37728 if (temp2)
37729 delete arg2;
37730 }
37731 return resultobj;
37732 fail:
37733 {
37734 if (temp2)
37735 delete arg2;
37736 }
37737 return NULL;
37738 }
37739
37740
37741 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37742 PyObject *resultobj = 0;
37743 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37744 wxString *arg2 = 0 ;
37745 bool result;
37746 void *argp1 = 0 ;
37747 int res1 = 0 ;
37748 bool temp2 = false ;
37749 PyObject * obj0 = 0 ;
37750 PyObject * obj1 = 0 ;
37751 char * kwnames[] = {
37752 (char *) "self",(char *) "path", NULL
37753 };
37754
37755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37757 if (!SWIG_IsOK(res1)) {
37758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37759 }
37760 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37761 {
37762 arg2 = wxString_in_helper(obj1);
37763 if (arg2 == NULL) SWIG_fail;
37764 temp2 = true;
37765 }
37766 {
37767 PyThreadState* __tstate = wxPyBeginAllowThreads();
37768 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37769 wxPyEndAllowThreads(__tstate);
37770 if (PyErr_Occurred()) SWIG_fail;
37771 }
37772 {
37773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37774 }
37775 {
37776 if (temp2)
37777 delete arg2;
37778 }
37779 return resultobj;
37780 fail:
37781 {
37782 if (temp2)
37783 delete arg2;
37784 }
37785 return NULL;
37786 }
37787
37788
37789 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37790 PyObject *resultobj = 0;
37791 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37792 wxString result;
37793 void *argp1 = 0 ;
37794 int res1 = 0 ;
37795 PyObject *swig_obj[1] ;
37796
37797 if (!args) SWIG_fail;
37798 swig_obj[0] = args;
37799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37800 if (!SWIG_IsOK(res1)) {
37801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37802 }
37803 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37804 {
37805 PyThreadState* __tstate = wxPyBeginAllowThreads();
37806 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37807 wxPyEndAllowThreads(__tstate);
37808 if (PyErr_Occurred()) SWIG_fail;
37809 }
37810 {
37811 #if wxUSE_UNICODE
37812 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37813 #else
37814 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37815 #endif
37816 }
37817 return resultobj;
37818 fail:
37819 return NULL;
37820 }
37821
37822
37823 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37824 PyObject *resultobj = 0;
37825 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37826 wxString *arg2 = 0 ;
37827 void *argp1 = 0 ;
37828 int res1 = 0 ;
37829 bool temp2 = false ;
37830 PyObject * obj0 = 0 ;
37831 PyObject * obj1 = 0 ;
37832 char * kwnames[] = {
37833 (char *) "self",(char *) "path", NULL
37834 };
37835
37836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37838 if (!SWIG_IsOK(res1)) {
37839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37840 }
37841 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37842 {
37843 arg2 = wxString_in_helper(obj1);
37844 if (arg2 == NULL) SWIG_fail;
37845 temp2 = true;
37846 }
37847 {
37848 PyThreadState* __tstate = wxPyBeginAllowThreads();
37849 (arg1)->SetDefaultPath((wxString const &)*arg2);
37850 wxPyEndAllowThreads(__tstate);
37851 if (PyErr_Occurred()) SWIG_fail;
37852 }
37853 resultobj = SWIG_Py_Void();
37854 {
37855 if (temp2)
37856 delete arg2;
37857 }
37858 return resultobj;
37859 fail:
37860 {
37861 if (temp2)
37862 delete arg2;
37863 }
37864 return NULL;
37865 }
37866
37867
37868 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37869 PyObject *resultobj = 0;
37870 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37871 wxString result;
37872 void *argp1 = 0 ;
37873 int res1 = 0 ;
37874 PyObject *swig_obj[1] ;
37875
37876 if (!args) SWIG_fail;
37877 swig_obj[0] = args;
37878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37879 if (!SWIG_IsOK(res1)) {
37880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37881 }
37882 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37883 {
37884 PyThreadState* __tstate = wxPyBeginAllowThreads();
37885 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37886 wxPyEndAllowThreads(__tstate);
37887 if (PyErr_Occurred()) SWIG_fail;
37888 }
37889 {
37890 #if wxUSE_UNICODE
37891 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37892 #else
37893 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37894 #endif
37895 }
37896 return resultobj;
37897 fail:
37898 return NULL;
37899 }
37900
37901
37902 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37903 PyObject *resultobj = 0;
37904 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37905 wxString result;
37906 void *argp1 = 0 ;
37907 int res1 = 0 ;
37908 PyObject *swig_obj[1] ;
37909
37910 if (!args) SWIG_fail;
37911 swig_obj[0] = args;
37912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37913 if (!SWIG_IsOK(res1)) {
37914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37915 }
37916 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37917 {
37918 PyThreadState* __tstate = wxPyBeginAllowThreads();
37919 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37920 wxPyEndAllowThreads(__tstate);
37921 if (PyErr_Occurred()) SWIG_fail;
37922 }
37923 {
37924 #if wxUSE_UNICODE
37925 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37926 #else
37927 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37928 #endif
37929 }
37930 return resultobj;
37931 fail:
37932 return NULL;
37933 }
37934
37935
37936 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37937 PyObject *resultobj = 0;
37938 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37939 wxString *arg2 = 0 ;
37940 void *argp1 = 0 ;
37941 int res1 = 0 ;
37942 bool temp2 = false ;
37943 PyObject * obj0 = 0 ;
37944 PyObject * obj1 = 0 ;
37945 char * kwnames[] = {
37946 (char *) "self",(char *) "path", NULL
37947 };
37948
37949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37951 if (!SWIG_IsOK(res1)) {
37952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37953 }
37954 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37955 {
37956 arg2 = wxString_in_helper(obj1);
37957 if (arg2 == NULL) SWIG_fail;
37958 temp2 = true;
37959 }
37960 {
37961 PyThreadState* __tstate = wxPyBeginAllowThreads();
37962 (arg1)->SetPath((wxString const &)*arg2);
37963 wxPyEndAllowThreads(__tstate);
37964 if (PyErr_Occurred()) SWIG_fail;
37965 }
37966 resultobj = SWIG_Py_Void();
37967 {
37968 if (temp2)
37969 delete arg2;
37970 }
37971 return resultobj;
37972 fail:
37973 {
37974 if (temp2)
37975 delete arg2;
37976 }
37977 return NULL;
37978 }
37979
37980
37981 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37982 PyObject *resultobj = 0;
37983 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37984 bool arg2 ;
37985 void *argp1 = 0 ;
37986 int res1 = 0 ;
37987 bool val2 ;
37988 int ecode2 = 0 ;
37989 PyObject * obj0 = 0 ;
37990 PyObject * obj1 = 0 ;
37991 char * kwnames[] = {
37992 (char *) "self",(char *) "show", NULL
37993 };
37994
37995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37997 if (!SWIG_IsOK(res1)) {
37998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37999 }
38000 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38001 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38002 if (!SWIG_IsOK(ecode2)) {
38003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38004 }
38005 arg2 = static_cast< bool >(val2);
38006 {
38007 PyThreadState* __tstate = wxPyBeginAllowThreads();
38008 (arg1)->ShowHidden(arg2);
38009 wxPyEndAllowThreads(__tstate);
38010 if (PyErr_Occurred()) SWIG_fail;
38011 }
38012 resultobj = SWIG_Py_Void();
38013 return resultobj;
38014 fail:
38015 return NULL;
38016 }
38017
38018
38019 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38020 PyObject *resultobj = 0;
38021 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38022 bool result;
38023 void *argp1 = 0 ;
38024 int res1 = 0 ;
38025 PyObject *swig_obj[1] ;
38026
38027 if (!args) SWIG_fail;
38028 swig_obj[0] = args;
38029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38030 if (!SWIG_IsOK(res1)) {
38031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38032 }
38033 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38034 {
38035 PyThreadState* __tstate = wxPyBeginAllowThreads();
38036 result = (bool)(arg1)->GetShowHidden();
38037 wxPyEndAllowThreads(__tstate);
38038 if (PyErr_Occurred()) SWIG_fail;
38039 }
38040 {
38041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38042 }
38043 return resultobj;
38044 fail:
38045 return NULL;
38046 }
38047
38048
38049 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38050 PyObject *resultobj = 0;
38051 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38052 wxString result;
38053 void *argp1 = 0 ;
38054 int res1 = 0 ;
38055 PyObject *swig_obj[1] ;
38056
38057 if (!args) SWIG_fail;
38058 swig_obj[0] = args;
38059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38060 if (!SWIG_IsOK(res1)) {
38061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38062 }
38063 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38064 {
38065 PyThreadState* __tstate = wxPyBeginAllowThreads();
38066 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38067 wxPyEndAllowThreads(__tstate);
38068 if (PyErr_Occurred()) SWIG_fail;
38069 }
38070 {
38071 #if wxUSE_UNICODE
38072 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38073 #else
38074 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38075 #endif
38076 }
38077 return resultobj;
38078 fail:
38079 return NULL;
38080 }
38081
38082
38083 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38084 PyObject *resultobj = 0;
38085 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38086 wxString *arg2 = 0 ;
38087 void *argp1 = 0 ;
38088 int res1 = 0 ;
38089 bool temp2 = false ;
38090 PyObject * obj0 = 0 ;
38091 PyObject * obj1 = 0 ;
38092 char * kwnames[] = {
38093 (char *) "self",(char *) "filter", NULL
38094 };
38095
38096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38098 if (!SWIG_IsOK(res1)) {
38099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38100 }
38101 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38102 {
38103 arg2 = wxString_in_helper(obj1);
38104 if (arg2 == NULL) SWIG_fail;
38105 temp2 = true;
38106 }
38107 {
38108 PyThreadState* __tstate = wxPyBeginAllowThreads();
38109 (arg1)->SetFilter((wxString const &)*arg2);
38110 wxPyEndAllowThreads(__tstate);
38111 if (PyErr_Occurred()) SWIG_fail;
38112 }
38113 resultobj = SWIG_Py_Void();
38114 {
38115 if (temp2)
38116 delete arg2;
38117 }
38118 return resultobj;
38119 fail:
38120 {
38121 if (temp2)
38122 delete arg2;
38123 }
38124 return NULL;
38125 }
38126
38127
38128 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38129 PyObject *resultobj = 0;
38130 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38131 int result;
38132 void *argp1 = 0 ;
38133 int res1 = 0 ;
38134 PyObject *swig_obj[1] ;
38135
38136 if (!args) SWIG_fail;
38137 swig_obj[0] = args;
38138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38139 if (!SWIG_IsOK(res1)) {
38140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38141 }
38142 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38143 {
38144 PyThreadState* __tstate = wxPyBeginAllowThreads();
38145 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38146 wxPyEndAllowThreads(__tstate);
38147 if (PyErr_Occurred()) SWIG_fail;
38148 }
38149 resultobj = SWIG_From_int(static_cast< int >(result));
38150 return resultobj;
38151 fail:
38152 return NULL;
38153 }
38154
38155
38156 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38157 PyObject *resultobj = 0;
38158 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38159 int arg2 ;
38160 void *argp1 = 0 ;
38161 int res1 = 0 ;
38162 int val2 ;
38163 int ecode2 = 0 ;
38164 PyObject * obj0 = 0 ;
38165 PyObject * obj1 = 0 ;
38166 char * kwnames[] = {
38167 (char *) "self",(char *) "n", NULL
38168 };
38169
38170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38172 if (!SWIG_IsOK(res1)) {
38173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38174 }
38175 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38176 ecode2 = SWIG_AsVal_int(obj1, &val2);
38177 if (!SWIG_IsOK(ecode2)) {
38178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38179 }
38180 arg2 = static_cast< int >(val2);
38181 {
38182 PyThreadState* __tstate = wxPyBeginAllowThreads();
38183 (arg1)->SetFilterIndex(arg2);
38184 wxPyEndAllowThreads(__tstate);
38185 if (PyErr_Occurred()) SWIG_fail;
38186 }
38187 resultobj = SWIG_Py_Void();
38188 return resultobj;
38189 fail:
38190 return NULL;
38191 }
38192
38193
38194 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38195 PyObject *resultobj = 0;
38196 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38197 wxTreeItemId result;
38198 void *argp1 = 0 ;
38199 int res1 = 0 ;
38200 PyObject *swig_obj[1] ;
38201
38202 if (!args) SWIG_fail;
38203 swig_obj[0] = args;
38204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38205 if (!SWIG_IsOK(res1)) {
38206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38207 }
38208 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38209 {
38210 PyThreadState* __tstate = wxPyBeginAllowThreads();
38211 result = (arg1)->GetRootId();
38212 wxPyEndAllowThreads(__tstate);
38213 if (PyErr_Occurred()) SWIG_fail;
38214 }
38215 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38216 return resultobj;
38217 fail:
38218 return NULL;
38219 }
38220
38221
38222 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38223 PyObject *resultobj = 0;
38224 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38225 wxPyTreeCtrl *result = 0 ;
38226 void *argp1 = 0 ;
38227 int res1 = 0 ;
38228 PyObject *swig_obj[1] ;
38229
38230 if (!args) SWIG_fail;
38231 swig_obj[0] = args;
38232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38233 if (!SWIG_IsOK(res1)) {
38234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38235 }
38236 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38237 {
38238 PyThreadState* __tstate = wxPyBeginAllowThreads();
38239 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38240 wxPyEndAllowThreads(__tstate);
38241 if (PyErr_Occurred()) SWIG_fail;
38242 }
38243 {
38244 resultobj = wxPyMake_wxObject(result, 0);
38245 }
38246 return resultobj;
38247 fail:
38248 return NULL;
38249 }
38250
38251
38252 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38253 PyObject *resultobj = 0;
38254 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38255 wxDirFilterListCtrl *result = 0 ;
38256 void *argp1 = 0 ;
38257 int res1 = 0 ;
38258 PyObject *swig_obj[1] ;
38259
38260 if (!args) SWIG_fail;
38261 swig_obj[0] = args;
38262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38263 if (!SWIG_IsOK(res1)) {
38264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38265 }
38266 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38267 {
38268 PyThreadState* __tstate = wxPyBeginAllowThreads();
38269 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38270 wxPyEndAllowThreads(__tstate);
38271 if (PyErr_Occurred()) SWIG_fail;
38272 }
38273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38274 return resultobj;
38275 fail:
38276 return NULL;
38277 }
38278
38279
38280 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38281 PyObject *resultobj = 0;
38282 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38283 wxTreeItemId arg2 ;
38284 wxString *arg3 = 0 ;
38285 bool *arg4 = 0 ;
38286 wxTreeItemId result;
38287 void *argp1 = 0 ;
38288 int res1 = 0 ;
38289 void *argp2 ;
38290 int res2 = 0 ;
38291 bool temp3 = false ;
38292 bool temp4 ;
38293 int res4 = SWIG_TMPOBJ ;
38294 PyObject * obj0 = 0 ;
38295 PyObject * obj1 = 0 ;
38296 PyObject * obj2 = 0 ;
38297 char * kwnames[] = {
38298 (char *) "self",(char *) "parentId",(char *) "path", NULL
38299 };
38300
38301 arg4 = &temp4;
38302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38304 if (!SWIG_IsOK(res1)) {
38305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38306 }
38307 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38308 {
38309 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38310 if (!SWIG_IsOK(res2)) {
38311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38312 }
38313 if (!argp2) {
38314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38315 } else {
38316 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38317 arg2 = *temp;
38318 if (SWIG_IsNewObj(res2)) delete temp;
38319 }
38320 }
38321 {
38322 arg3 = wxString_in_helper(obj2);
38323 if (arg3 == NULL) SWIG_fail;
38324 temp3 = true;
38325 }
38326 {
38327 PyThreadState* __tstate = wxPyBeginAllowThreads();
38328 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38329 wxPyEndAllowThreads(__tstate);
38330 if (PyErr_Occurred()) SWIG_fail;
38331 }
38332 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38333 if (SWIG_IsTmpObj(res4)) {
38334 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38335 } else {
38336 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38337 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38338 }
38339 {
38340 if (temp3)
38341 delete arg3;
38342 }
38343 return resultobj;
38344 fail:
38345 {
38346 if (temp3)
38347 delete arg3;
38348 }
38349 return NULL;
38350 }
38351
38352
38353 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38354 PyObject *resultobj = 0;
38355 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38356 void *argp1 = 0 ;
38357 int res1 = 0 ;
38358 PyObject *swig_obj[1] ;
38359
38360 if (!args) SWIG_fail;
38361 swig_obj[0] = args;
38362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38363 if (!SWIG_IsOK(res1)) {
38364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38365 }
38366 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38367 {
38368 PyThreadState* __tstate = wxPyBeginAllowThreads();
38369 (arg1)->DoResize();
38370 wxPyEndAllowThreads(__tstate);
38371 if (PyErr_Occurred()) SWIG_fail;
38372 }
38373 resultobj = SWIG_Py_Void();
38374 return resultobj;
38375 fail:
38376 return NULL;
38377 }
38378
38379
38380 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38381 PyObject *resultobj = 0;
38382 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38383 void *argp1 = 0 ;
38384 int res1 = 0 ;
38385 PyObject *swig_obj[1] ;
38386
38387 if (!args) SWIG_fail;
38388 swig_obj[0] = args;
38389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38390 if (!SWIG_IsOK(res1)) {
38391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38392 }
38393 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38394 {
38395 PyThreadState* __tstate = wxPyBeginAllowThreads();
38396 (arg1)->ReCreateTree();
38397 wxPyEndAllowThreads(__tstate);
38398 if (PyErr_Occurred()) SWIG_fail;
38399 }
38400 resultobj = SWIG_Py_Void();
38401 return resultobj;
38402 fail:
38403 return NULL;
38404 }
38405
38406
38407 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38408 PyObject *obj;
38409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38410 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38411 return SWIG_Py_Void();
38412 }
38413
38414 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38415 return SWIG_Python_InitShadowInstance(args);
38416 }
38417
38418 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38419 PyObject *resultobj = 0;
38420 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38421 int arg2 = (int) (int)-1 ;
38422 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38423 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38424 wxSize const &arg4_defvalue = wxDefaultSize ;
38425 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38426 long arg5 = (long) 0 ;
38427 wxDirFilterListCtrl *result = 0 ;
38428 void *argp1 = 0 ;
38429 int res1 = 0 ;
38430 int val2 ;
38431 int ecode2 = 0 ;
38432 wxPoint temp3 ;
38433 wxSize temp4 ;
38434 long val5 ;
38435 int ecode5 = 0 ;
38436 PyObject * obj0 = 0 ;
38437 PyObject * obj1 = 0 ;
38438 PyObject * obj2 = 0 ;
38439 PyObject * obj3 = 0 ;
38440 PyObject * obj4 = 0 ;
38441 char * kwnames[] = {
38442 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38443 };
38444
38445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38447 if (!SWIG_IsOK(res1)) {
38448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38449 }
38450 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38451 if (obj1) {
38452 ecode2 = SWIG_AsVal_int(obj1, &val2);
38453 if (!SWIG_IsOK(ecode2)) {
38454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38455 }
38456 arg2 = static_cast< int >(val2);
38457 }
38458 if (obj2) {
38459 {
38460 arg3 = &temp3;
38461 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38462 }
38463 }
38464 if (obj3) {
38465 {
38466 arg4 = &temp4;
38467 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38468 }
38469 }
38470 if (obj4) {
38471 ecode5 = SWIG_AsVal_long(obj4, &val5);
38472 if (!SWIG_IsOK(ecode5)) {
38473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38474 }
38475 arg5 = static_cast< long >(val5);
38476 }
38477 {
38478 if (!wxPyCheckForApp()) SWIG_fail;
38479 PyThreadState* __tstate = wxPyBeginAllowThreads();
38480 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38481 wxPyEndAllowThreads(__tstate);
38482 if (PyErr_Occurred()) SWIG_fail;
38483 }
38484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38485 return resultobj;
38486 fail:
38487 return NULL;
38488 }
38489
38490
38491 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38492 PyObject *resultobj = 0;
38493 wxDirFilterListCtrl *result = 0 ;
38494
38495 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38496 {
38497 if (!wxPyCheckForApp()) SWIG_fail;
38498 PyThreadState* __tstate = wxPyBeginAllowThreads();
38499 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38500 wxPyEndAllowThreads(__tstate);
38501 if (PyErr_Occurred()) SWIG_fail;
38502 }
38503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38504 return resultobj;
38505 fail:
38506 return NULL;
38507 }
38508
38509
38510 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38511 PyObject *resultobj = 0;
38512 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38513 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38514 int arg3 = (int) (int)-1 ;
38515 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38516 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38517 wxSize const &arg5_defvalue = wxDefaultSize ;
38518 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38519 long arg6 = (long) 0 ;
38520 bool result;
38521 void *argp1 = 0 ;
38522 int res1 = 0 ;
38523 void *argp2 = 0 ;
38524 int res2 = 0 ;
38525 int val3 ;
38526 int ecode3 = 0 ;
38527 wxPoint temp4 ;
38528 wxSize temp5 ;
38529 long val6 ;
38530 int ecode6 = 0 ;
38531 PyObject * obj0 = 0 ;
38532 PyObject * obj1 = 0 ;
38533 PyObject * obj2 = 0 ;
38534 PyObject * obj3 = 0 ;
38535 PyObject * obj4 = 0 ;
38536 PyObject * obj5 = 0 ;
38537 char * kwnames[] = {
38538 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38539 };
38540
38541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38543 if (!SWIG_IsOK(res1)) {
38544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38545 }
38546 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38547 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38548 if (!SWIG_IsOK(res2)) {
38549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38550 }
38551 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38552 if (obj2) {
38553 ecode3 = SWIG_AsVal_int(obj2, &val3);
38554 if (!SWIG_IsOK(ecode3)) {
38555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38556 }
38557 arg3 = static_cast< int >(val3);
38558 }
38559 if (obj3) {
38560 {
38561 arg4 = &temp4;
38562 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38563 }
38564 }
38565 if (obj4) {
38566 {
38567 arg5 = &temp5;
38568 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38569 }
38570 }
38571 if (obj5) {
38572 ecode6 = SWIG_AsVal_long(obj5, &val6);
38573 if (!SWIG_IsOK(ecode6)) {
38574 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38575 }
38576 arg6 = static_cast< long >(val6);
38577 }
38578 {
38579 PyThreadState* __tstate = wxPyBeginAllowThreads();
38580 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38581 wxPyEndAllowThreads(__tstate);
38582 if (PyErr_Occurred()) SWIG_fail;
38583 }
38584 {
38585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38586 }
38587 return resultobj;
38588 fail:
38589 return NULL;
38590 }
38591
38592
38593 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38594 PyObject *resultobj = 0;
38595 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38596 wxString *arg2 = 0 ;
38597 int arg3 ;
38598 void *argp1 = 0 ;
38599 int res1 = 0 ;
38600 bool temp2 = false ;
38601 int val3 ;
38602 int ecode3 = 0 ;
38603 PyObject * obj0 = 0 ;
38604 PyObject * obj1 = 0 ;
38605 PyObject * obj2 = 0 ;
38606 char * kwnames[] = {
38607 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38608 };
38609
38610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38612 if (!SWIG_IsOK(res1)) {
38613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38614 }
38615 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38616 {
38617 arg2 = wxString_in_helper(obj1);
38618 if (arg2 == NULL) SWIG_fail;
38619 temp2 = true;
38620 }
38621 ecode3 = SWIG_AsVal_int(obj2, &val3);
38622 if (!SWIG_IsOK(ecode3)) {
38623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38624 }
38625 arg3 = static_cast< int >(val3);
38626 {
38627 PyThreadState* __tstate = wxPyBeginAllowThreads();
38628 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38629 wxPyEndAllowThreads(__tstate);
38630 if (PyErr_Occurred()) SWIG_fail;
38631 }
38632 resultobj = SWIG_Py_Void();
38633 {
38634 if (temp2)
38635 delete arg2;
38636 }
38637 return resultobj;
38638 fail:
38639 {
38640 if (temp2)
38641 delete arg2;
38642 }
38643 return NULL;
38644 }
38645
38646
38647 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38648 PyObject *obj;
38649 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38650 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38651 return SWIG_Py_Void();
38652 }
38653
38654 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38655 return SWIG_Python_InitShadowInstance(args);
38656 }
38657
38658 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38659 PyObject *resultobj = 0;
38660 wxWindow *arg1 = (wxWindow *) 0 ;
38661 int arg2 = (int) (int)-1 ;
38662 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38663 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38664 wxSize const &arg4_defvalue = wxDefaultSize ;
38665 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38666 long arg5 = (long) 0 ;
38667 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38668 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38669 wxString const &arg7_defvalue = wxPyControlNameStr ;
38670 wxString *arg7 = (wxString *) &arg7_defvalue ;
38671 wxPyControl *result = 0 ;
38672 void *argp1 = 0 ;
38673 int res1 = 0 ;
38674 int val2 ;
38675 int ecode2 = 0 ;
38676 wxPoint temp3 ;
38677 wxSize temp4 ;
38678 long val5 ;
38679 int ecode5 = 0 ;
38680 void *argp6 = 0 ;
38681 int res6 = 0 ;
38682 bool temp7 = false ;
38683 PyObject * obj0 = 0 ;
38684 PyObject * obj1 = 0 ;
38685 PyObject * obj2 = 0 ;
38686 PyObject * obj3 = 0 ;
38687 PyObject * obj4 = 0 ;
38688 PyObject * obj5 = 0 ;
38689 PyObject * obj6 = 0 ;
38690 char * kwnames[] = {
38691 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38692 };
38693
38694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38696 if (!SWIG_IsOK(res1)) {
38697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38698 }
38699 arg1 = reinterpret_cast< wxWindow * >(argp1);
38700 if (obj1) {
38701 ecode2 = SWIG_AsVal_int(obj1, &val2);
38702 if (!SWIG_IsOK(ecode2)) {
38703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38704 }
38705 arg2 = static_cast< int >(val2);
38706 }
38707 if (obj2) {
38708 {
38709 arg3 = &temp3;
38710 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38711 }
38712 }
38713 if (obj3) {
38714 {
38715 arg4 = &temp4;
38716 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38717 }
38718 }
38719 if (obj4) {
38720 ecode5 = SWIG_AsVal_long(obj4, &val5);
38721 if (!SWIG_IsOK(ecode5)) {
38722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38723 }
38724 arg5 = static_cast< long >(val5);
38725 }
38726 if (obj5) {
38727 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38728 if (!SWIG_IsOK(res6)) {
38729 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38730 }
38731 if (!argp6) {
38732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38733 }
38734 arg6 = reinterpret_cast< wxValidator * >(argp6);
38735 }
38736 if (obj6) {
38737 {
38738 arg7 = wxString_in_helper(obj6);
38739 if (arg7 == NULL) SWIG_fail;
38740 temp7 = true;
38741 }
38742 }
38743 {
38744 if (!wxPyCheckForApp()) SWIG_fail;
38745 PyThreadState* __tstate = wxPyBeginAllowThreads();
38746 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38747 wxPyEndAllowThreads(__tstate);
38748 if (PyErr_Occurred()) SWIG_fail;
38749 }
38750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38751 {
38752 if (temp7)
38753 delete arg7;
38754 }
38755 return resultobj;
38756 fail:
38757 {
38758 if (temp7)
38759 delete arg7;
38760 }
38761 return NULL;
38762 }
38763
38764
38765 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38766 PyObject *resultobj = 0;
38767 wxPyControl *result = 0 ;
38768
38769 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38770 {
38771 if (!wxPyCheckForApp()) SWIG_fail;
38772 PyThreadState* __tstate = wxPyBeginAllowThreads();
38773 result = (wxPyControl *)new wxPyControl();
38774 wxPyEndAllowThreads(__tstate);
38775 if (PyErr_Occurred()) SWIG_fail;
38776 }
38777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38778 return resultobj;
38779 fail:
38780 return NULL;
38781 }
38782
38783
38784 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38785 PyObject *resultobj = 0;
38786 wxPyControl *arg1 = (wxPyControl *) 0 ;
38787 PyObject *arg2 = (PyObject *) 0 ;
38788 PyObject *arg3 = (PyObject *) 0 ;
38789 void *argp1 = 0 ;
38790 int res1 = 0 ;
38791 PyObject * obj0 = 0 ;
38792 PyObject * obj1 = 0 ;
38793 PyObject * obj2 = 0 ;
38794 char * kwnames[] = {
38795 (char *) "self",(char *) "self",(char *) "_class", NULL
38796 };
38797
38798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38800 if (!SWIG_IsOK(res1)) {
38801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38802 }
38803 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38804 arg2 = obj1;
38805 arg3 = obj2;
38806 {
38807 PyThreadState* __tstate = wxPyBeginAllowThreads();
38808 (arg1)->_setCallbackInfo(arg2,arg3);
38809 wxPyEndAllowThreads(__tstate);
38810 if (PyErr_Occurred()) SWIG_fail;
38811 }
38812 resultobj = SWIG_Py_Void();
38813 return resultobj;
38814 fail:
38815 return NULL;
38816 }
38817
38818
38819 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38820 PyObject *resultobj = 0;
38821 wxPyControl *arg1 = (wxPyControl *) 0 ;
38822 wxDC *arg2 = (wxDC *) 0 ;
38823 bool result;
38824 void *argp1 = 0 ;
38825 int res1 = 0 ;
38826 void *argp2 = 0 ;
38827 int res2 = 0 ;
38828 PyObject * obj0 = 0 ;
38829 PyObject * obj1 = 0 ;
38830 char * kwnames[] = {
38831 (char *) "self",(char *) "dc", NULL
38832 };
38833
38834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38836 if (!SWIG_IsOK(res1)) {
38837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38838 }
38839 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38840 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38841 if (!SWIG_IsOK(res2)) {
38842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38843 }
38844 arg2 = reinterpret_cast< wxDC * >(argp2);
38845 {
38846 PyThreadState* __tstate = wxPyBeginAllowThreads();
38847 result = (bool)(arg1)->DoEraseBackground(arg2);
38848 wxPyEndAllowThreads(__tstate);
38849 if (PyErr_Occurred()) SWIG_fail;
38850 }
38851 {
38852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38853 }
38854 return resultobj;
38855 fail:
38856 return NULL;
38857 }
38858
38859
38860 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38861 PyObject *resultobj = 0;
38862 wxPyControl *arg1 = (wxPyControl *) 0 ;
38863 int arg2 ;
38864 int arg3 ;
38865 int arg4 ;
38866 int arg5 ;
38867 void *argp1 = 0 ;
38868 int res1 = 0 ;
38869 int val2 ;
38870 int ecode2 = 0 ;
38871 int val3 ;
38872 int ecode3 = 0 ;
38873 int val4 ;
38874 int ecode4 = 0 ;
38875 int val5 ;
38876 int ecode5 = 0 ;
38877 PyObject * obj0 = 0 ;
38878 PyObject * obj1 = 0 ;
38879 PyObject * obj2 = 0 ;
38880 PyObject * obj3 = 0 ;
38881 PyObject * obj4 = 0 ;
38882 char * kwnames[] = {
38883 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38884 };
38885
38886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38888 if (!SWIG_IsOK(res1)) {
38889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38890 }
38891 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38892 ecode2 = SWIG_AsVal_int(obj1, &val2);
38893 if (!SWIG_IsOK(ecode2)) {
38894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38895 }
38896 arg2 = static_cast< int >(val2);
38897 ecode3 = SWIG_AsVal_int(obj2, &val3);
38898 if (!SWIG_IsOK(ecode3)) {
38899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38900 }
38901 arg3 = static_cast< int >(val3);
38902 ecode4 = SWIG_AsVal_int(obj3, &val4);
38903 if (!SWIG_IsOK(ecode4)) {
38904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38905 }
38906 arg4 = static_cast< int >(val4);
38907 ecode5 = SWIG_AsVal_int(obj4, &val5);
38908 if (!SWIG_IsOK(ecode5)) {
38909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38910 }
38911 arg5 = static_cast< int >(val5);
38912 {
38913 PyThreadState* __tstate = wxPyBeginAllowThreads();
38914 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38915 wxPyEndAllowThreads(__tstate);
38916 if (PyErr_Occurred()) SWIG_fail;
38917 }
38918 resultobj = SWIG_Py_Void();
38919 return resultobj;
38920 fail:
38921 return NULL;
38922 }
38923
38924
38925 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38926 PyObject *resultobj = 0;
38927 wxPyControl *arg1 = (wxPyControl *) 0 ;
38928 int arg2 ;
38929 int arg3 ;
38930 int arg4 ;
38931 int arg5 ;
38932 int arg6 = (int) wxSIZE_AUTO ;
38933 void *argp1 = 0 ;
38934 int res1 = 0 ;
38935 int val2 ;
38936 int ecode2 = 0 ;
38937 int val3 ;
38938 int ecode3 = 0 ;
38939 int val4 ;
38940 int ecode4 = 0 ;
38941 int val5 ;
38942 int ecode5 = 0 ;
38943 int val6 ;
38944 int ecode6 = 0 ;
38945 PyObject * obj0 = 0 ;
38946 PyObject * obj1 = 0 ;
38947 PyObject * obj2 = 0 ;
38948 PyObject * obj3 = 0 ;
38949 PyObject * obj4 = 0 ;
38950 PyObject * obj5 = 0 ;
38951 char * kwnames[] = {
38952 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38953 };
38954
38955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38957 if (!SWIG_IsOK(res1)) {
38958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38959 }
38960 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38961 ecode2 = SWIG_AsVal_int(obj1, &val2);
38962 if (!SWIG_IsOK(ecode2)) {
38963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38964 }
38965 arg2 = static_cast< int >(val2);
38966 ecode3 = SWIG_AsVal_int(obj2, &val3);
38967 if (!SWIG_IsOK(ecode3)) {
38968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38969 }
38970 arg3 = static_cast< int >(val3);
38971 ecode4 = SWIG_AsVal_int(obj3, &val4);
38972 if (!SWIG_IsOK(ecode4)) {
38973 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38974 }
38975 arg4 = static_cast< int >(val4);
38976 ecode5 = SWIG_AsVal_int(obj4, &val5);
38977 if (!SWIG_IsOK(ecode5)) {
38978 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38979 }
38980 arg5 = static_cast< int >(val5);
38981 if (obj5) {
38982 ecode6 = SWIG_AsVal_int(obj5, &val6);
38983 if (!SWIG_IsOK(ecode6)) {
38984 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38985 }
38986 arg6 = static_cast< int >(val6);
38987 }
38988 {
38989 PyThreadState* __tstate = wxPyBeginAllowThreads();
38990 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38991 wxPyEndAllowThreads(__tstate);
38992 if (PyErr_Occurred()) SWIG_fail;
38993 }
38994 resultobj = SWIG_Py_Void();
38995 return resultobj;
38996 fail:
38997 return NULL;
38998 }
38999
39000
39001 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39002 PyObject *resultobj = 0;
39003 wxPyControl *arg1 = (wxPyControl *) 0 ;
39004 int arg2 ;
39005 int arg3 ;
39006 void *argp1 = 0 ;
39007 int res1 = 0 ;
39008 int val2 ;
39009 int ecode2 = 0 ;
39010 int val3 ;
39011 int ecode3 = 0 ;
39012 PyObject * obj0 = 0 ;
39013 PyObject * obj1 = 0 ;
39014 PyObject * obj2 = 0 ;
39015 char * kwnames[] = {
39016 (char *) "self",(char *) "width",(char *) "height", NULL
39017 };
39018
39019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39021 if (!SWIG_IsOK(res1)) {
39022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39023 }
39024 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39025 ecode2 = SWIG_AsVal_int(obj1, &val2);
39026 if (!SWIG_IsOK(ecode2)) {
39027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39028 }
39029 arg2 = static_cast< int >(val2);
39030 ecode3 = SWIG_AsVal_int(obj2, &val3);
39031 if (!SWIG_IsOK(ecode3)) {
39032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39033 }
39034 arg3 = static_cast< int >(val3);
39035 {
39036 PyThreadState* __tstate = wxPyBeginAllowThreads();
39037 (arg1)->DoSetClientSize(arg2,arg3);
39038 wxPyEndAllowThreads(__tstate);
39039 if (PyErr_Occurred()) SWIG_fail;
39040 }
39041 resultobj = SWIG_Py_Void();
39042 return resultobj;
39043 fail:
39044 return NULL;
39045 }
39046
39047
39048 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39049 PyObject *resultobj = 0;
39050 wxPyControl *arg1 = (wxPyControl *) 0 ;
39051 int arg2 ;
39052 int arg3 ;
39053 void *argp1 = 0 ;
39054 int res1 = 0 ;
39055 int val2 ;
39056 int ecode2 = 0 ;
39057 int val3 ;
39058 int ecode3 = 0 ;
39059 PyObject * obj0 = 0 ;
39060 PyObject * obj1 = 0 ;
39061 PyObject * obj2 = 0 ;
39062 char * kwnames[] = {
39063 (char *) "self",(char *) "x",(char *) "y", NULL
39064 };
39065
39066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39068 if (!SWIG_IsOK(res1)) {
39069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39070 }
39071 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39072 ecode2 = SWIG_AsVal_int(obj1, &val2);
39073 if (!SWIG_IsOK(ecode2)) {
39074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39075 }
39076 arg2 = static_cast< int >(val2);
39077 ecode3 = SWIG_AsVal_int(obj2, &val3);
39078 if (!SWIG_IsOK(ecode3)) {
39079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39080 }
39081 arg3 = static_cast< int >(val3);
39082 {
39083 PyThreadState* __tstate = wxPyBeginAllowThreads();
39084 (arg1)->DoSetVirtualSize(arg2,arg3);
39085 wxPyEndAllowThreads(__tstate);
39086 if (PyErr_Occurred()) SWIG_fail;
39087 }
39088 resultobj = SWIG_Py_Void();
39089 return resultobj;
39090 fail:
39091 return NULL;
39092 }
39093
39094
39095 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39096 PyObject *resultobj = 0;
39097 wxPyControl *arg1 = (wxPyControl *) 0 ;
39098 int *arg2 = (int *) 0 ;
39099 int *arg3 = (int *) 0 ;
39100 void *argp1 = 0 ;
39101 int res1 = 0 ;
39102 int temp2 ;
39103 int res2 = SWIG_TMPOBJ ;
39104 int temp3 ;
39105 int res3 = SWIG_TMPOBJ ;
39106 PyObject *swig_obj[1] ;
39107
39108 arg2 = &temp2;
39109 arg3 = &temp3;
39110 if (!args) SWIG_fail;
39111 swig_obj[0] = args;
39112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39113 if (!SWIG_IsOK(res1)) {
39114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39115 }
39116 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39117 {
39118 PyThreadState* __tstate = wxPyBeginAllowThreads();
39119 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39120 wxPyEndAllowThreads(__tstate);
39121 if (PyErr_Occurred()) SWIG_fail;
39122 }
39123 resultobj = SWIG_Py_Void();
39124 if (SWIG_IsTmpObj(res2)) {
39125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39126 } else {
39127 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39129 }
39130 if (SWIG_IsTmpObj(res3)) {
39131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39132 } else {
39133 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39135 }
39136 return resultobj;
39137 fail:
39138 return NULL;
39139 }
39140
39141
39142 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39143 PyObject *resultobj = 0;
39144 wxPyControl *arg1 = (wxPyControl *) 0 ;
39145 int *arg2 = (int *) 0 ;
39146 int *arg3 = (int *) 0 ;
39147 void *argp1 = 0 ;
39148 int res1 = 0 ;
39149 int temp2 ;
39150 int res2 = SWIG_TMPOBJ ;
39151 int temp3 ;
39152 int res3 = SWIG_TMPOBJ ;
39153 PyObject *swig_obj[1] ;
39154
39155 arg2 = &temp2;
39156 arg3 = &temp3;
39157 if (!args) SWIG_fail;
39158 swig_obj[0] = args;
39159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39160 if (!SWIG_IsOK(res1)) {
39161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39162 }
39163 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39164 {
39165 PyThreadState* __tstate = wxPyBeginAllowThreads();
39166 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39167 wxPyEndAllowThreads(__tstate);
39168 if (PyErr_Occurred()) SWIG_fail;
39169 }
39170 resultobj = SWIG_Py_Void();
39171 if (SWIG_IsTmpObj(res2)) {
39172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39173 } else {
39174 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39176 }
39177 if (SWIG_IsTmpObj(res3)) {
39178 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39179 } else {
39180 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39182 }
39183 return resultobj;
39184 fail:
39185 return NULL;
39186 }
39187
39188
39189 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39190 PyObject *resultobj = 0;
39191 wxPyControl *arg1 = (wxPyControl *) 0 ;
39192 int *arg2 = (int *) 0 ;
39193 int *arg3 = (int *) 0 ;
39194 void *argp1 = 0 ;
39195 int res1 = 0 ;
39196 int temp2 ;
39197 int res2 = SWIG_TMPOBJ ;
39198 int temp3 ;
39199 int res3 = SWIG_TMPOBJ ;
39200 PyObject *swig_obj[1] ;
39201
39202 arg2 = &temp2;
39203 arg3 = &temp3;
39204 if (!args) SWIG_fail;
39205 swig_obj[0] = args;
39206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39207 if (!SWIG_IsOK(res1)) {
39208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39209 }
39210 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39211 {
39212 PyThreadState* __tstate = wxPyBeginAllowThreads();
39213 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39214 wxPyEndAllowThreads(__tstate);
39215 if (PyErr_Occurred()) SWIG_fail;
39216 }
39217 resultobj = SWIG_Py_Void();
39218 if (SWIG_IsTmpObj(res2)) {
39219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39220 } else {
39221 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39222 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39223 }
39224 if (SWIG_IsTmpObj(res3)) {
39225 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39226 } else {
39227 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39228 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39229 }
39230 return resultobj;
39231 fail:
39232 return NULL;
39233 }
39234
39235
39236 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39237 PyObject *resultobj = 0;
39238 wxPyControl *arg1 = (wxPyControl *) 0 ;
39239 wxSize result;
39240 void *argp1 = 0 ;
39241 int res1 = 0 ;
39242 PyObject *swig_obj[1] ;
39243
39244 if (!args) SWIG_fail;
39245 swig_obj[0] = args;
39246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39247 if (!SWIG_IsOK(res1)) {
39248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39249 }
39250 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39251 {
39252 PyThreadState* __tstate = wxPyBeginAllowThreads();
39253 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39254 wxPyEndAllowThreads(__tstate);
39255 if (PyErr_Occurred()) SWIG_fail;
39256 }
39257 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39258 return resultobj;
39259 fail:
39260 return NULL;
39261 }
39262
39263
39264 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39265 PyObject *resultobj = 0;
39266 wxPyControl *arg1 = (wxPyControl *) 0 ;
39267 wxSize result;
39268 void *argp1 = 0 ;
39269 int res1 = 0 ;
39270 PyObject *swig_obj[1] ;
39271
39272 if (!args) SWIG_fail;
39273 swig_obj[0] = args;
39274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39275 if (!SWIG_IsOK(res1)) {
39276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39277 }
39278 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39279 {
39280 PyThreadState* __tstate = wxPyBeginAllowThreads();
39281 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39282 wxPyEndAllowThreads(__tstate);
39283 if (PyErr_Occurred()) SWIG_fail;
39284 }
39285 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39286 return resultobj;
39287 fail:
39288 return NULL;
39289 }
39290
39291
39292 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39293 PyObject *resultobj = 0;
39294 wxPyControl *arg1 = (wxPyControl *) 0 ;
39295 SwigValueWrapper<wxVisualAttributes > result;
39296 void *argp1 = 0 ;
39297 int res1 = 0 ;
39298 PyObject *swig_obj[1] ;
39299
39300 if (!args) SWIG_fail;
39301 swig_obj[0] = args;
39302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39303 if (!SWIG_IsOK(res1)) {
39304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39305 }
39306 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39307 {
39308 PyThreadState* __tstate = wxPyBeginAllowThreads();
39309 result = (arg1)->GetDefaultAttributes();
39310 wxPyEndAllowThreads(__tstate);
39311 if (PyErr_Occurred()) SWIG_fail;
39312 }
39313 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39314 return resultobj;
39315 fail:
39316 return NULL;
39317 }
39318
39319
39320 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39321 PyObject *resultobj = 0;
39322 wxPyControl *arg1 = (wxPyControl *) 0 ;
39323 void *argp1 = 0 ;
39324 int res1 = 0 ;
39325 PyObject *swig_obj[1] ;
39326
39327 if (!args) SWIG_fail;
39328 swig_obj[0] = args;
39329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39330 if (!SWIG_IsOK(res1)) {
39331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39332 }
39333 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39334 {
39335 PyThreadState* __tstate = wxPyBeginAllowThreads();
39336 (arg1)->OnInternalIdle();
39337 wxPyEndAllowThreads(__tstate);
39338 if (PyErr_Occurred()) SWIG_fail;
39339 }
39340 resultobj = SWIG_Py_Void();
39341 return resultobj;
39342 fail:
39343 return NULL;
39344 }
39345
39346
39347 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39348 PyObject *obj;
39349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39350 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39351 return SWIG_Py_Void();
39352 }
39353
39354 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39355 return SWIG_Python_InitShadowInstance(args);
39356 }
39357
39358 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39359 PyObject *resultobj = 0;
39360 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39361 int arg2 = (int) 0 ;
39362 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39363 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39364 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39365 wxHelpEvent *result = 0 ;
39366 int val1 ;
39367 int ecode1 = 0 ;
39368 int val2 ;
39369 int ecode2 = 0 ;
39370 wxPoint temp3 ;
39371 int val4 ;
39372 int ecode4 = 0 ;
39373 PyObject * obj0 = 0 ;
39374 PyObject * obj1 = 0 ;
39375 PyObject * obj2 = 0 ;
39376 PyObject * obj3 = 0 ;
39377 char * kwnames[] = {
39378 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39379 };
39380
39381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39382 if (obj0) {
39383 ecode1 = SWIG_AsVal_int(obj0, &val1);
39384 if (!SWIG_IsOK(ecode1)) {
39385 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39386 }
39387 arg1 = static_cast< wxEventType >(val1);
39388 }
39389 if (obj1) {
39390 ecode2 = SWIG_AsVal_int(obj1, &val2);
39391 if (!SWIG_IsOK(ecode2)) {
39392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39393 }
39394 arg2 = static_cast< int >(val2);
39395 }
39396 if (obj2) {
39397 {
39398 arg3 = &temp3;
39399 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39400 }
39401 }
39402 if (obj3) {
39403 ecode4 = SWIG_AsVal_int(obj3, &val4);
39404 if (!SWIG_IsOK(ecode4)) {
39405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39406 }
39407 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39408 }
39409 {
39410 PyThreadState* __tstate = wxPyBeginAllowThreads();
39411 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39412 wxPyEndAllowThreads(__tstate);
39413 if (PyErr_Occurred()) SWIG_fail;
39414 }
39415 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39416 return resultobj;
39417 fail:
39418 return NULL;
39419 }
39420
39421
39422 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39423 PyObject *resultobj = 0;
39424 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39425 wxPoint result;
39426 void *argp1 = 0 ;
39427 int res1 = 0 ;
39428 PyObject *swig_obj[1] ;
39429
39430 if (!args) SWIG_fail;
39431 swig_obj[0] = args;
39432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39433 if (!SWIG_IsOK(res1)) {
39434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39435 }
39436 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39437 {
39438 PyThreadState* __tstate = wxPyBeginAllowThreads();
39439 result = ((wxHelpEvent const *)arg1)->GetPosition();
39440 wxPyEndAllowThreads(__tstate);
39441 if (PyErr_Occurred()) SWIG_fail;
39442 }
39443 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39444 return resultobj;
39445 fail:
39446 return NULL;
39447 }
39448
39449
39450 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39451 PyObject *resultobj = 0;
39452 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39453 wxPoint *arg2 = 0 ;
39454 void *argp1 = 0 ;
39455 int res1 = 0 ;
39456 wxPoint temp2 ;
39457 PyObject * obj0 = 0 ;
39458 PyObject * obj1 = 0 ;
39459 char * kwnames[] = {
39460 (char *) "self",(char *) "pos", NULL
39461 };
39462
39463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39465 if (!SWIG_IsOK(res1)) {
39466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39467 }
39468 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39469 {
39470 arg2 = &temp2;
39471 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39472 }
39473 {
39474 PyThreadState* __tstate = wxPyBeginAllowThreads();
39475 (arg1)->SetPosition((wxPoint const &)*arg2);
39476 wxPyEndAllowThreads(__tstate);
39477 if (PyErr_Occurred()) SWIG_fail;
39478 }
39479 resultobj = SWIG_Py_Void();
39480 return resultobj;
39481 fail:
39482 return NULL;
39483 }
39484
39485
39486 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39487 PyObject *resultobj = 0;
39488 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39489 wxString *result = 0 ;
39490 void *argp1 = 0 ;
39491 int res1 = 0 ;
39492 PyObject *swig_obj[1] ;
39493
39494 if (!args) SWIG_fail;
39495 swig_obj[0] = args;
39496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39497 if (!SWIG_IsOK(res1)) {
39498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39499 }
39500 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39501 {
39502 PyThreadState* __tstate = wxPyBeginAllowThreads();
39503 {
39504 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39505 result = (wxString *) &_result_ref;
39506 }
39507 wxPyEndAllowThreads(__tstate);
39508 if (PyErr_Occurred()) SWIG_fail;
39509 }
39510 {
39511 #if wxUSE_UNICODE
39512 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39513 #else
39514 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39515 #endif
39516 }
39517 return resultobj;
39518 fail:
39519 return NULL;
39520 }
39521
39522
39523 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39524 PyObject *resultobj = 0;
39525 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39526 wxString *arg2 = 0 ;
39527 void *argp1 = 0 ;
39528 int res1 = 0 ;
39529 bool temp2 = false ;
39530 PyObject * obj0 = 0 ;
39531 PyObject * obj1 = 0 ;
39532 char * kwnames[] = {
39533 (char *) "self",(char *) "link", NULL
39534 };
39535
39536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39538 if (!SWIG_IsOK(res1)) {
39539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39540 }
39541 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39542 {
39543 arg2 = wxString_in_helper(obj1);
39544 if (arg2 == NULL) SWIG_fail;
39545 temp2 = true;
39546 }
39547 {
39548 PyThreadState* __tstate = wxPyBeginAllowThreads();
39549 (arg1)->SetLink((wxString const &)*arg2);
39550 wxPyEndAllowThreads(__tstate);
39551 if (PyErr_Occurred()) SWIG_fail;
39552 }
39553 resultobj = SWIG_Py_Void();
39554 {
39555 if (temp2)
39556 delete arg2;
39557 }
39558 return resultobj;
39559 fail:
39560 {
39561 if (temp2)
39562 delete arg2;
39563 }
39564 return NULL;
39565 }
39566
39567
39568 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39569 PyObject *resultobj = 0;
39570 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39571 wxString *result = 0 ;
39572 void *argp1 = 0 ;
39573 int res1 = 0 ;
39574 PyObject *swig_obj[1] ;
39575
39576 if (!args) SWIG_fail;
39577 swig_obj[0] = args;
39578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39579 if (!SWIG_IsOK(res1)) {
39580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39581 }
39582 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39583 {
39584 PyThreadState* __tstate = wxPyBeginAllowThreads();
39585 {
39586 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39587 result = (wxString *) &_result_ref;
39588 }
39589 wxPyEndAllowThreads(__tstate);
39590 if (PyErr_Occurred()) SWIG_fail;
39591 }
39592 {
39593 #if wxUSE_UNICODE
39594 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39595 #else
39596 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39597 #endif
39598 }
39599 return resultobj;
39600 fail:
39601 return NULL;
39602 }
39603
39604
39605 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39606 PyObject *resultobj = 0;
39607 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39608 wxString *arg2 = 0 ;
39609 void *argp1 = 0 ;
39610 int res1 = 0 ;
39611 bool temp2 = false ;
39612 PyObject * obj0 = 0 ;
39613 PyObject * obj1 = 0 ;
39614 char * kwnames[] = {
39615 (char *) "self",(char *) "target", NULL
39616 };
39617
39618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39620 if (!SWIG_IsOK(res1)) {
39621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39622 }
39623 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39624 {
39625 arg2 = wxString_in_helper(obj1);
39626 if (arg2 == NULL) SWIG_fail;
39627 temp2 = true;
39628 }
39629 {
39630 PyThreadState* __tstate = wxPyBeginAllowThreads();
39631 (arg1)->SetTarget((wxString const &)*arg2);
39632 wxPyEndAllowThreads(__tstate);
39633 if (PyErr_Occurred()) SWIG_fail;
39634 }
39635 resultobj = SWIG_Py_Void();
39636 {
39637 if (temp2)
39638 delete arg2;
39639 }
39640 return resultobj;
39641 fail:
39642 {
39643 if (temp2)
39644 delete arg2;
39645 }
39646 return NULL;
39647 }
39648
39649
39650 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39651 PyObject *resultobj = 0;
39652 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39653 wxHelpEvent::Origin result;
39654 void *argp1 = 0 ;
39655 int res1 = 0 ;
39656 PyObject *swig_obj[1] ;
39657
39658 if (!args) SWIG_fail;
39659 swig_obj[0] = args;
39660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39661 if (!SWIG_IsOK(res1)) {
39662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39663 }
39664 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39665 {
39666 PyThreadState* __tstate = wxPyBeginAllowThreads();
39667 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39668 wxPyEndAllowThreads(__tstate);
39669 if (PyErr_Occurred()) SWIG_fail;
39670 }
39671 resultobj = SWIG_From_int(static_cast< int >(result));
39672 return resultobj;
39673 fail:
39674 return NULL;
39675 }
39676
39677
39678 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39679 PyObject *resultobj = 0;
39680 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39681 wxHelpEvent::Origin arg2 ;
39682 void *argp1 = 0 ;
39683 int res1 = 0 ;
39684 int val2 ;
39685 int ecode2 = 0 ;
39686 PyObject * obj0 = 0 ;
39687 PyObject * obj1 = 0 ;
39688 char * kwnames[] = {
39689 (char *) "self",(char *) "origin", NULL
39690 };
39691
39692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39694 if (!SWIG_IsOK(res1)) {
39695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39696 }
39697 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39698 ecode2 = SWIG_AsVal_int(obj1, &val2);
39699 if (!SWIG_IsOK(ecode2)) {
39700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39701 }
39702 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39703 {
39704 PyThreadState* __tstate = wxPyBeginAllowThreads();
39705 (arg1)->SetOrigin(arg2);
39706 wxPyEndAllowThreads(__tstate);
39707 if (PyErr_Occurred()) SWIG_fail;
39708 }
39709 resultobj = SWIG_Py_Void();
39710 return resultobj;
39711 fail:
39712 return NULL;
39713 }
39714
39715
39716 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39717 PyObject *obj;
39718 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39719 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39720 return SWIG_Py_Void();
39721 }
39722
39723 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39724 return SWIG_Python_InitShadowInstance(args);
39725 }
39726
39727 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39728 PyObject *resultobj = 0;
39729 wxWindow *arg1 = (wxWindow *) NULL ;
39730 bool arg2 = (bool) true ;
39731 wxContextHelp *result = 0 ;
39732 void *argp1 = 0 ;
39733 int res1 = 0 ;
39734 bool val2 ;
39735 int ecode2 = 0 ;
39736 PyObject * obj0 = 0 ;
39737 PyObject * obj1 = 0 ;
39738 char * kwnames[] = {
39739 (char *) "window",(char *) "doNow", NULL
39740 };
39741
39742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39743 if (obj0) {
39744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39745 if (!SWIG_IsOK(res1)) {
39746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39747 }
39748 arg1 = reinterpret_cast< wxWindow * >(argp1);
39749 }
39750 if (obj1) {
39751 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39752 if (!SWIG_IsOK(ecode2)) {
39753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39754 }
39755 arg2 = static_cast< bool >(val2);
39756 }
39757 {
39758 if (!wxPyCheckForApp()) SWIG_fail;
39759 PyThreadState* __tstate = wxPyBeginAllowThreads();
39760 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39761 wxPyEndAllowThreads(__tstate);
39762 if (PyErr_Occurred()) SWIG_fail;
39763 }
39764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39765 return resultobj;
39766 fail:
39767 return NULL;
39768 }
39769
39770
39771 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39772 PyObject *resultobj = 0;
39773 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39774 void *argp1 = 0 ;
39775 int res1 = 0 ;
39776 PyObject *swig_obj[1] ;
39777
39778 if (!args) SWIG_fail;
39779 swig_obj[0] = args;
39780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39781 if (!SWIG_IsOK(res1)) {
39782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39783 }
39784 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39785 {
39786 PyThreadState* __tstate = wxPyBeginAllowThreads();
39787 delete arg1;
39788
39789 wxPyEndAllowThreads(__tstate);
39790 if (PyErr_Occurred()) SWIG_fail;
39791 }
39792 resultobj = SWIG_Py_Void();
39793 return resultobj;
39794 fail:
39795 return NULL;
39796 }
39797
39798
39799 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39800 PyObject *resultobj = 0;
39801 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39802 wxWindow *arg2 = (wxWindow *) NULL ;
39803 bool result;
39804 void *argp1 = 0 ;
39805 int res1 = 0 ;
39806 void *argp2 = 0 ;
39807 int res2 = 0 ;
39808 PyObject * obj0 = 0 ;
39809 PyObject * obj1 = 0 ;
39810 char * kwnames[] = {
39811 (char *) "self",(char *) "window", NULL
39812 };
39813
39814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39816 if (!SWIG_IsOK(res1)) {
39817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39818 }
39819 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39820 if (obj1) {
39821 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39822 if (!SWIG_IsOK(res2)) {
39823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39824 }
39825 arg2 = reinterpret_cast< wxWindow * >(argp2);
39826 }
39827 {
39828 PyThreadState* __tstate = wxPyBeginAllowThreads();
39829 result = (bool)(arg1)->BeginContextHelp(arg2);
39830 wxPyEndAllowThreads(__tstate);
39831 if (PyErr_Occurred()) SWIG_fail;
39832 }
39833 {
39834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39835 }
39836 return resultobj;
39837 fail:
39838 return NULL;
39839 }
39840
39841
39842 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39843 PyObject *resultobj = 0;
39844 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39845 bool result;
39846 void *argp1 = 0 ;
39847 int res1 = 0 ;
39848 PyObject *swig_obj[1] ;
39849
39850 if (!args) SWIG_fail;
39851 swig_obj[0] = args;
39852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39853 if (!SWIG_IsOK(res1)) {
39854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39855 }
39856 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39857 {
39858 PyThreadState* __tstate = wxPyBeginAllowThreads();
39859 result = (bool)(arg1)->EndContextHelp();
39860 wxPyEndAllowThreads(__tstate);
39861 if (PyErr_Occurred()) SWIG_fail;
39862 }
39863 {
39864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39865 }
39866 return resultobj;
39867 fail:
39868 return NULL;
39869 }
39870
39871
39872 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39873 PyObject *obj;
39874 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39875 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39876 return SWIG_Py_Void();
39877 }
39878
39879 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39880 return SWIG_Python_InitShadowInstance(args);
39881 }
39882
39883 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39884 PyObject *resultobj = 0;
39885 wxWindow *arg1 = (wxWindow *) 0 ;
39886 int arg2 = (int) wxID_CONTEXT_HELP ;
39887 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39888 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39889 wxSize const &arg4_defvalue = wxDefaultSize ;
39890 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39891 long arg5 = (long) wxBU_AUTODRAW ;
39892 wxContextHelpButton *result = 0 ;
39893 void *argp1 = 0 ;
39894 int res1 = 0 ;
39895 int val2 ;
39896 int ecode2 = 0 ;
39897 wxPoint temp3 ;
39898 wxSize temp4 ;
39899 long val5 ;
39900 int ecode5 = 0 ;
39901 PyObject * obj0 = 0 ;
39902 PyObject * obj1 = 0 ;
39903 PyObject * obj2 = 0 ;
39904 PyObject * obj3 = 0 ;
39905 PyObject * obj4 = 0 ;
39906 char * kwnames[] = {
39907 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39908 };
39909
39910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39912 if (!SWIG_IsOK(res1)) {
39913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39914 }
39915 arg1 = reinterpret_cast< wxWindow * >(argp1);
39916 if (obj1) {
39917 ecode2 = SWIG_AsVal_int(obj1, &val2);
39918 if (!SWIG_IsOK(ecode2)) {
39919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39920 }
39921 arg2 = static_cast< int >(val2);
39922 }
39923 if (obj2) {
39924 {
39925 arg3 = &temp3;
39926 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39927 }
39928 }
39929 if (obj3) {
39930 {
39931 arg4 = &temp4;
39932 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39933 }
39934 }
39935 if (obj4) {
39936 ecode5 = SWIG_AsVal_long(obj4, &val5);
39937 if (!SWIG_IsOK(ecode5)) {
39938 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39939 }
39940 arg5 = static_cast< long >(val5);
39941 }
39942 {
39943 if (!wxPyCheckForApp()) SWIG_fail;
39944 PyThreadState* __tstate = wxPyBeginAllowThreads();
39945 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39946 wxPyEndAllowThreads(__tstate);
39947 if (PyErr_Occurred()) SWIG_fail;
39948 }
39949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39950 return resultobj;
39951 fail:
39952 return NULL;
39953 }
39954
39955
39956 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39957 PyObject *obj;
39958 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39959 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39960 return SWIG_Py_Void();
39961 }
39962
39963 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39964 return SWIG_Python_InitShadowInstance(args);
39965 }
39966
39967 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39968 PyObject *resultobj = 0;
39969 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39970 void *argp1 = 0 ;
39971 int res1 = 0 ;
39972 PyObject *swig_obj[1] ;
39973
39974 if (!args) SWIG_fail;
39975 swig_obj[0] = args;
39976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39977 if (!SWIG_IsOK(res1)) {
39978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39979 }
39980 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39981 {
39982 PyThreadState* __tstate = wxPyBeginAllowThreads();
39983 delete arg1;
39984
39985 wxPyEndAllowThreads(__tstate);
39986 if (PyErr_Occurred()) SWIG_fail;
39987 }
39988 resultobj = SWIG_Py_Void();
39989 return resultobj;
39990 fail:
39991 return NULL;
39992 }
39993
39994
39995 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39996 PyObject *resultobj = 0;
39997 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39998 wxHelpProvider *result = 0 ;
39999 int res1 = 0 ;
40000 PyObject * obj0 = 0 ;
40001 char * kwnames[] = {
40002 (char *) "helpProvider", NULL
40003 };
40004
40005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40006 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40007 if (!SWIG_IsOK(res1)) {
40008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40009 }
40010 {
40011 PyThreadState* __tstate = wxPyBeginAllowThreads();
40012 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40013 wxPyEndAllowThreads(__tstate);
40014 if (PyErr_Occurred()) SWIG_fail;
40015 }
40016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40017 return resultobj;
40018 fail:
40019 return NULL;
40020 }
40021
40022
40023 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40024 PyObject *resultobj = 0;
40025 wxHelpProvider *result = 0 ;
40026
40027 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40028 {
40029 PyThreadState* __tstate = wxPyBeginAllowThreads();
40030 result = (wxHelpProvider *)wxHelpProvider::Get();
40031 wxPyEndAllowThreads(__tstate);
40032 if (PyErr_Occurred()) SWIG_fail;
40033 }
40034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40035 return resultobj;
40036 fail:
40037 return NULL;
40038 }
40039
40040
40041 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40042 PyObject *resultobj = 0;
40043 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40044 wxWindow *arg2 = (wxWindow *) 0 ;
40045 wxString result;
40046 void *argp1 = 0 ;
40047 int res1 = 0 ;
40048 void *argp2 = 0 ;
40049 int res2 = 0 ;
40050 PyObject * obj0 = 0 ;
40051 PyObject * obj1 = 0 ;
40052 char * kwnames[] = {
40053 (char *) "self",(char *) "window", NULL
40054 };
40055
40056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40058 if (!SWIG_IsOK(res1)) {
40059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40060 }
40061 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40062 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40063 if (!SWIG_IsOK(res2)) {
40064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40065 }
40066 arg2 = reinterpret_cast< wxWindow * >(argp2);
40067 {
40068 PyThreadState* __tstate = wxPyBeginAllowThreads();
40069 result = (arg1)->GetHelp((wxWindow const *)arg2);
40070 wxPyEndAllowThreads(__tstate);
40071 if (PyErr_Occurred()) SWIG_fail;
40072 }
40073 {
40074 #if wxUSE_UNICODE
40075 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40076 #else
40077 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40078 #endif
40079 }
40080 return resultobj;
40081 fail:
40082 return NULL;
40083 }
40084
40085
40086 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40087 PyObject *resultobj = 0;
40088 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40089 wxWindow *arg2 = (wxWindow *) 0 ;
40090 bool result;
40091 void *argp1 = 0 ;
40092 int res1 = 0 ;
40093 void *argp2 = 0 ;
40094 int res2 = 0 ;
40095 PyObject * obj0 = 0 ;
40096 PyObject * obj1 = 0 ;
40097 char * kwnames[] = {
40098 (char *) "self",(char *) "window", NULL
40099 };
40100
40101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40103 if (!SWIG_IsOK(res1)) {
40104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40105 }
40106 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40107 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40108 if (!SWIG_IsOK(res2)) {
40109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40110 }
40111 arg2 = reinterpret_cast< wxWindow * >(argp2);
40112 {
40113 PyThreadState* __tstate = wxPyBeginAllowThreads();
40114 result = (bool)(arg1)->ShowHelp(arg2);
40115 wxPyEndAllowThreads(__tstate);
40116 if (PyErr_Occurred()) SWIG_fail;
40117 }
40118 {
40119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40120 }
40121 return resultobj;
40122 fail:
40123 return NULL;
40124 }
40125
40126
40127 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40128 PyObject *resultobj = 0;
40129 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40130 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40131 wxPoint *arg3 = 0 ;
40132 wxHelpEvent::Origin arg4 ;
40133 bool result;
40134 void *argp1 = 0 ;
40135 int res1 = 0 ;
40136 void *argp2 = 0 ;
40137 int res2 = 0 ;
40138 wxPoint temp3 ;
40139 int val4 ;
40140 int ecode4 = 0 ;
40141 PyObject * obj0 = 0 ;
40142 PyObject * obj1 = 0 ;
40143 PyObject * obj2 = 0 ;
40144 PyObject * obj3 = 0 ;
40145 char * kwnames[] = {
40146 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40147 };
40148
40149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40151 if (!SWIG_IsOK(res1)) {
40152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40153 }
40154 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40155 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40156 if (!SWIG_IsOK(res2)) {
40157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40158 }
40159 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40160 {
40161 arg3 = &temp3;
40162 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40163 }
40164 ecode4 = SWIG_AsVal_int(obj3, &val4);
40165 if (!SWIG_IsOK(ecode4)) {
40166 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40167 }
40168 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40169 {
40170 PyThreadState* __tstate = wxPyBeginAllowThreads();
40171 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40172 wxPyEndAllowThreads(__tstate);
40173 if (PyErr_Occurred()) SWIG_fail;
40174 }
40175 {
40176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40177 }
40178 return resultobj;
40179 fail:
40180 return NULL;
40181 }
40182
40183
40184 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40185 PyObject *resultobj = 0;
40186 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40187 wxWindow *arg2 = (wxWindow *) 0 ;
40188 wxString *arg3 = 0 ;
40189 void *argp1 = 0 ;
40190 int res1 = 0 ;
40191 void *argp2 = 0 ;
40192 int res2 = 0 ;
40193 bool temp3 = false ;
40194 PyObject * obj0 = 0 ;
40195 PyObject * obj1 = 0 ;
40196 PyObject * obj2 = 0 ;
40197 char * kwnames[] = {
40198 (char *) "self",(char *) "window",(char *) "text", NULL
40199 };
40200
40201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40203 if (!SWIG_IsOK(res1)) {
40204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40205 }
40206 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40207 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40208 if (!SWIG_IsOK(res2)) {
40209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40210 }
40211 arg2 = reinterpret_cast< wxWindow * >(argp2);
40212 {
40213 arg3 = wxString_in_helper(obj2);
40214 if (arg3 == NULL) SWIG_fail;
40215 temp3 = true;
40216 }
40217 {
40218 PyThreadState* __tstate = wxPyBeginAllowThreads();
40219 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40220 wxPyEndAllowThreads(__tstate);
40221 if (PyErr_Occurred()) SWIG_fail;
40222 }
40223 resultobj = SWIG_Py_Void();
40224 {
40225 if (temp3)
40226 delete arg3;
40227 }
40228 return resultobj;
40229 fail:
40230 {
40231 if (temp3)
40232 delete arg3;
40233 }
40234 return NULL;
40235 }
40236
40237
40238 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40239 PyObject *resultobj = 0;
40240 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40241 int arg2 ;
40242 wxString *arg3 = 0 ;
40243 void *argp1 = 0 ;
40244 int res1 = 0 ;
40245 int val2 ;
40246 int ecode2 = 0 ;
40247 bool temp3 = false ;
40248 PyObject * obj0 = 0 ;
40249 PyObject * obj1 = 0 ;
40250 PyObject * obj2 = 0 ;
40251 char * kwnames[] = {
40252 (char *) "self",(char *) "id",(char *) "text", NULL
40253 };
40254
40255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40257 if (!SWIG_IsOK(res1)) {
40258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40259 }
40260 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40261 ecode2 = SWIG_AsVal_int(obj1, &val2);
40262 if (!SWIG_IsOK(ecode2)) {
40263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40264 }
40265 arg2 = static_cast< int >(val2);
40266 {
40267 arg3 = wxString_in_helper(obj2);
40268 if (arg3 == NULL) SWIG_fail;
40269 temp3 = true;
40270 }
40271 {
40272 PyThreadState* __tstate = wxPyBeginAllowThreads();
40273 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40274 wxPyEndAllowThreads(__tstate);
40275 if (PyErr_Occurred()) SWIG_fail;
40276 }
40277 resultobj = SWIG_Py_Void();
40278 {
40279 if (temp3)
40280 delete arg3;
40281 }
40282 return resultobj;
40283 fail:
40284 {
40285 if (temp3)
40286 delete arg3;
40287 }
40288 return NULL;
40289 }
40290
40291
40292 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40293 PyObject *resultobj = 0;
40294 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40295 wxWindow *arg2 = (wxWindow *) 0 ;
40296 void *argp1 = 0 ;
40297 int res1 = 0 ;
40298 void *argp2 = 0 ;
40299 int res2 = 0 ;
40300 PyObject * obj0 = 0 ;
40301 PyObject * obj1 = 0 ;
40302 char * kwnames[] = {
40303 (char *) "self",(char *) "window", NULL
40304 };
40305
40306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40308 if (!SWIG_IsOK(res1)) {
40309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40310 }
40311 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40312 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40313 if (!SWIG_IsOK(res2)) {
40314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40315 }
40316 arg2 = reinterpret_cast< wxWindow * >(argp2);
40317 {
40318 PyThreadState* __tstate = wxPyBeginAllowThreads();
40319 (arg1)->RemoveHelp(arg2);
40320 wxPyEndAllowThreads(__tstate);
40321 if (PyErr_Occurred()) SWIG_fail;
40322 }
40323 resultobj = SWIG_Py_Void();
40324 return resultobj;
40325 fail:
40326 return NULL;
40327 }
40328
40329
40330 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40331 PyObject *resultobj = 0;
40332 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40333 void *argp1 = 0 ;
40334 int res1 = 0 ;
40335 PyObject *swig_obj[1] ;
40336
40337 if (!args) SWIG_fail;
40338 swig_obj[0] = args;
40339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40340 if (!SWIG_IsOK(res1)) {
40341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40342 }
40343 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40344 {
40345 PyThreadState* __tstate = wxPyBeginAllowThreads();
40346 wxHelpProvider_Destroy(arg1);
40347 wxPyEndAllowThreads(__tstate);
40348 if (PyErr_Occurred()) SWIG_fail;
40349 }
40350 resultobj = SWIG_Py_Void();
40351 return resultobj;
40352 fail:
40353 return NULL;
40354 }
40355
40356
40357 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40358 PyObject *obj;
40359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40360 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40361 return SWIG_Py_Void();
40362 }
40363
40364 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40365 PyObject *resultobj = 0;
40366 wxSimpleHelpProvider *result = 0 ;
40367
40368 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40369 {
40370 PyThreadState* __tstate = wxPyBeginAllowThreads();
40371 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40372 wxPyEndAllowThreads(__tstate);
40373 if (PyErr_Occurred()) SWIG_fail;
40374 }
40375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40376 return resultobj;
40377 fail:
40378 return NULL;
40379 }
40380
40381
40382 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40383 PyObject *obj;
40384 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40385 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40386 return SWIG_Py_Void();
40387 }
40388
40389 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40390 return SWIG_Python_InitShadowInstance(args);
40391 }
40392
40393 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40394 PyObject *resultobj = 0;
40395 wxBitmap *arg1 = 0 ;
40396 wxCursor const &arg2_defvalue = wxNullCursor ;
40397 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40398 wxGenericDragImage *result = 0 ;
40399 void *argp1 = 0 ;
40400 int res1 = 0 ;
40401 void *argp2 = 0 ;
40402 int res2 = 0 ;
40403 PyObject * obj0 = 0 ;
40404 PyObject * obj1 = 0 ;
40405 char * kwnames[] = {
40406 (char *) "image",(char *) "cursor", NULL
40407 };
40408
40409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40410 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40411 if (!SWIG_IsOK(res1)) {
40412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40413 }
40414 if (!argp1) {
40415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40416 }
40417 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40418 if (obj1) {
40419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40420 if (!SWIG_IsOK(res2)) {
40421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40422 }
40423 if (!argp2) {
40424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40425 }
40426 arg2 = reinterpret_cast< wxCursor * >(argp2);
40427 }
40428 {
40429 if (!wxPyCheckForApp()) SWIG_fail;
40430 PyThreadState* __tstate = wxPyBeginAllowThreads();
40431 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40432 wxPyEndAllowThreads(__tstate);
40433 if (PyErr_Occurred()) SWIG_fail;
40434 }
40435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40436 return resultobj;
40437 fail:
40438 return NULL;
40439 }
40440
40441
40442 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40443 PyObject *resultobj = 0;
40444 wxIcon *arg1 = 0 ;
40445 wxCursor const &arg2_defvalue = wxNullCursor ;
40446 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40447 wxGenericDragImage *result = 0 ;
40448 void *argp1 = 0 ;
40449 int res1 = 0 ;
40450 void *argp2 = 0 ;
40451 int res2 = 0 ;
40452 PyObject * obj0 = 0 ;
40453 PyObject * obj1 = 0 ;
40454 char * kwnames[] = {
40455 (char *) "image",(char *) "cursor", NULL
40456 };
40457
40458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40459 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40460 if (!SWIG_IsOK(res1)) {
40461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40462 }
40463 if (!argp1) {
40464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40465 }
40466 arg1 = reinterpret_cast< wxIcon * >(argp1);
40467 if (obj1) {
40468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40469 if (!SWIG_IsOK(res2)) {
40470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40471 }
40472 if (!argp2) {
40473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40474 }
40475 arg2 = reinterpret_cast< wxCursor * >(argp2);
40476 }
40477 {
40478 if (!wxPyCheckForApp()) SWIG_fail;
40479 PyThreadState* __tstate = wxPyBeginAllowThreads();
40480 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40481 wxPyEndAllowThreads(__tstate);
40482 if (PyErr_Occurred()) SWIG_fail;
40483 }
40484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40485 return resultobj;
40486 fail:
40487 return NULL;
40488 }
40489
40490
40491 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40492 PyObject *resultobj = 0;
40493 wxString *arg1 = 0 ;
40494 wxCursor const &arg2_defvalue = wxNullCursor ;
40495 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40496 wxGenericDragImage *result = 0 ;
40497 bool temp1 = false ;
40498 void *argp2 = 0 ;
40499 int res2 = 0 ;
40500 PyObject * obj0 = 0 ;
40501 PyObject * obj1 = 0 ;
40502 char * kwnames[] = {
40503 (char *) "str",(char *) "cursor", NULL
40504 };
40505
40506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40507 {
40508 arg1 = wxString_in_helper(obj0);
40509 if (arg1 == NULL) SWIG_fail;
40510 temp1 = true;
40511 }
40512 if (obj1) {
40513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40514 if (!SWIG_IsOK(res2)) {
40515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40516 }
40517 if (!argp2) {
40518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40519 }
40520 arg2 = reinterpret_cast< wxCursor * >(argp2);
40521 }
40522 {
40523 if (!wxPyCheckForApp()) SWIG_fail;
40524 PyThreadState* __tstate = wxPyBeginAllowThreads();
40525 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40526 wxPyEndAllowThreads(__tstate);
40527 if (PyErr_Occurred()) SWIG_fail;
40528 }
40529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40530 {
40531 if (temp1)
40532 delete arg1;
40533 }
40534 return resultobj;
40535 fail:
40536 {
40537 if (temp1)
40538 delete arg1;
40539 }
40540 return NULL;
40541 }
40542
40543
40544 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40545 PyObject *resultobj = 0;
40546 wxPyTreeCtrl *arg1 = 0 ;
40547 wxTreeItemId *arg2 = 0 ;
40548 wxGenericDragImage *result = 0 ;
40549 void *argp1 = 0 ;
40550 int res1 = 0 ;
40551 void *argp2 = 0 ;
40552 int res2 = 0 ;
40553 PyObject * obj0 = 0 ;
40554 PyObject * obj1 = 0 ;
40555 char * kwnames[] = {
40556 (char *) "treeCtrl",(char *) "id", NULL
40557 };
40558
40559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40560 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40561 if (!SWIG_IsOK(res1)) {
40562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40563 }
40564 if (!argp1) {
40565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40566 }
40567 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40568 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40569 if (!SWIG_IsOK(res2)) {
40570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40571 }
40572 if (!argp2) {
40573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40574 }
40575 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40576 {
40577 if (!wxPyCheckForApp()) SWIG_fail;
40578 PyThreadState* __tstate = wxPyBeginAllowThreads();
40579 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40580 wxPyEndAllowThreads(__tstate);
40581 if (PyErr_Occurred()) SWIG_fail;
40582 }
40583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40584 return resultobj;
40585 fail:
40586 return NULL;
40587 }
40588
40589
40590 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40591 PyObject *resultobj = 0;
40592 wxPyListCtrl *arg1 = 0 ;
40593 long arg2 ;
40594 wxGenericDragImage *result = 0 ;
40595 void *argp1 = 0 ;
40596 int res1 = 0 ;
40597 long val2 ;
40598 int ecode2 = 0 ;
40599 PyObject * obj0 = 0 ;
40600 PyObject * obj1 = 0 ;
40601 char * kwnames[] = {
40602 (char *) "listCtrl",(char *) "id", NULL
40603 };
40604
40605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40606 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40607 if (!SWIG_IsOK(res1)) {
40608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40609 }
40610 if (!argp1) {
40611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40612 }
40613 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40614 ecode2 = SWIG_AsVal_long(obj1, &val2);
40615 if (!SWIG_IsOK(ecode2)) {
40616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40617 }
40618 arg2 = static_cast< long >(val2);
40619 {
40620 if (!wxPyCheckForApp()) SWIG_fail;
40621 PyThreadState* __tstate = wxPyBeginAllowThreads();
40622 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40623 wxPyEndAllowThreads(__tstate);
40624 if (PyErr_Occurred()) SWIG_fail;
40625 }
40626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40627 return resultobj;
40628 fail:
40629 return NULL;
40630 }
40631
40632
40633 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40634 PyObject *resultobj = 0;
40635 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40636 void *argp1 = 0 ;
40637 int res1 = 0 ;
40638 PyObject *swig_obj[1] ;
40639
40640 if (!args) SWIG_fail;
40641 swig_obj[0] = args;
40642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40643 if (!SWIG_IsOK(res1)) {
40644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40645 }
40646 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40647 {
40648 PyThreadState* __tstate = wxPyBeginAllowThreads();
40649 delete arg1;
40650
40651 wxPyEndAllowThreads(__tstate);
40652 if (PyErr_Occurred()) SWIG_fail;
40653 }
40654 resultobj = SWIG_Py_Void();
40655 return resultobj;
40656 fail:
40657 return NULL;
40658 }
40659
40660
40661 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40662 PyObject *resultobj = 0;
40663 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40664 wxBitmap *arg2 = (wxBitmap *) 0 ;
40665 void *argp1 = 0 ;
40666 int res1 = 0 ;
40667 void *argp2 = 0 ;
40668 int res2 = 0 ;
40669 PyObject * obj0 = 0 ;
40670 PyObject * obj1 = 0 ;
40671 char * kwnames[] = {
40672 (char *) "self",(char *) "bitmap", NULL
40673 };
40674
40675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40677 if (!SWIG_IsOK(res1)) {
40678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40679 }
40680 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40681 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40682 if (!SWIG_IsOK(res2)) {
40683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40684 }
40685 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40686 {
40687 PyThreadState* __tstate = wxPyBeginAllowThreads();
40688 (arg1)->SetBackingBitmap(arg2);
40689 wxPyEndAllowThreads(__tstate);
40690 if (PyErr_Occurred()) SWIG_fail;
40691 }
40692 resultobj = SWIG_Py_Void();
40693 return resultobj;
40694 fail:
40695 return NULL;
40696 }
40697
40698
40699 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40700 PyObject *resultobj = 0;
40701 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40702 wxPoint *arg2 = 0 ;
40703 wxWindow *arg3 = (wxWindow *) 0 ;
40704 bool arg4 = (bool) false ;
40705 wxRect *arg5 = (wxRect *) NULL ;
40706 bool result;
40707 void *argp1 = 0 ;
40708 int res1 = 0 ;
40709 wxPoint temp2 ;
40710 void *argp3 = 0 ;
40711 int res3 = 0 ;
40712 bool val4 ;
40713 int ecode4 = 0 ;
40714 void *argp5 = 0 ;
40715 int res5 = 0 ;
40716 PyObject * obj0 = 0 ;
40717 PyObject * obj1 = 0 ;
40718 PyObject * obj2 = 0 ;
40719 PyObject * obj3 = 0 ;
40720 PyObject * obj4 = 0 ;
40721 char * kwnames[] = {
40722 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40723 };
40724
40725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40727 if (!SWIG_IsOK(res1)) {
40728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40729 }
40730 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40731 {
40732 arg2 = &temp2;
40733 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40734 }
40735 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40736 if (!SWIG_IsOK(res3)) {
40737 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40738 }
40739 arg3 = reinterpret_cast< wxWindow * >(argp3);
40740 if (obj3) {
40741 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40742 if (!SWIG_IsOK(ecode4)) {
40743 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40744 }
40745 arg4 = static_cast< bool >(val4);
40746 }
40747 if (obj4) {
40748 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40749 if (!SWIG_IsOK(res5)) {
40750 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40751 }
40752 arg5 = reinterpret_cast< wxRect * >(argp5);
40753 }
40754 {
40755 PyThreadState* __tstate = wxPyBeginAllowThreads();
40756 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40757 wxPyEndAllowThreads(__tstate);
40758 if (PyErr_Occurred()) SWIG_fail;
40759 }
40760 {
40761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40762 }
40763 return resultobj;
40764 fail:
40765 return NULL;
40766 }
40767
40768
40769 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40770 PyObject *resultobj = 0;
40771 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40772 wxPoint *arg2 = 0 ;
40773 wxWindow *arg3 = (wxWindow *) 0 ;
40774 wxWindow *arg4 = (wxWindow *) 0 ;
40775 bool result;
40776 void *argp1 = 0 ;
40777 int res1 = 0 ;
40778 wxPoint temp2 ;
40779 void *argp3 = 0 ;
40780 int res3 = 0 ;
40781 void *argp4 = 0 ;
40782 int res4 = 0 ;
40783 PyObject * obj0 = 0 ;
40784 PyObject * obj1 = 0 ;
40785 PyObject * obj2 = 0 ;
40786 PyObject * obj3 = 0 ;
40787 char * kwnames[] = {
40788 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40789 };
40790
40791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40793 if (!SWIG_IsOK(res1)) {
40794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40795 }
40796 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40797 {
40798 arg2 = &temp2;
40799 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40800 }
40801 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40802 if (!SWIG_IsOK(res3)) {
40803 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40804 }
40805 arg3 = reinterpret_cast< wxWindow * >(argp3);
40806 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40807 if (!SWIG_IsOK(res4)) {
40808 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40809 }
40810 arg4 = reinterpret_cast< wxWindow * >(argp4);
40811 {
40812 PyThreadState* __tstate = wxPyBeginAllowThreads();
40813 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40814 wxPyEndAllowThreads(__tstate);
40815 if (PyErr_Occurred()) SWIG_fail;
40816 }
40817 {
40818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40819 }
40820 return resultobj;
40821 fail:
40822 return NULL;
40823 }
40824
40825
40826 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40827 PyObject *resultobj = 0;
40828 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40829 bool result;
40830 void *argp1 = 0 ;
40831 int res1 = 0 ;
40832 PyObject *swig_obj[1] ;
40833
40834 if (!args) SWIG_fail;
40835 swig_obj[0] = args;
40836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40837 if (!SWIG_IsOK(res1)) {
40838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40839 }
40840 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40841 {
40842 PyThreadState* __tstate = wxPyBeginAllowThreads();
40843 result = (bool)(arg1)->EndDrag();
40844 wxPyEndAllowThreads(__tstate);
40845 if (PyErr_Occurred()) SWIG_fail;
40846 }
40847 {
40848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40849 }
40850 return resultobj;
40851 fail:
40852 return NULL;
40853 }
40854
40855
40856 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40857 PyObject *resultobj = 0;
40858 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40859 wxPoint *arg2 = 0 ;
40860 bool result;
40861 void *argp1 = 0 ;
40862 int res1 = 0 ;
40863 wxPoint temp2 ;
40864 PyObject * obj0 = 0 ;
40865 PyObject * obj1 = 0 ;
40866 char * kwnames[] = {
40867 (char *) "self",(char *) "pt", NULL
40868 };
40869
40870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40872 if (!SWIG_IsOK(res1)) {
40873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40874 }
40875 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40876 {
40877 arg2 = &temp2;
40878 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40879 }
40880 {
40881 PyThreadState* __tstate = wxPyBeginAllowThreads();
40882 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40883 wxPyEndAllowThreads(__tstate);
40884 if (PyErr_Occurred()) SWIG_fail;
40885 }
40886 {
40887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40888 }
40889 return resultobj;
40890 fail:
40891 return NULL;
40892 }
40893
40894
40895 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40896 PyObject *resultobj = 0;
40897 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40898 bool result;
40899 void *argp1 = 0 ;
40900 int res1 = 0 ;
40901 PyObject *swig_obj[1] ;
40902
40903 if (!args) SWIG_fail;
40904 swig_obj[0] = args;
40905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40906 if (!SWIG_IsOK(res1)) {
40907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40908 }
40909 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40910 {
40911 PyThreadState* __tstate = wxPyBeginAllowThreads();
40912 result = (bool)(arg1)->Show();
40913 wxPyEndAllowThreads(__tstate);
40914 if (PyErr_Occurred()) SWIG_fail;
40915 }
40916 {
40917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40918 }
40919 return resultobj;
40920 fail:
40921 return NULL;
40922 }
40923
40924
40925 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40926 PyObject *resultobj = 0;
40927 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40928 bool result;
40929 void *argp1 = 0 ;
40930 int res1 = 0 ;
40931 PyObject *swig_obj[1] ;
40932
40933 if (!args) SWIG_fail;
40934 swig_obj[0] = args;
40935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40936 if (!SWIG_IsOK(res1)) {
40937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40938 }
40939 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40940 {
40941 PyThreadState* __tstate = wxPyBeginAllowThreads();
40942 result = (bool)(arg1)->Hide();
40943 wxPyEndAllowThreads(__tstate);
40944 if (PyErr_Occurred()) SWIG_fail;
40945 }
40946 {
40947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40948 }
40949 return resultobj;
40950 fail:
40951 return NULL;
40952 }
40953
40954
40955 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40956 PyObject *resultobj = 0;
40957 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40958 wxPoint *arg2 = 0 ;
40959 wxRect result;
40960 void *argp1 = 0 ;
40961 int res1 = 0 ;
40962 wxPoint temp2 ;
40963 PyObject * obj0 = 0 ;
40964 PyObject * obj1 = 0 ;
40965 char * kwnames[] = {
40966 (char *) "self",(char *) "pos", NULL
40967 };
40968
40969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40971 if (!SWIG_IsOK(res1)) {
40972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40973 }
40974 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40975 {
40976 arg2 = &temp2;
40977 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40978 }
40979 {
40980 PyThreadState* __tstate = wxPyBeginAllowThreads();
40981 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40982 wxPyEndAllowThreads(__tstate);
40983 if (PyErr_Occurred()) SWIG_fail;
40984 }
40985 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40986 return resultobj;
40987 fail:
40988 return NULL;
40989 }
40990
40991
40992 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40993 PyObject *resultobj = 0;
40994 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40995 wxDC *arg2 = 0 ;
40996 wxPoint *arg3 = 0 ;
40997 bool result;
40998 void *argp1 = 0 ;
40999 int res1 = 0 ;
41000 void *argp2 = 0 ;
41001 int res2 = 0 ;
41002 wxPoint temp3 ;
41003 PyObject * obj0 = 0 ;
41004 PyObject * obj1 = 0 ;
41005 PyObject * obj2 = 0 ;
41006 char * kwnames[] = {
41007 (char *) "self",(char *) "dc",(char *) "pos", NULL
41008 };
41009
41010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41012 if (!SWIG_IsOK(res1)) {
41013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41014 }
41015 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41017 if (!SWIG_IsOK(res2)) {
41018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41019 }
41020 if (!argp2) {
41021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41022 }
41023 arg2 = reinterpret_cast< wxDC * >(argp2);
41024 {
41025 arg3 = &temp3;
41026 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41027 }
41028 {
41029 PyThreadState* __tstate = wxPyBeginAllowThreads();
41030 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41031 wxPyEndAllowThreads(__tstate);
41032 if (PyErr_Occurred()) SWIG_fail;
41033 }
41034 {
41035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41036 }
41037 return resultobj;
41038 fail:
41039 return NULL;
41040 }
41041
41042
41043 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41044 PyObject *resultobj = 0;
41045 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41046 wxDC *arg2 = 0 ;
41047 wxMemoryDC *arg3 = 0 ;
41048 wxRect *arg4 = 0 ;
41049 wxRect *arg5 = 0 ;
41050 bool result;
41051 void *argp1 = 0 ;
41052 int res1 = 0 ;
41053 void *argp2 = 0 ;
41054 int res2 = 0 ;
41055 void *argp3 = 0 ;
41056 int res3 = 0 ;
41057 wxRect temp4 ;
41058 wxRect temp5 ;
41059 PyObject * obj0 = 0 ;
41060 PyObject * obj1 = 0 ;
41061 PyObject * obj2 = 0 ;
41062 PyObject * obj3 = 0 ;
41063 PyObject * obj4 = 0 ;
41064 char * kwnames[] = {
41065 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41066 };
41067
41068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41070 if (!SWIG_IsOK(res1)) {
41071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41072 }
41073 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41075 if (!SWIG_IsOK(res2)) {
41076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41077 }
41078 if (!argp2) {
41079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41080 }
41081 arg2 = reinterpret_cast< wxDC * >(argp2);
41082 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41083 if (!SWIG_IsOK(res3)) {
41084 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41085 }
41086 if (!argp3) {
41087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41088 }
41089 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41090 {
41091 arg4 = &temp4;
41092 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41093 }
41094 {
41095 arg5 = &temp5;
41096 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41097 }
41098 {
41099 PyThreadState* __tstate = wxPyBeginAllowThreads();
41100 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41101 wxPyEndAllowThreads(__tstate);
41102 if (PyErr_Occurred()) SWIG_fail;
41103 }
41104 {
41105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41106 }
41107 return resultobj;
41108 fail:
41109 return NULL;
41110 }
41111
41112
41113 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41114 PyObject *resultobj = 0;
41115 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41116 wxPoint *arg2 = 0 ;
41117 wxPoint *arg3 = 0 ;
41118 bool arg4 ;
41119 bool arg5 ;
41120 bool result;
41121 void *argp1 = 0 ;
41122 int res1 = 0 ;
41123 wxPoint temp2 ;
41124 wxPoint temp3 ;
41125 bool val4 ;
41126 int ecode4 = 0 ;
41127 bool val5 ;
41128 int ecode5 = 0 ;
41129 PyObject * obj0 = 0 ;
41130 PyObject * obj1 = 0 ;
41131 PyObject * obj2 = 0 ;
41132 PyObject * obj3 = 0 ;
41133 PyObject * obj4 = 0 ;
41134 char * kwnames[] = {
41135 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41136 };
41137
41138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41140 if (!SWIG_IsOK(res1)) {
41141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41142 }
41143 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41144 {
41145 arg2 = &temp2;
41146 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41147 }
41148 {
41149 arg3 = &temp3;
41150 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41151 }
41152 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41153 if (!SWIG_IsOK(ecode4)) {
41154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41155 }
41156 arg4 = static_cast< bool >(val4);
41157 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41158 if (!SWIG_IsOK(ecode5)) {
41159 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41160 }
41161 arg5 = static_cast< bool >(val5);
41162 {
41163 PyThreadState* __tstate = wxPyBeginAllowThreads();
41164 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41165 wxPyEndAllowThreads(__tstate);
41166 if (PyErr_Occurred()) SWIG_fail;
41167 }
41168 {
41169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41170 }
41171 return resultobj;
41172 fail:
41173 return NULL;
41174 }
41175
41176
41177 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41178 PyObject *obj;
41179 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41180 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41181 return SWIG_Py_Void();
41182 }
41183
41184 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41185 return SWIG_Python_InitShadowInstance(args);
41186 }
41187
41188 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41189 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41190 return 1;
41191 }
41192
41193
41194 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41195 PyObject *pyobj = 0;
41196
41197 {
41198 #if wxUSE_UNICODE
41199 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41200 #else
41201 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41202 #endif
41203 }
41204 return pyobj;
41205 }
41206
41207
41208 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41209 PyObject *resultobj = 0;
41210 wxWindow *arg1 = (wxWindow *) 0 ;
41211 int arg2 = (int) -1 ;
41212 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41213 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41214 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41215 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41216 wxSize const &arg5_defvalue = wxDefaultSize ;
41217 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41218 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41219 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41220 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41221 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41222 wxString *arg8 = (wxString *) &arg8_defvalue ;
41223 wxDatePickerCtrl *result = 0 ;
41224 void *argp1 = 0 ;
41225 int res1 = 0 ;
41226 int val2 ;
41227 int ecode2 = 0 ;
41228 void *argp3 = 0 ;
41229 int res3 = 0 ;
41230 wxPoint temp4 ;
41231 wxSize temp5 ;
41232 long val6 ;
41233 int ecode6 = 0 ;
41234 void *argp7 = 0 ;
41235 int res7 = 0 ;
41236 bool temp8 = false ;
41237 PyObject * obj0 = 0 ;
41238 PyObject * obj1 = 0 ;
41239 PyObject * obj2 = 0 ;
41240 PyObject * obj3 = 0 ;
41241 PyObject * obj4 = 0 ;
41242 PyObject * obj5 = 0 ;
41243 PyObject * obj6 = 0 ;
41244 PyObject * obj7 = 0 ;
41245 char * kwnames[] = {
41246 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41247 };
41248
41249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41251 if (!SWIG_IsOK(res1)) {
41252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41253 }
41254 arg1 = reinterpret_cast< wxWindow * >(argp1);
41255 if (obj1) {
41256 ecode2 = SWIG_AsVal_int(obj1, &val2);
41257 if (!SWIG_IsOK(ecode2)) {
41258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41259 }
41260 arg2 = static_cast< int >(val2);
41261 }
41262 if (obj2) {
41263 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41264 if (!SWIG_IsOK(res3)) {
41265 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41266 }
41267 if (!argp3) {
41268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41269 }
41270 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41271 }
41272 if (obj3) {
41273 {
41274 arg4 = &temp4;
41275 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41276 }
41277 }
41278 if (obj4) {
41279 {
41280 arg5 = &temp5;
41281 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41282 }
41283 }
41284 if (obj5) {
41285 ecode6 = SWIG_AsVal_long(obj5, &val6);
41286 if (!SWIG_IsOK(ecode6)) {
41287 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41288 }
41289 arg6 = static_cast< long >(val6);
41290 }
41291 if (obj6) {
41292 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41293 if (!SWIG_IsOK(res7)) {
41294 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41295 }
41296 if (!argp7) {
41297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41298 }
41299 arg7 = reinterpret_cast< wxValidator * >(argp7);
41300 }
41301 if (obj7) {
41302 {
41303 arg8 = wxString_in_helper(obj7);
41304 if (arg8 == NULL) SWIG_fail;
41305 temp8 = true;
41306 }
41307 }
41308 {
41309 if (!wxPyCheckForApp()) SWIG_fail;
41310 PyThreadState* __tstate = wxPyBeginAllowThreads();
41311 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41312 wxPyEndAllowThreads(__tstate);
41313 if (PyErr_Occurred()) SWIG_fail;
41314 }
41315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41316 {
41317 if (temp8)
41318 delete arg8;
41319 }
41320 return resultobj;
41321 fail:
41322 {
41323 if (temp8)
41324 delete arg8;
41325 }
41326 return NULL;
41327 }
41328
41329
41330 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41331 PyObject *resultobj = 0;
41332 wxDatePickerCtrl *result = 0 ;
41333
41334 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41335 {
41336 if (!wxPyCheckForApp()) SWIG_fail;
41337 PyThreadState* __tstate = wxPyBeginAllowThreads();
41338 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41339 wxPyEndAllowThreads(__tstate);
41340 if (PyErr_Occurred()) SWIG_fail;
41341 }
41342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41343 return resultobj;
41344 fail:
41345 return NULL;
41346 }
41347
41348
41349 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41350 PyObject *resultobj = 0;
41351 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41352 wxWindow *arg2 = (wxWindow *) 0 ;
41353 int arg3 = (int) -1 ;
41354 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41355 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41356 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41357 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41358 wxSize const &arg6_defvalue = wxDefaultSize ;
41359 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41360 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41361 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41362 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41363 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41364 wxString *arg9 = (wxString *) &arg9_defvalue ;
41365 bool result;
41366 void *argp1 = 0 ;
41367 int res1 = 0 ;
41368 void *argp2 = 0 ;
41369 int res2 = 0 ;
41370 int val3 ;
41371 int ecode3 = 0 ;
41372 void *argp4 = 0 ;
41373 int res4 = 0 ;
41374 wxPoint temp5 ;
41375 wxSize temp6 ;
41376 long val7 ;
41377 int ecode7 = 0 ;
41378 void *argp8 = 0 ;
41379 int res8 = 0 ;
41380 bool temp9 = false ;
41381 PyObject * obj0 = 0 ;
41382 PyObject * obj1 = 0 ;
41383 PyObject * obj2 = 0 ;
41384 PyObject * obj3 = 0 ;
41385 PyObject * obj4 = 0 ;
41386 PyObject * obj5 = 0 ;
41387 PyObject * obj6 = 0 ;
41388 PyObject * obj7 = 0 ;
41389 PyObject * obj8 = 0 ;
41390 char * kwnames[] = {
41391 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41392 };
41393
41394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41396 if (!SWIG_IsOK(res1)) {
41397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41398 }
41399 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41400 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41401 if (!SWIG_IsOK(res2)) {
41402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41403 }
41404 arg2 = reinterpret_cast< wxWindow * >(argp2);
41405 if (obj2) {
41406 ecode3 = SWIG_AsVal_int(obj2, &val3);
41407 if (!SWIG_IsOK(ecode3)) {
41408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41409 }
41410 arg3 = static_cast< int >(val3);
41411 }
41412 if (obj3) {
41413 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41414 if (!SWIG_IsOK(res4)) {
41415 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41416 }
41417 if (!argp4) {
41418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41419 }
41420 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41421 }
41422 if (obj4) {
41423 {
41424 arg5 = &temp5;
41425 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41426 }
41427 }
41428 if (obj5) {
41429 {
41430 arg6 = &temp6;
41431 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41432 }
41433 }
41434 if (obj6) {
41435 ecode7 = SWIG_AsVal_long(obj6, &val7);
41436 if (!SWIG_IsOK(ecode7)) {
41437 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41438 }
41439 arg7 = static_cast< long >(val7);
41440 }
41441 if (obj7) {
41442 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41443 if (!SWIG_IsOK(res8)) {
41444 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41445 }
41446 if (!argp8) {
41447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41448 }
41449 arg8 = reinterpret_cast< wxValidator * >(argp8);
41450 }
41451 if (obj8) {
41452 {
41453 arg9 = wxString_in_helper(obj8);
41454 if (arg9 == NULL) SWIG_fail;
41455 temp9 = true;
41456 }
41457 }
41458 {
41459 PyThreadState* __tstate = wxPyBeginAllowThreads();
41460 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41461 wxPyEndAllowThreads(__tstate);
41462 if (PyErr_Occurred()) SWIG_fail;
41463 }
41464 {
41465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41466 }
41467 {
41468 if (temp9)
41469 delete arg9;
41470 }
41471 return resultobj;
41472 fail:
41473 {
41474 if (temp9)
41475 delete arg9;
41476 }
41477 return NULL;
41478 }
41479
41480
41481 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41482 PyObject *resultobj = 0;
41483 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41484 wxDateTime *arg2 = 0 ;
41485 void *argp1 = 0 ;
41486 int res1 = 0 ;
41487 void *argp2 = 0 ;
41488 int res2 = 0 ;
41489 PyObject * obj0 = 0 ;
41490 PyObject * obj1 = 0 ;
41491 char * kwnames[] = {
41492 (char *) "self",(char *) "dt", NULL
41493 };
41494
41495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41497 if (!SWIG_IsOK(res1)) {
41498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41499 }
41500 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41501 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41502 if (!SWIG_IsOK(res2)) {
41503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41504 }
41505 if (!argp2) {
41506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41507 }
41508 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41509 {
41510 PyThreadState* __tstate = wxPyBeginAllowThreads();
41511 (arg1)->SetValue((wxDateTime const &)*arg2);
41512 wxPyEndAllowThreads(__tstate);
41513 if (PyErr_Occurred()) SWIG_fail;
41514 }
41515 resultobj = SWIG_Py_Void();
41516 return resultobj;
41517 fail:
41518 return NULL;
41519 }
41520
41521
41522 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41523 PyObject *resultobj = 0;
41524 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41525 wxDateTime result;
41526 void *argp1 = 0 ;
41527 int res1 = 0 ;
41528 PyObject *swig_obj[1] ;
41529
41530 if (!args) SWIG_fail;
41531 swig_obj[0] = args;
41532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41533 if (!SWIG_IsOK(res1)) {
41534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41535 }
41536 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41537 {
41538 PyThreadState* __tstate = wxPyBeginAllowThreads();
41539 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41540 wxPyEndAllowThreads(__tstate);
41541 if (PyErr_Occurred()) SWIG_fail;
41542 }
41543 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41544 return resultobj;
41545 fail:
41546 return NULL;
41547 }
41548
41549
41550 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41551 PyObject *resultobj = 0;
41552 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41553 wxDateTime *arg2 = 0 ;
41554 wxDateTime *arg3 = 0 ;
41555 void *argp1 = 0 ;
41556 int res1 = 0 ;
41557 void *argp2 = 0 ;
41558 int res2 = 0 ;
41559 void *argp3 = 0 ;
41560 int res3 = 0 ;
41561 PyObject * obj0 = 0 ;
41562 PyObject * obj1 = 0 ;
41563 PyObject * obj2 = 0 ;
41564 char * kwnames[] = {
41565 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41566 };
41567
41568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41570 if (!SWIG_IsOK(res1)) {
41571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41572 }
41573 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41574 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41575 if (!SWIG_IsOK(res2)) {
41576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41577 }
41578 if (!argp2) {
41579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41580 }
41581 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41582 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41583 if (!SWIG_IsOK(res3)) {
41584 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41585 }
41586 if (!argp3) {
41587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41588 }
41589 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41590 {
41591 PyThreadState* __tstate = wxPyBeginAllowThreads();
41592 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41593 wxPyEndAllowThreads(__tstate);
41594 if (PyErr_Occurred()) SWIG_fail;
41595 }
41596 resultobj = SWIG_Py_Void();
41597 return resultobj;
41598 fail:
41599 return NULL;
41600 }
41601
41602
41603 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41604 PyObject *resultobj = 0;
41605 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41606 wxDateTime result;
41607 void *argp1 = 0 ;
41608 int res1 = 0 ;
41609 PyObject *swig_obj[1] ;
41610
41611 if (!args) SWIG_fail;
41612 swig_obj[0] = args;
41613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41614 if (!SWIG_IsOK(res1)) {
41615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41616 }
41617 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41618 {
41619 PyThreadState* __tstate = wxPyBeginAllowThreads();
41620 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41621 wxPyEndAllowThreads(__tstate);
41622 if (PyErr_Occurred()) SWIG_fail;
41623 }
41624 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41625 return resultobj;
41626 fail:
41627 return NULL;
41628 }
41629
41630
41631 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41632 PyObject *resultobj = 0;
41633 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41634 wxDateTime result;
41635 void *argp1 = 0 ;
41636 int res1 = 0 ;
41637 PyObject *swig_obj[1] ;
41638
41639 if (!args) SWIG_fail;
41640 swig_obj[0] = args;
41641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41642 if (!SWIG_IsOK(res1)) {
41643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41644 }
41645 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41646 {
41647 PyThreadState* __tstate = wxPyBeginAllowThreads();
41648 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41649 wxPyEndAllowThreads(__tstate);
41650 if (PyErr_Occurred()) SWIG_fail;
41651 }
41652 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41653 return resultobj;
41654 fail:
41655 return NULL;
41656 }
41657
41658
41659 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41660 PyObject *obj;
41661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41662 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41663 return SWIG_Py_Void();
41664 }
41665
41666 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41667 return SWIG_Python_InitShadowInstance(args);
41668 }
41669
41670 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41671 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41672 return 1;
41673 }
41674
41675
41676 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41677 PyObject *pyobj = 0;
41678
41679 {
41680 #if wxUSE_UNICODE
41681 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41682 #else
41683 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41684 #endif
41685 }
41686 return pyobj;
41687 }
41688
41689
41690 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41691 PyObject *resultobj = 0;
41692 wxWindow *arg1 = (wxWindow *) 0 ;
41693 int arg2 ;
41694 wxString *arg3 = 0 ;
41695 wxString *arg4 = 0 ;
41696 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41697 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41698 wxSize const &arg6_defvalue = wxDefaultSize ;
41699 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41700 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41701 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41702 wxString *arg8 = (wxString *) &arg8_defvalue ;
41703 wxHyperlinkCtrl *result = 0 ;
41704 void *argp1 = 0 ;
41705 int res1 = 0 ;
41706 int val2 ;
41707 int ecode2 = 0 ;
41708 bool temp3 = false ;
41709 bool temp4 = false ;
41710 wxPoint temp5 ;
41711 wxSize temp6 ;
41712 long val7 ;
41713 int ecode7 = 0 ;
41714 bool temp8 = false ;
41715 PyObject * obj0 = 0 ;
41716 PyObject * obj1 = 0 ;
41717 PyObject * obj2 = 0 ;
41718 PyObject * obj3 = 0 ;
41719 PyObject * obj4 = 0 ;
41720 PyObject * obj5 = 0 ;
41721 PyObject * obj6 = 0 ;
41722 PyObject * obj7 = 0 ;
41723 char * kwnames[] = {
41724 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41725 };
41726
41727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41729 if (!SWIG_IsOK(res1)) {
41730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41731 }
41732 arg1 = reinterpret_cast< wxWindow * >(argp1);
41733 ecode2 = SWIG_AsVal_int(obj1, &val2);
41734 if (!SWIG_IsOK(ecode2)) {
41735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41736 }
41737 arg2 = static_cast< int >(val2);
41738 {
41739 arg3 = wxString_in_helper(obj2);
41740 if (arg3 == NULL) SWIG_fail;
41741 temp3 = true;
41742 }
41743 {
41744 arg4 = wxString_in_helper(obj3);
41745 if (arg4 == NULL) SWIG_fail;
41746 temp4 = true;
41747 }
41748 if (obj4) {
41749 {
41750 arg5 = &temp5;
41751 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41752 }
41753 }
41754 if (obj5) {
41755 {
41756 arg6 = &temp6;
41757 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41758 }
41759 }
41760 if (obj6) {
41761 ecode7 = SWIG_AsVal_long(obj6, &val7);
41762 if (!SWIG_IsOK(ecode7)) {
41763 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41764 }
41765 arg7 = static_cast< long >(val7);
41766 }
41767 if (obj7) {
41768 {
41769 arg8 = wxString_in_helper(obj7);
41770 if (arg8 == NULL) SWIG_fail;
41771 temp8 = true;
41772 }
41773 }
41774 {
41775 if (!wxPyCheckForApp()) SWIG_fail;
41776 PyThreadState* __tstate = wxPyBeginAllowThreads();
41777 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41778 wxPyEndAllowThreads(__tstate);
41779 if (PyErr_Occurred()) SWIG_fail;
41780 }
41781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41782 {
41783 if (temp3)
41784 delete arg3;
41785 }
41786 {
41787 if (temp4)
41788 delete arg4;
41789 }
41790 {
41791 if (temp8)
41792 delete arg8;
41793 }
41794 return resultobj;
41795 fail:
41796 {
41797 if (temp3)
41798 delete arg3;
41799 }
41800 {
41801 if (temp4)
41802 delete arg4;
41803 }
41804 {
41805 if (temp8)
41806 delete arg8;
41807 }
41808 return NULL;
41809 }
41810
41811
41812 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41813 PyObject *resultobj = 0;
41814 wxHyperlinkCtrl *result = 0 ;
41815
41816 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41817 {
41818 if (!wxPyCheckForApp()) SWIG_fail;
41819 PyThreadState* __tstate = wxPyBeginAllowThreads();
41820 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41821 wxPyEndAllowThreads(__tstate);
41822 if (PyErr_Occurred()) SWIG_fail;
41823 }
41824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41825 return resultobj;
41826 fail:
41827 return NULL;
41828 }
41829
41830
41831 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41832 PyObject *resultobj = 0;
41833 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41834 wxWindow *arg2 = (wxWindow *) 0 ;
41835 int arg3 ;
41836 wxString *arg4 = 0 ;
41837 wxString *arg5 = 0 ;
41838 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41839 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41840 wxSize const &arg7_defvalue = wxDefaultSize ;
41841 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41842 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41843 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41844 wxString *arg9 = (wxString *) &arg9_defvalue ;
41845 bool result;
41846 void *argp1 = 0 ;
41847 int res1 = 0 ;
41848 void *argp2 = 0 ;
41849 int res2 = 0 ;
41850 int val3 ;
41851 int ecode3 = 0 ;
41852 bool temp4 = false ;
41853 bool temp5 = false ;
41854 wxPoint temp6 ;
41855 wxSize temp7 ;
41856 long val8 ;
41857 int ecode8 = 0 ;
41858 bool temp9 = false ;
41859 PyObject * obj0 = 0 ;
41860 PyObject * obj1 = 0 ;
41861 PyObject * obj2 = 0 ;
41862 PyObject * obj3 = 0 ;
41863 PyObject * obj4 = 0 ;
41864 PyObject * obj5 = 0 ;
41865 PyObject * obj6 = 0 ;
41866 PyObject * obj7 = 0 ;
41867 PyObject * obj8 = 0 ;
41868 char * kwnames[] = {
41869 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41870 };
41871
41872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41874 if (!SWIG_IsOK(res1)) {
41875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41876 }
41877 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41878 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41879 if (!SWIG_IsOK(res2)) {
41880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41881 }
41882 arg2 = reinterpret_cast< wxWindow * >(argp2);
41883 ecode3 = SWIG_AsVal_int(obj2, &val3);
41884 if (!SWIG_IsOK(ecode3)) {
41885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41886 }
41887 arg3 = static_cast< int >(val3);
41888 {
41889 arg4 = wxString_in_helper(obj3);
41890 if (arg4 == NULL) SWIG_fail;
41891 temp4 = true;
41892 }
41893 {
41894 arg5 = wxString_in_helper(obj4);
41895 if (arg5 == NULL) SWIG_fail;
41896 temp5 = true;
41897 }
41898 if (obj5) {
41899 {
41900 arg6 = &temp6;
41901 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41902 }
41903 }
41904 if (obj6) {
41905 {
41906 arg7 = &temp7;
41907 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41908 }
41909 }
41910 if (obj7) {
41911 ecode8 = SWIG_AsVal_long(obj7, &val8);
41912 if (!SWIG_IsOK(ecode8)) {
41913 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41914 }
41915 arg8 = static_cast< long >(val8);
41916 }
41917 if (obj8) {
41918 {
41919 arg9 = wxString_in_helper(obj8);
41920 if (arg9 == NULL) SWIG_fail;
41921 temp9 = true;
41922 }
41923 }
41924 {
41925 PyThreadState* __tstate = wxPyBeginAllowThreads();
41926 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41927 wxPyEndAllowThreads(__tstate);
41928 if (PyErr_Occurred()) SWIG_fail;
41929 }
41930 {
41931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41932 }
41933 {
41934 if (temp4)
41935 delete arg4;
41936 }
41937 {
41938 if (temp5)
41939 delete arg5;
41940 }
41941 {
41942 if (temp9)
41943 delete arg9;
41944 }
41945 return resultobj;
41946 fail:
41947 {
41948 if (temp4)
41949 delete arg4;
41950 }
41951 {
41952 if (temp5)
41953 delete arg5;
41954 }
41955 {
41956 if (temp9)
41957 delete arg9;
41958 }
41959 return NULL;
41960 }
41961
41962
41963 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41964 PyObject *resultobj = 0;
41965 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41966 wxColour result;
41967 void *argp1 = 0 ;
41968 int res1 = 0 ;
41969 PyObject *swig_obj[1] ;
41970
41971 if (!args) SWIG_fail;
41972 swig_obj[0] = args;
41973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41974 if (!SWIG_IsOK(res1)) {
41975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41976 }
41977 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41978 {
41979 PyThreadState* __tstate = wxPyBeginAllowThreads();
41980 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41981 wxPyEndAllowThreads(__tstate);
41982 if (PyErr_Occurred()) SWIG_fail;
41983 }
41984 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41985 return resultobj;
41986 fail:
41987 return NULL;
41988 }
41989
41990
41991 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41992 PyObject *resultobj = 0;
41993 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41994 wxColour *arg2 = 0 ;
41995 void *argp1 = 0 ;
41996 int res1 = 0 ;
41997 wxColour temp2 ;
41998 PyObject * obj0 = 0 ;
41999 PyObject * obj1 = 0 ;
42000 char * kwnames[] = {
42001 (char *) "self",(char *) "colour", NULL
42002 };
42003
42004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42006 if (!SWIG_IsOK(res1)) {
42007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42008 }
42009 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42010 {
42011 arg2 = &temp2;
42012 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42013 }
42014 {
42015 PyThreadState* __tstate = wxPyBeginAllowThreads();
42016 (arg1)->SetHoverColour((wxColour const &)*arg2);
42017 wxPyEndAllowThreads(__tstate);
42018 if (PyErr_Occurred()) SWIG_fail;
42019 }
42020 resultobj = SWIG_Py_Void();
42021 return resultobj;
42022 fail:
42023 return NULL;
42024 }
42025
42026
42027 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42028 PyObject *resultobj = 0;
42029 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42030 wxColour 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_wxHyperlinkCtrl, 0 | 0 );
42038 if (!SWIG_IsOK(res1)) {
42039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42040 }
42041 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42042 {
42043 PyThreadState* __tstate = wxPyBeginAllowThreads();
42044 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42045 wxPyEndAllowThreads(__tstate);
42046 if (PyErr_Occurred()) SWIG_fail;
42047 }
42048 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42049 return resultobj;
42050 fail:
42051 return NULL;
42052 }
42053
42054
42055 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42056 PyObject *resultobj = 0;
42057 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42058 wxColour *arg2 = 0 ;
42059 void *argp1 = 0 ;
42060 int res1 = 0 ;
42061 wxColour temp2 ;
42062 PyObject * obj0 = 0 ;
42063 PyObject * obj1 = 0 ;
42064 char * kwnames[] = {
42065 (char *) "self",(char *) "colour", NULL
42066 };
42067
42068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42070 if (!SWIG_IsOK(res1)) {
42071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42072 }
42073 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42074 {
42075 arg2 = &temp2;
42076 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42077 }
42078 {
42079 PyThreadState* __tstate = wxPyBeginAllowThreads();
42080 (arg1)->SetNormalColour((wxColour const &)*arg2);
42081 wxPyEndAllowThreads(__tstate);
42082 if (PyErr_Occurred()) SWIG_fail;
42083 }
42084 resultobj = SWIG_Py_Void();
42085 return resultobj;
42086 fail:
42087 return NULL;
42088 }
42089
42090
42091 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42092 PyObject *resultobj = 0;
42093 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42094 wxColour result;
42095 void *argp1 = 0 ;
42096 int res1 = 0 ;
42097 PyObject *swig_obj[1] ;
42098
42099 if (!args) SWIG_fail;
42100 swig_obj[0] = args;
42101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42102 if (!SWIG_IsOK(res1)) {
42103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42104 }
42105 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42106 {
42107 PyThreadState* __tstate = wxPyBeginAllowThreads();
42108 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42109 wxPyEndAllowThreads(__tstate);
42110 if (PyErr_Occurred()) SWIG_fail;
42111 }
42112 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42113 return resultobj;
42114 fail:
42115 return NULL;
42116 }
42117
42118
42119 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42120 PyObject *resultobj = 0;
42121 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42122 wxColour *arg2 = 0 ;
42123 void *argp1 = 0 ;
42124 int res1 = 0 ;
42125 wxColour temp2 ;
42126 PyObject * obj0 = 0 ;
42127 PyObject * obj1 = 0 ;
42128 char * kwnames[] = {
42129 (char *) "self",(char *) "colour", NULL
42130 };
42131
42132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42134 if (!SWIG_IsOK(res1)) {
42135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42136 }
42137 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42138 {
42139 arg2 = &temp2;
42140 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42141 }
42142 {
42143 PyThreadState* __tstate = wxPyBeginAllowThreads();
42144 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42145 wxPyEndAllowThreads(__tstate);
42146 if (PyErr_Occurred()) SWIG_fail;
42147 }
42148 resultobj = SWIG_Py_Void();
42149 return resultobj;
42150 fail:
42151 return NULL;
42152 }
42153
42154
42155 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42156 PyObject *resultobj = 0;
42157 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42158 wxString result;
42159 void *argp1 = 0 ;
42160 int res1 = 0 ;
42161 PyObject *swig_obj[1] ;
42162
42163 if (!args) SWIG_fail;
42164 swig_obj[0] = args;
42165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42166 if (!SWIG_IsOK(res1)) {
42167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42168 }
42169 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42170 {
42171 PyThreadState* __tstate = wxPyBeginAllowThreads();
42172 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42173 wxPyEndAllowThreads(__tstate);
42174 if (PyErr_Occurred()) SWIG_fail;
42175 }
42176 {
42177 #if wxUSE_UNICODE
42178 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42179 #else
42180 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42181 #endif
42182 }
42183 return resultobj;
42184 fail:
42185 return NULL;
42186 }
42187
42188
42189 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42190 PyObject *resultobj = 0;
42191 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42192 wxString *arg2 = 0 ;
42193 void *argp1 = 0 ;
42194 int res1 = 0 ;
42195 bool temp2 = false ;
42196 PyObject * obj0 = 0 ;
42197 PyObject * obj1 = 0 ;
42198 char * kwnames[] = {
42199 (char *) "self",(char *) "url", NULL
42200 };
42201
42202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42204 if (!SWIG_IsOK(res1)) {
42205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42206 }
42207 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42208 {
42209 arg2 = wxString_in_helper(obj1);
42210 if (arg2 == NULL) SWIG_fail;
42211 temp2 = true;
42212 }
42213 {
42214 PyThreadState* __tstate = wxPyBeginAllowThreads();
42215 (arg1)->SetURL((wxString const &)*arg2);
42216 wxPyEndAllowThreads(__tstate);
42217 if (PyErr_Occurred()) SWIG_fail;
42218 }
42219 resultobj = SWIG_Py_Void();
42220 {
42221 if (temp2)
42222 delete arg2;
42223 }
42224 return resultobj;
42225 fail:
42226 {
42227 if (temp2)
42228 delete arg2;
42229 }
42230 return NULL;
42231 }
42232
42233
42234 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42235 PyObject *resultobj = 0;
42236 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42237 bool arg2 = (bool) true ;
42238 void *argp1 = 0 ;
42239 int res1 = 0 ;
42240 bool val2 ;
42241 int ecode2 = 0 ;
42242 PyObject * obj0 = 0 ;
42243 PyObject * obj1 = 0 ;
42244 char * kwnames[] = {
42245 (char *) "self",(char *) "visited", NULL
42246 };
42247
42248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42250 if (!SWIG_IsOK(res1)) {
42251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42252 }
42253 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42254 if (obj1) {
42255 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42256 if (!SWIG_IsOK(ecode2)) {
42257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42258 }
42259 arg2 = static_cast< bool >(val2);
42260 }
42261 {
42262 PyThreadState* __tstate = wxPyBeginAllowThreads();
42263 (arg1)->SetVisited(arg2);
42264 wxPyEndAllowThreads(__tstate);
42265 if (PyErr_Occurred()) SWIG_fail;
42266 }
42267 resultobj = SWIG_Py_Void();
42268 return resultobj;
42269 fail:
42270 return NULL;
42271 }
42272
42273
42274 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42275 PyObject *resultobj = 0;
42276 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42277 bool result;
42278 void *argp1 = 0 ;
42279 int res1 = 0 ;
42280 PyObject *swig_obj[1] ;
42281
42282 if (!args) SWIG_fail;
42283 swig_obj[0] = args;
42284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42285 if (!SWIG_IsOK(res1)) {
42286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42287 }
42288 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42289 {
42290 PyThreadState* __tstate = wxPyBeginAllowThreads();
42291 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42292 wxPyEndAllowThreads(__tstate);
42293 if (PyErr_Occurred()) SWIG_fail;
42294 }
42295 {
42296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42297 }
42298 return resultobj;
42299 fail:
42300 return NULL;
42301 }
42302
42303
42304 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42305 PyObject *obj;
42306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42307 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42308 return SWIG_Py_Void();
42309 }
42310
42311 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42312 return SWIG_Python_InitShadowInstance(args);
42313 }
42314
42315 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42316 PyObject *resultobj = 0;
42317 wxObject *arg1 = (wxObject *) 0 ;
42318 int arg2 ;
42319 wxString *arg3 = 0 ;
42320 wxHyperlinkEvent *result = 0 ;
42321 void *argp1 = 0 ;
42322 int res1 = 0 ;
42323 int val2 ;
42324 int ecode2 = 0 ;
42325 bool temp3 = false ;
42326 PyObject * obj0 = 0 ;
42327 PyObject * obj1 = 0 ;
42328 PyObject * obj2 = 0 ;
42329 char * kwnames[] = {
42330 (char *) "generator",(char *) "id",(char *) "url", NULL
42331 };
42332
42333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42335 if (!SWIG_IsOK(res1)) {
42336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42337 }
42338 arg1 = reinterpret_cast< wxObject * >(argp1);
42339 ecode2 = SWIG_AsVal_int(obj1, &val2);
42340 if (!SWIG_IsOK(ecode2)) {
42341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42342 }
42343 arg2 = static_cast< int >(val2);
42344 {
42345 arg3 = wxString_in_helper(obj2);
42346 if (arg3 == NULL) SWIG_fail;
42347 temp3 = true;
42348 }
42349 {
42350 PyThreadState* __tstate = wxPyBeginAllowThreads();
42351 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42352 wxPyEndAllowThreads(__tstate);
42353 if (PyErr_Occurred()) SWIG_fail;
42354 }
42355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42356 {
42357 if (temp3)
42358 delete arg3;
42359 }
42360 return resultobj;
42361 fail:
42362 {
42363 if (temp3)
42364 delete arg3;
42365 }
42366 return NULL;
42367 }
42368
42369
42370 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42371 PyObject *resultobj = 0;
42372 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42373 wxString result;
42374 void *argp1 = 0 ;
42375 int res1 = 0 ;
42376 PyObject *swig_obj[1] ;
42377
42378 if (!args) SWIG_fail;
42379 swig_obj[0] = args;
42380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42381 if (!SWIG_IsOK(res1)) {
42382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42383 }
42384 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42385 {
42386 PyThreadState* __tstate = wxPyBeginAllowThreads();
42387 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42388 wxPyEndAllowThreads(__tstate);
42389 if (PyErr_Occurred()) SWIG_fail;
42390 }
42391 {
42392 #if wxUSE_UNICODE
42393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42394 #else
42395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42396 #endif
42397 }
42398 return resultobj;
42399 fail:
42400 return NULL;
42401 }
42402
42403
42404 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42405 PyObject *resultobj = 0;
42406 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42407 wxString *arg2 = 0 ;
42408 void *argp1 = 0 ;
42409 int res1 = 0 ;
42410 bool temp2 = false ;
42411 PyObject * obj0 = 0 ;
42412 PyObject * obj1 = 0 ;
42413 char * kwnames[] = {
42414 (char *) "self",(char *) "url", NULL
42415 };
42416
42417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42419 if (!SWIG_IsOK(res1)) {
42420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42421 }
42422 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42423 {
42424 arg2 = wxString_in_helper(obj1);
42425 if (arg2 == NULL) SWIG_fail;
42426 temp2 = true;
42427 }
42428 {
42429 PyThreadState* __tstate = wxPyBeginAllowThreads();
42430 (arg1)->SetURL((wxString const &)*arg2);
42431 wxPyEndAllowThreads(__tstate);
42432 if (PyErr_Occurred()) SWIG_fail;
42433 }
42434 resultobj = SWIG_Py_Void();
42435 {
42436 if (temp2)
42437 delete arg2;
42438 }
42439 return resultobj;
42440 fail:
42441 {
42442 if (temp2)
42443 delete arg2;
42444 }
42445 return NULL;
42446 }
42447
42448
42449 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42450 PyObject *obj;
42451 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42452 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42453 return SWIG_Py_Void();
42454 }
42455
42456 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42457 return SWIG_Python_InitShadowInstance(args);
42458 }
42459
42460 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42461 PyObject *resultobj = 0;
42462 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42463 wxWindow *arg2 = (wxWindow *) 0 ;
42464 int arg3 ;
42465 wxString const &arg4_defvalue = wxEmptyString ;
42466 wxString *arg4 = (wxString *) &arg4_defvalue ;
42467 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42468 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42469 wxSize const &arg6_defvalue = wxDefaultSize ;
42470 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42471 long arg7 = (long) 0 ;
42472 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42473 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42474 wxString const &arg9_defvalue = wxButtonNameStr ;
42475 wxString *arg9 = (wxString *) &arg9_defvalue ;
42476 bool result;
42477 void *argp1 = 0 ;
42478 int res1 = 0 ;
42479 void *argp2 = 0 ;
42480 int res2 = 0 ;
42481 int val3 ;
42482 int ecode3 = 0 ;
42483 bool temp4 = false ;
42484 wxPoint temp5 ;
42485 wxSize temp6 ;
42486 long val7 ;
42487 int ecode7 = 0 ;
42488 void *argp8 = 0 ;
42489 int res8 = 0 ;
42490 bool temp9 = false ;
42491 PyObject * obj0 = 0 ;
42492 PyObject * obj1 = 0 ;
42493 PyObject * obj2 = 0 ;
42494 PyObject * obj3 = 0 ;
42495 PyObject * obj4 = 0 ;
42496 PyObject * obj5 = 0 ;
42497 PyObject * obj6 = 0 ;
42498 PyObject * obj7 = 0 ;
42499 PyObject * obj8 = 0 ;
42500 char * kwnames[] = {
42501 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42502 };
42503
42504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42506 if (!SWIG_IsOK(res1)) {
42507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42508 }
42509 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42510 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42511 if (!SWIG_IsOK(res2)) {
42512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42513 }
42514 arg2 = reinterpret_cast< wxWindow * >(argp2);
42515 ecode3 = SWIG_AsVal_int(obj2, &val3);
42516 if (!SWIG_IsOK(ecode3)) {
42517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42518 }
42519 arg3 = static_cast< int >(val3);
42520 if (obj3) {
42521 {
42522 arg4 = wxString_in_helper(obj3);
42523 if (arg4 == NULL) SWIG_fail;
42524 temp4 = true;
42525 }
42526 }
42527 if (obj4) {
42528 {
42529 arg5 = &temp5;
42530 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42531 }
42532 }
42533 if (obj5) {
42534 {
42535 arg6 = &temp6;
42536 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42537 }
42538 }
42539 if (obj6) {
42540 ecode7 = SWIG_AsVal_long(obj6, &val7);
42541 if (!SWIG_IsOK(ecode7)) {
42542 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42543 }
42544 arg7 = static_cast< long >(val7);
42545 }
42546 if (obj7) {
42547 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42548 if (!SWIG_IsOK(res8)) {
42549 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42550 }
42551 if (!argp8) {
42552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42553 }
42554 arg8 = reinterpret_cast< wxValidator * >(argp8);
42555 }
42556 if (obj8) {
42557 {
42558 arg9 = wxString_in_helper(obj8);
42559 if (arg9 == NULL) SWIG_fail;
42560 temp9 = true;
42561 }
42562 }
42563 {
42564 PyThreadState* __tstate = wxPyBeginAllowThreads();
42565 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42566 wxPyEndAllowThreads(__tstate);
42567 if (PyErr_Occurred()) SWIG_fail;
42568 }
42569 {
42570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42571 }
42572 {
42573 if (temp4)
42574 delete arg4;
42575 }
42576 {
42577 if (temp9)
42578 delete arg9;
42579 }
42580 return resultobj;
42581 fail:
42582 {
42583 if (temp4)
42584 delete arg4;
42585 }
42586 {
42587 if (temp9)
42588 delete arg9;
42589 }
42590 return NULL;
42591 }
42592
42593
42594 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42595 PyObject *resultobj = 0;
42596 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42597 int arg2 ;
42598 void *argp1 = 0 ;
42599 int res1 = 0 ;
42600 int val2 ;
42601 int ecode2 = 0 ;
42602 PyObject * obj0 = 0 ;
42603 PyObject * obj1 = 0 ;
42604 char * kwnames[] = {
42605 (char *) "self",(char *) "newmargin", NULL
42606 };
42607
42608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42610 if (!SWIG_IsOK(res1)) {
42611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42612 }
42613 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42614 ecode2 = SWIG_AsVal_int(obj1, &val2);
42615 if (!SWIG_IsOK(ecode2)) {
42616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42617 }
42618 arg2 = static_cast< int >(val2);
42619 {
42620 PyThreadState* __tstate = wxPyBeginAllowThreads();
42621 (arg1)->SetInternalMargin(arg2);
42622 wxPyEndAllowThreads(__tstate);
42623 if (PyErr_Occurred()) SWIG_fail;
42624 }
42625 resultobj = SWIG_Py_Void();
42626 return resultobj;
42627 fail:
42628 return NULL;
42629 }
42630
42631
42632 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42633 PyObject *resultobj = 0;
42634 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42635 int result;
42636 void *argp1 = 0 ;
42637 int res1 = 0 ;
42638 PyObject *swig_obj[1] ;
42639
42640 if (!args) SWIG_fail;
42641 swig_obj[0] = args;
42642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42643 if (!SWIG_IsOK(res1)) {
42644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42645 }
42646 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42647 {
42648 PyThreadState* __tstate = wxPyBeginAllowThreads();
42649 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42650 wxPyEndAllowThreads(__tstate);
42651 if (PyErr_Occurred()) SWIG_fail;
42652 }
42653 resultobj = SWIG_From_int(static_cast< int >(result));
42654 return resultobj;
42655 fail:
42656 return NULL;
42657 }
42658
42659
42660 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42661 PyObject *resultobj = 0;
42662 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42663 int arg2 ;
42664 void *argp1 = 0 ;
42665 int res1 = 0 ;
42666 int val2 ;
42667 int ecode2 = 0 ;
42668 PyObject * obj0 = 0 ;
42669 PyObject * obj1 = 0 ;
42670 char * kwnames[] = {
42671 (char *) "self",(char *) "prop", NULL
42672 };
42673
42674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42676 if (!SWIG_IsOK(res1)) {
42677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42678 }
42679 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42680 ecode2 = SWIG_AsVal_int(obj1, &val2);
42681 if (!SWIG_IsOK(ecode2)) {
42682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42683 }
42684 arg2 = static_cast< int >(val2);
42685 {
42686 PyThreadState* __tstate = wxPyBeginAllowThreads();
42687 (arg1)->SetTextCtrlProportion(arg2);
42688 wxPyEndAllowThreads(__tstate);
42689 if (PyErr_Occurred()) SWIG_fail;
42690 }
42691 resultobj = SWIG_Py_Void();
42692 return resultobj;
42693 fail:
42694 return NULL;
42695 }
42696
42697
42698 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42699 PyObject *resultobj = 0;
42700 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42701 int result;
42702 void *argp1 = 0 ;
42703 int res1 = 0 ;
42704 PyObject *swig_obj[1] ;
42705
42706 if (!args) SWIG_fail;
42707 swig_obj[0] = args;
42708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42709 if (!SWIG_IsOK(res1)) {
42710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42711 }
42712 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42713 {
42714 PyThreadState* __tstate = wxPyBeginAllowThreads();
42715 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42716 wxPyEndAllowThreads(__tstate);
42717 if (PyErr_Occurred()) SWIG_fail;
42718 }
42719 resultobj = SWIG_From_int(static_cast< int >(result));
42720 return resultobj;
42721 fail:
42722 return NULL;
42723 }
42724
42725
42726 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42727 PyObject *resultobj = 0;
42728 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42729 int arg2 ;
42730 void *argp1 = 0 ;
42731 int res1 = 0 ;
42732 int val2 ;
42733 int ecode2 = 0 ;
42734 PyObject * obj0 = 0 ;
42735 PyObject * obj1 = 0 ;
42736 char * kwnames[] = {
42737 (char *) "self",(char *) "prop", NULL
42738 };
42739
42740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42742 if (!SWIG_IsOK(res1)) {
42743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42744 }
42745 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42746 ecode2 = SWIG_AsVal_int(obj1, &val2);
42747 if (!SWIG_IsOK(ecode2)) {
42748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42749 }
42750 arg2 = static_cast< int >(val2);
42751 {
42752 PyThreadState* __tstate = wxPyBeginAllowThreads();
42753 (arg1)->SetPickerCtrlProportion(arg2);
42754 wxPyEndAllowThreads(__tstate);
42755 if (PyErr_Occurred()) SWIG_fail;
42756 }
42757 resultobj = SWIG_Py_Void();
42758 return resultobj;
42759 fail:
42760 return NULL;
42761 }
42762
42763
42764 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42765 PyObject *resultobj = 0;
42766 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42767 int result;
42768 void *argp1 = 0 ;
42769 int res1 = 0 ;
42770 PyObject *swig_obj[1] ;
42771
42772 if (!args) SWIG_fail;
42773 swig_obj[0] = args;
42774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42775 if (!SWIG_IsOK(res1)) {
42776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42777 }
42778 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42779 {
42780 PyThreadState* __tstate = wxPyBeginAllowThreads();
42781 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42782 wxPyEndAllowThreads(__tstate);
42783 if (PyErr_Occurred()) SWIG_fail;
42784 }
42785 resultobj = SWIG_From_int(static_cast< int >(result));
42786 return resultobj;
42787 fail:
42788 return NULL;
42789 }
42790
42791
42792 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42793 PyObject *resultobj = 0;
42794 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42795 bool result;
42796 void *argp1 = 0 ;
42797 int res1 = 0 ;
42798 PyObject *swig_obj[1] ;
42799
42800 if (!args) SWIG_fail;
42801 swig_obj[0] = args;
42802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42803 if (!SWIG_IsOK(res1)) {
42804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42805 }
42806 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42807 {
42808 PyThreadState* __tstate = wxPyBeginAllowThreads();
42809 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42810 wxPyEndAllowThreads(__tstate);
42811 if (PyErr_Occurred()) SWIG_fail;
42812 }
42813 {
42814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42815 }
42816 return resultobj;
42817 fail:
42818 return NULL;
42819 }
42820
42821
42822 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42823 PyObject *resultobj = 0;
42824 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42825 bool arg2 = (bool) true ;
42826 void *argp1 = 0 ;
42827 int res1 = 0 ;
42828 bool val2 ;
42829 int ecode2 = 0 ;
42830 PyObject * obj0 = 0 ;
42831 PyObject * obj1 = 0 ;
42832 char * kwnames[] = {
42833 (char *) "self",(char *) "grow", NULL
42834 };
42835
42836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42838 if (!SWIG_IsOK(res1)) {
42839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42840 }
42841 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42842 if (obj1) {
42843 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42844 if (!SWIG_IsOK(ecode2)) {
42845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42846 }
42847 arg2 = static_cast< bool >(val2);
42848 }
42849 {
42850 PyThreadState* __tstate = wxPyBeginAllowThreads();
42851 (arg1)->SetTextCtrlGrowable(arg2);
42852 wxPyEndAllowThreads(__tstate);
42853 if (PyErr_Occurred()) SWIG_fail;
42854 }
42855 resultobj = SWIG_Py_Void();
42856 return resultobj;
42857 fail:
42858 return NULL;
42859 }
42860
42861
42862 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42863 PyObject *resultobj = 0;
42864 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42865 bool result;
42866 void *argp1 = 0 ;
42867 int res1 = 0 ;
42868 PyObject *swig_obj[1] ;
42869
42870 if (!args) SWIG_fail;
42871 swig_obj[0] = args;
42872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42873 if (!SWIG_IsOK(res1)) {
42874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42875 }
42876 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42877 {
42878 PyThreadState* __tstate = wxPyBeginAllowThreads();
42879 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42880 wxPyEndAllowThreads(__tstate);
42881 if (PyErr_Occurred()) SWIG_fail;
42882 }
42883 {
42884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42885 }
42886 return resultobj;
42887 fail:
42888 return NULL;
42889 }
42890
42891
42892 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42893 PyObject *resultobj = 0;
42894 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42895 bool arg2 = (bool) true ;
42896 void *argp1 = 0 ;
42897 int res1 = 0 ;
42898 bool val2 ;
42899 int ecode2 = 0 ;
42900 PyObject * obj0 = 0 ;
42901 PyObject * obj1 = 0 ;
42902 char * kwnames[] = {
42903 (char *) "self",(char *) "grow", NULL
42904 };
42905
42906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42908 if (!SWIG_IsOK(res1)) {
42909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42910 }
42911 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42912 if (obj1) {
42913 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42914 if (!SWIG_IsOK(ecode2)) {
42915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42916 }
42917 arg2 = static_cast< bool >(val2);
42918 }
42919 {
42920 PyThreadState* __tstate = wxPyBeginAllowThreads();
42921 (arg1)->SetPickerCtrlGrowable(arg2);
42922 wxPyEndAllowThreads(__tstate);
42923 if (PyErr_Occurred()) SWIG_fail;
42924 }
42925 resultobj = SWIG_Py_Void();
42926 return resultobj;
42927 fail:
42928 return NULL;
42929 }
42930
42931
42932 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42933 PyObject *resultobj = 0;
42934 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42935 bool result;
42936 void *argp1 = 0 ;
42937 int res1 = 0 ;
42938 PyObject *swig_obj[1] ;
42939
42940 if (!args) SWIG_fail;
42941 swig_obj[0] = args;
42942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42943 if (!SWIG_IsOK(res1)) {
42944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42945 }
42946 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42947 {
42948 PyThreadState* __tstate = wxPyBeginAllowThreads();
42949 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42950 wxPyEndAllowThreads(__tstate);
42951 if (PyErr_Occurred()) SWIG_fail;
42952 }
42953 {
42954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42955 }
42956 return resultobj;
42957 fail:
42958 return NULL;
42959 }
42960
42961
42962 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42963 PyObject *resultobj = 0;
42964 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42965 wxTextCtrl *result = 0 ;
42966 void *argp1 = 0 ;
42967 int res1 = 0 ;
42968 PyObject *swig_obj[1] ;
42969
42970 if (!args) SWIG_fail;
42971 swig_obj[0] = args;
42972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42973 if (!SWIG_IsOK(res1)) {
42974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42975 }
42976 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42977 {
42978 PyThreadState* __tstate = wxPyBeginAllowThreads();
42979 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42980 wxPyEndAllowThreads(__tstate);
42981 if (PyErr_Occurred()) SWIG_fail;
42982 }
42983 {
42984 resultobj = wxPyMake_wxObject(result, 0);
42985 }
42986 return resultobj;
42987 fail:
42988 return NULL;
42989 }
42990
42991
42992 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42993 PyObject *resultobj = 0;
42994 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42995 wxControl *result = 0 ;
42996 void *argp1 = 0 ;
42997 int res1 = 0 ;
42998 PyObject *swig_obj[1] ;
42999
43000 if (!args) SWIG_fail;
43001 swig_obj[0] = args;
43002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43003 if (!SWIG_IsOK(res1)) {
43004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43005 }
43006 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43007 {
43008 PyThreadState* __tstate = wxPyBeginAllowThreads();
43009 result = (wxControl *)(arg1)->GetPickerCtrl();
43010 wxPyEndAllowThreads(__tstate);
43011 if (PyErr_Occurred()) SWIG_fail;
43012 }
43013 {
43014 resultobj = wxPyMake_wxObject(result, 0);
43015 }
43016 return resultobj;
43017 fail:
43018 return NULL;
43019 }
43020
43021
43022 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43023 PyObject *obj;
43024 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43025 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43026 return SWIG_Py_Void();
43027 }
43028
43029 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43030 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43031 return 1;
43032 }
43033
43034
43035 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43036 PyObject *pyobj = 0;
43037
43038 {
43039 #if wxUSE_UNICODE
43040 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43041 #else
43042 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43043 #endif
43044 }
43045 return pyobj;
43046 }
43047
43048
43049 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43050 PyObject *resultobj = 0;
43051 wxWindow *arg1 = (wxWindow *) 0 ;
43052 int arg2 = (int) -1 ;
43053 wxColour const &arg3_defvalue = *wxBLACK ;
43054 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43055 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43056 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43057 wxSize const &arg5_defvalue = wxDefaultSize ;
43058 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43059 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43060 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43061 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43062 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43063 wxString *arg8 = (wxString *) &arg8_defvalue ;
43064 wxColourPickerCtrl *result = 0 ;
43065 void *argp1 = 0 ;
43066 int res1 = 0 ;
43067 int val2 ;
43068 int ecode2 = 0 ;
43069 wxColour temp3 ;
43070 wxPoint temp4 ;
43071 wxSize temp5 ;
43072 long val6 ;
43073 int ecode6 = 0 ;
43074 void *argp7 = 0 ;
43075 int res7 = 0 ;
43076 bool temp8 = false ;
43077 PyObject * obj0 = 0 ;
43078 PyObject * obj1 = 0 ;
43079 PyObject * obj2 = 0 ;
43080 PyObject * obj3 = 0 ;
43081 PyObject * obj4 = 0 ;
43082 PyObject * obj5 = 0 ;
43083 PyObject * obj6 = 0 ;
43084 PyObject * obj7 = 0 ;
43085 char * kwnames[] = {
43086 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43087 };
43088
43089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43091 if (!SWIG_IsOK(res1)) {
43092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43093 }
43094 arg1 = reinterpret_cast< wxWindow * >(argp1);
43095 if (obj1) {
43096 ecode2 = SWIG_AsVal_int(obj1, &val2);
43097 if (!SWIG_IsOK(ecode2)) {
43098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43099 }
43100 arg2 = static_cast< int >(val2);
43101 }
43102 if (obj2) {
43103 {
43104 arg3 = &temp3;
43105 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43106 }
43107 }
43108 if (obj3) {
43109 {
43110 arg4 = &temp4;
43111 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43112 }
43113 }
43114 if (obj4) {
43115 {
43116 arg5 = &temp5;
43117 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43118 }
43119 }
43120 if (obj5) {
43121 ecode6 = SWIG_AsVal_long(obj5, &val6);
43122 if (!SWIG_IsOK(ecode6)) {
43123 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43124 }
43125 arg6 = static_cast< long >(val6);
43126 }
43127 if (obj6) {
43128 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43129 if (!SWIG_IsOK(res7)) {
43130 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43131 }
43132 if (!argp7) {
43133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43134 }
43135 arg7 = reinterpret_cast< wxValidator * >(argp7);
43136 }
43137 if (obj7) {
43138 {
43139 arg8 = wxString_in_helper(obj7);
43140 if (arg8 == NULL) SWIG_fail;
43141 temp8 = true;
43142 }
43143 }
43144 {
43145 if (!wxPyCheckForApp()) SWIG_fail;
43146 PyThreadState* __tstate = wxPyBeginAllowThreads();
43147 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43148 wxPyEndAllowThreads(__tstate);
43149 if (PyErr_Occurred()) SWIG_fail;
43150 }
43151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43152 {
43153 if (temp8)
43154 delete arg8;
43155 }
43156 return resultobj;
43157 fail:
43158 {
43159 if (temp8)
43160 delete arg8;
43161 }
43162 return NULL;
43163 }
43164
43165
43166 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43167 PyObject *resultobj = 0;
43168 wxColourPickerCtrl *result = 0 ;
43169
43170 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43171 {
43172 if (!wxPyCheckForApp()) SWIG_fail;
43173 PyThreadState* __tstate = wxPyBeginAllowThreads();
43174 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43175 wxPyEndAllowThreads(__tstate);
43176 if (PyErr_Occurred()) SWIG_fail;
43177 }
43178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43179 return resultobj;
43180 fail:
43181 return NULL;
43182 }
43183
43184
43185 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43186 PyObject *resultobj = 0;
43187 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43188 wxWindow *arg2 = (wxWindow *) 0 ;
43189 int arg3 ;
43190 wxColour const &arg4_defvalue = *wxBLACK ;
43191 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43192 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43193 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43194 wxSize const &arg6_defvalue = wxDefaultSize ;
43195 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43196 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43197 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43198 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43199 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43200 wxString *arg9 = (wxString *) &arg9_defvalue ;
43201 bool result;
43202 void *argp1 = 0 ;
43203 int res1 = 0 ;
43204 void *argp2 = 0 ;
43205 int res2 = 0 ;
43206 int val3 ;
43207 int ecode3 = 0 ;
43208 wxColour temp4 ;
43209 wxPoint temp5 ;
43210 wxSize temp6 ;
43211 long val7 ;
43212 int ecode7 = 0 ;
43213 void *argp8 = 0 ;
43214 int res8 = 0 ;
43215 bool temp9 = false ;
43216 PyObject * obj0 = 0 ;
43217 PyObject * obj1 = 0 ;
43218 PyObject * obj2 = 0 ;
43219 PyObject * obj3 = 0 ;
43220 PyObject * obj4 = 0 ;
43221 PyObject * obj5 = 0 ;
43222 PyObject * obj6 = 0 ;
43223 PyObject * obj7 = 0 ;
43224 PyObject * obj8 = 0 ;
43225 char * kwnames[] = {
43226 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43227 };
43228
43229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43231 if (!SWIG_IsOK(res1)) {
43232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43233 }
43234 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43235 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43236 if (!SWIG_IsOK(res2)) {
43237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43238 }
43239 arg2 = reinterpret_cast< wxWindow * >(argp2);
43240 ecode3 = SWIG_AsVal_int(obj2, &val3);
43241 if (!SWIG_IsOK(ecode3)) {
43242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43243 }
43244 arg3 = static_cast< int >(val3);
43245 if (obj3) {
43246 {
43247 arg4 = &temp4;
43248 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43249 }
43250 }
43251 if (obj4) {
43252 {
43253 arg5 = &temp5;
43254 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43255 }
43256 }
43257 if (obj5) {
43258 {
43259 arg6 = &temp6;
43260 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43261 }
43262 }
43263 if (obj6) {
43264 ecode7 = SWIG_AsVal_long(obj6, &val7);
43265 if (!SWIG_IsOK(ecode7)) {
43266 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43267 }
43268 arg7 = static_cast< long >(val7);
43269 }
43270 if (obj7) {
43271 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43272 if (!SWIG_IsOK(res8)) {
43273 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43274 }
43275 if (!argp8) {
43276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43277 }
43278 arg8 = reinterpret_cast< wxValidator * >(argp8);
43279 }
43280 if (obj8) {
43281 {
43282 arg9 = wxString_in_helper(obj8);
43283 if (arg9 == NULL) SWIG_fail;
43284 temp9 = true;
43285 }
43286 }
43287 {
43288 PyThreadState* __tstate = wxPyBeginAllowThreads();
43289 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43290 wxPyEndAllowThreads(__tstate);
43291 if (PyErr_Occurred()) SWIG_fail;
43292 }
43293 {
43294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43295 }
43296 {
43297 if (temp9)
43298 delete arg9;
43299 }
43300 return resultobj;
43301 fail:
43302 {
43303 if (temp9)
43304 delete arg9;
43305 }
43306 return NULL;
43307 }
43308
43309
43310 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43311 PyObject *resultobj = 0;
43312 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43313 wxColour result;
43314 void *argp1 = 0 ;
43315 int res1 = 0 ;
43316 PyObject *swig_obj[1] ;
43317
43318 if (!args) SWIG_fail;
43319 swig_obj[0] = args;
43320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43321 if (!SWIG_IsOK(res1)) {
43322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43323 }
43324 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43325 {
43326 PyThreadState* __tstate = wxPyBeginAllowThreads();
43327 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43328 wxPyEndAllowThreads(__tstate);
43329 if (PyErr_Occurred()) SWIG_fail;
43330 }
43331 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43332 return resultobj;
43333 fail:
43334 return NULL;
43335 }
43336
43337
43338 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43339 PyObject *resultobj = 0;
43340 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43341 wxColour *arg2 = 0 ;
43342 void *argp1 = 0 ;
43343 int res1 = 0 ;
43344 wxColour temp2 ;
43345 PyObject * obj0 = 0 ;
43346 PyObject * obj1 = 0 ;
43347 char * kwnames[] = {
43348 (char *) "self",(char *) "col", NULL
43349 };
43350
43351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43353 if (!SWIG_IsOK(res1)) {
43354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43355 }
43356 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43357 {
43358 arg2 = &temp2;
43359 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43360 }
43361 {
43362 PyThreadState* __tstate = wxPyBeginAllowThreads();
43363 (arg1)->SetColour((wxColour const &)*arg2);
43364 wxPyEndAllowThreads(__tstate);
43365 if (PyErr_Occurred()) SWIG_fail;
43366 }
43367 resultobj = SWIG_Py_Void();
43368 return resultobj;
43369 fail:
43370 return NULL;
43371 }
43372
43373
43374 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43375 PyObject *obj;
43376 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43377 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43378 return SWIG_Py_Void();
43379 }
43380
43381 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43382 return SWIG_Python_InitShadowInstance(args);
43383 }
43384
43385 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43386 PyObject *resultobj = 0;
43387 wxObject *arg1 = (wxObject *) 0 ;
43388 int arg2 ;
43389 wxColour *arg3 = 0 ;
43390 wxColourPickerEvent *result = 0 ;
43391 void *argp1 = 0 ;
43392 int res1 = 0 ;
43393 int val2 ;
43394 int ecode2 = 0 ;
43395 wxColour temp3 ;
43396 PyObject * obj0 = 0 ;
43397 PyObject * obj1 = 0 ;
43398 PyObject * obj2 = 0 ;
43399 char * kwnames[] = {
43400 (char *) "generator",(char *) "id",(char *) "col", NULL
43401 };
43402
43403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43405 if (!SWIG_IsOK(res1)) {
43406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43407 }
43408 arg1 = reinterpret_cast< wxObject * >(argp1);
43409 ecode2 = SWIG_AsVal_int(obj1, &val2);
43410 if (!SWIG_IsOK(ecode2)) {
43411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43412 }
43413 arg2 = static_cast< int >(val2);
43414 {
43415 arg3 = &temp3;
43416 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43417 }
43418 {
43419 PyThreadState* __tstate = wxPyBeginAllowThreads();
43420 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43421 wxPyEndAllowThreads(__tstate);
43422 if (PyErr_Occurred()) SWIG_fail;
43423 }
43424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43425 return resultobj;
43426 fail:
43427 return NULL;
43428 }
43429
43430
43431 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43432 PyObject *resultobj = 0;
43433 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43434 wxColour result;
43435 void *argp1 = 0 ;
43436 int res1 = 0 ;
43437 PyObject *swig_obj[1] ;
43438
43439 if (!args) SWIG_fail;
43440 swig_obj[0] = args;
43441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43442 if (!SWIG_IsOK(res1)) {
43443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43444 }
43445 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43446 {
43447 PyThreadState* __tstate = wxPyBeginAllowThreads();
43448 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43449 wxPyEndAllowThreads(__tstate);
43450 if (PyErr_Occurred()) SWIG_fail;
43451 }
43452 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43453 return resultobj;
43454 fail:
43455 return NULL;
43456 }
43457
43458
43459 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43460 PyObject *resultobj = 0;
43461 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43462 wxColour *arg2 = 0 ;
43463 void *argp1 = 0 ;
43464 int res1 = 0 ;
43465 wxColour temp2 ;
43466 PyObject * obj0 = 0 ;
43467 PyObject * obj1 = 0 ;
43468 char * kwnames[] = {
43469 (char *) "self",(char *) "c", NULL
43470 };
43471
43472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43474 if (!SWIG_IsOK(res1)) {
43475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43476 }
43477 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43478 {
43479 arg2 = &temp2;
43480 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43481 }
43482 {
43483 PyThreadState* __tstate = wxPyBeginAllowThreads();
43484 (arg1)->SetColour((wxColour const &)*arg2);
43485 wxPyEndAllowThreads(__tstate);
43486 if (PyErr_Occurred()) SWIG_fail;
43487 }
43488 resultobj = SWIG_Py_Void();
43489 return resultobj;
43490 fail:
43491 return NULL;
43492 }
43493
43494
43495 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43496 PyObject *obj;
43497 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43498 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43499 return SWIG_Py_Void();
43500 }
43501
43502 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43503 return SWIG_Python_InitShadowInstance(args);
43504 }
43505
43506 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43507 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43508 return 1;
43509 }
43510
43511
43512 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43513 PyObject *pyobj = 0;
43514
43515 {
43516 #if wxUSE_UNICODE
43517 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43518 #else
43519 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43520 #endif
43521 }
43522 return pyobj;
43523 }
43524
43525
43526 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43527 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43528 return 1;
43529 }
43530
43531
43532 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43533 PyObject *pyobj = 0;
43534
43535 {
43536 #if wxUSE_UNICODE
43537 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43538 #else
43539 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43540 #endif
43541 }
43542 return pyobj;
43543 }
43544
43545
43546 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43547 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43548 return 1;
43549 }
43550
43551
43552 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43553 PyObject *pyobj = 0;
43554
43555 {
43556 #if wxUSE_UNICODE
43557 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43558 #else
43559 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43560 #endif
43561 }
43562 return pyobj;
43563 }
43564
43565
43566 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43567 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43568 return 1;
43569 }
43570
43571
43572 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43573 PyObject *pyobj = 0;
43574
43575 {
43576 #if wxUSE_UNICODE
43577 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43578 #else
43579 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43580 #endif
43581 }
43582 return pyobj;
43583 }
43584
43585
43586 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43587 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43588 return 1;
43589 }
43590
43591
43592 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43593 PyObject *pyobj = 0;
43594
43595 {
43596 #if wxUSE_UNICODE
43597 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43598 #else
43599 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43600 #endif
43601 }
43602 return pyobj;
43603 }
43604
43605
43606 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43607 PyObject *resultobj = 0;
43608 wxWindow *arg1 = (wxWindow *) 0 ;
43609 int arg2 = (int) -1 ;
43610 wxString const &arg3_defvalue = wxPyEmptyString ;
43611 wxString *arg3 = (wxString *) &arg3_defvalue ;
43612 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43613 wxString *arg4 = (wxString *) &arg4_defvalue ;
43614 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43615 wxString *arg5 = (wxString *) &arg5_defvalue ;
43616 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43617 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43618 wxSize const &arg7_defvalue = wxDefaultSize ;
43619 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43620 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43621 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43622 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43623 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43624 wxString *arg10 = (wxString *) &arg10_defvalue ;
43625 wxFilePickerCtrl *result = 0 ;
43626 void *argp1 = 0 ;
43627 int res1 = 0 ;
43628 int val2 ;
43629 int ecode2 = 0 ;
43630 bool temp3 = false ;
43631 bool temp4 = false ;
43632 bool temp5 = false ;
43633 wxPoint temp6 ;
43634 wxSize temp7 ;
43635 long val8 ;
43636 int ecode8 = 0 ;
43637 void *argp9 = 0 ;
43638 int res9 = 0 ;
43639 bool temp10 = false ;
43640 PyObject * obj0 = 0 ;
43641 PyObject * obj1 = 0 ;
43642 PyObject * obj2 = 0 ;
43643 PyObject * obj3 = 0 ;
43644 PyObject * obj4 = 0 ;
43645 PyObject * obj5 = 0 ;
43646 PyObject * obj6 = 0 ;
43647 PyObject * obj7 = 0 ;
43648 PyObject * obj8 = 0 ;
43649 PyObject * obj9 = 0 ;
43650 char * kwnames[] = {
43651 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43652 };
43653
43654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43656 if (!SWIG_IsOK(res1)) {
43657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43658 }
43659 arg1 = reinterpret_cast< wxWindow * >(argp1);
43660 if (obj1) {
43661 ecode2 = SWIG_AsVal_int(obj1, &val2);
43662 if (!SWIG_IsOK(ecode2)) {
43663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43664 }
43665 arg2 = static_cast< int >(val2);
43666 }
43667 if (obj2) {
43668 {
43669 arg3 = wxString_in_helper(obj2);
43670 if (arg3 == NULL) SWIG_fail;
43671 temp3 = true;
43672 }
43673 }
43674 if (obj3) {
43675 {
43676 arg4 = wxString_in_helper(obj3);
43677 if (arg4 == NULL) SWIG_fail;
43678 temp4 = true;
43679 }
43680 }
43681 if (obj4) {
43682 {
43683 arg5 = wxString_in_helper(obj4);
43684 if (arg5 == NULL) SWIG_fail;
43685 temp5 = true;
43686 }
43687 }
43688 if (obj5) {
43689 {
43690 arg6 = &temp6;
43691 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43692 }
43693 }
43694 if (obj6) {
43695 {
43696 arg7 = &temp7;
43697 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43698 }
43699 }
43700 if (obj7) {
43701 ecode8 = SWIG_AsVal_long(obj7, &val8);
43702 if (!SWIG_IsOK(ecode8)) {
43703 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43704 }
43705 arg8 = static_cast< long >(val8);
43706 }
43707 if (obj8) {
43708 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43709 if (!SWIG_IsOK(res9)) {
43710 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43711 }
43712 if (!argp9) {
43713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43714 }
43715 arg9 = reinterpret_cast< wxValidator * >(argp9);
43716 }
43717 if (obj9) {
43718 {
43719 arg10 = wxString_in_helper(obj9);
43720 if (arg10 == NULL) SWIG_fail;
43721 temp10 = true;
43722 }
43723 }
43724 {
43725 if (!wxPyCheckForApp()) SWIG_fail;
43726 PyThreadState* __tstate = wxPyBeginAllowThreads();
43727 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);
43728 wxPyEndAllowThreads(__tstate);
43729 if (PyErr_Occurred()) SWIG_fail;
43730 }
43731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43732 {
43733 if (temp3)
43734 delete arg3;
43735 }
43736 {
43737 if (temp4)
43738 delete arg4;
43739 }
43740 {
43741 if (temp5)
43742 delete arg5;
43743 }
43744 {
43745 if (temp10)
43746 delete arg10;
43747 }
43748 return resultobj;
43749 fail:
43750 {
43751 if (temp3)
43752 delete arg3;
43753 }
43754 {
43755 if (temp4)
43756 delete arg4;
43757 }
43758 {
43759 if (temp5)
43760 delete arg5;
43761 }
43762 {
43763 if (temp10)
43764 delete arg10;
43765 }
43766 return NULL;
43767 }
43768
43769
43770 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43771 PyObject *resultobj = 0;
43772 wxFilePickerCtrl *result = 0 ;
43773
43774 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43775 {
43776 if (!wxPyCheckForApp()) SWIG_fail;
43777 PyThreadState* __tstate = wxPyBeginAllowThreads();
43778 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43779 wxPyEndAllowThreads(__tstate);
43780 if (PyErr_Occurred()) SWIG_fail;
43781 }
43782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43783 return resultobj;
43784 fail:
43785 return NULL;
43786 }
43787
43788
43789 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43790 PyObject *resultobj = 0;
43791 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43792 wxWindow *arg2 = (wxWindow *) 0 ;
43793 int arg3 = (int) -1 ;
43794 wxString const &arg4_defvalue = wxPyEmptyString ;
43795 wxString *arg4 = (wxString *) &arg4_defvalue ;
43796 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43797 wxString *arg5 = (wxString *) &arg5_defvalue ;
43798 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43799 wxString *arg6 = (wxString *) &arg6_defvalue ;
43800 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43801 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43802 wxSize const &arg8_defvalue = wxDefaultSize ;
43803 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43804 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43805 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43806 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43807 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43808 wxString *arg11 = (wxString *) &arg11_defvalue ;
43809 bool result;
43810 void *argp1 = 0 ;
43811 int res1 = 0 ;
43812 void *argp2 = 0 ;
43813 int res2 = 0 ;
43814 int val3 ;
43815 int ecode3 = 0 ;
43816 bool temp4 = false ;
43817 bool temp5 = false ;
43818 bool temp6 = false ;
43819 wxPoint temp7 ;
43820 wxSize temp8 ;
43821 long val9 ;
43822 int ecode9 = 0 ;
43823 void *argp10 = 0 ;
43824 int res10 = 0 ;
43825 bool temp11 = false ;
43826 PyObject * obj0 = 0 ;
43827 PyObject * obj1 = 0 ;
43828 PyObject * obj2 = 0 ;
43829 PyObject * obj3 = 0 ;
43830 PyObject * obj4 = 0 ;
43831 PyObject * obj5 = 0 ;
43832 PyObject * obj6 = 0 ;
43833 PyObject * obj7 = 0 ;
43834 PyObject * obj8 = 0 ;
43835 PyObject * obj9 = 0 ;
43836 PyObject * obj10 = 0 ;
43837 char * kwnames[] = {
43838 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43839 };
43840
43841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43843 if (!SWIG_IsOK(res1)) {
43844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43845 }
43846 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43847 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43848 if (!SWIG_IsOK(res2)) {
43849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43850 }
43851 arg2 = reinterpret_cast< wxWindow * >(argp2);
43852 if (obj2) {
43853 ecode3 = SWIG_AsVal_int(obj2, &val3);
43854 if (!SWIG_IsOK(ecode3)) {
43855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43856 }
43857 arg3 = static_cast< int >(val3);
43858 }
43859 if (obj3) {
43860 {
43861 arg4 = wxString_in_helper(obj3);
43862 if (arg4 == NULL) SWIG_fail;
43863 temp4 = true;
43864 }
43865 }
43866 if (obj4) {
43867 {
43868 arg5 = wxString_in_helper(obj4);
43869 if (arg5 == NULL) SWIG_fail;
43870 temp5 = true;
43871 }
43872 }
43873 if (obj5) {
43874 {
43875 arg6 = wxString_in_helper(obj5);
43876 if (arg6 == NULL) SWIG_fail;
43877 temp6 = true;
43878 }
43879 }
43880 if (obj6) {
43881 {
43882 arg7 = &temp7;
43883 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43884 }
43885 }
43886 if (obj7) {
43887 {
43888 arg8 = &temp8;
43889 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43890 }
43891 }
43892 if (obj8) {
43893 ecode9 = SWIG_AsVal_long(obj8, &val9);
43894 if (!SWIG_IsOK(ecode9)) {
43895 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43896 }
43897 arg9 = static_cast< long >(val9);
43898 }
43899 if (obj9) {
43900 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43901 if (!SWIG_IsOK(res10)) {
43902 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43903 }
43904 if (!argp10) {
43905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43906 }
43907 arg10 = reinterpret_cast< wxValidator * >(argp10);
43908 }
43909 if (obj10) {
43910 {
43911 arg11 = wxString_in_helper(obj10);
43912 if (arg11 == NULL) SWIG_fail;
43913 temp11 = true;
43914 }
43915 }
43916 {
43917 PyThreadState* __tstate = wxPyBeginAllowThreads();
43918 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);
43919 wxPyEndAllowThreads(__tstate);
43920 if (PyErr_Occurred()) SWIG_fail;
43921 }
43922 {
43923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43924 }
43925 {
43926 if (temp4)
43927 delete arg4;
43928 }
43929 {
43930 if (temp5)
43931 delete arg5;
43932 }
43933 {
43934 if (temp6)
43935 delete arg6;
43936 }
43937 {
43938 if (temp11)
43939 delete arg11;
43940 }
43941 return resultobj;
43942 fail:
43943 {
43944 if (temp4)
43945 delete arg4;
43946 }
43947 {
43948 if (temp5)
43949 delete arg5;
43950 }
43951 {
43952 if (temp6)
43953 delete arg6;
43954 }
43955 {
43956 if (temp11)
43957 delete arg11;
43958 }
43959 return NULL;
43960 }
43961
43962
43963 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43964 PyObject *resultobj = 0;
43965 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43966 wxString result;
43967 void *argp1 = 0 ;
43968 int res1 = 0 ;
43969 PyObject *swig_obj[1] ;
43970
43971 if (!args) SWIG_fail;
43972 swig_obj[0] = args;
43973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43974 if (!SWIG_IsOK(res1)) {
43975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43976 }
43977 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43978 {
43979 PyThreadState* __tstate = wxPyBeginAllowThreads();
43980 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43981 wxPyEndAllowThreads(__tstate);
43982 if (PyErr_Occurred()) SWIG_fail;
43983 }
43984 {
43985 #if wxUSE_UNICODE
43986 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43987 #else
43988 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43989 #endif
43990 }
43991 return resultobj;
43992 fail:
43993 return NULL;
43994 }
43995
43996
43997 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43998 PyObject *resultobj = 0;
43999 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44000 wxString *arg2 = 0 ;
44001 void *argp1 = 0 ;
44002 int res1 = 0 ;
44003 bool temp2 = false ;
44004 PyObject * obj0 = 0 ;
44005 PyObject * obj1 = 0 ;
44006 char * kwnames[] = {
44007 (char *) "self",(char *) "str", NULL
44008 };
44009
44010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44012 if (!SWIG_IsOK(res1)) {
44013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44014 }
44015 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44016 {
44017 arg2 = wxString_in_helper(obj1);
44018 if (arg2 == NULL) SWIG_fail;
44019 temp2 = true;
44020 }
44021 {
44022 PyThreadState* __tstate = wxPyBeginAllowThreads();
44023 (arg1)->SetPath((wxString const &)*arg2);
44024 wxPyEndAllowThreads(__tstate);
44025 if (PyErr_Occurred()) SWIG_fail;
44026 }
44027 resultobj = SWIG_Py_Void();
44028 {
44029 if (temp2)
44030 delete arg2;
44031 }
44032 return resultobj;
44033 fail:
44034 {
44035 if (temp2)
44036 delete arg2;
44037 }
44038 return NULL;
44039 }
44040
44041
44042 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44043 PyObject *resultobj = 0;
44044 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44045 wxString *arg2 = 0 ;
44046 bool result;
44047 void *argp1 = 0 ;
44048 int res1 = 0 ;
44049 bool temp2 = false ;
44050 PyObject * obj0 = 0 ;
44051 PyObject * obj1 = 0 ;
44052 char * kwnames[] = {
44053 (char *) "self",(char *) "path", NULL
44054 };
44055
44056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44058 if (!SWIG_IsOK(res1)) {
44059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44060 }
44061 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44062 {
44063 arg2 = wxString_in_helper(obj1);
44064 if (arg2 == NULL) SWIG_fail;
44065 temp2 = true;
44066 }
44067 {
44068 PyThreadState* __tstate = wxPyBeginAllowThreads();
44069 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44070 wxPyEndAllowThreads(__tstate);
44071 if (PyErr_Occurred()) SWIG_fail;
44072 }
44073 {
44074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44075 }
44076 {
44077 if (temp2)
44078 delete arg2;
44079 }
44080 return resultobj;
44081 fail:
44082 {
44083 if (temp2)
44084 delete arg2;
44085 }
44086 return NULL;
44087 }
44088
44089
44090 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44091 PyObject *resultobj = 0;
44092 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44093 wxString result;
44094 void *argp1 = 0 ;
44095 int res1 = 0 ;
44096 PyObject *swig_obj[1] ;
44097
44098 if (!args) SWIG_fail;
44099 swig_obj[0] = args;
44100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44101 if (!SWIG_IsOK(res1)) {
44102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44103 }
44104 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44105 {
44106 PyThreadState* __tstate = wxPyBeginAllowThreads();
44107 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44108 wxPyEndAllowThreads(__tstate);
44109 if (PyErr_Occurred()) SWIG_fail;
44110 }
44111 {
44112 #if wxUSE_UNICODE
44113 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44114 #else
44115 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44116 #endif
44117 }
44118 return resultobj;
44119 fail:
44120 return NULL;
44121 }
44122
44123
44124 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44125 PyObject *obj;
44126 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44127 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44128 return SWIG_Py_Void();
44129 }
44130
44131 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44132 return SWIG_Python_InitShadowInstance(args);
44133 }
44134
44135 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44136 PyObject *resultobj = 0;
44137 wxWindow *arg1 = (wxWindow *) 0 ;
44138 int arg2 = (int) -1 ;
44139 wxString const &arg3_defvalue = wxPyEmptyString ;
44140 wxString *arg3 = (wxString *) &arg3_defvalue ;
44141 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44142 wxString *arg4 = (wxString *) &arg4_defvalue ;
44143 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44144 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44145 wxSize const &arg6_defvalue = wxDefaultSize ;
44146 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44147 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44148 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44149 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44150 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44151 wxString *arg9 = (wxString *) &arg9_defvalue ;
44152 wxDirPickerCtrl *result = 0 ;
44153 void *argp1 = 0 ;
44154 int res1 = 0 ;
44155 int val2 ;
44156 int ecode2 = 0 ;
44157 bool temp3 = false ;
44158 bool temp4 = false ;
44159 wxPoint temp5 ;
44160 wxSize temp6 ;
44161 long val7 ;
44162 int ecode7 = 0 ;
44163 void *argp8 = 0 ;
44164 int res8 = 0 ;
44165 bool temp9 = false ;
44166 PyObject * obj0 = 0 ;
44167 PyObject * obj1 = 0 ;
44168 PyObject * obj2 = 0 ;
44169 PyObject * obj3 = 0 ;
44170 PyObject * obj4 = 0 ;
44171 PyObject * obj5 = 0 ;
44172 PyObject * obj6 = 0 ;
44173 PyObject * obj7 = 0 ;
44174 PyObject * obj8 = 0 ;
44175 char * kwnames[] = {
44176 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44177 };
44178
44179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44181 if (!SWIG_IsOK(res1)) {
44182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44183 }
44184 arg1 = reinterpret_cast< wxWindow * >(argp1);
44185 if (obj1) {
44186 ecode2 = SWIG_AsVal_int(obj1, &val2);
44187 if (!SWIG_IsOK(ecode2)) {
44188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44189 }
44190 arg2 = static_cast< int >(val2);
44191 }
44192 if (obj2) {
44193 {
44194 arg3 = wxString_in_helper(obj2);
44195 if (arg3 == NULL) SWIG_fail;
44196 temp3 = true;
44197 }
44198 }
44199 if (obj3) {
44200 {
44201 arg4 = wxString_in_helper(obj3);
44202 if (arg4 == NULL) SWIG_fail;
44203 temp4 = true;
44204 }
44205 }
44206 if (obj4) {
44207 {
44208 arg5 = &temp5;
44209 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44210 }
44211 }
44212 if (obj5) {
44213 {
44214 arg6 = &temp6;
44215 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44216 }
44217 }
44218 if (obj6) {
44219 ecode7 = SWIG_AsVal_long(obj6, &val7);
44220 if (!SWIG_IsOK(ecode7)) {
44221 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44222 }
44223 arg7 = static_cast< long >(val7);
44224 }
44225 if (obj7) {
44226 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44227 if (!SWIG_IsOK(res8)) {
44228 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44229 }
44230 if (!argp8) {
44231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44232 }
44233 arg8 = reinterpret_cast< wxValidator * >(argp8);
44234 }
44235 if (obj8) {
44236 {
44237 arg9 = wxString_in_helper(obj8);
44238 if (arg9 == NULL) SWIG_fail;
44239 temp9 = true;
44240 }
44241 }
44242 {
44243 if (!wxPyCheckForApp()) SWIG_fail;
44244 PyThreadState* __tstate = wxPyBeginAllowThreads();
44245 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);
44246 wxPyEndAllowThreads(__tstate);
44247 if (PyErr_Occurred()) SWIG_fail;
44248 }
44249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44250 {
44251 if (temp3)
44252 delete arg3;
44253 }
44254 {
44255 if (temp4)
44256 delete arg4;
44257 }
44258 {
44259 if (temp9)
44260 delete arg9;
44261 }
44262 return resultobj;
44263 fail:
44264 {
44265 if (temp3)
44266 delete arg3;
44267 }
44268 {
44269 if (temp4)
44270 delete arg4;
44271 }
44272 {
44273 if (temp9)
44274 delete arg9;
44275 }
44276 return NULL;
44277 }
44278
44279
44280 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44281 PyObject *resultobj = 0;
44282 wxDirPickerCtrl *result = 0 ;
44283
44284 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44285 {
44286 if (!wxPyCheckForApp()) SWIG_fail;
44287 PyThreadState* __tstate = wxPyBeginAllowThreads();
44288 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44289 wxPyEndAllowThreads(__tstate);
44290 if (PyErr_Occurred()) SWIG_fail;
44291 }
44292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44293 return resultobj;
44294 fail:
44295 return NULL;
44296 }
44297
44298
44299 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44300 PyObject *resultobj = 0;
44301 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44302 wxWindow *arg2 = (wxWindow *) 0 ;
44303 int arg3 = (int) -1 ;
44304 wxString const &arg4_defvalue = wxPyEmptyString ;
44305 wxString *arg4 = (wxString *) &arg4_defvalue ;
44306 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44307 wxString *arg5 = (wxString *) &arg5_defvalue ;
44308 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44309 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44310 wxSize const &arg7_defvalue = wxDefaultSize ;
44311 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44312 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44313 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44314 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44315 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44316 wxString *arg10 = (wxString *) &arg10_defvalue ;
44317 bool result;
44318 void *argp1 = 0 ;
44319 int res1 = 0 ;
44320 void *argp2 = 0 ;
44321 int res2 = 0 ;
44322 int val3 ;
44323 int ecode3 = 0 ;
44324 bool temp4 = false ;
44325 bool temp5 = false ;
44326 wxPoint temp6 ;
44327 wxSize temp7 ;
44328 long val8 ;
44329 int ecode8 = 0 ;
44330 void *argp9 = 0 ;
44331 int res9 = 0 ;
44332 bool temp10 = false ;
44333 PyObject * obj0 = 0 ;
44334 PyObject * obj1 = 0 ;
44335 PyObject * obj2 = 0 ;
44336 PyObject * obj3 = 0 ;
44337 PyObject * obj4 = 0 ;
44338 PyObject * obj5 = 0 ;
44339 PyObject * obj6 = 0 ;
44340 PyObject * obj7 = 0 ;
44341 PyObject * obj8 = 0 ;
44342 PyObject * obj9 = 0 ;
44343 char * kwnames[] = {
44344 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44345 };
44346
44347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44349 if (!SWIG_IsOK(res1)) {
44350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44351 }
44352 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44353 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44354 if (!SWIG_IsOK(res2)) {
44355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44356 }
44357 arg2 = reinterpret_cast< wxWindow * >(argp2);
44358 if (obj2) {
44359 ecode3 = SWIG_AsVal_int(obj2, &val3);
44360 if (!SWIG_IsOK(ecode3)) {
44361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44362 }
44363 arg3 = static_cast< int >(val3);
44364 }
44365 if (obj3) {
44366 {
44367 arg4 = wxString_in_helper(obj3);
44368 if (arg4 == NULL) SWIG_fail;
44369 temp4 = true;
44370 }
44371 }
44372 if (obj4) {
44373 {
44374 arg5 = wxString_in_helper(obj4);
44375 if (arg5 == NULL) SWIG_fail;
44376 temp5 = true;
44377 }
44378 }
44379 if (obj5) {
44380 {
44381 arg6 = &temp6;
44382 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44383 }
44384 }
44385 if (obj6) {
44386 {
44387 arg7 = &temp7;
44388 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44389 }
44390 }
44391 if (obj7) {
44392 ecode8 = SWIG_AsVal_long(obj7, &val8);
44393 if (!SWIG_IsOK(ecode8)) {
44394 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44395 }
44396 arg8 = static_cast< long >(val8);
44397 }
44398 if (obj8) {
44399 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44400 if (!SWIG_IsOK(res9)) {
44401 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44402 }
44403 if (!argp9) {
44404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44405 }
44406 arg9 = reinterpret_cast< wxValidator * >(argp9);
44407 }
44408 if (obj9) {
44409 {
44410 arg10 = wxString_in_helper(obj9);
44411 if (arg10 == NULL) SWIG_fail;
44412 temp10 = true;
44413 }
44414 }
44415 {
44416 PyThreadState* __tstate = wxPyBeginAllowThreads();
44417 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);
44418 wxPyEndAllowThreads(__tstate);
44419 if (PyErr_Occurred()) SWIG_fail;
44420 }
44421 {
44422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44423 }
44424 {
44425 if (temp4)
44426 delete arg4;
44427 }
44428 {
44429 if (temp5)
44430 delete arg5;
44431 }
44432 {
44433 if (temp10)
44434 delete arg10;
44435 }
44436 return resultobj;
44437 fail:
44438 {
44439 if (temp4)
44440 delete arg4;
44441 }
44442 {
44443 if (temp5)
44444 delete arg5;
44445 }
44446 {
44447 if (temp10)
44448 delete arg10;
44449 }
44450 return NULL;
44451 }
44452
44453
44454 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44455 PyObject *resultobj = 0;
44456 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44457 wxString result;
44458 void *argp1 = 0 ;
44459 int res1 = 0 ;
44460 PyObject *swig_obj[1] ;
44461
44462 if (!args) SWIG_fail;
44463 swig_obj[0] = args;
44464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44465 if (!SWIG_IsOK(res1)) {
44466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44467 }
44468 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44469 {
44470 PyThreadState* __tstate = wxPyBeginAllowThreads();
44471 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44472 wxPyEndAllowThreads(__tstate);
44473 if (PyErr_Occurred()) SWIG_fail;
44474 }
44475 {
44476 #if wxUSE_UNICODE
44477 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44478 #else
44479 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44480 #endif
44481 }
44482 return resultobj;
44483 fail:
44484 return NULL;
44485 }
44486
44487
44488 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44489 PyObject *resultobj = 0;
44490 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44491 wxString *arg2 = 0 ;
44492 void *argp1 = 0 ;
44493 int res1 = 0 ;
44494 bool temp2 = false ;
44495 PyObject * obj0 = 0 ;
44496 PyObject * obj1 = 0 ;
44497 char * kwnames[] = {
44498 (char *) "self",(char *) "str", NULL
44499 };
44500
44501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44503 if (!SWIG_IsOK(res1)) {
44504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44505 }
44506 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44507 {
44508 arg2 = wxString_in_helper(obj1);
44509 if (arg2 == NULL) SWIG_fail;
44510 temp2 = true;
44511 }
44512 {
44513 PyThreadState* __tstate = wxPyBeginAllowThreads();
44514 (arg1)->SetPath((wxString const &)*arg2);
44515 wxPyEndAllowThreads(__tstate);
44516 if (PyErr_Occurred()) SWIG_fail;
44517 }
44518 resultobj = SWIG_Py_Void();
44519 {
44520 if (temp2)
44521 delete arg2;
44522 }
44523 return resultobj;
44524 fail:
44525 {
44526 if (temp2)
44527 delete arg2;
44528 }
44529 return NULL;
44530 }
44531
44532
44533 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44534 PyObject *resultobj = 0;
44535 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44536 wxString *arg2 = 0 ;
44537 bool result;
44538 void *argp1 = 0 ;
44539 int res1 = 0 ;
44540 bool temp2 = false ;
44541 PyObject * obj0 = 0 ;
44542 PyObject * obj1 = 0 ;
44543 char * kwnames[] = {
44544 (char *) "self",(char *) "path", NULL
44545 };
44546
44547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44549 if (!SWIG_IsOK(res1)) {
44550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44551 }
44552 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44553 {
44554 arg2 = wxString_in_helper(obj1);
44555 if (arg2 == NULL) SWIG_fail;
44556 temp2 = true;
44557 }
44558 {
44559 PyThreadState* __tstate = wxPyBeginAllowThreads();
44560 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44561 wxPyEndAllowThreads(__tstate);
44562 if (PyErr_Occurred()) SWIG_fail;
44563 }
44564 {
44565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44566 }
44567 {
44568 if (temp2)
44569 delete arg2;
44570 }
44571 return resultobj;
44572 fail:
44573 {
44574 if (temp2)
44575 delete arg2;
44576 }
44577 return NULL;
44578 }
44579
44580
44581 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44582 PyObject *resultobj = 0;
44583 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44584 wxString result;
44585 void *argp1 = 0 ;
44586 int res1 = 0 ;
44587 PyObject *swig_obj[1] ;
44588
44589 if (!args) SWIG_fail;
44590 swig_obj[0] = args;
44591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44592 if (!SWIG_IsOK(res1)) {
44593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44594 }
44595 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44596 {
44597 PyThreadState* __tstate = wxPyBeginAllowThreads();
44598 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44599 wxPyEndAllowThreads(__tstate);
44600 if (PyErr_Occurred()) SWIG_fail;
44601 }
44602 {
44603 #if wxUSE_UNICODE
44604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44605 #else
44606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44607 #endif
44608 }
44609 return resultobj;
44610 fail:
44611 return NULL;
44612 }
44613
44614
44615 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44616 PyObject *obj;
44617 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44618 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44619 return SWIG_Py_Void();
44620 }
44621
44622 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44623 return SWIG_Python_InitShadowInstance(args);
44624 }
44625
44626 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44627 PyObject *resultobj = 0;
44628 wxEventType arg1 ;
44629 wxObject *arg2 = (wxObject *) 0 ;
44630 int arg3 ;
44631 wxString *arg4 = 0 ;
44632 wxFileDirPickerEvent *result = 0 ;
44633 int val1 ;
44634 int ecode1 = 0 ;
44635 void *argp2 = 0 ;
44636 int res2 = 0 ;
44637 int val3 ;
44638 int ecode3 = 0 ;
44639 bool temp4 = false ;
44640 PyObject * obj0 = 0 ;
44641 PyObject * obj1 = 0 ;
44642 PyObject * obj2 = 0 ;
44643 PyObject * obj3 = 0 ;
44644 char * kwnames[] = {
44645 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44646 };
44647
44648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44649 ecode1 = SWIG_AsVal_int(obj0, &val1);
44650 if (!SWIG_IsOK(ecode1)) {
44651 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44652 }
44653 arg1 = static_cast< wxEventType >(val1);
44654 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44655 if (!SWIG_IsOK(res2)) {
44656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44657 }
44658 arg2 = reinterpret_cast< wxObject * >(argp2);
44659 ecode3 = SWIG_AsVal_int(obj2, &val3);
44660 if (!SWIG_IsOK(ecode3)) {
44661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44662 }
44663 arg3 = static_cast< int >(val3);
44664 {
44665 arg4 = wxString_in_helper(obj3);
44666 if (arg4 == NULL) SWIG_fail;
44667 temp4 = true;
44668 }
44669 {
44670 PyThreadState* __tstate = wxPyBeginAllowThreads();
44671 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44672 wxPyEndAllowThreads(__tstate);
44673 if (PyErr_Occurred()) SWIG_fail;
44674 }
44675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44676 {
44677 if (temp4)
44678 delete arg4;
44679 }
44680 return resultobj;
44681 fail:
44682 {
44683 if (temp4)
44684 delete arg4;
44685 }
44686 return NULL;
44687 }
44688
44689
44690 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44691 PyObject *resultobj = 0;
44692 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44693 wxString result;
44694 void *argp1 = 0 ;
44695 int res1 = 0 ;
44696 PyObject *swig_obj[1] ;
44697
44698 if (!args) SWIG_fail;
44699 swig_obj[0] = args;
44700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44701 if (!SWIG_IsOK(res1)) {
44702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44703 }
44704 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44705 {
44706 PyThreadState* __tstate = wxPyBeginAllowThreads();
44707 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44708 wxPyEndAllowThreads(__tstate);
44709 if (PyErr_Occurred()) SWIG_fail;
44710 }
44711 {
44712 #if wxUSE_UNICODE
44713 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44714 #else
44715 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44716 #endif
44717 }
44718 return resultobj;
44719 fail:
44720 return NULL;
44721 }
44722
44723
44724 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44725 PyObject *resultobj = 0;
44726 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44727 wxString *arg2 = 0 ;
44728 void *argp1 = 0 ;
44729 int res1 = 0 ;
44730 bool temp2 = false ;
44731 PyObject * obj0 = 0 ;
44732 PyObject * obj1 = 0 ;
44733 char * kwnames[] = {
44734 (char *) "self",(char *) "p", NULL
44735 };
44736
44737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44739 if (!SWIG_IsOK(res1)) {
44740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44741 }
44742 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44743 {
44744 arg2 = wxString_in_helper(obj1);
44745 if (arg2 == NULL) SWIG_fail;
44746 temp2 = true;
44747 }
44748 {
44749 PyThreadState* __tstate = wxPyBeginAllowThreads();
44750 (arg1)->SetPath((wxString const &)*arg2);
44751 wxPyEndAllowThreads(__tstate);
44752 if (PyErr_Occurred()) SWIG_fail;
44753 }
44754 resultobj = SWIG_Py_Void();
44755 {
44756 if (temp2)
44757 delete arg2;
44758 }
44759 return resultobj;
44760 fail:
44761 {
44762 if (temp2)
44763 delete arg2;
44764 }
44765 return NULL;
44766 }
44767
44768
44769 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44770 PyObject *obj;
44771 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44772 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44773 return SWIG_Py_Void();
44774 }
44775
44776 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44777 return SWIG_Python_InitShadowInstance(args);
44778 }
44779
44780 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44781 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44782 return 1;
44783 }
44784
44785
44786 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44787 PyObject *pyobj = 0;
44788
44789 {
44790 #if wxUSE_UNICODE
44791 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44792 #else
44793 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44794 #endif
44795 }
44796 return pyobj;
44797 }
44798
44799
44800 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44801 PyObject *resultobj = 0;
44802 wxWindow *arg1 = (wxWindow *) 0 ;
44803 int arg2 = (int) -1 ;
44804 wxFont const &arg3_defvalue = wxNullFont ;
44805 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44806 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44807 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44808 wxSize const &arg5_defvalue = wxDefaultSize ;
44809 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44810 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44811 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44812 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44813 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44814 wxString *arg8 = (wxString *) &arg8_defvalue ;
44815 wxFontPickerCtrl *result = 0 ;
44816 void *argp1 = 0 ;
44817 int res1 = 0 ;
44818 int val2 ;
44819 int ecode2 = 0 ;
44820 void *argp3 = 0 ;
44821 int res3 = 0 ;
44822 wxPoint temp4 ;
44823 wxSize temp5 ;
44824 long val6 ;
44825 int ecode6 = 0 ;
44826 void *argp7 = 0 ;
44827 int res7 = 0 ;
44828 bool temp8 = false ;
44829 PyObject * obj0 = 0 ;
44830 PyObject * obj1 = 0 ;
44831 PyObject * obj2 = 0 ;
44832 PyObject * obj3 = 0 ;
44833 PyObject * obj4 = 0 ;
44834 PyObject * obj5 = 0 ;
44835 PyObject * obj6 = 0 ;
44836 PyObject * obj7 = 0 ;
44837 char * kwnames[] = {
44838 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44839 };
44840
44841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44843 if (!SWIG_IsOK(res1)) {
44844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44845 }
44846 arg1 = reinterpret_cast< wxWindow * >(argp1);
44847 if (obj1) {
44848 ecode2 = SWIG_AsVal_int(obj1, &val2);
44849 if (!SWIG_IsOK(ecode2)) {
44850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44851 }
44852 arg2 = static_cast< int >(val2);
44853 }
44854 if (obj2) {
44855 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44856 if (!SWIG_IsOK(res3)) {
44857 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44858 }
44859 if (!argp3) {
44860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44861 }
44862 arg3 = reinterpret_cast< wxFont * >(argp3);
44863 }
44864 if (obj3) {
44865 {
44866 arg4 = &temp4;
44867 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44868 }
44869 }
44870 if (obj4) {
44871 {
44872 arg5 = &temp5;
44873 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44874 }
44875 }
44876 if (obj5) {
44877 ecode6 = SWIG_AsVal_long(obj5, &val6);
44878 if (!SWIG_IsOK(ecode6)) {
44879 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44880 }
44881 arg6 = static_cast< long >(val6);
44882 }
44883 if (obj6) {
44884 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44885 if (!SWIG_IsOK(res7)) {
44886 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44887 }
44888 if (!argp7) {
44889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44890 }
44891 arg7 = reinterpret_cast< wxValidator * >(argp7);
44892 }
44893 if (obj7) {
44894 {
44895 arg8 = wxString_in_helper(obj7);
44896 if (arg8 == NULL) SWIG_fail;
44897 temp8 = true;
44898 }
44899 }
44900 {
44901 if (!wxPyCheckForApp()) SWIG_fail;
44902 PyThreadState* __tstate = wxPyBeginAllowThreads();
44903 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44904 wxPyEndAllowThreads(__tstate);
44905 if (PyErr_Occurred()) SWIG_fail;
44906 }
44907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44908 {
44909 if (temp8)
44910 delete arg8;
44911 }
44912 return resultobj;
44913 fail:
44914 {
44915 if (temp8)
44916 delete arg8;
44917 }
44918 return NULL;
44919 }
44920
44921
44922 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44923 PyObject *resultobj = 0;
44924 wxFontPickerCtrl *result = 0 ;
44925
44926 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44927 {
44928 if (!wxPyCheckForApp()) SWIG_fail;
44929 PyThreadState* __tstate = wxPyBeginAllowThreads();
44930 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44931 wxPyEndAllowThreads(__tstate);
44932 if (PyErr_Occurred()) SWIG_fail;
44933 }
44934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44935 return resultobj;
44936 fail:
44937 return NULL;
44938 }
44939
44940
44941 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44942 PyObject *resultobj = 0;
44943 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44944 wxWindow *arg2 = (wxWindow *) 0 ;
44945 int arg3 = (int) -1 ;
44946 wxFont const &arg4_defvalue = wxNullFont ;
44947 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44948 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44949 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44950 wxSize const &arg6_defvalue = wxDefaultSize ;
44951 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44952 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44953 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44954 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44955 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44956 wxString *arg9 = (wxString *) &arg9_defvalue ;
44957 bool result;
44958 void *argp1 = 0 ;
44959 int res1 = 0 ;
44960 void *argp2 = 0 ;
44961 int res2 = 0 ;
44962 int val3 ;
44963 int ecode3 = 0 ;
44964 void *argp4 = 0 ;
44965 int res4 = 0 ;
44966 wxPoint temp5 ;
44967 wxSize temp6 ;
44968 long val7 ;
44969 int ecode7 = 0 ;
44970 void *argp8 = 0 ;
44971 int res8 = 0 ;
44972 bool temp9 = false ;
44973 PyObject * obj0 = 0 ;
44974 PyObject * obj1 = 0 ;
44975 PyObject * obj2 = 0 ;
44976 PyObject * obj3 = 0 ;
44977 PyObject * obj4 = 0 ;
44978 PyObject * obj5 = 0 ;
44979 PyObject * obj6 = 0 ;
44980 PyObject * obj7 = 0 ;
44981 PyObject * obj8 = 0 ;
44982 char * kwnames[] = {
44983 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44984 };
44985
44986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44988 if (!SWIG_IsOK(res1)) {
44989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44990 }
44991 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44992 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44993 if (!SWIG_IsOK(res2)) {
44994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44995 }
44996 arg2 = reinterpret_cast< wxWindow * >(argp2);
44997 if (obj2) {
44998 ecode3 = SWIG_AsVal_int(obj2, &val3);
44999 if (!SWIG_IsOK(ecode3)) {
45000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45001 }
45002 arg3 = static_cast< int >(val3);
45003 }
45004 if (obj3) {
45005 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45006 if (!SWIG_IsOK(res4)) {
45007 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45008 }
45009 if (!argp4) {
45010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45011 }
45012 arg4 = reinterpret_cast< wxFont * >(argp4);
45013 }
45014 if (obj4) {
45015 {
45016 arg5 = &temp5;
45017 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45018 }
45019 }
45020 if (obj5) {
45021 {
45022 arg6 = &temp6;
45023 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45024 }
45025 }
45026 if (obj6) {
45027 ecode7 = SWIG_AsVal_long(obj6, &val7);
45028 if (!SWIG_IsOK(ecode7)) {
45029 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45030 }
45031 arg7 = static_cast< long >(val7);
45032 }
45033 if (obj7) {
45034 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45035 if (!SWIG_IsOK(res8)) {
45036 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45037 }
45038 if (!argp8) {
45039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45040 }
45041 arg8 = reinterpret_cast< wxValidator * >(argp8);
45042 }
45043 if (obj8) {
45044 {
45045 arg9 = wxString_in_helper(obj8);
45046 if (arg9 == NULL) SWIG_fail;
45047 temp9 = true;
45048 }
45049 }
45050 {
45051 PyThreadState* __tstate = wxPyBeginAllowThreads();
45052 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45053 wxPyEndAllowThreads(__tstate);
45054 if (PyErr_Occurred()) SWIG_fail;
45055 }
45056 {
45057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45058 }
45059 {
45060 if (temp9)
45061 delete arg9;
45062 }
45063 return resultobj;
45064 fail:
45065 {
45066 if (temp9)
45067 delete arg9;
45068 }
45069 return NULL;
45070 }
45071
45072
45073 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45074 PyObject *resultobj = 0;
45075 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45076 wxFont result;
45077 void *argp1 = 0 ;
45078 int res1 = 0 ;
45079 PyObject *swig_obj[1] ;
45080
45081 if (!args) SWIG_fail;
45082 swig_obj[0] = args;
45083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45084 if (!SWIG_IsOK(res1)) {
45085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45086 }
45087 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45088 {
45089 PyThreadState* __tstate = wxPyBeginAllowThreads();
45090 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45091 wxPyEndAllowThreads(__tstate);
45092 if (PyErr_Occurred()) SWIG_fail;
45093 }
45094 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45095 return resultobj;
45096 fail:
45097 return NULL;
45098 }
45099
45100
45101 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45102 PyObject *resultobj = 0;
45103 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45104 wxFont *arg2 = 0 ;
45105 void *argp1 = 0 ;
45106 int res1 = 0 ;
45107 void *argp2 = 0 ;
45108 int res2 = 0 ;
45109 PyObject * obj0 = 0 ;
45110 PyObject * obj1 = 0 ;
45111 char * kwnames[] = {
45112 (char *) "self",(char *) "f", NULL
45113 };
45114
45115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45117 if (!SWIG_IsOK(res1)) {
45118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45119 }
45120 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45121 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45122 if (!SWIG_IsOK(res2)) {
45123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45124 }
45125 if (!argp2) {
45126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45127 }
45128 arg2 = reinterpret_cast< wxFont * >(argp2);
45129 {
45130 PyThreadState* __tstate = wxPyBeginAllowThreads();
45131 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45132 wxPyEndAllowThreads(__tstate);
45133 if (PyErr_Occurred()) SWIG_fail;
45134 }
45135 resultobj = SWIG_Py_Void();
45136 return resultobj;
45137 fail:
45138 return NULL;
45139 }
45140
45141
45142 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45143 PyObject *resultobj = 0;
45144 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45145 unsigned int arg2 ;
45146 void *argp1 = 0 ;
45147 int res1 = 0 ;
45148 unsigned int val2 ;
45149 int ecode2 = 0 ;
45150 PyObject * obj0 = 0 ;
45151 PyObject * obj1 = 0 ;
45152 char * kwnames[] = {
45153 (char *) "self",(char *) "max", NULL
45154 };
45155
45156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45158 if (!SWIG_IsOK(res1)) {
45159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45160 }
45161 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45162 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45163 if (!SWIG_IsOK(ecode2)) {
45164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45165 }
45166 arg2 = static_cast< unsigned int >(val2);
45167 {
45168 PyThreadState* __tstate = wxPyBeginAllowThreads();
45169 (arg1)->SetMaxPointSize(arg2);
45170 wxPyEndAllowThreads(__tstate);
45171 if (PyErr_Occurred()) SWIG_fail;
45172 }
45173 resultobj = SWIG_Py_Void();
45174 return resultobj;
45175 fail:
45176 return NULL;
45177 }
45178
45179
45180 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45181 PyObject *resultobj = 0;
45182 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45183 unsigned int result;
45184 void *argp1 = 0 ;
45185 int res1 = 0 ;
45186 PyObject *swig_obj[1] ;
45187
45188 if (!args) SWIG_fail;
45189 swig_obj[0] = args;
45190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45191 if (!SWIG_IsOK(res1)) {
45192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45193 }
45194 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45195 {
45196 PyThreadState* __tstate = wxPyBeginAllowThreads();
45197 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45198 wxPyEndAllowThreads(__tstate);
45199 if (PyErr_Occurred()) SWIG_fail;
45200 }
45201 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45202 return resultobj;
45203 fail:
45204 return NULL;
45205 }
45206
45207
45208 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45209 PyObject *obj;
45210 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45211 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45212 return SWIG_Py_Void();
45213 }
45214
45215 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45216 return SWIG_Python_InitShadowInstance(args);
45217 }
45218
45219 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45220 PyObject *resultobj = 0;
45221 wxObject *arg1 = (wxObject *) 0 ;
45222 int arg2 ;
45223 wxFont *arg3 = 0 ;
45224 wxFontPickerEvent *result = 0 ;
45225 void *argp1 = 0 ;
45226 int res1 = 0 ;
45227 int val2 ;
45228 int ecode2 = 0 ;
45229 void *argp3 = 0 ;
45230 int res3 = 0 ;
45231 PyObject * obj0 = 0 ;
45232 PyObject * obj1 = 0 ;
45233 PyObject * obj2 = 0 ;
45234 char * kwnames[] = {
45235 (char *) "generator",(char *) "id",(char *) "f", NULL
45236 };
45237
45238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45240 if (!SWIG_IsOK(res1)) {
45241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45242 }
45243 arg1 = reinterpret_cast< wxObject * >(argp1);
45244 ecode2 = SWIG_AsVal_int(obj1, &val2);
45245 if (!SWIG_IsOK(ecode2)) {
45246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45247 }
45248 arg2 = static_cast< int >(val2);
45249 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45250 if (!SWIG_IsOK(res3)) {
45251 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45252 }
45253 if (!argp3) {
45254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45255 }
45256 arg3 = reinterpret_cast< wxFont * >(argp3);
45257 {
45258 PyThreadState* __tstate = wxPyBeginAllowThreads();
45259 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45260 wxPyEndAllowThreads(__tstate);
45261 if (PyErr_Occurred()) SWIG_fail;
45262 }
45263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45264 return resultobj;
45265 fail:
45266 return NULL;
45267 }
45268
45269
45270 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45271 PyObject *resultobj = 0;
45272 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45273 wxFont result;
45274 void *argp1 = 0 ;
45275 int res1 = 0 ;
45276 PyObject *swig_obj[1] ;
45277
45278 if (!args) SWIG_fail;
45279 swig_obj[0] = args;
45280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45281 if (!SWIG_IsOK(res1)) {
45282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45283 }
45284 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45285 {
45286 PyThreadState* __tstate = wxPyBeginAllowThreads();
45287 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45288 wxPyEndAllowThreads(__tstate);
45289 if (PyErr_Occurred()) SWIG_fail;
45290 }
45291 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45292 return resultobj;
45293 fail:
45294 return NULL;
45295 }
45296
45297
45298 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45299 PyObject *resultobj = 0;
45300 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45301 wxFont *arg2 = 0 ;
45302 void *argp1 = 0 ;
45303 int res1 = 0 ;
45304 void *argp2 = 0 ;
45305 int res2 = 0 ;
45306 PyObject * obj0 = 0 ;
45307 PyObject * obj1 = 0 ;
45308 char * kwnames[] = {
45309 (char *) "self",(char *) "c", NULL
45310 };
45311
45312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45314 if (!SWIG_IsOK(res1)) {
45315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45316 }
45317 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45319 if (!SWIG_IsOK(res2)) {
45320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45321 }
45322 if (!argp2) {
45323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45324 }
45325 arg2 = reinterpret_cast< wxFont * >(argp2);
45326 {
45327 PyThreadState* __tstate = wxPyBeginAllowThreads();
45328 (arg1)->SetFont((wxFont const &)*arg2);
45329 wxPyEndAllowThreads(__tstate);
45330 if (PyErr_Occurred()) SWIG_fail;
45331 }
45332 resultobj = SWIG_Py_Void();
45333 return resultobj;
45334 fail:
45335 return NULL;
45336 }
45337
45338
45339 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45340 PyObject *obj;
45341 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45342 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45343 return SWIG_Py_Void();
45344 }
45345
45346 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45347 return SWIG_Python_InitShadowInstance(args);
45348 }
45349
45350 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45351 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45352 return 1;
45353 }
45354
45355
45356 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45357 PyObject *pyobj = 0;
45358
45359 {
45360 #if wxUSE_UNICODE
45361 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45362 #else
45363 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45364 #endif
45365 }
45366 return pyobj;
45367 }
45368
45369
45370 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45371 PyObject *resultobj = 0;
45372 wxWindow *arg1 = (wxWindow *) 0 ;
45373 int arg2 = (int) -1 ;
45374 wxString const &arg3_defvalue = wxPyEmptyString ;
45375 wxString *arg3 = (wxString *) &arg3_defvalue ;
45376 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45377 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45378 wxSize const &arg5_defvalue = wxDefaultSize ;
45379 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45380 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45381 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45382 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45383 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45384 wxString *arg8 = (wxString *) &arg8_defvalue ;
45385 wxCollapsiblePane *result = 0 ;
45386 void *argp1 = 0 ;
45387 int res1 = 0 ;
45388 int val2 ;
45389 int ecode2 = 0 ;
45390 bool temp3 = false ;
45391 wxPoint temp4 ;
45392 wxSize temp5 ;
45393 long val6 ;
45394 int ecode6 = 0 ;
45395 void *argp7 = 0 ;
45396 int res7 = 0 ;
45397 bool temp8 = false ;
45398 PyObject * obj0 = 0 ;
45399 PyObject * obj1 = 0 ;
45400 PyObject * obj2 = 0 ;
45401 PyObject * obj3 = 0 ;
45402 PyObject * obj4 = 0 ;
45403 PyObject * obj5 = 0 ;
45404 PyObject * obj6 = 0 ;
45405 PyObject * obj7 = 0 ;
45406 char * kwnames[] = {
45407 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45408 };
45409
45410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45412 if (!SWIG_IsOK(res1)) {
45413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45414 }
45415 arg1 = reinterpret_cast< wxWindow * >(argp1);
45416 if (obj1) {
45417 ecode2 = SWIG_AsVal_int(obj1, &val2);
45418 if (!SWIG_IsOK(ecode2)) {
45419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45420 }
45421 arg2 = static_cast< int >(val2);
45422 }
45423 if (obj2) {
45424 {
45425 arg3 = wxString_in_helper(obj2);
45426 if (arg3 == NULL) SWIG_fail;
45427 temp3 = true;
45428 }
45429 }
45430 if (obj3) {
45431 {
45432 arg4 = &temp4;
45433 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45434 }
45435 }
45436 if (obj4) {
45437 {
45438 arg5 = &temp5;
45439 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45440 }
45441 }
45442 if (obj5) {
45443 ecode6 = SWIG_AsVal_long(obj5, &val6);
45444 if (!SWIG_IsOK(ecode6)) {
45445 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45446 }
45447 arg6 = static_cast< long >(val6);
45448 }
45449 if (obj6) {
45450 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45451 if (!SWIG_IsOK(res7)) {
45452 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45453 }
45454 if (!argp7) {
45455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45456 }
45457 arg7 = reinterpret_cast< wxValidator * >(argp7);
45458 }
45459 if (obj7) {
45460 {
45461 arg8 = wxString_in_helper(obj7);
45462 if (arg8 == NULL) SWIG_fail;
45463 temp8 = true;
45464 }
45465 }
45466 {
45467 if (!wxPyCheckForApp()) SWIG_fail;
45468 PyThreadState* __tstate = wxPyBeginAllowThreads();
45469 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45470 wxPyEndAllowThreads(__tstate);
45471 if (PyErr_Occurred()) SWIG_fail;
45472 }
45473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45474 {
45475 if (temp3)
45476 delete arg3;
45477 }
45478 {
45479 if (temp8)
45480 delete arg8;
45481 }
45482 return resultobj;
45483 fail:
45484 {
45485 if (temp3)
45486 delete arg3;
45487 }
45488 {
45489 if (temp8)
45490 delete arg8;
45491 }
45492 return NULL;
45493 }
45494
45495
45496 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45497 PyObject *resultobj = 0;
45498 wxCollapsiblePane *result = 0 ;
45499
45500 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45501 {
45502 if (!wxPyCheckForApp()) SWIG_fail;
45503 PyThreadState* __tstate = wxPyBeginAllowThreads();
45504 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45505 wxPyEndAllowThreads(__tstate);
45506 if (PyErr_Occurred()) SWIG_fail;
45507 }
45508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45509 return resultobj;
45510 fail:
45511 return NULL;
45512 }
45513
45514
45515 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45516 PyObject *resultobj = 0;
45517 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45518 wxWindow *arg2 = (wxWindow *) 0 ;
45519 int arg3 = (int) -1 ;
45520 wxString const &arg4_defvalue = wxPyEmptyString ;
45521 wxString *arg4 = (wxString *) &arg4_defvalue ;
45522 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45523 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45524 wxSize const &arg6_defvalue = wxDefaultSize ;
45525 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45526 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45527 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45528 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45529 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45530 wxString *arg9 = (wxString *) &arg9_defvalue ;
45531 bool result;
45532 void *argp1 = 0 ;
45533 int res1 = 0 ;
45534 void *argp2 = 0 ;
45535 int res2 = 0 ;
45536 int val3 ;
45537 int ecode3 = 0 ;
45538 bool temp4 = false ;
45539 wxPoint temp5 ;
45540 wxSize temp6 ;
45541 long val7 ;
45542 int ecode7 = 0 ;
45543 void *argp8 = 0 ;
45544 int res8 = 0 ;
45545 bool temp9 = false ;
45546 PyObject * obj0 = 0 ;
45547 PyObject * obj1 = 0 ;
45548 PyObject * obj2 = 0 ;
45549 PyObject * obj3 = 0 ;
45550 PyObject * obj4 = 0 ;
45551 PyObject * obj5 = 0 ;
45552 PyObject * obj6 = 0 ;
45553 PyObject * obj7 = 0 ;
45554 PyObject * obj8 = 0 ;
45555 char * kwnames[] = {
45556 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45557 };
45558
45559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45561 if (!SWIG_IsOK(res1)) {
45562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45563 }
45564 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45566 if (!SWIG_IsOK(res2)) {
45567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45568 }
45569 arg2 = reinterpret_cast< wxWindow * >(argp2);
45570 if (obj2) {
45571 ecode3 = SWIG_AsVal_int(obj2, &val3);
45572 if (!SWIG_IsOK(ecode3)) {
45573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45574 }
45575 arg3 = static_cast< int >(val3);
45576 }
45577 if (obj3) {
45578 {
45579 arg4 = wxString_in_helper(obj3);
45580 if (arg4 == NULL) SWIG_fail;
45581 temp4 = true;
45582 }
45583 }
45584 if (obj4) {
45585 {
45586 arg5 = &temp5;
45587 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45588 }
45589 }
45590 if (obj5) {
45591 {
45592 arg6 = &temp6;
45593 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45594 }
45595 }
45596 if (obj6) {
45597 ecode7 = SWIG_AsVal_long(obj6, &val7);
45598 if (!SWIG_IsOK(ecode7)) {
45599 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45600 }
45601 arg7 = static_cast< long >(val7);
45602 }
45603 if (obj7) {
45604 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45605 if (!SWIG_IsOK(res8)) {
45606 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45607 }
45608 if (!argp8) {
45609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45610 }
45611 arg8 = reinterpret_cast< wxValidator * >(argp8);
45612 }
45613 if (obj8) {
45614 {
45615 arg9 = wxString_in_helper(obj8);
45616 if (arg9 == NULL) SWIG_fail;
45617 temp9 = true;
45618 }
45619 }
45620 {
45621 PyThreadState* __tstate = wxPyBeginAllowThreads();
45622 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45623 wxPyEndAllowThreads(__tstate);
45624 if (PyErr_Occurred()) SWIG_fail;
45625 }
45626 {
45627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45628 }
45629 {
45630 if (temp4)
45631 delete arg4;
45632 }
45633 {
45634 if (temp9)
45635 delete arg9;
45636 }
45637 return resultobj;
45638 fail:
45639 {
45640 if (temp4)
45641 delete arg4;
45642 }
45643 {
45644 if (temp9)
45645 delete arg9;
45646 }
45647 return NULL;
45648 }
45649
45650
45651 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45652 PyObject *resultobj = 0;
45653 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45654 bool arg2 = (bool) true ;
45655 void *argp1 = 0 ;
45656 int res1 = 0 ;
45657 bool val2 ;
45658 int ecode2 = 0 ;
45659 PyObject * obj0 = 0 ;
45660 PyObject * obj1 = 0 ;
45661 char * kwnames[] = {
45662 (char *) "self",(char *) "collapse", NULL
45663 };
45664
45665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45667 if (!SWIG_IsOK(res1)) {
45668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45669 }
45670 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45671 if (obj1) {
45672 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45673 if (!SWIG_IsOK(ecode2)) {
45674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45675 }
45676 arg2 = static_cast< bool >(val2);
45677 }
45678 {
45679 PyThreadState* __tstate = wxPyBeginAllowThreads();
45680 (arg1)->Collapse(arg2);
45681 wxPyEndAllowThreads(__tstate);
45682 if (PyErr_Occurred()) SWIG_fail;
45683 }
45684 resultobj = SWIG_Py_Void();
45685 return resultobj;
45686 fail:
45687 return NULL;
45688 }
45689
45690
45691 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45692 PyObject *resultobj = 0;
45693 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45694 void *argp1 = 0 ;
45695 int res1 = 0 ;
45696 PyObject *swig_obj[1] ;
45697
45698 if (!args) SWIG_fail;
45699 swig_obj[0] = args;
45700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45701 if (!SWIG_IsOK(res1)) {
45702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45703 }
45704 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45705 {
45706 PyThreadState* __tstate = wxPyBeginAllowThreads();
45707 (arg1)->Expand();
45708 wxPyEndAllowThreads(__tstate);
45709 if (PyErr_Occurred()) SWIG_fail;
45710 }
45711 resultobj = SWIG_Py_Void();
45712 return resultobj;
45713 fail:
45714 return NULL;
45715 }
45716
45717
45718 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45719 PyObject *resultobj = 0;
45720 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45721 bool result;
45722 void *argp1 = 0 ;
45723 int res1 = 0 ;
45724 PyObject *swig_obj[1] ;
45725
45726 if (!args) SWIG_fail;
45727 swig_obj[0] = args;
45728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45729 if (!SWIG_IsOK(res1)) {
45730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45731 }
45732 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45733 {
45734 PyThreadState* __tstate = wxPyBeginAllowThreads();
45735 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
45736 wxPyEndAllowThreads(__tstate);
45737 if (PyErr_Occurred()) SWIG_fail;
45738 }
45739 {
45740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45741 }
45742 return resultobj;
45743 fail:
45744 return NULL;
45745 }
45746
45747
45748 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45749 PyObject *resultobj = 0;
45750 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45751 bool result;
45752 void *argp1 = 0 ;
45753 int res1 = 0 ;
45754 PyObject *swig_obj[1] ;
45755
45756 if (!args) SWIG_fail;
45757 swig_obj[0] = args;
45758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45759 if (!SWIG_IsOK(res1)) {
45760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45761 }
45762 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45763 {
45764 PyThreadState* __tstate = wxPyBeginAllowThreads();
45765 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
45766 wxPyEndAllowThreads(__tstate);
45767 if (PyErr_Occurred()) SWIG_fail;
45768 }
45769 {
45770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45771 }
45772 return resultobj;
45773 fail:
45774 return NULL;
45775 }
45776
45777
45778 SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45779 PyObject *resultobj = 0;
45780 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45781 wxWindow *result = 0 ;
45782 void *argp1 = 0 ;
45783 int res1 = 0 ;
45784 PyObject *swig_obj[1] ;
45785
45786 if (!args) SWIG_fail;
45787 swig_obj[0] = args;
45788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45789 if (!SWIG_IsOK(res1)) {
45790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45791 }
45792 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45793 {
45794 PyThreadState* __tstate = wxPyBeginAllowThreads();
45795 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
45796 wxPyEndAllowThreads(__tstate);
45797 if (PyErr_Occurred()) SWIG_fail;
45798 }
45799 {
45800 resultobj = wxPyMake_wxObject(result, 0);
45801 }
45802 return resultobj;
45803 fail:
45804 return NULL;
45805 }
45806
45807
45808 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45809 PyObject *obj;
45810 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45811 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
45812 return SWIG_Py_Void();
45813 }
45814
45815 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45816 return SWIG_Python_InitShadowInstance(args);
45817 }
45818
45819 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45820 PyObject *resultobj = 0;
45821 wxObject *arg1 = (wxObject *) 0 ;
45822 int arg2 ;
45823 bool arg3 ;
45824 wxCollapsiblePaneEvent *result = 0 ;
45825 void *argp1 = 0 ;
45826 int res1 = 0 ;
45827 int val2 ;
45828 int ecode2 = 0 ;
45829 bool val3 ;
45830 int ecode3 = 0 ;
45831 PyObject * obj0 = 0 ;
45832 PyObject * obj1 = 0 ;
45833 PyObject * obj2 = 0 ;
45834 char * kwnames[] = {
45835 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
45836 };
45837
45838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45840 if (!SWIG_IsOK(res1)) {
45841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45842 }
45843 arg1 = reinterpret_cast< wxObject * >(argp1);
45844 ecode2 = SWIG_AsVal_int(obj1, &val2);
45845 if (!SWIG_IsOK(ecode2)) {
45846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
45847 }
45848 arg2 = static_cast< int >(val2);
45849 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45850 if (!SWIG_IsOK(ecode3)) {
45851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
45852 }
45853 arg3 = static_cast< bool >(val3);
45854 {
45855 PyThreadState* __tstate = wxPyBeginAllowThreads();
45856 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
45857 wxPyEndAllowThreads(__tstate);
45858 if (PyErr_Occurred()) SWIG_fail;
45859 }
45860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
45861 return resultobj;
45862 fail:
45863 return NULL;
45864 }
45865
45866
45867 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45868 PyObject *resultobj = 0;
45869 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45870 bool result;
45871 void *argp1 = 0 ;
45872 int res1 = 0 ;
45873 PyObject *swig_obj[1] ;
45874
45875 if (!args) SWIG_fail;
45876 swig_obj[0] = args;
45877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45878 if (!SWIG_IsOK(res1)) {
45879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
45880 }
45881 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45882 {
45883 PyThreadState* __tstate = wxPyBeginAllowThreads();
45884 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
45885 wxPyEndAllowThreads(__tstate);
45886 if (PyErr_Occurred()) SWIG_fail;
45887 }
45888 {
45889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45890 }
45891 return resultobj;
45892 fail:
45893 return NULL;
45894 }
45895
45896
45897 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45898 PyObject *resultobj = 0;
45899 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45900 bool arg2 ;
45901 void *argp1 = 0 ;
45902 int res1 = 0 ;
45903 bool val2 ;
45904 int ecode2 = 0 ;
45905 PyObject * obj0 = 0 ;
45906 PyObject * obj1 = 0 ;
45907 char * kwnames[] = {
45908 (char *) "self",(char *) "c", NULL
45909 };
45910
45911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
45912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45913 if (!SWIG_IsOK(res1)) {
45914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
45915 }
45916 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45917 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45918 if (!SWIG_IsOK(ecode2)) {
45919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
45920 }
45921 arg2 = static_cast< bool >(val2);
45922 {
45923 PyThreadState* __tstate = wxPyBeginAllowThreads();
45924 (arg1)->SetCollapsed(arg2);
45925 wxPyEndAllowThreads(__tstate);
45926 if (PyErr_Occurred()) SWIG_fail;
45927 }
45928 resultobj = SWIG_Py_Void();
45929 return resultobj;
45930 fail:
45931 return NULL;
45932 }
45933
45934
45935 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45936 PyObject *obj;
45937 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45938 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
45939 return SWIG_Py_Void();
45940 }
45941
45942 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45943 return SWIG_Python_InitShadowInstance(args);
45944 }
45945
45946 SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
45947 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
45948 return 1;
45949 }
45950
45951
45952 SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
45953 PyObject *pyobj = 0;
45954
45955 {
45956 #if wxUSE_UNICODE
45957 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
45958 #else
45959 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
45960 #endif
45961 }
45962 return pyobj;
45963 }
45964
45965
45966 SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45967 PyObject *resultobj = 0;
45968 wxWindow *arg1 = (wxWindow *) 0 ;
45969 int arg2 = (int) -1 ;
45970 wxString const &arg3_defvalue = wxEmptyString ;
45971 wxString *arg3 = (wxString *) &arg3_defvalue ;
45972 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45973 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45974 wxSize const &arg5_defvalue = wxDefaultSize ;
45975 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45976 long arg6 = (long) 0 ;
45977 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45978 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45979 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
45980 wxString *arg8 = (wxString *) &arg8_defvalue ;
45981 wxSearchCtrl *result = 0 ;
45982 void *argp1 = 0 ;
45983 int res1 = 0 ;
45984 int val2 ;
45985 int ecode2 = 0 ;
45986 bool temp3 = false ;
45987 wxPoint temp4 ;
45988 wxSize temp5 ;
45989 long val6 ;
45990 int ecode6 = 0 ;
45991 void *argp7 = 0 ;
45992 int res7 = 0 ;
45993 bool temp8 = false ;
45994 PyObject * obj0 = 0 ;
45995 PyObject * obj1 = 0 ;
45996 PyObject * obj2 = 0 ;
45997 PyObject * obj3 = 0 ;
45998 PyObject * obj4 = 0 ;
45999 PyObject * obj5 = 0 ;
46000 PyObject * obj6 = 0 ;
46001 PyObject * obj7 = 0 ;
46002 char * kwnames[] = {
46003 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46004 };
46005
46006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46008 if (!SWIG_IsOK(res1)) {
46009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46010 }
46011 arg1 = reinterpret_cast< wxWindow * >(argp1);
46012 if (obj1) {
46013 ecode2 = SWIG_AsVal_int(obj1, &val2);
46014 if (!SWIG_IsOK(ecode2)) {
46015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46016 }
46017 arg2 = static_cast< int >(val2);
46018 }
46019 if (obj2) {
46020 {
46021 arg3 = wxString_in_helper(obj2);
46022 if (arg3 == NULL) SWIG_fail;
46023 temp3 = true;
46024 }
46025 }
46026 if (obj3) {
46027 {
46028 arg4 = &temp4;
46029 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46030 }
46031 }
46032 if (obj4) {
46033 {
46034 arg5 = &temp5;
46035 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46036 }
46037 }
46038 if (obj5) {
46039 ecode6 = SWIG_AsVal_long(obj5, &val6);
46040 if (!SWIG_IsOK(ecode6)) {
46041 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46042 }
46043 arg6 = static_cast< long >(val6);
46044 }
46045 if (obj6) {
46046 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46047 if (!SWIG_IsOK(res7)) {
46048 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46049 }
46050 if (!argp7) {
46051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46052 }
46053 arg7 = reinterpret_cast< wxValidator * >(argp7);
46054 }
46055 if (obj7) {
46056 {
46057 arg8 = wxString_in_helper(obj7);
46058 if (arg8 == NULL) SWIG_fail;
46059 temp8 = true;
46060 }
46061 }
46062 {
46063 if (!wxPyCheckForApp()) SWIG_fail;
46064 PyThreadState* __tstate = wxPyBeginAllowThreads();
46065 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46066 wxPyEndAllowThreads(__tstate);
46067 if (PyErr_Occurred()) SWIG_fail;
46068 }
46069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46070 {
46071 if (temp3)
46072 delete arg3;
46073 }
46074 {
46075 if (temp8)
46076 delete arg8;
46077 }
46078 return resultobj;
46079 fail:
46080 {
46081 if (temp3)
46082 delete arg3;
46083 }
46084 {
46085 if (temp8)
46086 delete arg8;
46087 }
46088 return NULL;
46089 }
46090
46091
46092 SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46093 PyObject *resultobj = 0;
46094 wxSearchCtrl *result = 0 ;
46095
46096 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46097 {
46098 if (!wxPyCheckForApp()) SWIG_fail;
46099 PyThreadState* __tstate = wxPyBeginAllowThreads();
46100 result = (wxSearchCtrl *)new wxSearchCtrl();
46101 wxPyEndAllowThreads(__tstate);
46102 if (PyErr_Occurred()) SWIG_fail;
46103 }
46104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46105 return resultobj;
46106 fail:
46107 return NULL;
46108 }
46109
46110
46111 SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46112 PyObject *resultobj = 0;
46113 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46114 wxWindow *arg2 = (wxWindow *) 0 ;
46115 int arg3 = (int) -1 ;
46116 wxString const &arg4_defvalue = wxEmptyString ;
46117 wxString *arg4 = (wxString *) &arg4_defvalue ;
46118 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46119 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46120 wxSize const &arg6_defvalue = wxDefaultSize ;
46121 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46122 long arg7 = (long) 0 ;
46123 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46124 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46125 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46126 wxString *arg9 = (wxString *) &arg9_defvalue ;
46127 bool result;
46128 void *argp1 = 0 ;
46129 int res1 = 0 ;
46130 void *argp2 = 0 ;
46131 int res2 = 0 ;
46132 int val3 ;
46133 int ecode3 = 0 ;
46134 bool temp4 = false ;
46135 wxPoint temp5 ;
46136 wxSize temp6 ;
46137 long val7 ;
46138 int ecode7 = 0 ;
46139 void *argp8 = 0 ;
46140 int res8 = 0 ;
46141 bool temp9 = false ;
46142 PyObject * obj0 = 0 ;
46143 PyObject * obj1 = 0 ;
46144 PyObject * obj2 = 0 ;
46145 PyObject * obj3 = 0 ;
46146 PyObject * obj4 = 0 ;
46147 PyObject * obj5 = 0 ;
46148 PyObject * obj6 = 0 ;
46149 PyObject * obj7 = 0 ;
46150 PyObject * obj8 = 0 ;
46151 char * kwnames[] = {
46152 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46153 };
46154
46155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46157 if (!SWIG_IsOK(res1)) {
46158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46159 }
46160 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46161 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46162 if (!SWIG_IsOK(res2)) {
46163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46164 }
46165 arg2 = reinterpret_cast< wxWindow * >(argp2);
46166 if (obj2) {
46167 ecode3 = SWIG_AsVal_int(obj2, &val3);
46168 if (!SWIG_IsOK(ecode3)) {
46169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46170 }
46171 arg3 = static_cast< int >(val3);
46172 }
46173 if (obj3) {
46174 {
46175 arg4 = wxString_in_helper(obj3);
46176 if (arg4 == NULL) SWIG_fail;
46177 temp4 = true;
46178 }
46179 }
46180 if (obj4) {
46181 {
46182 arg5 = &temp5;
46183 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46184 }
46185 }
46186 if (obj5) {
46187 {
46188 arg6 = &temp6;
46189 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46190 }
46191 }
46192 if (obj6) {
46193 ecode7 = SWIG_AsVal_long(obj6, &val7);
46194 if (!SWIG_IsOK(ecode7)) {
46195 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46196 }
46197 arg7 = static_cast< long >(val7);
46198 }
46199 if (obj7) {
46200 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46201 if (!SWIG_IsOK(res8)) {
46202 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46203 }
46204 if (!argp8) {
46205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46206 }
46207 arg8 = reinterpret_cast< wxValidator * >(argp8);
46208 }
46209 if (obj8) {
46210 {
46211 arg9 = wxString_in_helper(obj8);
46212 if (arg9 == NULL) SWIG_fail;
46213 temp9 = true;
46214 }
46215 }
46216 {
46217 PyThreadState* __tstate = wxPyBeginAllowThreads();
46218 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46219 wxPyEndAllowThreads(__tstate);
46220 if (PyErr_Occurred()) SWIG_fail;
46221 }
46222 {
46223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46224 }
46225 {
46226 if (temp4)
46227 delete arg4;
46228 }
46229 {
46230 if (temp9)
46231 delete arg9;
46232 }
46233 return resultobj;
46234 fail:
46235 {
46236 if (temp4)
46237 delete arg4;
46238 }
46239 {
46240 if (temp9)
46241 delete arg9;
46242 }
46243 return NULL;
46244 }
46245
46246
46247 SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46248 PyObject *resultobj = 0;
46249 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46250 wxMenu *arg2 = (wxMenu *) 0 ;
46251 void *argp1 = 0 ;
46252 int res1 = 0 ;
46253 void *argp2 = 0 ;
46254 int res2 = 0 ;
46255 PyObject * obj0 = 0 ;
46256 PyObject * obj1 = 0 ;
46257 char * kwnames[] = {
46258 (char *) "self",(char *) "menu", NULL
46259 };
46260
46261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46263 if (!SWIG_IsOK(res1)) {
46264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46265 }
46266 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46268 if (!SWIG_IsOK(res2)) {
46269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46270 }
46271 arg2 = reinterpret_cast< wxMenu * >(argp2);
46272 {
46273 PyThreadState* __tstate = wxPyBeginAllowThreads();
46274 (arg1)->SetMenu(arg2);
46275 wxPyEndAllowThreads(__tstate);
46276 if (PyErr_Occurred()) SWIG_fail;
46277 }
46278 resultobj = SWIG_Py_Void();
46279 return resultobj;
46280 fail:
46281 return NULL;
46282 }
46283
46284
46285 SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46286 PyObject *resultobj = 0;
46287 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46288 wxMenu *result = 0 ;
46289 void *argp1 = 0 ;
46290 int res1 = 0 ;
46291 PyObject *swig_obj[1] ;
46292
46293 if (!args) SWIG_fail;
46294 swig_obj[0] = args;
46295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46296 if (!SWIG_IsOK(res1)) {
46297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46298 }
46299 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46300 {
46301 PyThreadState* __tstate = wxPyBeginAllowThreads();
46302 result = (wxMenu *)(arg1)->GetMenu();
46303 wxPyEndAllowThreads(__tstate);
46304 if (PyErr_Occurred()) SWIG_fail;
46305 }
46306 {
46307 resultobj = wxPyMake_wxObject(result, 0);
46308 }
46309 return resultobj;
46310 fail:
46311 return NULL;
46312 }
46313
46314
46315 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46316 PyObject *resultobj = 0;
46317 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46318 bool arg2 ;
46319 void *argp1 = 0 ;
46320 int res1 = 0 ;
46321 bool val2 ;
46322 int ecode2 = 0 ;
46323 PyObject * obj0 = 0 ;
46324 PyObject * obj1 = 0 ;
46325 char * kwnames[] = {
46326 (char *) "self",(char *) "show", NULL
46327 };
46328
46329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchButtonVisible",kwnames,&obj0,&obj1)) SWIG_fail;
46330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46331 if (!SWIG_IsOK(res1)) {
46332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46333 }
46334 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46335 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46336 if (!SWIG_IsOK(ecode2)) {
46337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_SetSearchButtonVisible" "', expected argument " "2"" of type '" "bool""'");
46338 }
46339 arg2 = static_cast< bool >(val2);
46340 {
46341 PyThreadState* __tstate = wxPyBeginAllowThreads();
46342 (arg1)->SetSearchButtonVisible(arg2);
46343 wxPyEndAllowThreads(__tstate);
46344 if (PyErr_Occurred()) SWIG_fail;
46345 }
46346 resultobj = SWIG_Py_Void();
46347 return resultobj;
46348 fail:
46349 return NULL;
46350 }
46351
46352
46353 SWIGINTERN PyObject *_wrap_SearchCtrl_GetSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46354 PyObject *resultobj = 0;
46355 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46356 bool result;
46357 void *argp1 = 0 ;
46358 int res1 = 0 ;
46359 PyObject *swig_obj[1] ;
46360
46361 if (!args) SWIG_fail;
46362 swig_obj[0] = args;
46363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46364 if (!SWIG_IsOK(res1)) {
46365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46366 }
46367 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46368 {
46369 PyThreadState* __tstate = wxPyBeginAllowThreads();
46370 result = (bool)((wxSearchCtrl const *)arg1)->GetSearchButtonVisible();
46371 wxPyEndAllowThreads(__tstate);
46372 if (PyErr_Occurred()) SWIG_fail;
46373 }
46374 {
46375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46376 }
46377 return resultobj;
46378 fail:
46379 return NULL;
46380 }
46381
46382
46383 SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46384 PyObject *resultobj = 0;
46385 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46386 bool arg2 ;
46387 void *argp1 = 0 ;
46388 int res1 = 0 ;
46389 bool val2 ;
46390 int ecode2 = 0 ;
46391 PyObject * obj0 = 0 ;
46392 PyObject * obj1 = 0 ;
46393 char * kwnames[] = {
46394 (char *) "self",(char *) "show", NULL
46395 };
46396
46397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelButtonVisible",kwnames,&obj0,&obj1)) SWIG_fail;
46398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46399 if (!SWIG_IsOK(res1)) {
46400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46401 }
46402 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46403 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46404 if (!SWIG_IsOK(ecode2)) {
46405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_SetCancelButtonVisible" "', expected argument " "2"" of type '" "bool""'");
46406 }
46407 arg2 = static_cast< bool >(val2);
46408 {
46409 PyThreadState* __tstate = wxPyBeginAllowThreads();
46410 (arg1)->SetCancelButtonVisible(arg2);
46411 wxPyEndAllowThreads(__tstate);
46412 if (PyErr_Occurred()) SWIG_fail;
46413 }
46414 resultobj = SWIG_Py_Void();
46415 return resultobj;
46416 fail:
46417 return NULL;
46418 }
46419
46420
46421 SWIGINTERN PyObject *_wrap_SearchCtrl_GetCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46422 PyObject *resultobj = 0;
46423 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46424 bool result;
46425 void *argp1 = 0 ;
46426 int res1 = 0 ;
46427 PyObject *swig_obj[1] ;
46428
46429 if (!args) SWIG_fail;
46430 swig_obj[0] = args;
46431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46432 if (!SWIG_IsOK(res1)) {
46433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46434 }
46435 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46436 {
46437 PyThreadState* __tstate = wxPyBeginAllowThreads();
46438 result = (bool)((wxSearchCtrl const *)arg1)->GetCancelButtonVisible();
46439 wxPyEndAllowThreads(__tstate);
46440 if (PyErr_Occurred()) SWIG_fail;
46441 }
46442 {
46443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46444 }
46445 return resultobj;
46446 fail:
46447 return NULL;
46448 }
46449
46450
46451 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46452 PyObject *resultobj = 0;
46453 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46454 wxBitmap *arg2 = 0 ;
46455 void *argp1 = 0 ;
46456 int res1 = 0 ;
46457 void *argp2 = 0 ;
46458 int res2 = 0 ;
46459 PyObject * obj0 = 0 ;
46460 PyObject * obj1 = 0 ;
46461 char * kwnames[] = {
46462 (char *) "self",(char *)"arg2", NULL
46463 };
46464
46465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46467 if (!SWIG_IsOK(res1)) {
46468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46469 }
46470 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46471 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46472 if (!SWIG_IsOK(res2)) {
46473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46474 }
46475 if (!argp2) {
46476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46477 }
46478 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46479 {
46480 PyThreadState* __tstate = wxPyBeginAllowThreads();
46481 wxSearchCtrl_SetSearchBitmap(arg1,(wxBitmap const &)*arg2);
46482 wxPyEndAllowThreads(__tstate);
46483 if (PyErr_Occurred()) SWIG_fail;
46484 }
46485 resultobj = SWIG_Py_Void();
46486 return resultobj;
46487 fail:
46488 return NULL;
46489 }
46490
46491
46492 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46493 PyObject *resultobj = 0;
46494 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46495 wxBitmap *arg2 = 0 ;
46496 void *argp1 = 0 ;
46497 int res1 = 0 ;
46498 void *argp2 = 0 ;
46499 int res2 = 0 ;
46500 PyObject * obj0 = 0 ;
46501 PyObject * obj1 = 0 ;
46502 char * kwnames[] = {
46503 (char *) "self",(char *)"arg2", NULL
46504 };
46505
46506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46508 if (!SWIG_IsOK(res1)) {
46509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46510 }
46511 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46512 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46513 if (!SWIG_IsOK(res2)) {
46514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46515 }
46516 if (!argp2) {
46517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46518 }
46519 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46520 {
46521 PyThreadState* __tstate = wxPyBeginAllowThreads();
46522 wxSearchCtrl_SetSearchMenuBitmap(arg1,(wxBitmap const &)*arg2);
46523 wxPyEndAllowThreads(__tstate);
46524 if (PyErr_Occurred()) SWIG_fail;
46525 }
46526 resultobj = SWIG_Py_Void();
46527 return resultobj;
46528 fail:
46529 return NULL;
46530 }
46531
46532
46533 SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46534 PyObject *resultobj = 0;
46535 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46536 wxBitmap *arg2 = 0 ;
46537 void *argp1 = 0 ;
46538 int res1 = 0 ;
46539 void *argp2 = 0 ;
46540 int res2 = 0 ;
46541 PyObject * obj0 = 0 ;
46542 PyObject * obj1 = 0 ;
46543 char * kwnames[] = {
46544 (char *) "self",(char *)"arg2", NULL
46545 };
46546
46547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46549 if (!SWIG_IsOK(res1)) {
46550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46551 }
46552 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46554 if (!SWIG_IsOK(res2)) {
46555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46556 }
46557 if (!argp2) {
46558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46559 }
46560 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46561 {
46562 PyThreadState* __tstate = wxPyBeginAllowThreads();
46563 wxSearchCtrl_SetCancelBitmap(arg1,(wxBitmap const &)*arg2);
46564 wxPyEndAllowThreads(__tstate);
46565 if (PyErr_Occurred()) SWIG_fail;
46566 }
46567 resultobj = SWIG_Py_Void();
46568 return resultobj;
46569 fail:
46570 return NULL;
46571 }
46572
46573
46574 SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46575 PyObject *obj;
46576 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46577 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
46578 return SWIG_Py_Void();
46579 }
46580
46581 SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46582 return SWIG_Python_InitShadowInstance(args);
46583 }
46584
46585 static PyMethodDef SwigMethods[] = {
46586 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
46587 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
46588 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46589 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
46590 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
46591 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46592 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
46593 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
46594 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
46595 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
46596 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46597 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
46598 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
46599 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
46600 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
46601 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
46602 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
46603 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46604 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46605 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46606 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
46607 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46608 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
46609 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
46610 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
46611 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
46612 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
46613 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
46614 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46615 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
46616 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
46617 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46618 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
46619 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
46620 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
46621 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
46622 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46623 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
46624 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
46625 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
46626 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
46627 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46628 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
46629 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46630 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
46631 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
46632 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
46633 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
46634 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46635 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
46636 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46637 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
46638 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
46639 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
46640 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46641 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
46642 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
46643 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46644 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
46645 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
46646 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46647 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46648 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
46649 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46650 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
46651 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
46652 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
46653 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
46654 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
46655 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
46656 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
46657 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
46658 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
46659 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46660 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
46661 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
46662 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
46663 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
46664 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46665 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46666 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
46667 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46668 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
46669 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
46670 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46671 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46672 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46673 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46674 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46675 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46676 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46677 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46678 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46679 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46680 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46681 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46682 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46683 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46684 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46685 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46686 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46687 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46688 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46689 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46690 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46691 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46692 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46693 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46694 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46695 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46696 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46697 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46698 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46699 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46700 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46701 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46702 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46703 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46704 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46705 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46706 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46707 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46708 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46709 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46710 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46711 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46712 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46713 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46714 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46715 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46716 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46717 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46718 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46719 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46720 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46721 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46722 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46723 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46724 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46725 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46726 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46727 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46728 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46729 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46730 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46731 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46732 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46733 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46734 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46735 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46736 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46737 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46738 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46739 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46740 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46741 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46742 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46743 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46744 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46745 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46746 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46747 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46748 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46749 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46750 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46751 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46752 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46753 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46754 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46755 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46756 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46757 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46758 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46759 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46760 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46761 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46762 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46763 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46764 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46765 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46766 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46767 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46768 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46769 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46770 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46771 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46772 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46773 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46774 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46775 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46776 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46777 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46778 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46779 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
46780 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46781 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46782 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46783 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46784 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46785 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46786 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
46787 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
46788 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
46789 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
46790 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
46791 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46792 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46793 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
46794 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
46795 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
46796 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
46797 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
46798 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
46799 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
46800 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
46801 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
46802 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46803 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46804 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46805 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
46806 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46807 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
46808 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46809 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46810 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
46811 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
46812 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
46813 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
46814 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
46815 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
46816 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
46817 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
46818 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
46819 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
46820 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
46821 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46822 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
46823 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
46824 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
46825 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46826 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
46827 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46828 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
46829 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
46830 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
46831 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46832 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46833 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
46834 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
46835 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46836 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
46837 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
46838 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
46839 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
46840 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
46841 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
46842 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
46843 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46844 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
46845 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
46846 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
46847 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
46848 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
46849 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46850 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46851 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
46852 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
46853 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
46854 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
46855 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46856 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
46857 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
46858 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
46859 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46860 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46861 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46862 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46863 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
46864 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46865 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
46866 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
46867 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46868 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
46869 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46870 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
46871 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46872 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
46873 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46874 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
46875 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
46876 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46877 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46878 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
46879 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
46880 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46881 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
46882 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46883 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
46884 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
46885 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
46886 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
46887 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46888 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46889 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
46890 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
46891 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46892 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
46893 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
46894 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46895 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46896 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
46897 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
46898 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46899 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
46900 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
46901 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
46902 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46903 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46904 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46905 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46906 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46907 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46908 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
46909 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
46910 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
46911 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
46912 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46913 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
46914 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46915 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46916 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
46917 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
46918 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
46919 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
46920 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46921 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
46922 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46923 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46924 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
46925 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
46926 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46927 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46928 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
46929 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46930 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
46931 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
46932 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
46933 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
46934 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
46935 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
46936 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
46937 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
46938 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
46939 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
46940 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
46941 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46942 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46943 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
46944 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
46945 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
46946 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
46947 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46948 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46949 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
46950 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46951 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
46952 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
46953 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
46954 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
46955 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
46956 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
46957 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46958 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46959 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46960 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46961 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
46962 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46963 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46964 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46965 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
46966 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
46967 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
46968 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
46969 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46970 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
46971 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
46972 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
46973 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
46974 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
46975 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
46976 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
46977 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
46978 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
46979 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46980 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46981 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46982 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46983 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46984 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
46985 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46986 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
46987 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46988 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
46989 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46990 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
46991 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
46992 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
46993 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
46994 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46995 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
46996 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
46997 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
46998 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
46999 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47000 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47001 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47002 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47003 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47004 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47005 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47006 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47007 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47008 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47009 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47010 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47011 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47012 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47013 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47014 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47015 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47016 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47017 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47018 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47019 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47020 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47021 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47022 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47023 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47024 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47025 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47026 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47027 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47028 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47029 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47030 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47031 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47032 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47033 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47034 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47035 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47036 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47037 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47038 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47039 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47040 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47041 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47042 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47043 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47044 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47045 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47046 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47047 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47048 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47049 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47050 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47051 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47052 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47053 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47054 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47055 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47056 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47057 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47058 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47059 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47060 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47061 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47062 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47063 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47064 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47065 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47066 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47067 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47068 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47069 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47070 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47071 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47072 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47073 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47074 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47075 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47076 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47077 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47078 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47079 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47080 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47081 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47082 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47083 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47084 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47085 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47086 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47087 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47088 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47089 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47090 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47091 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47092 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47093 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47094 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47095 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47096 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47097 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47098 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47099 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47100 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47101 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47102 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47103 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47104 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47105 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47106 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47107 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47108 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47109 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47110 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47111 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47112 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47113 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47114 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47115 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47116 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47117 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47118 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47119 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47120 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47121 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47122 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47123 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47124 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47125 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47126 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47127 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47128 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47129 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47130 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47131 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47132 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47133 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47134 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47135 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47136 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47137 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47138 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47139 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47140 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47141 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47142 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47143 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47144 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47145 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47146 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47147 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47148 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47149 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47150 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47151 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47152 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47153 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47154 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47155 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47156 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47157 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47158 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47159 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47160 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47161 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47162 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47163 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47164 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47165 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47166 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47167 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47168 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47169 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47170 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47171 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47172 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47173 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47174 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47175 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47176 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47177 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47178 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47179 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47180 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47181 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47182 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47183 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47184 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47185 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47186 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47187 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47188 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47189 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47190 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47191 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47192 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47193 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47194 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47195 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47196 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47197 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47198 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47199 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47200 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47201 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47202 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47203 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47204 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47205 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47206 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47207 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47208 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47209 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47210 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47211 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47212 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47213 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47214 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47215 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47216 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47217 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47218 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47219 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47220 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47221 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47222 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47223 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47224 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47225 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47226 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47227 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47228 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47229 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47230 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47231 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47232 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47233 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47234 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47235 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47236 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47237 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47238 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47239 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47240 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47241 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47242 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47243 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47244 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47245 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47246 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47247 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47248 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47249 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47250 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47251 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47252 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47253 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47254 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47255 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47256 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47257 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47258 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47259 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47260 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47261 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47262 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47263 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47264 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47265 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47266 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47267 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47268 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47269 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47270 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47271 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47272 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47273 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47274 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47275 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47276 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47277 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47278 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47279 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47280 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47281 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47282 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
47283 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47284 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47285 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47286 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47287 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47288 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47289 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47290 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47291 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47292 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47293 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47294 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47295 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47296 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47297 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47298 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47299 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47300 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47301 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47302 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47303 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47304 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47305 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47306 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47307 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47308 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47309 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47310 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47311 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47312 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47313 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47314 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47315 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47316 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47317 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47318 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47319 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47320 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47321 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47322 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47323 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47324 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47325 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47326 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47327 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47328 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47329 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47330 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47331 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47332 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
47333 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
47334 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47335 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47336 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47337 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47338 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47339 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47340 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47341 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47342 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47343 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47344 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47345 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47346 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47347 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47348 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47349 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47350 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47351 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47352 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47353 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47354 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47355 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47356 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47357 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47358 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47359 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47360 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47361 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47362 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47363 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47364 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47365 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47366 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47367 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47368 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47369 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47370 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47371 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47372 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47373 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47374 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47375 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47376 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47377 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47378 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47379 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47380 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47381 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47382 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47383 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47384 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47385 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47386 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47387 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47388 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47389 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47390 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47391 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47392 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47393 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47394 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47395 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47396 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47397 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47398 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47399 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47400 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47401 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47402 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47403 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47404 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47405 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47406 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47407 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47408 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47409 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
47410 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47411 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
47412 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47413 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47414 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47415 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47416 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47417 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47418 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47419 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47420 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47421 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47422 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47423 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47424 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47425 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47426 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47427 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47428 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47429 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
47430 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47431 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47432 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47433 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47434 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47435 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
47436 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
47437 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47438 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47439 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47440 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47441 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47442 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
47443 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
47444 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
47445 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
47446 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
47447 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
47448 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
47449 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
47450 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
47451 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
47452 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
47453 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
47454 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
47455 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
47456 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47457 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
47458 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47459 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
47461 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
47462 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
47463 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
47464 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47465 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
47466 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47467 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
47468 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
47469 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
47470 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
47471 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
47472 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
47473 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
47474 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
47475 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
47476 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
47477 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
47478 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
47479 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47480 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
47481 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47482 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
47483 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
47484 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
47485 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
47486 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
47487 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
47488 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
47489 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
47490 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47491 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
47492 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47493 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
47494 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
47495 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
47496 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
47497 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
47498 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
47499 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
47500 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47501 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
47502 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47503 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47504 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47505 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47506 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
47507 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47508 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
47509 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
47510 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
47511 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
47512 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
47513 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
47514 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47515 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
47516 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
47517 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
47518 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
47519 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47520 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
47521 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
47522 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
47523 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
47524 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
47525 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
47526 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
47527 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47528 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47529 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47530 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
47531 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
47532 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47533 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
47534 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47535 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47536 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
47537 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47538 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
47539 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
47540 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
47541 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
47542 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47543 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
47544 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47545 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
47546 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
47547 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
47548 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
47549 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
47550 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
47551 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
47552 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47553 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
47554 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
47555 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
47556 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
47557 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47558 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
47559 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47560 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
47561 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
47562 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
47563 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47564 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
47565 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47566 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
47567 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47568 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
47569 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
47570 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47571 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
47572 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47573 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
47574 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
47575 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
47576 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
47577 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47578 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
47579 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47580 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
47581 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47582 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
47583 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
47584 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47585 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
47586 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47587 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
47588 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
47589 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47590 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
47591 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47592 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
47593 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47594 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47595 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
47596 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
47597 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
47598 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47599 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
47600 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47601 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
47602 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47603 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47604 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
47605 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
47606 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
47607 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47608 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
47609 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47610 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
47611 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
47612 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47613 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
47614 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47615 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
47616 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
47617 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
47618 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
47619 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
47620 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
47621 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47622 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
47623 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47624 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
47625 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
47626 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
47627 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
47628 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47629 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47630 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
47631 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
47632 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
47633 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
47634 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
47635 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
47636 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47637 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
47638 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
47639 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
47640 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
47641 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47642 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
47643 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47644 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
47645 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
47646 { (char *)"SearchCtrl_SetSearchButtonVisible", (PyCFunction) _wrap_SearchCtrl_SetSearchButtonVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47647 { (char *)"SearchCtrl_GetSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_GetSearchButtonVisible, METH_O, NULL},
47648 { (char *)"SearchCtrl_SetCancelButtonVisible", (PyCFunction) _wrap_SearchCtrl_SetCancelButtonVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47649 { (char *)"SearchCtrl_GetCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_GetCancelButtonVisible, METH_O, NULL},
47650 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47651 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47652 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47653 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
47654 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
47655 { NULL, NULL, 0, NULL }
47656 };
47657
47658
47659 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
47660
47661 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
47662 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
47663 }
47664 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
47665 return (void *)((wxEvent *) ((wxMenuEvent *) x));
47666 }
47667 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
47668 return (void *)((wxEvent *) ((wxCloseEvent *) x));
47669 }
47670 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
47671 return (void *)((wxEvent *) ((wxMouseEvent *) x));
47672 }
47673 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
47674 return (void *)((wxEvent *) ((wxEraseEvent *) x));
47675 }
47676 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
47677 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47678 }
47679 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
47680 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47681 }
47682 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47683 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47684 }
47685 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47686 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47687 }
47688 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47689 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47690 }
47691 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47692 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47693 }
47694 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47695 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47696 }
47697 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47698 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47699 }
47700 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47701 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47702 }
47703 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47704 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47705 }
47706 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47707 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47708 }
47709 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47710 return (void *)((wxEvent *) ((wxPyEvent *) x));
47711 }
47712 static void *_p_wxListEventTo_p_wxEvent(void *x) {
47713 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47714 }
47715 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47716 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47717 }
47718 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47719 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47720 }
47721 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47722 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47723 }
47724 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47725 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47726 }
47727 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47728 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47729 }
47730 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47731 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47732 }
47733 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47734 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47735 }
47736 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47737 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47738 }
47739 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47740 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47741 }
47742 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47743 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47744 }
47745 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47746 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47747 }
47748 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47749 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47750 }
47751 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47752 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47753 }
47754 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47755 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47756 }
47757 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47758 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47759 }
47760 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47761 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47762 }
47763 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47764 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47765 }
47766 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47767 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47768 }
47769 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47770 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47771 }
47772 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47773 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47774 }
47775 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47776 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47777 }
47778 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47779 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47780 }
47781 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47782 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47783 }
47784 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
47785 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
47786 }
47787 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
47788 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
47789 }
47790 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
47791 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
47792 }
47793 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
47794 return (void *)((wxEvent *) ((wxFocusEvent *) x));
47795 }
47796 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
47797 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
47798 }
47799 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
47800 return (void *)((wxEvent *) ((wxShowEvent *) x));
47801 }
47802 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
47803 return (void *)((wxEvent *) ((wxCommandEvent *) x));
47804 }
47805 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
47806 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
47807 }
47808 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
47809 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47810 }
47811 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
47812 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
47813 }
47814 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
47815 return (void *)((wxEvent *) ((wxKeyEvent *) x));
47816 }
47817 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
47818 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
47819 }
47820 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
47821 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47822 }
47823 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
47824 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
47825 }
47826 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
47827 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
47828 }
47829 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
47830 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
47831 }
47832 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
47833 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
47834 }
47835 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
47836 return (void *)((wxItemContainer *) ((wxComboBox *) x));
47837 }
47838 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
47839 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47840 }
47841 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
47842 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
47843 }
47844 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
47845 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
47846 }
47847 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
47848 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
47849 }
47850 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
47851 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47852 }
47853 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
47854 return (void *)((wxPyListCtrl *) ((wxListView *) x));
47855 }
47856 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
47857 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
47858 }
47859 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
47860 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
47861 }
47862 static void *_p_wxToolBarTo_p_wxControl(void *x) {
47863 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
47864 }
47865 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
47866 return (void *)((wxControl *) ((wxPickerBase *) x));
47867 }
47868 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
47869 return (void *)((wxControl *) ((wxToggleButton *) x));
47870 }
47871 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
47872 return (void *)((wxControl *) ((wxRadioButton *) x));
47873 }
47874 static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
47875 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
47876 }
47877 static void *_p_wxToolbookTo_p_wxControl(void *x) {
47878 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
47879 }
47880 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
47881 return (void *)((wxControl *) ((wxToolBarBase *) x));
47882 }
47883 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
47884 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47885 }
47886 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
47887 return (void *)((wxControl *) ((wxPyListCtrl *) x));
47888 }
47889 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
47890 return (void *)((wxControl *) ((wxComboBox *) x));
47891 }
47892 static void *_p_wxPyControlTo_p_wxControl(void *x) {
47893 return (void *)((wxControl *) ((wxPyControl *) x));
47894 }
47895 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
47896 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
47897 }
47898 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
47899 return (void *)((wxControl *) ((wxScrollBar *) x));
47900 }
47901 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
47902 return (void *)((wxControl *) ((wxControlWithItems *) x));
47903 }
47904 static void *_p_wxGaugeTo_p_wxControl(void *x) {
47905 return (void *)((wxControl *) ((wxGauge *) x));
47906 }
47907 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
47908 return (void *)((wxControl *) ((wxStaticLine *) x));
47909 }
47910 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
47911 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
47912 }
47913 static void *_p_wxListbookTo_p_wxControl(void *x) {
47914 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
47915 }
47916 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
47917 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
47918 }
47919 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
47920 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
47921 }
47922 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
47923 return (void *)((wxControl *) ((wxCheckBox *) x));
47924 }
47925 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
47926 return (void *)((wxControl *) ((wxRadioBox *) x));
47927 }
47928 static void *_p_wxChoiceTo_p_wxControl(void *x) {
47929 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
47930 }
47931 static void *_p_wxListBoxTo_p_wxControl(void *x) {
47932 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
47933 }
47934 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
47935 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47936 }
47937 static void *_p_wxListViewTo_p_wxControl(void *x) {
47938 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
47939 }
47940 static void *_p_wxNotebookTo_p_wxControl(void *x) {
47941 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
47942 }
47943 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
47944 return (void *)((wxControl *) ((wxStaticBitmap *) x));
47945 }
47946 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
47947 return (void *)((wxControl *) ((wxSpinCtrl *) x));
47948 }
47949 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
47950 return (void *)((wxControl *) ((wxStaticText *) x));
47951 }
47952 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
47953 return (void *)((wxControl *) ((wxStaticBox *) x));
47954 }
47955 static void *_p_wxSliderTo_p_wxControl(void *x) {
47956 return (void *)((wxControl *) ((wxSlider *) x));
47957 }
47958 static void *_p_wxTreebookTo_p_wxControl(void *x) {
47959 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
47960 }
47961 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
47962 return (void *)((wxControl *) ((wxSpinButton *) x));
47963 }
47964 static void *_p_wxButtonTo_p_wxControl(void *x) {
47965 return (void *)((wxControl *) ((wxButton *) x));
47966 }
47967 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
47968 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
47969 }
47970 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
47971 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47972 }
47973 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
47974 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
47975 }
47976 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
47977 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
47978 }
47979 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
47980 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
47981 }
47982 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
47983 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
47984 }
47985 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
47986 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
47987 }
47988 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
47989 return (void *)((wxControl *) ((wxTextCtrl *) x));
47990 }
47991 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
47992 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
47993 }
47994 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
47995 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
47996 }
47997 static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
47998 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
47999 }
48000 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48001 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48002 }
48003 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48004 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48005 }
48006 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48007 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48008 }
48009 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48010 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48011 }
48012 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48013 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48014 }
48015 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48016 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48017 }
48018 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48019 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48020 }
48021 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48022 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48023 }
48024 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48025 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48026 }
48027 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48028 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48029 }
48030 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48031 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48032 }
48033 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48034 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48035 }
48036 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48037 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48038 }
48039 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48040 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48041 }
48042 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48043 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48044 }
48045 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48046 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48047 }
48048 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48049 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48050 }
48051 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48052 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48053 }
48054 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48055 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48056 }
48057 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48058 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48059 }
48060 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48061 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48062 }
48063 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48064 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48065 }
48066 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48067 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48068 }
48069 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48070 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48071 }
48072 static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48073 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48074 }
48075 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48076 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48077 }
48078 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48079 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48080 }
48081 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48082 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48083 }
48084 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48085 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
48086 }
48087 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48088 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48089 }
48090 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48091 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48092 }
48093 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48094 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48095 }
48096 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48097 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48098 }
48099 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48100 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48101 }
48102 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48103 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48104 }
48105 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48106 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48107 }
48108 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48109 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48110 }
48111 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48112 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48113 }
48114 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48115 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48116 }
48117 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48118 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48119 }
48120 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48121 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48122 }
48123 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48124 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48125 }
48126 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48127 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48128 }
48129 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48130 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48131 }
48132 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48133 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48134 }
48135 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48136 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48137 }
48138 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48139 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48140 }
48141 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48142 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48143 }
48144 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48145 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48146 }
48147 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48148 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48149 }
48150 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48151 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48152 }
48153 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48154 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48155 }
48156 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48157 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48158 }
48159 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48160 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48161 }
48162 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48163 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48164 }
48165 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48166 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48167 }
48168 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48169 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48170 }
48171 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48172 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48173 }
48174 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48175 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48176 }
48177 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48178 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48179 }
48180 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48181 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48182 }
48183 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48184 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48185 }
48186 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48187 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48188 }
48189 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48190 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48191 }
48192 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48193 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48194 }
48195 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48196 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48197 }
48198 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48199 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48200 }
48201 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48202 return (void *)((wxButton *) ((wxBitmapButton *) x));
48203 }
48204 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48205 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48206 }
48207 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48208 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48209 }
48210 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48211 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48212 }
48213 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48214 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48215 }
48216 static void *_p_wxToolbookTo_p_wxObject(void *x) {
48217 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48218 }
48219 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48220 return (void *)((wxObject *) ((wxSizerItem *) x));
48221 }
48222 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48223 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48224 }
48225 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48226 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48227 }
48228 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48229 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48230 }
48231 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48232 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48233 }
48234 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48235 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48236 }
48237 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48238 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48239 }
48240 static void *_p_wxSizerTo_p_wxObject(void *x) {
48241 return (void *)((wxObject *) ((wxSizer *) x));
48242 }
48243 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48244 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48245 }
48246 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48247 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48248 }
48249 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48250 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48251 }
48252 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48253 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48254 }
48255 static void *_p_wxEventTo_p_wxObject(void *x) {
48256 return (void *)((wxObject *) ((wxEvent *) x));
48257 }
48258 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48259 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48260 }
48261 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48262 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48263 }
48264 static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48265 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48266 }
48267 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48268 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48269 }
48270 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48271 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48272 }
48273 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48274 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48275 }
48276 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48277 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48278 }
48279 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48280 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48281 }
48282 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48283 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48284 }
48285 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48286 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48287 }
48288 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48289 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48290 }
48291 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48292 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48293 }
48294 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48295 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48296 }
48297 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48298 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48299 }
48300 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48301 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48302 }
48303 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48304 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48305 }
48306 static void *_p_wxControlTo_p_wxObject(void *x) {
48307 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48308 }
48309 static void *_p_wxPyControlTo_p_wxObject(void *x) {
48310 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48311 }
48312 static void *_p_wxGaugeTo_p_wxObject(void *x) {
48313 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48314 }
48315 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48316 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48317 }
48318 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48319 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48320 }
48321 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48322 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48323 }
48324 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48325 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48326 }
48327 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48328 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48329 }
48330 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48331 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48332 }
48333 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48334 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48335 }
48336 static void *_p_wxChoiceTo_p_wxObject(void *x) {
48337 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48338 }
48339 static void *_p_wxFSFileTo_p_wxObject(void *x) {
48340 return (void *)((wxObject *) ((wxFSFile *) x));
48341 }
48342 static void *_p_wxPySizerTo_p_wxObject(void *x) {
48343 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48344 }
48345 static void *_p_wxTreebookTo_p_wxObject(void *x) {
48346 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48347 }
48348 static void *_p_wxListViewTo_p_wxObject(void *x) {
48349 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48350 }
48351 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48352 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48353 }
48354 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48355 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48356 }
48357 static void *_p_wxNotebookTo_p_wxObject(void *x) {
48358 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48359 }
48360 static void *_p_wxPyEventTo_p_wxObject(void *x) {
48361 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48362 }
48363 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48364 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48365 }
48366 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48367 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48368 }
48369 static void *_p_wxListbookTo_p_wxObject(void *x) {
48370 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48371 }
48372 static void *_p_wxShowEventTo_p_wxObject(void *x) {
48373 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
48374 }
48375 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
48376 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48377 }
48378 static void *_p_wxSliderTo_p_wxObject(void *x) {
48379 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48380 }
48381 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48382 return (void *)((wxObject *) ((wxMenuItem *) x));
48383 }
48384 static void *_p_wxDateEventTo_p_wxObject(void *x) {
48385 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48386 }
48387 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48388 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48389 }
48390 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48391 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48392 }
48393 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48394 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48395 }
48396 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48397 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48398 }
48399 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48400 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48401 }
48402 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48403 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48404 }
48405 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48406 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48407 }
48408 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48409 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48410 }
48411 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48412 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48413 }
48414 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48415 return (void *)((wxObject *) ((wxContextHelp *) x));
48416 }
48417 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48418 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48419 }
48420 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48421 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48422 }
48423 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48424 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48425 }
48426 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48427 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48428 }
48429 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48430 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48431 }
48432 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48433 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
48434 }
48435 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
48436 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
48437 }
48438 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
48439 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
48440 }
48441 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
48442 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
48443 }
48444 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
48445 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
48446 }
48447 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
48448 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
48449 }
48450 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
48451 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
48452 }
48453 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
48454 return (void *)((wxObject *) ((wxImageHandler *) x));
48455 }
48456 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
48457 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
48458 }
48459 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
48460 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
48461 }
48462 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
48463 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
48464 }
48465 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
48466 return (void *)((wxObject *) ((wxEvtHandler *) x));
48467 }
48468 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
48469 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
48470 }
48471 static void *_p_wxListEventTo_p_wxObject(void *x) {
48472 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48473 }
48474 static void *_p_wxListBoxTo_p_wxObject(void *x) {
48475 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48476 }
48477 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
48478 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48479 }
48480 static void *_p_wxButtonTo_p_wxObject(void *x) {
48481 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
48482 }
48483 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
48484 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48485 }
48486 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
48487 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
48488 }
48489 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
48490 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48491 }
48492 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
48493 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
48494 }
48495 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
48496 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
48497 }
48498 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
48499 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
48500 }
48501 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
48502 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
48503 }
48504 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
48505 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
48506 }
48507 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
48508 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
48509 }
48510 static void *_p_wxListItemTo_p_wxObject(void *x) {
48511 return (void *)((wxObject *) ((wxListItem *) x));
48512 }
48513 static void *_p_wxImageTo_p_wxObject(void *x) {
48514 return (void *)((wxObject *) ((wxImage *) x));
48515 }
48516 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
48517 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
48518 }
48519 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
48520 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48521 }
48522 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
48523 return (void *)((wxObject *) ((wxGenericDragImage *) x));
48524 }
48525 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
48526 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48527 }
48528 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
48529 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48530 }
48531 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
48532 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48533 }
48534 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
48535 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48536 }
48537 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
48538 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48539 }
48540 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
48541 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48542 }
48543 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
48544 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48545 }
48546 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
48547 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
48548 }
48549 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
48550 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
48551 }
48552 static void *_p_wxWindowTo_p_wxObject(void *x) {
48553 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
48554 }
48555 static void *_p_wxMenuTo_p_wxObject(void *x) {
48556 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
48557 }
48558 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
48559 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
48560 }
48561 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
48562 return (void *)((wxObject *) ((wxFileSystem *) x));
48563 }
48564 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
48565 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48566 }
48567 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
48568 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
48569 }
48570 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
48571 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
48572 }
48573 static void *_p_wxPyAppTo_p_wxObject(void *x) {
48574 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
48575 }
48576 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
48577 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
48578 }
48579 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
48580 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
48581 }
48582 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
48583 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
48584 }
48585 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
48586 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48587 }
48588 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
48589 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48590 }
48591 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
48592 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
48593 }
48594 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
48595 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
48596 }
48597 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
48598 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
48599 }
48600 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
48601 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
48602 }
48603 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
48604 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
48605 }
48606 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
48607 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
48608 }
48609 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
48610 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48611 }
48612 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
48613 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48614 }
48615 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
48616 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48617 }
48618 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
48619 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48620 }
48621 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
48622 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48623 }
48624 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
48625 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48626 }
48627 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
48628 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48629 }
48630 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
48631 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
48632 }
48633 static void *_p_wxToolBarTo_p_wxObject(void *x) {
48634 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48635 }
48636 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
48637 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
48638 }
48639 static void *_p_wxValidatorTo_p_wxObject(void *x) {
48640 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
48641 }
48642 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
48643 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
48644 }
48645 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
48646 return (void *)((wxWindow *) ((wxMenuBar *) x));
48647 }
48648 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
48649 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
48650 }
48651 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
48652 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48653 }
48654 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
48655 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
48656 }
48657 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
48658 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
48659 }
48660 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
48661 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
48662 }
48663 static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
48664 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48665 }
48666 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
48667 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48668 }
48669 static void *_p_wxControlTo_p_wxWindow(void *x) {
48670 return (void *)((wxWindow *) ((wxControl *) x));
48671 }
48672 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
48673 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
48674 }
48675 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
48676 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
48677 }
48678 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
48679 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
48680 }
48681 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
48682 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48683 }
48684 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
48685 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
48686 }
48687 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
48688 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
48689 }
48690 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
48691 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
48692 }
48693 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
48694 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
48695 }
48696 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48697 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48698 }
48699 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48700 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48701 }
48702 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48703 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48704 }
48705 static void *_p_wxListbookTo_p_wxWindow(void *x) {
48706 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48707 }
48708 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48709 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48710 }
48711 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48712 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48713 }
48714 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48715 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48716 }
48717 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48718 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48719 }
48720 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48721 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48722 }
48723 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48724 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48725 }
48726 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48727 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48728 }
48729 static void *_p_wxListViewTo_p_wxWindow(void *x) {
48730 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48731 }
48732 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48733 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48734 }
48735 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48736 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48737 }
48738 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48739 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48740 }
48741 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48742 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48743 }
48744 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48745 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48746 }
48747 static void *_p_wxSliderTo_p_wxWindow(void *x) {
48748 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48749 }
48750 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48751 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48752 }
48753 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48754 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48755 }
48756 static void *_p_wxButtonTo_p_wxWindow(void *x) {
48757 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48758 }
48759 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48760 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48761 }
48762 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48763 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48764 }
48765 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48766 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48767 }
48768 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48769 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48770 }
48771 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48772 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48773 }
48774 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48775 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48776 }
48777 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48778 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48779 }
48780 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48781 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48782 }
48783 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48784 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48785 }
48786 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48787 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48788 }
48789 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48790 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48791 }
48792 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48793 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48794 }
48795 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48796 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48797 }
48798 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
48799 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48800 }
48801 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
48802 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
48803 }
48804 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
48805 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
48806 }
48807 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
48808 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
48809 }
48810 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
48811 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48812 }
48813 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
48814 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
48815 }
48816 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
48817 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
48818 }
48819 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
48820 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
48821 }
48822 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
48823 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
48824 }
48825 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
48826 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
48827 }
48828 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
48829 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
48830 }
48831 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
48832 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48833 }
48834 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
48835 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48836 }
48837 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
48838 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48839 }
48840 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
48841 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48842 }
48843 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
48844 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48845 }
48846 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
48847 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
48848 }
48849 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
48850 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
48851 }
48852 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
48853 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
48854 }
48855 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
48856 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48857 }
48858 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
48859 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48860 }
48861 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
48862 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
48863 }
48864 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
48865 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
48866 }
48867 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
48868 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
48869 }
48870 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
48871 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
48872 }
48873 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
48874 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
48875 }
48876 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
48877 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
48878 }
48879 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
48880 return (void *)((wxControlWithItems *) ((wxChoice *) x));
48881 }
48882 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
48883 return (void *)((wxControlWithItems *) ((wxListBox *) x));
48884 }
48885 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
48886 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
48887 }
48888 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
48889 return (void *)((wxValidator *) ((wxPyValidator *) x));
48890 }
48891 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
48892 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
48893 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};
48894 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
48895 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
48896 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
48897 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
48898 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
48899 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
48900 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
48901 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
48902 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
48903 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
48904 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
48905 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
48906 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
48907 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
48908 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
48909 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
48910 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
48911 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
48912 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
48913 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
48914 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
48915 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
48916 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
48917 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
48918 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
48919 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
48920 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
48921 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
48922 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
48923 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
48924 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
48925 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
48926 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
48927 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
48928 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
48929 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
48930 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
48931 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
48932 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
48933 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
48934 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
48935 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
48936 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
48937 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
48938 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
48939 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
48940 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
48941 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
48942 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
48943 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
48944 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
48945 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
48946 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
48947 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
48948 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
48949 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
48950 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
48951 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
48952 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
48953 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
48954 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
48955 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
48956 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
48957 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
48958 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
48959 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
48960 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
48961 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
48962 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
48963 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
48964 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
48965 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
48966 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
48967 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
48968 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
48969 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
48970 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
48971 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
48972 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
48973 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
48974 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
48975 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
48976 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
48977 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
48978 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
48979 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
48980 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
48981 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
48982 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
48983 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
48984 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
48985 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
48986 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
48987 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
48988 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
48989 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
48990 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
48991 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
48992 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
48993 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
48994 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
48995 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
48996 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
48997 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
48998 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
48999 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
49000 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
49001 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
49002 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49003 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49004 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49005 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49006 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49007 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49008 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49009 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49010 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49011 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
49012 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49013 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49014 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
49015 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
49016 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
49017 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49018 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49019 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49020 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
49021 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
49022 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
49023 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49024 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
49025 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
49026 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
49027 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
49028 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49029 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49030 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
49031 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
49032 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49033 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49034 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49035 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49036 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49037 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49038 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49039 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49040 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
49041 static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
49042 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49043 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49044 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49045 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49046 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49047 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49048 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49049 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49050 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49051 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49052 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49053 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49054 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49055 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49056 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49057 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49058 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49059 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49060 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49061 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
49062 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49063 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49064 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49065 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49066 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49067 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49068 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
49069 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
49070
49071 static swig_type_info *swig_type_initial[] = {
49072 &_swigt__p_bool,
49073 &_swigt__p_char,
49074 &_swigt__p_form_ops_t,
49075 &_swigt__p_int,
49076 &_swigt__p_long,
49077 &_swigt__p_unsigned_char,
49078 &_swigt__p_unsigned_int,
49079 &_swigt__p_unsigned_long,
49080 &_swigt__p_void,
49081 &_swigt__p_wxANIHandler,
49082 &_swigt__p_wxAcceleratorTable,
49083 &_swigt__p_wxActivateEvent,
49084 &_swigt__p_wxArrayInt,
49085 &_swigt__p_wxArrayString,
49086 &_swigt__p_wxBMPHandler,
49087 &_swigt__p_wxBitmap,
49088 &_swigt__p_wxBitmapButton,
49089 &_swigt__p_wxBookCtrlBase,
49090 &_swigt__p_wxBookCtrlBaseEvent,
49091 &_swigt__p_wxBoxSizer,
49092 &_swigt__p_wxButton,
49093 &_swigt__p_wxCURHandler,
49094 &_swigt__p_wxCheckBox,
49095 &_swigt__p_wxCheckListBox,
49096 &_swigt__p_wxChildFocusEvent,
49097 &_swigt__p_wxChoice,
49098 &_swigt__p_wxChoicebook,
49099 &_swigt__p_wxChoicebookEvent,
49100 &_swigt__p_wxClipboardTextEvent,
49101 &_swigt__p_wxCloseEvent,
49102 &_swigt__p_wxCollapsiblePane,
49103 &_swigt__p_wxCollapsiblePaneEvent,
49104 &_swigt__p_wxColour,
49105 &_swigt__p_wxColourPickerCtrl,
49106 &_swigt__p_wxColourPickerEvent,
49107 &_swigt__p_wxComboBox,
49108 &_swigt__p_wxCommandEvent,
49109 &_swigt__p_wxContextHelp,
49110 &_swigt__p_wxContextHelpButton,
49111 &_swigt__p_wxContextMenuEvent,
49112 &_swigt__p_wxControl,
49113 &_swigt__p_wxControlWithItems,
49114 &_swigt__p_wxCursor,
49115 &_swigt__p_wxDC,
49116 &_swigt__p_wxDateEvent,
49117 &_swigt__p_wxDatePickerCtrl,
49118 &_swigt__p_wxDateTime,
49119 &_swigt__p_wxDirFilterListCtrl,
49120 &_swigt__p_wxDirPickerCtrl,
49121 &_swigt__p_wxDisplayChangedEvent,
49122 &_swigt__p_wxDropFilesEvent,
49123 &_swigt__p_wxDuplexMode,
49124 &_swigt__p_wxEraseEvent,
49125 &_swigt__p_wxEvent,
49126 &_swigt__p_wxEvtHandler,
49127 &_swigt__p_wxFSFile,
49128 &_swigt__p_wxFileDirPickerEvent,
49129 &_swigt__p_wxFilePickerCtrl,
49130 &_swigt__p_wxFileSystem,
49131 &_swigt__p_wxFlexGridSizer,
49132 &_swigt__p_wxFocusEvent,
49133 &_swigt__p_wxFont,
49134 &_swigt__p_wxFontPickerCtrl,
49135 &_swigt__p_wxFontPickerEvent,
49136 &_swigt__p_wxGBSizerItem,
49137 &_swigt__p_wxGIFHandler,
49138 &_swigt__p_wxGauge,
49139 &_swigt__p_wxGenericDirCtrl,
49140 &_swigt__p_wxGenericDragImage,
49141 &_swigt__p_wxGridBagSizer,
49142 &_swigt__p_wxGridSizer,
49143 &_swigt__p_wxHelpEvent,
49144 &_swigt__p_wxHelpProvider,
49145 &_swigt__p_wxHyperlinkCtrl,
49146 &_swigt__p_wxHyperlinkEvent,
49147 &_swigt__p_wxICOHandler,
49148 &_swigt__p_wxIcon,
49149 &_swigt__p_wxIconizeEvent,
49150 &_swigt__p_wxIdleEvent,
49151 &_swigt__p_wxImage,
49152 &_swigt__p_wxImageHandler,
49153 &_swigt__p_wxImageList,
49154 &_swigt__p_wxIndividualLayoutConstraint,
49155 &_swigt__p_wxInitDialogEvent,
49156 &_swigt__p_wxItemContainer,
49157 &_swigt__p_wxJPEGHandler,
49158 &_swigt__p_wxKeyEvent,
49159 &_swigt__p_wxLayoutConstraints,
49160 &_swigt__p_wxListBox,
49161 &_swigt__p_wxListEvent,
49162 &_swigt__p_wxListItem,
49163 &_swigt__p_wxListItemAttr,
49164 &_swigt__p_wxListView,
49165 &_swigt__p_wxListbook,
49166 &_swigt__p_wxListbookEvent,
49167 &_swigt__p_wxMaximizeEvent,
49168 &_swigt__p_wxMemoryDC,
49169 &_swigt__p_wxMenu,
49170 &_swigt__p_wxMenuBar,
49171 &_swigt__p_wxMenuEvent,
49172 &_swigt__p_wxMenuItem,
49173 &_swigt__p_wxMouseCaptureChangedEvent,
49174 &_swigt__p_wxMouseCaptureLostEvent,
49175 &_swigt__p_wxMouseEvent,
49176 &_swigt__p_wxMoveEvent,
49177 &_swigt__p_wxNavigationKeyEvent,
49178 &_swigt__p_wxNcPaintEvent,
49179 &_swigt__p_wxNotebook,
49180 &_swigt__p_wxNotebookEvent,
49181 &_swigt__p_wxNotifyEvent,
49182 &_swigt__p_wxObject,
49183 &_swigt__p_wxPCXHandler,
49184 &_swigt__p_wxPNGHandler,
49185 &_swigt__p_wxPNMHandler,
49186 &_swigt__p_wxPaintEvent,
49187 &_swigt__p_wxPaletteChangedEvent,
49188 &_swigt__p_wxPaperSize,
49189 &_swigt__p_wxPickerBase,
49190 &_swigt__p_wxPoint,
49191 &_swigt__p_wxPyApp,
49192 &_swigt__p_wxPyCommandEvent,
49193 &_swigt__p_wxPyControl,
49194 &_swigt__p_wxPyEvent,
49195 &_swigt__p_wxPyImageHandler,
49196 &_swigt__p_wxPyListCtrl,
49197 &_swigt__p_wxPySizer,
49198 &_swigt__p_wxPyTreeCtrl,
49199 &_swigt__p_wxPyTreeItemData,
49200 &_swigt__p_wxPyValidator,
49201 &_swigt__p_wxQueryNewPaletteEvent,
49202 &_swigt__p_wxRadioBox,
49203 &_swigt__p_wxRadioButton,
49204 &_swigt__p_wxRect,
49205 &_swigt__p_wxScrollBar,
49206 &_swigt__p_wxScrollEvent,
49207 &_swigt__p_wxScrollWinEvent,
49208 &_swigt__p_wxSearchCtrl,
49209 &_swigt__p_wxSetCursorEvent,
49210 &_swigt__p_wxShowEvent,
49211 &_swigt__p_wxSimpleHelpProvider,
49212 &_swigt__p_wxSize,
49213 &_swigt__p_wxSizeEvent,
49214 &_swigt__p_wxSizer,
49215 &_swigt__p_wxSizerItem,
49216 &_swigt__p_wxSlider,
49217 &_swigt__p_wxSpinButton,
49218 &_swigt__p_wxSpinCtrl,
49219 &_swigt__p_wxSpinEvent,
49220 &_swigt__p_wxStaticBitmap,
49221 &_swigt__p_wxStaticBox,
49222 &_swigt__p_wxStaticBoxSizer,
49223 &_swigt__p_wxStaticLine,
49224 &_swigt__p_wxStaticText,
49225 &_swigt__p_wxStdDialogButtonSizer,
49226 &_swigt__p_wxString,
49227 &_swigt__p_wxSysColourChangedEvent,
49228 &_swigt__p_wxTGAHandler,
49229 &_swigt__p_wxTIFFHandler,
49230 &_swigt__p_wxTextAttr,
49231 &_swigt__p_wxTextCtrl,
49232 &_swigt__p_wxTextUrlEvent,
49233 &_swigt__p_wxToggleButton,
49234 &_swigt__p_wxToolBar,
49235 &_swigt__p_wxToolBarBase,
49236 &_swigt__p_wxToolBarToolBase,
49237 &_swigt__p_wxToolbook,
49238 &_swigt__p_wxToolbookEvent,
49239 &_swigt__p_wxTreeEvent,
49240 &_swigt__p_wxTreeItemId,
49241 &_swigt__p_wxTreebook,
49242 &_swigt__p_wxTreebookEvent,
49243 &_swigt__p_wxUpdateUIEvent,
49244 &_swigt__p_wxValidator,
49245 &_swigt__p_wxVisualAttributes,
49246 &_swigt__p_wxWindow,
49247 &_swigt__p_wxWindowBase,
49248 &_swigt__p_wxWindowCreateEvent,
49249 &_swigt__p_wxWindowDestroyEvent,
49250 &_swigt__p_wxXPMHandler,
49251 };
49252
49253 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49254 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49255 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49256 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49257 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49258 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49259 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49260 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49261 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49262 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49263 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49264 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49265 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}};
49266 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}};
49267 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}};
49268 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}};
49269 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49270 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49271 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}};
49272 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49273 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49274 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49275 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
49276 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
49277 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49278 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49279 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49280 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
49281 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
49282 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49283 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49284 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49285 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49286 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49287 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49288 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
49289 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}};
49290 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49291 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
49292 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}};
49293 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}};
49294 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49295 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49296 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49297 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49298 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
49299 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49300 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49301 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49302 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49303 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49304 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49305 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49306 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
49307 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
49308 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49309 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49310 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49311 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49312 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49313 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
49314 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
49315 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49316 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49317 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49318 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49319 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49320 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49321 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49322 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49323 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49324 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49325 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
49326 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}};
49327 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49328 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49329 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
49330 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
49331 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49332 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49333 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
49334 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49335 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49336 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49337 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49338 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49339 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49340 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}};
49341 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49342 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
49343 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49344 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49345 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}};
49346 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49347 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}};
49348 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49349 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49350 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49351 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49352 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49353 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49354 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
49355 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
49356 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49357 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49358 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49359 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}};
49360 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
49361 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49362 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49363 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49364 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49365 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49366 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
49367 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
49368 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49369 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49370 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
49371 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
49372 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
49373 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
49374 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
49375 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
49376 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
49377 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
49378 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
49379 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49380 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49381 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
49382 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49383 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49384 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49385 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
49386 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
49387 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
49388 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
49389 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49390 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
49391 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
49392 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
49393 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}};
49394 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49395 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49396 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}};
49397 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49398 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49399 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49400 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49401 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49402 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
49403 static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
49404 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49405 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49406 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49407 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49408 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49409 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49410 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49411 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49412 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49413 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49414 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49415 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
49416 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}};
49417 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49418 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49419 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49420 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}};
49421 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49422 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49423 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49424 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49425 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49426 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49427 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49428 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}};
49429 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
49430 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}};
49431 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
49432
49433 static swig_cast_info *swig_cast_initial[] = {
49434 _swigc__p_bool,
49435 _swigc__p_char,
49436 _swigc__p_form_ops_t,
49437 _swigc__p_int,
49438 _swigc__p_long,
49439 _swigc__p_unsigned_char,
49440 _swigc__p_unsigned_int,
49441 _swigc__p_unsigned_long,
49442 _swigc__p_void,
49443 _swigc__p_wxANIHandler,
49444 _swigc__p_wxAcceleratorTable,
49445 _swigc__p_wxActivateEvent,
49446 _swigc__p_wxArrayInt,
49447 _swigc__p_wxArrayString,
49448 _swigc__p_wxBMPHandler,
49449 _swigc__p_wxBitmap,
49450 _swigc__p_wxBitmapButton,
49451 _swigc__p_wxBookCtrlBase,
49452 _swigc__p_wxBookCtrlBaseEvent,
49453 _swigc__p_wxBoxSizer,
49454 _swigc__p_wxButton,
49455 _swigc__p_wxCURHandler,
49456 _swigc__p_wxCheckBox,
49457 _swigc__p_wxCheckListBox,
49458 _swigc__p_wxChildFocusEvent,
49459 _swigc__p_wxChoice,
49460 _swigc__p_wxChoicebook,
49461 _swigc__p_wxChoicebookEvent,
49462 _swigc__p_wxClipboardTextEvent,
49463 _swigc__p_wxCloseEvent,
49464 _swigc__p_wxCollapsiblePane,
49465 _swigc__p_wxCollapsiblePaneEvent,
49466 _swigc__p_wxColour,
49467 _swigc__p_wxColourPickerCtrl,
49468 _swigc__p_wxColourPickerEvent,
49469 _swigc__p_wxComboBox,
49470 _swigc__p_wxCommandEvent,
49471 _swigc__p_wxContextHelp,
49472 _swigc__p_wxContextHelpButton,
49473 _swigc__p_wxContextMenuEvent,
49474 _swigc__p_wxControl,
49475 _swigc__p_wxControlWithItems,
49476 _swigc__p_wxCursor,
49477 _swigc__p_wxDC,
49478 _swigc__p_wxDateEvent,
49479 _swigc__p_wxDatePickerCtrl,
49480 _swigc__p_wxDateTime,
49481 _swigc__p_wxDirFilterListCtrl,
49482 _swigc__p_wxDirPickerCtrl,
49483 _swigc__p_wxDisplayChangedEvent,
49484 _swigc__p_wxDropFilesEvent,
49485 _swigc__p_wxDuplexMode,
49486 _swigc__p_wxEraseEvent,
49487 _swigc__p_wxEvent,
49488 _swigc__p_wxEvtHandler,
49489 _swigc__p_wxFSFile,
49490 _swigc__p_wxFileDirPickerEvent,
49491 _swigc__p_wxFilePickerCtrl,
49492 _swigc__p_wxFileSystem,
49493 _swigc__p_wxFlexGridSizer,
49494 _swigc__p_wxFocusEvent,
49495 _swigc__p_wxFont,
49496 _swigc__p_wxFontPickerCtrl,
49497 _swigc__p_wxFontPickerEvent,
49498 _swigc__p_wxGBSizerItem,
49499 _swigc__p_wxGIFHandler,
49500 _swigc__p_wxGauge,
49501 _swigc__p_wxGenericDirCtrl,
49502 _swigc__p_wxGenericDragImage,
49503 _swigc__p_wxGridBagSizer,
49504 _swigc__p_wxGridSizer,
49505 _swigc__p_wxHelpEvent,
49506 _swigc__p_wxHelpProvider,
49507 _swigc__p_wxHyperlinkCtrl,
49508 _swigc__p_wxHyperlinkEvent,
49509 _swigc__p_wxICOHandler,
49510 _swigc__p_wxIcon,
49511 _swigc__p_wxIconizeEvent,
49512 _swigc__p_wxIdleEvent,
49513 _swigc__p_wxImage,
49514 _swigc__p_wxImageHandler,
49515 _swigc__p_wxImageList,
49516 _swigc__p_wxIndividualLayoutConstraint,
49517 _swigc__p_wxInitDialogEvent,
49518 _swigc__p_wxItemContainer,
49519 _swigc__p_wxJPEGHandler,
49520 _swigc__p_wxKeyEvent,
49521 _swigc__p_wxLayoutConstraints,
49522 _swigc__p_wxListBox,
49523 _swigc__p_wxListEvent,
49524 _swigc__p_wxListItem,
49525 _swigc__p_wxListItemAttr,
49526 _swigc__p_wxListView,
49527 _swigc__p_wxListbook,
49528 _swigc__p_wxListbookEvent,
49529 _swigc__p_wxMaximizeEvent,
49530 _swigc__p_wxMemoryDC,
49531 _swigc__p_wxMenu,
49532 _swigc__p_wxMenuBar,
49533 _swigc__p_wxMenuEvent,
49534 _swigc__p_wxMenuItem,
49535 _swigc__p_wxMouseCaptureChangedEvent,
49536 _swigc__p_wxMouseCaptureLostEvent,
49537 _swigc__p_wxMouseEvent,
49538 _swigc__p_wxMoveEvent,
49539 _swigc__p_wxNavigationKeyEvent,
49540 _swigc__p_wxNcPaintEvent,
49541 _swigc__p_wxNotebook,
49542 _swigc__p_wxNotebookEvent,
49543 _swigc__p_wxNotifyEvent,
49544 _swigc__p_wxObject,
49545 _swigc__p_wxPCXHandler,
49546 _swigc__p_wxPNGHandler,
49547 _swigc__p_wxPNMHandler,
49548 _swigc__p_wxPaintEvent,
49549 _swigc__p_wxPaletteChangedEvent,
49550 _swigc__p_wxPaperSize,
49551 _swigc__p_wxPickerBase,
49552 _swigc__p_wxPoint,
49553 _swigc__p_wxPyApp,
49554 _swigc__p_wxPyCommandEvent,
49555 _swigc__p_wxPyControl,
49556 _swigc__p_wxPyEvent,
49557 _swigc__p_wxPyImageHandler,
49558 _swigc__p_wxPyListCtrl,
49559 _swigc__p_wxPySizer,
49560 _swigc__p_wxPyTreeCtrl,
49561 _swigc__p_wxPyTreeItemData,
49562 _swigc__p_wxPyValidator,
49563 _swigc__p_wxQueryNewPaletteEvent,
49564 _swigc__p_wxRadioBox,
49565 _swigc__p_wxRadioButton,
49566 _swigc__p_wxRect,
49567 _swigc__p_wxScrollBar,
49568 _swigc__p_wxScrollEvent,
49569 _swigc__p_wxScrollWinEvent,
49570 _swigc__p_wxSearchCtrl,
49571 _swigc__p_wxSetCursorEvent,
49572 _swigc__p_wxShowEvent,
49573 _swigc__p_wxSimpleHelpProvider,
49574 _swigc__p_wxSize,
49575 _swigc__p_wxSizeEvent,
49576 _swigc__p_wxSizer,
49577 _swigc__p_wxSizerItem,
49578 _swigc__p_wxSlider,
49579 _swigc__p_wxSpinButton,
49580 _swigc__p_wxSpinCtrl,
49581 _swigc__p_wxSpinEvent,
49582 _swigc__p_wxStaticBitmap,
49583 _swigc__p_wxStaticBox,
49584 _swigc__p_wxStaticBoxSizer,
49585 _swigc__p_wxStaticLine,
49586 _swigc__p_wxStaticText,
49587 _swigc__p_wxStdDialogButtonSizer,
49588 _swigc__p_wxString,
49589 _swigc__p_wxSysColourChangedEvent,
49590 _swigc__p_wxTGAHandler,
49591 _swigc__p_wxTIFFHandler,
49592 _swigc__p_wxTextAttr,
49593 _swigc__p_wxTextCtrl,
49594 _swigc__p_wxTextUrlEvent,
49595 _swigc__p_wxToggleButton,
49596 _swigc__p_wxToolBar,
49597 _swigc__p_wxToolBarBase,
49598 _swigc__p_wxToolBarToolBase,
49599 _swigc__p_wxToolbook,
49600 _swigc__p_wxToolbookEvent,
49601 _swigc__p_wxTreeEvent,
49602 _swigc__p_wxTreeItemId,
49603 _swigc__p_wxTreebook,
49604 _swigc__p_wxTreebookEvent,
49605 _swigc__p_wxUpdateUIEvent,
49606 _swigc__p_wxValidator,
49607 _swigc__p_wxVisualAttributes,
49608 _swigc__p_wxWindow,
49609 _swigc__p_wxWindowBase,
49610 _swigc__p_wxWindowCreateEvent,
49611 _swigc__p_wxWindowDestroyEvent,
49612 _swigc__p_wxXPMHandler,
49613 };
49614
49615
49616 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
49617
49618 static swig_const_info swig_const_table[] = {
49619 {0, 0, 0, 0.0, 0, 0}};
49620
49621 #ifdef __cplusplus
49622 }
49623 #endif
49624 /* -----------------------------------------------------------------------------
49625 * Type initialization:
49626 * This problem is tough by the requirement that no dynamic
49627 * memory is used. Also, since swig_type_info structures store pointers to
49628 * swig_cast_info structures and swig_cast_info structures store pointers back
49629 * to swig_type_info structures, we need some lookup code at initialization.
49630 * The idea is that swig generates all the structures that are needed.
49631 * The runtime then collects these partially filled structures.
49632 * The SWIG_InitializeModule function takes these initial arrays out of
49633 * swig_module, and does all the lookup, filling in the swig_module.types
49634 * array with the correct data and linking the correct swig_cast_info
49635 * structures together.
49636 *
49637 * The generated swig_type_info structures are assigned staticly to an initial
49638 * array. We just loop though that array, and handle each type individually.
49639 * First we lookup if this type has been already loaded, and if so, use the
49640 * loaded structure instead of the generated one. Then we have to fill in the
49641 * cast linked list. The cast data is initially stored in something like a
49642 * two-dimensional array. Each row corresponds to a type (there are the same
49643 * number of rows as there are in the swig_type_initial array). Each entry in
49644 * a column is one of the swig_cast_info structures for that type.
49645 * The cast_initial array is actually an array of arrays, because each row has
49646 * a variable number of columns. So to actually build the cast linked list,
49647 * we find the array of casts associated with the type, and loop through it
49648 * adding the casts to the list. The one last trick we need to do is making
49649 * sure the type pointer in the swig_cast_info struct is correct.
49650 *
49651 * First off, we lookup the cast->type name to see if it is already loaded.
49652 * There are three cases to handle:
49653 * 1) If the cast->type has already been loaded AND the type we are adding
49654 * casting info to has not been loaded (it is in this module), THEN we
49655 * replace the cast->type pointer with the type pointer that has already
49656 * been loaded.
49657 * 2) If BOTH types (the one we are adding casting info to, and the
49658 * cast->type) are loaded, THEN the cast info has already been loaded by
49659 * the previous module so we just ignore it.
49660 * 3) Finally, if cast->type has not already been loaded, then we add that
49661 * swig_cast_info to the linked list (because the cast->type) pointer will
49662 * be correct.
49663 * ----------------------------------------------------------------------------- */
49664
49665 #ifdef __cplusplus
49666 extern "C" {
49667 #if 0
49668 } /* c-mode */
49669 #endif
49670 #endif
49671
49672 #if 0
49673 #define SWIGRUNTIME_DEBUG
49674 #endif
49675
49676 SWIGRUNTIME void
49677 SWIG_InitializeModule(void *clientdata) {
49678 size_t i;
49679 swig_module_info *module_head;
49680 static int init_run = 0;
49681
49682 clientdata = clientdata;
49683
49684 if (init_run) return;
49685 init_run = 1;
49686
49687 /* Initialize the swig_module */
49688 swig_module.type_initial = swig_type_initial;
49689 swig_module.cast_initial = swig_cast_initial;
49690
49691 /* Try and load any already created modules */
49692 module_head = SWIG_GetModule(clientdata);
49693 if (module_head) {
49694 swig_module.next = module_head->next;
49695 module_head->next = &swig_module;
49696 } else {
49697 /* This is the first module loaded */
49698 swig_module.next = &swig_module;
49699 SWIG_SetModule(clientdata, &swig_module);
49700 }
49701
49702 /* Now work on filling in swig_module.types */
49703 #ifdef SWIGRUNTIME_DEBUG
49704 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49705 #endif
49706 for (i = 0; i < swig_module.size; ++i) {
49707 swig_type_info *type = 0;
49708 swig_type_info *ret;
49709 swig_cast_info *cast;
49710
49711 #ifdef SWIGRUNTIME_DEBUG
49712 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49713 #endif
49714
49715 /* if there is another module already loaded */
49716 if (swig_module.next != &swig_module) {
49717 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
49718 }
49719 if (type) {
49720 /* Overwrite clientdata field */
49721 #ifdef SWIGRUNTIME_DEBUG
49722 printf("SWIG_InitializeModule: found type %s\n", type->name);
49723 #endif
49724 if (swig_module.type_initial[i]->clientdata) {
49725 type->clientdata = swig_module.type_initial[i]->clientdata;
49726 #ifdef SWIGRUNTIME_DEBUG
49727 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49728 #endif
49729 }
49730 } else {
49731 type = swig_module.type_initial[i];
49732 }
49733
49734 /* Insert casting types */
49735 cast = swig_module.cast_initial[i];
49736 while (cast->type) {
49737 /* Don't need to add information already in the list */
49738 ret = 0;
49739 #ifdef SWIGRUNTIME_DEBUG
49740 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49741 #endif
49742 if (swig_module.next != &swig_module) {
49743 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49744 #ifdef SWIGRUNTIME_DEBUG
49745 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49746 #endif
49747 }
49748 if (ret) {
49749 if (type == swig_module.type_initial[i]) {
49750 #ifdef SWIGRUNTIME_DEBUG
49751 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49752 #endif
49753 cast->type = ret;
49754 ret = 0;
49755 } else {
49756 /* Check for casting already in the list */
49757 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49758 #ifdef SWIGRUNTIME_DEBUG
49759 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49760 #endif
49761 if (!ocast) ret = 0;
49762 }
49763 }
49764
49765 if (!ret) {
49766 #ifdef SWIGRUNTIME_DEBUG
49767 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49768 #endif
49769 if (type->cast) {
49770 type->cast->prev = cast;
49771 cast->next = type->cast;
49772 }
49773 type->cast = cast;
49774 }
49775 cast++;
49776 }
49777 /* Set entry in modules->types array equal to the type */
49778 swig_module.types[i] = type;
49779 }
49780 swig_module.types[i] = 0;
49781
49782 #ifdef SWIGRUNTIME_DEBUG
49783 printf("**** SWIG_InitializeModule: Cast List ******\n");
49784 for (i = 0; i < swig_module.size; ++i) {
49785 int j = 0;
49786 swig_cast_info *cast = swig_module.cast_initial[i];
49787 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49788 while (cast->type) {
49789 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
49790 cast++;
49791 ++j;
49792 }
49793 printf("---- Total casts: %d\n",j);
49794 }
49795 printf("**** SWIG_InitializeModule: Cast List ******\n");
49796 #endif
49797 }
49798
49799 /* This function will propagate the clientdata field of type to
49800 * any new swig_type_info structures that have been added into the list
49801 * of equivalent types. It is like calling
49802 * SWIG_TypeClientData(type, clientdata) a second time.
49803 */
49804 SWIGRUNTIME void
49805 SWIG_PropagateClientData(void) {
49806 size_t i;
49807 swig_cast_info *equiv;
49808 static int init_run = 0;
49809
49810 if (init_run) return;
49811 init_run = 1;
49812
49813 for (i = 0; i < swig_module.size; i++) {
49814 if (swig_module.types[i]->clientdata) {
49815 equiv = swig_module.types[i]->cast;
49816 while (equiv) {
49817 if (!equiv->converter) {
49818 if (equiv->type && !equiv->type->clientdata)
49819 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
49820 }
49821 equiv = equiv->next;
49822 }
49823 }
49824 }
49825 }
49826
49827 #ifdef __cplusplus
49828 #if 0
49829 {
49830 /* c-mode */
49831 #endif
49832 }
49833 #endif
49834
49835
49836
49837 #ifdef __cplusplus
49838 extern "C" {
49839 #endif
49840
49841 /* Python-specific SWIG API */
49842 #define SWIG_newvarlink() SWIG_Python_newvarlink()
49843 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
49844 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
49845
49846 /* -----------------------------------------------------------------------------
49847 * global variable support code.
49848 * ----------------------------------------------------------------------------- */
49849
49850 typedef struct swig_globalvar {
49851 char *name; /* Name of global variable */
49852 PyObject *(*get_attr)(void); /* Return the current value */
49853 int (*set_attr)(PyObject *); /* Set the value */
49854 struct swig_globalvar *next;
49855 } swig_globalvar;
49856
49857 typedef struct swig_varlinkobject {
49858 PyObject_HEAD
49859 swig_globalvar *vars;
49860 } swig_varlinkobject;
49861
49862 SWIGINTERN PyObject *
49863 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
49864 return PyString_FromString("<Swig global variables>");
49865 }
49866
49867 SWIGINTERN PyObject *
49868 swig_varlink_str(swig_varlinkobject *v) {
49869 PyObject *str = PyString_FromString("(");
49870 swig_globalvar *var;
49871 for (var = v->vars; var; var=var->next) {
49872 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
49873 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
49874 }
49875 PyString_ConcatAndDel(&str,PyString_FromString(")"));
49876 return str;
49877 }
49878
49879 SWIGINTERN int
49880 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
49881 PyObject *str = swig_varlink_str(v);
49882 fprintf(fp,"Swig global variables ");
49883 fprintf(fp,"%s\n", PyString_AsString(str));
49884 Py_DECREF(str);
49885 return 0;
49886 }
49887
49888 SWIGINTERN void
49889 swig_varlink_dealloc(swig_varlinkobject *v) {
49890 swig_globalvar *var = v->vars;
49891 while (var) {
49892 swig_globalvar *n = var->next;
49893 free(var->name);
49894 free(var);
49895 var = n;
49896 }
49897 }
49898
49899 SWIGINTERN PyObject *
49900 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
49901 PyObject *res = NULL;
49902 swig_globalvar *var = v->vars;
49903 while (var) {
49904 if (strcmp(var->name,n) == 0) {
49905 res = (*var->get_attr)();
49906 break;
49907 }
49908 var = var->next;
49909 }
49910 if (res == NULL && !PyErr_Occurred()) {
49911 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
49912 }
49913 return res;
49914 }
49915
49916 SWIGINTERN int
49917 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
49918 int res = 1;
49919 swig_globalvar *var = v->vars;
49920 while (var) {
49921 if (strcmp(var->name,n) == 0) {
49922 res = (*var->set_attr)(p);
49923 break;
49924 }
49925 var = var->next;
49926 }
49927 if (res == 1 && !PyErr_Occurred()) {
49928 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
49929 }
49930 return res;
49931 }
49932
49933 SWIGINTERN PyTypeObject*
49934 swig_varlink_type(void) {
49935 static char varlink__doc__[] = "Swig var link object";
49936 static PyTypeObject varlink_type;
49937 static int type_init = 0;
49938 if (!type_init) {
49939 const PyTypeObject tmp
49940 = {
49941 PyObject_HEAD_INIT(NULL)
49942 0, /* Number of items in variable part (ob_size) */
49943 (char *)"swigvarlink", /* Type name (tp_name) */
49944 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
49945 0, /* Itemsize (tp_itemsize) */
49946 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
49947 (printfunc) swig_varlink_print, /* Print (tp_print) */
49948 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
49949 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
49950 0, /* tp_compare */
49951 (reprfunc) swig_varlink_repr, /* tp_repr */
49952 0, /* tp_as_number */
49953 0, /* tp_as_sequence */
49954 0, /* tp_as_mapping */
49955 0, /* tp_hash */
49956 0, /* tp_call */
49957 (reprfunc)swig_varlink_str, /* tp_str */
49958 0, /* tp_getattro */
49959 0, /* tp_setattro */
49960 0, /* tp_as_buffer */
49961 0, /* tp_flags */
49962 varlink__doc__, /* tp_doc */
49963 0, /* tp_traverse */
49964 0, /* tp_clear */
49965 0, /* tp_richcompare */
49966 0, /* tp_weaklistoffset */
49967 #if PY_VERSION_HEX >= 0x02020000
49968 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
49969 #endif
49970 #if PY_VERSION_HEX >= 0x02030000
49971 0, /* tp_del */
49972 #endif
49973 #ifdef COUNT_ALLOCS
49974 0,0,0,0 /* tp_alloc -> tp_next */
49975 #endif
49976 };
49977 varlink_type = tmp;
49978 varlink_type.ob_type = &PyType_Type;
49979 type_init = 1;
49980 }
49981 return &varlink_type;
49982 }
49983
49984 /* Create a variable linking object for use later */
49985 SWIGINTERN PyObject *
49986 SWIG_Python_newvarlink(void) {
49987 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
49988 if (result) {
49989 result->vars = 0;
49990 }
49991 return ((PyObject*) result);
49992 }
49993
49994 SWIGINTERN void
49995 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
49996 swig_varlinkobject *v = (swig_varlinkobject *) p;
49997 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
49998 if (gv) {
49999 size_t size = strlen(name)+1;
50000 gv->name = (char *)malloc(size);
50001 if (gv->name) {
50002 strncpy(gv->name,name,size);
50003 gv->get_attr = get_attr;
50004 gv->set_attr = set_attr;
50005 gv->next = v->vars;
50006 }
50007 }
50008 v->vars = gv;
50009 }
50010
50011 SWIGINTERN PyObject *
50012 SWIG_globals() {
50013 static PyObject *_SWIG_globals = 0;
50014 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50015 return _SWIG_globals;
50016 }
50017
50018 /* -----------------------------------------------------------------------------
50019 * constants/methods manipulation
50020 * ----------------------------------------------------------------------------- */
50021
50022 /* Install Constants */
50023 SWIGINTERN void
50024 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50025 PyObject *obj = 0;
50026 size_t i;
50027 for (i = 0; constants[i].type; ++i) {
50028 switch(constants[i].type) {
50029 case SWIG_PY_POINTER:
50030 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50031 break;
50032 case SWIG_PY_BINARY:
50033 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50034 break;
50035 default:
50036 obj = 0;
50037 break;
50038 }
50039 if (obj) {
50040 PyDict_SetItemString(d, constants[i].name, obj);
50041 Py_DECREF(obj);
50042 }
50043 }
50044 }
50045
50046 /* -----------------------------------------------------------------------------*/
50047 /* Fix SwigMethods to carry the callback ptrs when needed */
50048 /* -----------------------------------------------------------------------------*/
50049
50050 SWIGINTERN void
50051 SWIG_Python_FixMethods(PyMethodDef *methods,
50052 swig_const_info *const_table,
50053 swig_type_info **types,
50054 swig_type_info **types_initial) {
50055 size_t i;
50056 for (i = 0; methods[i].ml_name; ++i) {
50057 const char *c = methods[i].ml_doc;
50058 if (c && (c = strstr(c, "swig_ptr: "))) {
50059 int j;
50060 swig_const_info *ci = 0;
50061 const char *name = c + 10;
50062 for (j = 0; const_table[j].type; ++j) {
50063 if (strncmp(const_table[j].name, name,
50064 strlen(const_table[j].name)) == 0) {
50065 ci = &(const_table[j]);
50066 break;
50067 }
50068 }
50069 if (ci) {
50070 size_t shift = (ci->ptype) - types;
50071 swig_type_info *ty = types_initial[shift];
50072 size_t ldoc = (c - methods[i].ml_doc);
50073 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50074 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50075 if (ndoc) {
50076 char *buff = ndoc;
50077 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50078 if (ptr) {
50079 strncpy(buff, methods[i].ml_doc, ldoc);
50080 buff += ldoc;
50081 strncpy(buff, "swig_ptr: ", 10);
50082 buff += 10;
50083 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50084 methods[i].ml_doc = ndoc;
50085 }
50086 }
50087 }
50088 }
50089 }
50090 }
50091
50092 #ifdef __cplusplus
50093 }
50094 #endif
50095
50096 /* -----------------------------------------------------------------------------*
50097 * Partial Init method
50098 * -----------------------------------------------------------------------------*/
50099
50100 #ifdef __cplusplus
50101 extern "C"
50102 #endif
50103 SWIGEXPORT void SWIG_init(void) {
50104 PyObject *m, *d;
50105
50106 /* Fix SwigMethods to carry the callback ptrs when needed */
50107 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50108
50109 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50110 d = PyModule_GetDict(m);
50111
50112 SWIG_InitializeModule(0);
50113 SWIG_InstallConstants(d,swig_const_table);
50114
50115
50116 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50117 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50118 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50119 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50120 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50121 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50122 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50123 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50124 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50125 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50126 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50127 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50128 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50129 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50130 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50131 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50132 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50133 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50134 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50135 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50136 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50137 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
50138 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50139 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50140 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
50141 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
50142 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50143 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50144 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50145 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50146 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50147 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50148 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50149 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50150 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50151 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50152 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50153 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50154 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50155 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50156 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50157 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50158 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50159 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50160 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50161 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
50162 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50163 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50164 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50165 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50166 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50167 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50168 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50169 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50170 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50171 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50172 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50173 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50174 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50175 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50176 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50177 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50178 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50179 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50180 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50181 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50182 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50183 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50184 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50185 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50186 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50187 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50188 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
50189 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
50190 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50191 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50192 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50193 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50194 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50195 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50196 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50197 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50198 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50199 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50200 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50201 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50202 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50203 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50204 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50205 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50206 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50207 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50208 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50209 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50210 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50211 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50212 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50213 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50214 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50215 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50216 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50217 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50218 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50219 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50220 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50221 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50222 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50223 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50224 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50225 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
50226 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
50227 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50228 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50229 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50230 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50231 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
50232 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50233 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50234 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50235 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50236 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50237 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50238 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50239 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50240 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50241 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50242 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
50243 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
50244 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50245 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50246 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50247 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50248 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50249 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50250 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50251 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50252 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50253 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50254 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50255 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50256 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50257 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50258 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50259 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50260 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50261 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50262 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50263 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50264 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50265 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50266 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50267 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50268 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50269 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50270 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50271 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50272 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
50273 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50274 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50275 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50276 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
50277 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50278 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50279 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50280 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50281 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50282 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50283 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50284 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50285 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
50286 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
50287 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50288 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50289 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50290 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50291 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50292 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50293 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50294 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50295 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50296 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50297 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50298 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50299 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50300 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50301 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50302 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50303 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50304 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50305 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50306 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50307 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50308 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50309 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50310 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50311 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50312 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50313 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50314 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50315 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50316 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50317 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50318 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50319 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50320 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50321 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50322 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50323 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50324 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50325 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50326 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50327 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50328 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50329 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50330 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50331 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50332 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50333 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
50334 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
50335 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50336 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50337 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50338 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50339 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50340 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50341 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50342 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50343 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50344 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50345 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50346 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50347 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50348 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50349 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50350 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50351 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50352 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50353 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50354 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50355 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50356 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50357 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50358 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50359 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50360 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50361 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50362 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50363 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
50364 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
50365 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
50366 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
50367 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
50368 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
50369 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
50370 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
50371 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
50372 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
50373 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
50374 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
50375 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
50376 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
50377
50378 // Map renamed classes back to their common name for OOR
50379 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
50380
50381 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
50382 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50383 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50384 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50385 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50386 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50387 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50388 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50389 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50390 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50391 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50392 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50393 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50394 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50395 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
50396 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50397 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50398 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50399 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50400 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50401 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50402 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50403 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50404 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50405 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50406 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50407 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50408 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50409 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50410 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50411 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50412 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50413 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50414 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50415 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50416 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50417 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50418 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50419 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50420 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50421 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50422 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50423 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50424 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
50425 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
50426 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
50427 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
50428 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
50429 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
50430 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
50431 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
50432 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
50433 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
50434 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
50435 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
50436 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
50437
50438 // Map renamed classes back to their common name for OOR
50439 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
50440 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
50441
50442 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
50443 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
50444 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
50445 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
50446 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
50447 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
50448 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
50449 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
50450 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
50451 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
50452 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
50453
50454 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
50455
50456 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
50457 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
50458 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
50459 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
50460 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
50461 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
50462 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
50463 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
50464 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
50465 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
50466 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
50467 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
50468 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
50469 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
50470 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
50471 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
50472 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
50473 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
50474 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
50475 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
50476 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
50477 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
50478 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
50479 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
50480 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
50481 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
50482 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
50483 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
50484 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
50485 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
50486 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
50487 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
50488 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
50489 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
50490 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
50491 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
50492 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
50493 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
50494 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
50495 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
50496 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
50497 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
50498 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
50499 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
50500 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
50501 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
50502 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
50503 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
50504 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL));
50505 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH));
50506 }
50507