]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_controls_wrap.cpp
664a8e28e93be6d320f6fc4894df3adcd6b8ebb8
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497 #define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498 #define SWIGTYPE_p_wxColour swig_types[32]
2499 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500 #define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501 #define SWIGTYPE_p_wxComboBox swig_types[35]
2502 #define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503 #define SWIGTYPE_p_wxContextHelp swig_types[37]
2504 #define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505 #define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506 #define SWIGTYPE_p_wxControl swig_types[40]
2507 #define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508 #define SWIGTYPE_p_wxCursor swig_types[42]
2509 #define SWIGTYPE_p_wxDC swig_types[43]
2510 #define SWIGTYPE_p_wxDateEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDateTime swig_types[46]
2513 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516 #define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517 #define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518 #define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519 #define SWIGTYPE_p_wxEvent swig_types[53]
2520 #define SWIGTYPE_p_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_MacCheckSpelling(wxTextCtrl *self,bool check){}
2903 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2904 self->AppendText(text);
2905 }
2906 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2907 return self->GetValue().Mid(from, to - from);
2908 }
2909 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2910 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2911 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2912 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2913 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2914
2915 SWIGINTERNINLINE PyObject*
2916 SWIG_From_unsigned_SS_long (unsigned long value)
2917 {
2918 return (value > LONG_MAX) ?
2919 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2920 }
2921
2922
2923 SWIGINTERNINLINE PyObject *
2924 SWIG_From_size_t (size_t value)
2925 {
2926 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2927 }
2928
2929
2930 SWIGINTERNINLINE PyObject *
2931 SWIG_From_unsigned_SS_int (unsigned int value)
2932 {
2933 return SWIG_From_unsigned_SS_long (value);
2934 }
2935
2936
2937 #include <wx/slider.h>
2938
2939
2940 static const wxString wxPySliderNameStr(wxSliderNameStr);
2941 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2942
2943 #if !wxUSE_TOGGLEBTN
2944 // implement dummy items for platforms that don't have this class
2945
2946 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2947
2948 class wxToggleButton : public wxControl
2949 {
2950 public:
2951 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2952 const wxPoint&, const wxSize&, long,
2953 const wxValidator&, const wxString&)
2954 { wxPyRaiseNotImplemented(); }
2955
2956 wxToggleButton()
2957 { wxPyRaiseNotImplemented(); }
2958 };
2959 #endif
2960
2961 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2962
2963 SWIGINTERNINLINE int
2964 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2965 {
2966 unsigned long v;
2967 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2968 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2969 return res;
2970 }
2971
2972 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2973 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2974 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2975 if (udata) {
2976 Py_INCREF(udata->m_obj);
2977 return udata->m_obj;
2978 } else {
2979 Py_INCREF(Py_None);
2980 return Py_None;
2981 }
2982 }
2983 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2984 self->SetClientData(new wxPyUserData(clientData));
2985 }
2986 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2987 wxPyUserData* udata = NULL;
2988 if (clientData && clientData != Py_None)
2989 udata = new wxPyUserData(clientData);
2990 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2991 shortHelp, longHelp, udata);
2992 }
2993 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2994 wxPyUserData* udata = NULL;
2995 if (clientData && clientData != Py_None)
2996 udata = new wxPyUserData(clientData);
2997 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2998 shortHelp, longHelp, udata);
2999 }
3000 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
3001 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3002 if (udata) {
3003 Py_INCREF(udata->m_obj);
3004 return udata->m_obj;
3005 } else {
3006 Py_INCREF(Py_None);
3007 return Py_None;
3008 }
3009 }
3010 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3011 self->SetToolClientData(id, new wxPyUserData(clientData));
3012 }
3013
3014 #include <wx/listctrl.h>
3015
3016 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3017 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3018 // Python aware sorting function for wxPyListCtrl
3019 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3020 int retval = 0;
3021 PyObject* func = (PyObject*)funcPtr;
3022 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3023
3024 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3025 PyObject* result = PyEval_CallObject(func, args);
3026 Py_DECREF(args);
3027 if (result) {
3028 retval = PyInt_AsLong(result);
3029 Py_DECREF(result);
3030 }
3031
3032 wxPyEndBlockThreads(blocked);
3033 return retval;
3034 }
3035
3036 // C++ Version of a Python aware class
3037 class wxPyListCtrl : public wxListCtrl {
3038 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3039 public:
3040 wxPyListCtrl() : wxListCtrl() {}
3041 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3042 const wxPoint& pos,
3043 const wxSize& size,
3044 long style,
3045 const wxValidator& validator,
3046 const wxString& name) :
3047 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3048
3049 bool Create(wxWindow* parent, wxWindowID id,
3050 const wxPoint& pos,
3051 const wxSize& size,
3052 long style,
3053 const wxValidator& validator,
3054 const wxString& name) {
3055 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3056 }
3057
3058 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3059 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3060
3061 // use the virtual version to avoid a confusing assert in the base class
3062 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3063 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3064
3065 PYPRIVATE;
3066 };
3067
3068 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3069
3070 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3071 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3072 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3073 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3074
3075
3076 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3077 wxListItem item;
3078 item.SetMask( wxLIST_MASK_STATE |
3079 wxLIST_MASK_TEXT |
3080 wxLIST_MASK_IMAGE |
3081 wxLIST_MASK_DATA |
3082 wxLIST_SET_ITEM |
3083 wxLIST_MASK_WIDTH |
3084 wxLIST_MASK_FORMAT
3085 );
3086 if (self->GetColumn(col, item))
3087 return new wxListItem(item);
3088 else
3089 return NULL;
3090 }
3091 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3092 wxListItem* info = new wxListItem;
3093 info->m_itemId = itemId;
3094 info->m_col = col;
3095 info->m_mask = 0xFFFF;
3096 self->GetItem(*info);
3097 return info;
3098 }
3099 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3100 wxPoint pos;
3101 self->GetItemPosition(item, pos);
3102 return pos;
3103 }
3104 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3105 wxRect rect;
3106 self->GetItemRect(item, rect, code);
3107 return rect;
3108 }
3109 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3110 if (!PyCallable_Check(func))
3111 return false;
3112 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3113 }
3114 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3115
3116
3117
3118 return (wxWindow*)self->m_mainWin;
3119
3120 }
3121
3122 #include <wx/treectrl.h>
3123 #include "wx/wxPython/pytree.h"
3124
3125 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3126 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3127 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3128 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3129
3130 static wxTreeItemId wxNullTreeItemId;
3131
3132 // C++ version of Python aware wxTreeCtrl
3133 class wxPyTreeCtrl : public wxTreeCtrl {
3134 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3135 public:
3136 wxPyTreeCtrl() : wxTreeCtrl() {}
3137 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3138 const wxPoint& pos,
3139 const wxSize& size,
3140 long style,
3141 const wxValidator& validator,
3142 const wxString& name) :
3143 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3144
3145 bool Create(wxWindow *parent, wxWindowID id,
3146 const wxPoint& pos,
3147 const wxSize& size,
3148 long style,
3149 const wxValidator& validator,
3150 const wxString& name) {
3151 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3152 }
3153
3154
3155 int OnCompareItems(const wxTreeItemId& item1,
3156 const wxTreeItemId& item2) {
3157 int rval = 0;
3158 bool found;
3159 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3160 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3161 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3162 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3163 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3164 Py_DECREF(o1);
3165 Py_DECREF(o2);
3166 }
3167 wxPyEndBlockThreads(blocked);
3168 if (! found)
3169 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3170 return rval;
3171 }
3172 PYPRIVATE;
3173 };
3174
3175 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3176
3177
3178 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3179 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3180 if (data == NULL) {
3181 data = new wxPyTreeItemData();
3182 data->SetId(item); // set the id
3183 self->SetItemData(item, data);
3184 }
3185 return data;
3186 }
3187 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3188 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3189 if (data == NULL) {
3190 data = new wxPyTreeItemData();
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
3194 return data->GetData();
3195 }
3196 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3197 data->SetId(item); // set the id
3198 self->SetItemData(item, data);
3199 }
3200 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3201 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3202 if (data == NULL) {
3203 data = new wxPyTreeItemData(obj);
3204 data->SetId(item); // set the id
3205 self->SetItemData(item, data);
3206 } else
3207 data->SetData(obj);
3208 }
3209 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3210 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3211 PyObject* rval = PyList_New(0);
3212 wxArrayTreeItemIds array;
3213 size_t num, x;
3214 num = self->GetSelections(array);
3215 for (x=0; x < num; x++) {
3216 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3217 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3218 PyList_Append(rval, item);
3219 Py_DECREF(item);
3220 }
3221 wxPyEndBlockThreads(blocked);
3222 return rval;
3223 }
3224 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3225 void* cookie = 0;
3226 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3227 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3228 PyObject* tup = PyTuple_New(2);
3229 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3230 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3231 wxPyEndBlockThreads(blocked);
3232 return tup;
3233 }
3234 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3235 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3236 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3237 PyObject* tup = PyTuple_New(2);
3238 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3239 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3240 wxPyEndBlockThreads(blocked);
3241 return tup;
3242 }
3243 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3244 wxRect rect;
3245 if (self->GetBoundingRect(item, rect, textOnly)) {
3246 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3247 wxRect* r = new wxRect(rect);
3248 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3249 wxPyEndBlockThreads(blocked);
3250 return val;
3251 }
3252 else
3253 RETURN_NONE();
3254 }
3255 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3256
3257 SWIGINTERNINLINE PyObject*
3258 SWIG_From_bool (bool value)
3259 {
3260 return PyBool_FromLong(value ? 1 : 0);
3261 }
3262
3263 // C++ version of Python aware wxControl
3264 class wxPyControl : public wxControl
3265 {
3266 DECLARE_DYNAMIC_CLASS(wxPyControl)
3267 public:
3268 wxPyControl() : wxControl() {}
3269 wxPyControl(wxWindow* parent, const wxWindowID id,
3270 const wxPoint& pos = wxDefaultPosition,
3271 const wxSize& size = wxDefaultSize,
3272 long style = 0,
3273 const wxValidator& validator=wxDefaultValidator,
3274 const wxString& name = wxPyControlNameStr)
3275 : wxControl(parent, id, pos, size, style, validator, name) {}
3276
3277
3278 bool DoEraseBackground(wxDC* dc) {
3279 #ifdef __WXMSW__
3280 return wxWindow::DoEraseBackground(dc->GetHDC());
3281 #else
3282 dc->SetBackground(wxBrush(GetBackgroundColour()));
3283 dc->Clear();
3284 return true;
3285 #endif
3286 }
3287
3288 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3289 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3290 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3291 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3292
3293 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3295 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3296
3297 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3298 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3299
3300 DEC_PYCALLBACK__(InitDialog);
3301 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3302 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3303 DEC_PYCALLBACK_BOOL_(Validate);
3304
3305 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3306 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3307 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3308
3309 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3310 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3311
3312 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3313 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3314
3315 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3316
3317 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3318
3319 PYPRIVATE;
3320 };
3321
3322 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3323
3324 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3325 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3326 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3327 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3328
3329 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3330 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3331 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3332
3333 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3334 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3335
3336 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3337 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3338 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3339 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3340
3341 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3342 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3343 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3344
3345 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3346 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3347
3348 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3349 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3350
3351 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3352
3353 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3354
3355
3356
3357 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3358
3359 #include <wx/generic/dragimgg.h>
3360
3361 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3362 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3363 wxDateTime rv;
3364 self->GetRange(&rv, NULL);
3365 return rv;
3366 }
3367 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3368 wxDateTime rv;
3369 self->GetRange(NULL, &rv);
3370 return rv;
3371 }
3372 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3373 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3374 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3375 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3376 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3377 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3378 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3379 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3380 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3381
3382 #include <wx/srchctrl.h>
3383
3384 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
3385 #ifdef __cplusplus
3386 extern "C" {
3387 #endif
3388 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3389 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3390 return 1;
3391 }
3392
3393
3394 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3395 PyObject *pyobj = 0;
3396
3397 {
3398 #if wxUSE_UNICODE
3399 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3400 #else
3401 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3402 #endif
3403 }
3404 return pyobj;
3405 }
3406
3407
3408 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3409 PyObject *resultobj = 0;
3410 wxWindow *arg1 = (wxWindow *) 0 ;
3411 int arg2 = (int) -1 ;
3412 wxString const &arg3_defvalue = wxPyEmptyString ;
3413 wxString *arg3 = (wxString *) &arg3_defvalue ;
3414 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3415 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3416 wxSize const &arg5_defvalue = wxDefaultSize ;
3417 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3418 long arg6 = (long) 0 ;
3419 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3420 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3421 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3422 wxString *arg8 = (wxString *) &arg8_defvalue ;
3423 wxButton *result = 0 ;
3424 void *argp1 = 0 ;
3425 int res1 = 0 ;
3426 int val2 ;
3427 int ecode2 = 0 ;
3428 bool temp3 = false ;
3429 wxPoint temp4 ;
3430 wxSize temp5 ;
3431 long val6 ;
3432 int ecode6 = 0 ;
3433 void *argp7 = 0 ;
3434 int res7 = 0 ;
3435 bool temp8 = false ;
3436 PyObject * obj0 = 0 ;
3437 PyObject * obj1 = 0 ;
3438 PyObject * obj2 = 0 ;
3439 PyObject * obj3 = 0 ;
3440 PyObject * obj4 = 0 ;
3441 PyObject * obj5 = 0 ;
3442 PyObject * obj6 = 0 ;
3443 PyObject * obj7 = 0 ;
3444 char * kwnames[] = {
3445 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3446 };
3447
3448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3450 if (!SWIG_IsOK(res1)) {
3451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3452 }
3453 arg1 = reinterpret_cast< wxWindow * >(argp1);
3454 if (obj1) {
3455 ecode2 = SWIG_AsVal_int(obj1, &val2);
3456 if (!SWIG_IsOK(ecode2)) {
3457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3458 }
3459 arg2 = static_cast< int >(val2);
3460 }
3461 if (obj2) {
3462 {
3463 arg3 = wxString_in_helper(obj2);
3464 if (arg3 == NULL) SWIG_fail;
3465 temp3 = true;
3466 }
3467 }
3468 if (obj3) {
3469 {
3470 arg4 = &temp4;
3471 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3472 }
3473 }
3474 if (obj4) {
3475 {
3476 arg5 = &temp5;
3477 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3478 }
3479 }
3480 if (obj5) {
3481 ecode6 = SWIG_AsVal_long(obj5, &val6);
3482 if (!SWIG_IsOK(ecode6)) {
3483 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3484 }
3485 arg6 = static_cast< long >(val6);
3486 }
3487 if (obj6) {
3488 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3489 if (!SWIG_IsOK(res7)) {
3490 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3491 }
3492 if (!argp7) {
3493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3494 }
3495 arg7 = reinterpret_cast< wxValidator * >(argp7);
3496 }
3497 if (obj7) {
3498 {
3499 arg8 = wxString_in_helper(obj7);
3500 if (arg8 == NULL) SWIG_fail;
3501 temp8 = true;
3502 }
3503 }
3504 {
3505 if (!wxPyCheckForApp()) SWIG_fail;
3506 PyThreadState* __tstate = wxPyBeginAllowThreads();
3507 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3508 wxPyEndAllowThreads(__tstate);
3509 if (PyErr_Occurred()) SWIG_fail;
3510 }
3511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3512 {
3513 if (temp3)
3514 delete arg3;
3515 }
3516 {
3517 if (temp8)
3518 delete arg8;
3519 }
3520 return resultobj;
3521 fail:
3522 {
3523 if (temp3)
3524 delete arg3;
3525 }
3526 {
3527 if (temp8)
3528 delete arg8;
3529 }
3530 return NULL;
3531 }
3532
3533
3534 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3535 PyObject *resultobj = 0;
3536 wxButton *result = 0 ;
3537
3538 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3539 {
3540 if (!wxPyCheckForApp()) SWIG_fail;
3541 PyThreadState* __tstate = wxPyBeginAllowThreads();
3542 result = (wxButton *)new wxButton();
3543 wxPyEndAllowThreads(__tstate);
3544 if (PyErr_Occurred()) SWIG_fail;
3545 }
3546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3547 return resultobj;
3548 fail:
3549 return NULL;
3550 }
3551
3552
3553 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3554 PyObject *resultobj = 0;
3555 wxButton *arg1 = (wxButton *) 0 ;
3556 wxWindow *arg2 = (wxWindow *) 0 ;
3557 int arg3 = (int) -1 ;
3558 wxString const &arg4_defvalue = wxPyEmptyString ;
3559 wxString *arg4 = (wxString *) &arg4_defvalue ;
3560 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3561 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3562 wxSize const &arg6_defvalue = wxDefaultSize ;
3563 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3564 long arg7 = (long) 0 ;
3565 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3566 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3567 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3568 wxString *arg9 = (wxString *) &arg9_defvalue ;
3569 bool result;
3570 void *argp1 = 0 ;
3571 int res1 = 0 ;
3572 void *argp2 = 0 ;
3573 int res2 = 0 ;
3574 int val3 ;
3575 int ecode3 = 0 ;
3576 bool temp4 = false ;
3577 wxPoint temp5 ;
3578 wxSize temp6 ;
3579 long val7 ;
3580 int ecode7 = 0 ;
3581 void *argp8 = 0 ;
3582 int res8 = 0 ;
3583 bool temp9 = false ;
3584 PyObject * obj0 = 0 ;
3585 PyObject * obj1 = 0 ;
3586 PyObject * obj2 = 0 ;
3587 PyObject * obj3 = 0 ;
3588 PyObject * obj4 = 0 ;
3589 PyObject * obj5 = 0 ;
3590 PyObject * obj6 = 0 ;
3591 PyObject * obj7 = 0 ;
3592 PyObject * obj8 = 0 ;
3593 char * kwnames[] = {
3594 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3595 };
3596
3597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3599 if (!SWIG_IsOK(res1)) {
3600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3601 }
3602 arg1 = reinterpret_cast< wxButton * >(argp1);
3603 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3604 if (!SWIG_IsOK(res2)) {
3605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3606 }
3607 arg2 = reinterpret_cast< wxWindow * >(argp2);
3608 if (obj2) {
3609 ecode3 = SWIG_AsVal_int(obj2, &val3);
3610 if (!SWIG_IsOK(ecode3)) {
3611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3612 }
3613 arg3 = static_cast< int >(val3);
3614 }
3615 if (obj3) {
3616 {
3617 arg4 = wxString_in_helper(obj3);
3618 if (arg4 == NULL) SWIG_fail;
3619 temp4 = true;
3620 }
3621 }
3622 if (obj4) {
3623 {
3624 arg5 = &temp5;
3625 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3626 }
3627 }
3628 if (obj5) {
3629 {
3630 arg6 = &temp6;
3631 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3632 }
3633 }
3634 if (obj6) {
3635 ecode7 = SWIG_AsVal_long(obj6, &val7);
3636 if (!SWIG_IsOK(ecode7)) {
3637 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3638 }
3639 arg7 = static_cast< long >(val7);
3640 }
3641 if (obj7) {
3642 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3643 if (!SWIG_IsOK(res8)) {
3644 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3645 }
3646 if (!argp8) {
3647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3648 }
3649 arg8 = reinterpret_cast< wxValidator * >(argp8);
3650 }
3651 if (obj8) {
3652 {
3653 arg9 = wxString_in_helper(obj8);
3654 if (arg9 == NULL) SWIG_fail;
3655 temp9 = true;
3656 }
3657 }
3658 {
3659 PyThreadState* __tstate = wxPyBeginAllowThreads();
3660 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3661 wxPyEndAllowThreads(__tstate);
3662 if (PyErr_Occurred()) SWIG_fail;
3663 }
3664 {
3665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3666 }
3667 {
3668 if (temp4)
3669 delete arg4;
3670 }
3671 {
3672 if (temp9)
3673 delete arg9;
3674 }
3675 return resultobj;
3676 fail:
3677 {
3678 if (temp4)
3679 delete arg4;
3680 }
3681 {
3682 if (temp9)
3683 delete arg9;
3684 }
3685 return NULL;
3686 }
3687
3688
3689 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3690 PyObject *resultobj = 0;
3691 wxButton *arg1 = (wxButton *) 0 ;
3692 void *argp1 = 0 ;
3693 int res1 = 0 ;
3694 PyObject *swig_obj[1] ;
3695
3696 if (!args) SWIG_fail;
3697 swig_obj[0] = args;
3698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3699 if (!SWIG_IsOK(res1)) {
3700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3701 }
3702 arg1 = reinterpret_cast< wxButton * >(argp1);
3703 {
3704 PyThreadState* __tstate = wxPyBeginAllowThreads();
3705 (arg1)->SetDefault();
3706 wxPyEndAllowThreads(__tstate);
3707 if (PyErr_Occurred()) SWIG_fail;
3708 }
3709 resultobj = SWIG_Py_Void();
3710 return resultobj;
3711 fail:
3712 return NULL;
3713 }
3714
3715
3716 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3717 PyObject *resultobj = 0;
3718 wxSize result;
3719
3720 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3721 {
3722 PyThreadState* __tstate = wxPyBeginAllowThreads();
3723 result = wxButton::GetDefaultSize();
3724 wxPyEndAllowThreads(__tstate);
3725 if (PyErr_Occurred()) SWIG_fail;
3726 }
3727 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3728 return resultobj;
3729 fail:
3730 return NULL;
3731 }
3732
3733
3734 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3735 PyObject *resultobj = 0;
3736 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3737 SwigValueWrapper<wxVisualAttributes > result;
3738 int val1 ;
3739 int ecode1 = 0 ;
3740 PyObject * obj0 = 0 ;
3741 char * kwnames[] = {
3742 (char *) "variant", NULL
3743 };
3744
3745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3746 if (obj0) {
3747 ecode1 = SWIG_AsVal_int(obj0, &val1);
3748 if (!SWIG_IsOK(ecode1)) {
3749 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3750 }
3751 arg1 = static_cast< wxWindowVariant >(val1);
3752 }
3753 {
3754 if (!wxPyCheckForApp()) SWIG_fail;
3755 PyThreadState* __tstate = wxPyBeginAllowThreads();
3756 result = wxButton::GetClassDefaultAttributes(arg1);
3757 wxPyEndAllowThreads(__tstate);
3758 if (PyErr_Occurred()) SWIG_fail;
3759 }
3760 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3761 return resultobj;
3762 fail:
3763 return NULL;
3764 }
3765
3766
3767 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3768 PyObject *obj;
3769 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3770 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3771 return SWIG_Py_Void();
3772 }
3773
3774 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3775 return SWIG_Python_InitShadowInstance(args);
3776 }
3777
3778 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj = 0;
3780 wxWindow *arg1 = (wxWindow *) 0 ;
3781 int arg2 = (int) -1 ;
3782 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3783 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3784 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3785 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3786 wxSize const &arg5_defvalue = wxDefaultSize ;
3787 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3788 long arg6 = (long) wxBU_AUTODRAW ;
3789 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3790 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3791 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3792 wxString *arg8 = (wxString *) &arg8_defvalue ;
3793 wxBitmapButton *result = 0 ;
3794 void *argp1 = 0 ;
3795 int res1 = 0 ;
3796 int val2 ;
3797 int ecode2 = 0 ;
3798 void *argp3 = 0 ;
3799 int res3 = 0 ;
3800 wxPoint temp4 ;
3801 wxSize temp5 ;
3802 long val6 ;
3803 int ecode6 = 0 ;
3804 void *argp7 = 0 ;
3805 int res7 = 0 ;
3806 bool temp8 = false ;
3807 PyObject * obj0 = 0 ;
3808 PyObject * obj1 = 0 ;
3809 PyObject * obj2 = 0 ;
3810 PyObject * obj3 = 0 ;
3811 PyObject * obj4 = 0 ;
3812 PyObject * obj5 = 0 ;
3813 PyObject * obj6 = 0 ;
3814 PyObject * obj7 = 0 ;
3815 char * kwnames[] = {
3816 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3817 };
3818
3819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3821 if (!SWIG_IsOK(res1)) {
3822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3823 }
3824 arg1 = reinterpret_cast< wxWindow * >(argp1);
3825 if (obj1) {
3826 ecode2 = SWIG_AsVal_int(obj1, &val2);
3827 if (!SWIG_IsOK(ecode2)) {
3828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3829 }
3830 arg2 = static_cast< int >(val2);
3831 }
3832 if (obj2) {
3833 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3834 if (!SWIG_IsOK(res3)) {
3835 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3836 }
3837 if (!argp3) {
3838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3839 }
3840 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3841 }
3842 if (obj3) {
3843 {
3844 arg4 = &temp4;
3845 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3846 }
3847 }
3848 if (obj4) {
3849 {
3850 arg5 = &temp5;
3851 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3852 }
3853 }
3854 if (obj5) {
3855 ecode6 = SWIG_AsVal_long(obj5, &val6);
3856 if (!SWIG_IsOK(ecode6)) {
3857 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3858 }
3859 arg6 = static_cast< long >(val6);
3860 }
3861 if (obj6) {
3862 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3863 if (!SWIG_IsOK(res7)) {
3864 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3865 }
3866 if (!argp7) {
3867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3868 }
3869 arg7 = reinterpret_cast< wxValidator * >(argp7);
3870 }
3871 if (obj7) {
3872 {
3873 arg8 = wxString_in_helper(obj7);
3874 if (arg8 == NULL) SWIG_fail;
3875 temp8 = true;
3876 }
3877 }
3878 {
3879 if (!wxPyCheckForApp()) SWIG_fail;
3880 PyThreadState* __tstate = wxPyBeginAllowThreads();
3881 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3882 wxPyEndAllowThreads(__tstate);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 }
3885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3886 {
3887 if (temp8)
3888 delete arg8;
3889 }
3890 return resultobj;
3891 fail:
3892 {
3893 if (temp8)
3894 delete arg8;
3895 }
3896 return NULL;
3897 }
3898
3899
3900 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3901 PyObject *resultobj = 0;
3902 wxBitmapButton *result = 0 ;
3903
3904 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3905 {
3906 if (!wxPyCheckForApp()) SWIG_fail;
3907 PyThreadState* __tstate = wxPyBeginAllowThreads();
3908 result = (wxBitmapButton *)new wxBitmapButton();
3909 wxPyEndAllowThreads(__tstate);
3910 if (PyErr_Occurred()) SWIG_fail;
3911 }
3912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3913 return resultobj;
3914 fail:
3915 return NULL;
3916 }
3917
3918
3919 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3920 PyObject *resultobj = 0;
3921 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3922 wxWindow *arg2 = (wxWindow *) 0 ;
3923 int arg3 = (int) -1 ;
3924 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3925 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3926 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3927 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3928 wxSize const &arg6_defvalue = wxDefaultSize ;
3929 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3930 long arg7 = (long) wxBU_AUTODRAW ;
3931 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3932 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3933 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3934 wxString *arg9 = (wxString *) &arg9_defvalue ;
3935 bool result;
3936 void *argp1 = 0 ;
3937 int res1 = 0 ;
3938 void *argp2 = 0 ;
3939 int res2 = 0 ;
3940 int val3 ;
3941 int ecode3 = 0 ;
3942 void *argp4 = 0 ;
3943 int res4 = 0 ;
3944 wxPoint temp5 ;
3945 wxSize temp6 ;
3946 long val7 ;
3947 int ecode7 = 0 ;
3948 void *argp8 = 0 ;
3949 int res8 = 0 ;
3950 bool temp9 = false ;
3951 PyObject * obj0 = 0 ;
3952 PyObject * obj1 = 0 ;
3953 PyObject * obj2 = 0 ;
3954 PyObject * obj3 = 0 ;
3955 PyObject * obj4 = 0 ;
3956 PyObject * obj5 = 0 ;
3957 PyObject * obj6 = 0 ;
3958 PyObject * obj7 = 0 ;
3959 PyObject * obj8 = 0 ;
3960 char * kwnames[] = {
3961 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3962 };
3963
3964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3966 if (!SWIG_IsOK(res1)) {
3967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3968 }
3969 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3970 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3971 if (!SWIG_IsOK(res2)) {
3972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3973 }
3974 arg2 = reinterpret_cast< wxWindow * >(argp2);
3975 if (obj2) {
3976 ecode3 = SWIG_AsVal_int(obj2, &val3);
3977 if (!SWIG_IsOK(ecode3)) {
3978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3979 }
3980 arg3 = static_cast< int >(val3);
3981 }
3982 if (obj3) {
3983 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3984 if (!SWIG_IsOK(res4)) {
3985 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3986 }
3987 if (!argp4) {
3988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3989 }
3990 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3991 }
3992 if (obj4) {
3993 {
3994 arg5 = &temp5;
3995 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3996 }
3997 }
3998 if (obj5) {
3999 {
4000 arg6 = &temp6;
4001 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4002 }
4003 }
4004 if (obj6) {
4005 ecode7 = SWIG_AsVal_long(obj6, &val7);
4006 if (!SWIG_IsOK(ecode7)) {
4007 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4008 }
4009 arg7 = static_cast< long >(val7);
4010 }
4011 if (obj7) {
4012 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4013 if (!SWIG_IsOK(res8)) {
4014 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4015 }
4016 if (!argp8) {
4017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4018 }
4019 arg8 = reinterpret_cast< wxValidator * >(argp8);
4020 }
4021 if (obj8) {
4022 {
4023 arg9 = wxString_in_helper(obj8);
4024 if (arg9 == NULL) SWIG_fail;
4025 temp9 = true;
4026 }
4027 }
4028 {
4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
4030 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4031 wxPyEndAllowThreads(__tstate);
4032 if (PyErr_Occurred()) SWIG_fail;
4033 }
4034 {
4035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4036 }
4037 {
4038 if (temp9)
4039 delete arg9;
4040 }
4041 return resultobj;
4042 fail:
4043 {
4044 if (temp9)
4045 delete arg9;
4046 }
4047 return NULL;
4048 }
4049
4050
4051 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4052 PyObject *resultobj = 0;
4053 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4054 wxBitmap result;
4055 void *argp1 = 0 ;
4056 int res1 = 0 ;
4057 PyObject *swig_obj[1] ;
4058
4059 if (!args) SWIG_fail;
4060 swig_obj[0] = args;
4061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4062 if (!SWIG_IsOK(res1)) {
4063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4064 }
4065 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4066 {
4067 PyThreadState* __tstate = wxPyBeginAllowThreads();
4068 result = (arg1)->GetBitmapLabel();
4069 wxPyEndAllowThreads(__tstate);
4070 if (PyErr_Occurred()) SWIG_fail;
4071 }
4072 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4073 return resultobj;
4074 fail:
4075 return NULL;
4076 }
4077
4078
4079 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4080 PyObject *resultobj = 0;
4081 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4082 wxBitmap result;
4083 void *argp1 = 0 ;
4084 int res1 = 0 ;
4085 PyObject *swig_obj[1] ;
4086
4087 if (!args) SWIG_fail;
4088 swig_obj[0] = args;
4089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4090 if (!SWIG_IsOK(res1)) {
4091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4092 }
4093 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4094 {
4095 PyThreadState* __tstate = wxPyBeginAllowThreads();
4096 result = (arg1)->GetBitmapDisabled();
4097 wxPyEndAllowThreads(__tstate);
4098 if (PyErr_Occurred()) SWIG_fail;
4099 }
4100 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4101 return resultobj;
4102 fail:
4103 return NULL;
4104 }
4105
4106
4107 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4108 PyObject *resultobj = 0;
4109 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4110 wxBitmap result;
4111 void *argp1 = 0 ;
4112 int res1 = 0 ;
4113 PyObject *swig_obj[1] ;
4114
4115 if (!args) SWIG_fail;
4116 swig_obj[0] = args;
4117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4118 if (!SWIG_IsOK(res1)) {
4119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4120 }
4121 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4122 {
4123 PyThreadState* __tstate = wxPyBeginAllowThreads();
4124 result = (arg1)->GetBitmapFocus();
4125 wxPyEndAllowThreads(__tstate);
4126 if (PyErr_Occurred()) SWIG_fail;
4127 }
4128 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4129 return resultobj;
4130 fail:
4131 return NULL;
4132 }
4133
4134
4135 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4136 PyObject *resultobj = 0;
4137 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4138 wxBitmap result;
4139 void *argp1 = 0 ;
4140 int res1 = 0 ;
4141 PyObject *swig_obj[1] ;
4142
4143 if (!args) SWIG_fail;
4144 swig_obj[0] = args;
4145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4146 if (!SWIG_IsOK(res1)) {
4147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4148 }
4149 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4150 {
4151 PyThreadState* __tstate = wxPyBeginAllowThreads();
4152 result = (arg1)->GetBitmapSelected();
4153 wxPyEndAllowThreads(__tstate);
4154 if (PyErr_Occurred()) SWIG_fail;
4155 }
4156 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4157 return resultobj;
4158 fail:
4159 return NULL;
4160 }
4161
4162
4163 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4164 PyObject *resultobj = 0;
4165 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4166 wxBitmap result;
4167 void *argp1 = 0 ;
4168 int res1 = 0 ;
4169 PyObject *swig_obj[1] ;
4170
4171 if (!args) SWIG_fail;
4172 swig_obj[0] = args;
4173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4174 if (!SWIG_IsOK(res1)) {
4175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4176 }
4177 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4178 {
4179 PyThreadState* __tstate = wxPyBeginAllowThreads();
4180 result = (arg1)->GetBitmapHover();
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) SWIG_fail;
4183 }
4184 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4185 return resultobj;
4186 fail:
4187 return NULL;
4188 }
4189
4190
4191 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj = 0;
4193 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4194 wxBitmap *arg2 = 0 ;
4195 void *argp1 = 0 ;
4196 int res1 = 0 ;
4197 void *argp2 = 0 ;
4198 int res2 = 0 ;
4199 PyObject * obj0 = 0 ;
4200 PyObject * obj1 = 0 ;
4201 char * kwnames[] = {
4202 (char *) "self",(char *) "bitmap", NULL
4203 };
4204
4205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4207 if (!SWIG_IsOK(res1)) {
4208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4209 }
4210 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4212 if (!SWIG_IsOK(res2)) {
4213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4214 }
4215 if (!argp2) {
4216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4217 }
4218 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 resultobj = SWIG_Py_Void();
4226 return resultobj;
4227 fail:
4228 return NULL;
4229 }
4230
4231
4232 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj = 0;
4234 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4235 wxBitmap *arg2 = 0 ;
4236 void *argp1 = 0 ;
4237 int res1 = 0 ;
4238 void *argp2 = 0 ;
4239 int res2 = 0 ;
4240 PyObject * obj0 = 0 ;
4241 PyObject * obj1 = 0 ;
4242 char * kwnames[] = {
4243 (char *) "self",(char *) "bitmap", NULL
4244 };
4245
4246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4248 if (!SWIG_IsOK(res1)) {
4249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4250 }
4251 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4253 if (!SWIG_IsOK(res2)) {
4254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4255 }
4256 if (!argp2) {
4257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4258 }
4259 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4260 {
4261 PyThreadState* __tstate = wxPyBeginAllowThreads();
4262 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4263 wxPyEndAllowThreads(__tstate);
4264 if (PyErr_Occurred()) SWIG_fail;
4265 }
4266 resultobj = SWIG_Py_Void();
4267 return resultobj;
4268 fail:
4269 return NULL;
4270 }
4271
4272
4273 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4274 PyObject *resultobj = 0;
4275 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4276 wxBitmap *arg2 = 0 ;
4277 void *argp1 = 0 ;
4278 int res1 = 0 ;
4279 void *argp2 = 0 ;
4280 int res2 = 0 ;
4281 PyObject * obj0 = 0 ;
4282 PyObject * obj1 = 0 ;
4283 char * kwnames[] = {
4284 (char *) "self",(char *) "bitmap", NULL
4285 };
4286
4287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4289 if (!SWIG_IsOK(res1)) {
4290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4291 }
4292 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4294 if (!SWIG_IsOK(res2)) {
4295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4296 }
4297 if (!argp2) {
4298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4299 }
4300 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4301 {
4302 PyThreadState* __tstate = wxPyBeginAllowThreads();
4303 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) SWIG_fail;
4306 }
4307 resultobj = SWIG_Py_Void();
4308 return resultobj;
4309 fail:
4310 return NULL;
4311 }
4312
4313
4314 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4315 PyObject *resultobj = 0;
4316 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4317 wxBitmap *arg2 = 0 ;
4318 void *argp1 = 0 ;
4319 int res1 = 0 ;
4320 void *argp2 = 0 ;
4321 int res2 = 0 ;
4322 PyObject * obj0 = 0 ;
4323 PyObject * obj1 = 0 ;
4324 char * kwnames[] = {
4325 (char *) "self",(char *) "bitmap", NULL
4326 };
4327
4328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4330 if (!SWIG_IsOK(res1)) {
4331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4332 }
4333 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4335 if (!SWIG_IsOK(res2)) {
4336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4337 }
4338 if (!argp2) {
4339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4340 }
4341 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4345 wxPyEndAllowThreads(__tstate);
4346 if (PyErr_Occurred()) SWIG_fail;
4347 }
4348 resultobj = SWIG_Py_Void();
4349 return resultobj;
4350 fail:
4351 return NULL;
4352 }
4353
4354
4355 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4356 PyObject *resultobj = 0;
4357 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4358 wxBitmap *arg2 = 0 ;
4359 void *argp1 = 0 ;
4360 int res1 = 0 ;
4361 void *argp2 = 0 ;
4362 int res2 = 0 ;
4363 PyObject * obj0 = 0 ;
4364 PyObject * obj1 = 0 ;
4365 char * kwnames[] = {
4366 (char *) "self",(char *) "hover", NULL
4367 };
4368
4369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4371 if (!SWIG_IsOK(res1)) {
4372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4373 }
4374 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4375 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4376 if (!SWIG_IsOK(res2)) {
4377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4378 }
4379 if (!argp2) {
4380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4381 }
4382 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4383 {
4384 PyThreadState* __tstate = wxPyBeginAllowThreads();
4385 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4386 wxPyEndAllowThreads(__tstate);
4387 if (PyErr_Occurred()) SWIG_fail;
4388 }
4389 resultobj = SWIG_Py_Void();
4390 return resultobj;
4391 fail:
4392 return NULL;
4393 }
4394
4395
4396 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4397 PyObject *resultobj = 0;
4398 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4399 int arg2 ;
4400 int arg3 ;
4401 void *argp1 = 0 ;
4402 int res1 = 0 ;
4403 int val2 ;
4404 int ecode2 = 0 ;
4405 int val3 ;
4406 int ecode3 = 0 ;
4407 PyObject * obj0 = 0 ;
4408 PyObject * obj1 = 0 ;
4409 PyObject * obj2 = 0 ;
4410 char * kwnames[] = {
4411 (char *) "self",(char *) "x",(char *) "y", NULL
4412 };
4413
4414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4416 if (!SWIG_IsOK(res1)) {
4417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4418 }
4419 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4420 ecode2 = SWIG_AsVal_int(obj1, &val2);
4421 if (!SWIG_IsOK(ecode2)) {
4422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4423 }
4424 arg2 = static_cast< int >(val2);
4425 ecode3 = SWIG_AsVal_int(obj2, &val3);
4426 if (!SWIG_IsOK(ecode3)) {
4427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4428 }
4429 arg3 = static_cast< int >(val3);
4430 {
4431 PyThreadState* __tstate = wxPyBeginAllowThreads();
4432 (arg1)->SetMargins(arg2,arg3);
4433 wxPyEndAllowThreads(__tstate);
4434 if (PyErr_Occurred()) SWIG_fail;
4435 }
4436 resultobj = SWIG_Py_Void();
4437 return resultobj;
4438 fail:
4439 return NULL;
4440 }
4441
4442
4443 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4444 PyObject *resultobj = 0;
4445 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4446 int result;
4447 void *argp1 = 0 ;
4448 int res1 = 0 ;
4449 PyObject *swig_obj[1] ;
4450
4451 if (!args) SWIG_fail;
4452 swig_obj[0] = args;
4453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4454 if (!SWIG_IsOK(res1)) {
4455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4456 }
4457 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4458 {
4459 PyThreadState* __tstate = wxPyBeginAllowThreads();
4460 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4461 wxPyEndAllowThreads(__tstate);
4462 if (PyErr_Occurred()) SWIG_fail;
4463 }
4464 resultobj = SWIG_From_int(static_cast< int >(result));
4465 return resultobj;
4466 fail:
4467 return NULL;
4468 }
4469
4470
4471 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4472 PyObject *resultobj = 0;
4473 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4474 int result;
4475 void *argp1 = 0 ;
4476 int res1 = 0 ;
4477 PyObject *swig_obj[1] ;
4478
4479 if (!args) SWIG_fail;
4480 swig_obj[0] = args;
4481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4482 if (!SWIG_IsOK(res1)) {
4483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4484 }
4485 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4486 {
4487 PyThreadState* __tstate = wxPyBeginAllowThreads();
4488 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4489 wxPyEndAllowThreads(__tstate);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 }
4492 resultobj = SWIG_From_int(static_cast< int >(result));
4493 return resultobj;
4494 fail:
4495 return NULL;
4496 }
4497
4498
4499 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4500 PyObject *obj;
4501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4502 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4503 return SWIG_Py_Void();
4504 }
4505
4506 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4507 return SWIG_Python_InitShadowInstance(args);
4508 }
4509
4510 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4511 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4512 return 1;
4513 }
4514
4515
4516 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4517 PyObject *pyobj = 0;
4518
4519 {
4520 #if wxUSE_UNICODE
4521 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4522 #else
4523 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4524 #endif
4525 }
4526 return pyobj;
4527 }
4528
4529
4530 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4531 PyObject *resultobj = 0;
4532 wxWindow *arg1 = (wxWindow *) 0 ;
4533 int arg2 = (int) -1 ;
4534 wxString const &arg3_defvalue = wxPyEmptyString ;
4535 wxString *arg3 = (wxString *) &arg3_defvalue ;
4536 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4537 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4538 wxSize const &arg5_defvalue = wxDefaultSize ;
4539 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4540 long arg6 = (long) 0 ;
4541 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4542 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4543 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4544 wxString *arg8 = (wxString *) &arg8_defvalue ;
4545 wxCheckBox *result = 0 ;
4546 void *argp1 = 0 ;
4547 int res1 = 0 ;
4548 int val2 ;
4549 int ecode2 = 0 ;
4550 bool temp3 = false ;
4551 wxPoint temp4 ;
4552 wxSize temp5 ;
4553 long val6 ;
4554 int ecode6 = 0 ;
4555 void *argp7 = 0 ;
4556 int res7 = 0 ;
4557 bool temp8 = false ;
4558 PyObject * obj0 = 0 ;
4559 PyObject * obj1 = 0 ;
4560 PyObject * obj2 = 0 ;
4561 PyObject * obj3 = 0 ;
4562 PyObject * obj4 = 0 ;
4563 PyObject * obj5 = 0 ;
4564 PyObject * obj6 = 0 ;
4565 PyObject * obj7 = 0 ;
4566 char * kwnames[] = {
4567 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4568 };
4569
4570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4572 if (!SWIG_IsOK(res1)) {
4573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4574 }
4575 arg1 = reinterpret_cast< wxWindow * >(argp1);
4576 if (obj1) {
4577 ecode2 = SWIG_AsVal_int(obj1, &val2);
4578 if (!SWIG_IsOK(ecode2)) {
4579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4580 }
4581 arg2 = static_cast< int >(val2);
4582 }
4583 if (obj2) {
4584 {
4585 arg3 = wxString_in_helper(obj2);
4586 if (arg3 == NULL) SWIG_fail;
4587 temp3 = true;
4588 }
4589 }
4590 if (obj3) {
4591 {
4592 arg4 = &temp4;
4593 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4594 }
4595 }
4596 if (obj4) {
4597 {
4598 arg5 = &temp5;
4599 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4600 }
4601 }
4602 if (obj5) {
4603 ecode6 = SWIG_AsVal_long(obj5, &val6);
4604 if (!SWIG_IsOK(ecode6)) {
4605 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4606 }
4607 arg6 = static_cast< long >(val6);
4608 }
4609 if (obj6) {
4610 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4611 if (!SWIG_IsOK(res7)) {
4612 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4613 }
4614 if (!argp7) {
4615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4616 }
4617 arg7 = reinterpret_cast< wxValidator * >(argp7);
4618 }
4619 if (obj7) {
4620 {
4621 arg8 = wxString_in_helper(obj7);
4622 if (arg8 == NULL) SWIG_fail;
4623 temp8 = true;
4624 }
4625 }
4626 {
4627 if (!wxPyCheckForApp()) SWIG_fail;
4628 PyThreadState* __tstate = wxPyBeginAllowThreads();
4629 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4630 wxPyEndAllowThreads(__tstate);
4631 if (PyErr_Occurred()) SWIG_fail;
4632 }
4633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4634 {
4635 if (temp3)
4636 delete arg3;
4637 }
4638 {
4639 if (temp8)
4640 delete arg8;
4641 }
4642 return resultobj;
4643 fail:
4644 {
4645 if (temp3)
4646 delete arg3;
4647 }
4648 {
4649 if (temp8)
4650 delete arg8;
4651 }
4652 return NULL;
4653 }
4654
4655
4656 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4657 PyObject *resultobj = 0;
4658 wxCheckBox *result = 0 ;
4659
4660 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4661 {
4662 if (!wxPyCheckForApp()) SWIG_fail;
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
4664 result = (wxCheckBox *)new wxCheckBox();
4665 wxPyEndAllowThreads(__tstate);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 }
4668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4669 return resultobj;
4670 fail:
4671 return NULL;
4672 }
4673
4674
4675 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4676 PyObject *resultobj = 0;
4677 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4678 wxWindow *arg2 = (wxWindow *) 0 ;
4679 int arg3 = (int) -1 ;
4680 wxString const &arg4_defvalue = wxPyEmptyString ;
4681 wxString *arg4 = (wxString *) &arg4_defvalue ;
4682 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4683 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4684 wxSize const &arg6_defvalue = wxDefaultSize ;
4685 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4686 long arg7 = (long) 0 ;
4687 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4688 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4689 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4690 wxString *arg9 = (wxString *) &arg9_defvalue ;
4691 bool result;
4692 void *argp1 = 0 ;
4693 int res1 = 0 ;
4694 void *argp2 = 0 ;
4695 int res2 = 0 ;
4696 int val3 ;
4697 int ecode3 = 0 ;
4698 bool temp4 = false ;
4699 wxPoint temp5 ;
4700 wxSize temp6 ;
4701 long val7 ;
4702 int ecode7 = 0 ;
4703 void *argp8 = 0 ;
4704 int res8 = 0 ;
4705 bool temp9 = false ;
4706 PyObject * obj0 = 0 ;
4707 PyObject * obj1 = 0 ;
4708 PyObject * obj2 = 0 ;
4709 PyObject * obj3 = 0 ;
4710 PyObject * obj4 = 0 ;
4711 PyObject * obj5 = 0 ;
4712 PyObject * obj6 = 0 ;
4713 PyObject * obj7 = 0 ;
4714 PyObject * obj8 = 0 ;
4715 char * kwnames[] = {
4716 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4717 };
4718
4719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4721 if (!SWIG_IsOK(res1)) {
4722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4723 }
4724 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4725 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4726 if (!SWIG_IsOK(res2)) {
4727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4728 }
4729 arg2 = reinterpret_cast< wxWindow * >(argp2);
4730 if (obj2) {
4731 ecode3 = SWIG_AsVal_int(obj2, &val3);
4732 if (!SWIG_IsOK(ecode3)) {
4733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4734 }
4735 arg3 = static_cast< int >(val3);
4736 }
4737 if (obj3) {
4738 {
4739 arg4 = wxString_in_helper(obj3);
4740 if (arg4 == NULL) SWIG_fail;
4741 temp4 = true;
4742 }
4743 }
4744 if (obj4) {
4745 {
4746 arg5 = &temp5;
4747 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4748 }
4749 }
4750 if (obj5) {
4751 {
4752 arg6 = &temp6;
4753 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4754 }
4755 }
4756 if (obj6) {
4757 ecode7 = SWIG_AsVal_long(obj6, &val7);
4758 if (!SWIG_IsOK(ecode7)) {
4759 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4760 }
4761 arg7 = static_cast< long >(val7);
4762 }
4763 if (obj7) {
4764 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4765 if (!SWIG_IsOK(res8)) {
4766 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4767 }
4768 if (!argp8) {
4769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4770 }
4771 arg8 = reinterpret_cast< wxValidator * >(argp8);
4772 }
4773 if (obj8) {
4774 {
4775 arg9 = wxString_in_helper(obj8);
4776 if (arg9 == NULL) SWIG_fail;
4777 temp9 = true;
4778 }
4779 }
4780 {
4781 PyThreadState* __tstate = wxPyBeginAllowThreads();
4782 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4783 wxPyEndAllowThreads(__tstate);
4784 if (PyErr_Occurred()) SWIG_fail;
4785 }
4786 {
4787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4788 }
4789 {
4790 if (temp4)
4791 delete arg4;
4792 }
4793 {
4794 if (temp9)
4795 delete arg9;
4796 }
4797 return resultobj;
4798 fail:
4799 {
4800 if (temp4)
4801 delete arg4;
4802 }
4803 {
4804 if (temp9)
4805 delete arg9;
4806 }
4807 return NULL;
4808 }
4809
4810
4811 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4812 PyObject *resultobj = 0;
4813 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4814 bool result;
4815 void *argp1 = 0 ;
4816 int res1 = 0 ;
4817 PyObject *swig_obj[1] ;
4818
4819 if (!args) SWIG_fail;
4820 swig_obj[0] = args;
4821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4822 if (!SWIG_IsOK(res1)) {
4823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4824 }
4825 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4826 {
4827 PyThreadState* __tstate = wxPyBeginAllowThreads();
4828 result = (bool)(arg1)->GetValue();
4829 wxPyEndAllowThreads(__tstate);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 {
4833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4834 }
4835 return resultobj;
4836 fail:
4837 return NULL;
4838 }
4839
4840
4841 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4842 PyObject *resultobj = 0;
4843 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4844 bool result;
4845 void *argp1 = 0 ;
4846 int res1 = 0 ;
4847 PyObject *swig_obj[1] ;
4848
4849 if (!args) SWIG_fail;
4850 swig_obj[0] = args;
4851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4852 if (!SWIG_IsOK(res1)) {
4853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4854 }
4855 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4856 {
4857 PyThreadState* __tstate = wxPyBeginAllowThreads();
4858 result = (bool)(arg1)->IsChecked();
4859 wxPyEndAllowThreads(__tstate);
4860 if (PyErr_Occurred()) SWIG_fail;
4861 }
4862 {
4863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4864 }
4865 return resultobj;
4866 fail:
4867 return NULL;
4868 }
4869
4870
4871 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4872 PyObject *resultobj = 0;
4873 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4874 bool arg2 ;
4875 void *argp1 = 0 ;
4876 int res1 = 0 ;
4877 bool val2 ;
4878 int ecode2 = 0 ;
4879 PyObject * obj0 = 0 ;
4880 PyObject * obj1 = 0 ;
4881 char * kwnames[] = {
4882 (char *) "self",(char *) "state", NULL
4883 };
4884
4885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4887 if (!SWIG_IsOK(res1)) {
4888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4889 }
4890 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4891 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4892 if (!SWIG_IsOK(ecode2)) {
4893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4894 }
4895 arg2 = static_cast< bool >(val2);
4896 {
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 (arg1)->SetValue(arg2);
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 resultobj = SWIG_Py_Void();
4903 return resultobj;
4904 fail:
4905 return NULL;
4906 }
4907
4908
4909 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4910 PyObject *resultobj = 0;
4911 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4912 wxCheckBoxState result;
4913 void *argp1 = 0 ;
4914 int res1 = 0 ;
4915 PyObject *swig_obj[1] ;
4916
4917 if (!args) SWIG_fail;
4918 swig_obj[0] = args;
4919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4920 if (!SWIG_IsOK(res1)) {
4921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4922 }
4923 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4924 {
4925 PyThreadState* __tstate = wxPyBeginAllowThreads();
4926 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4927 wxPyEndAllowThreads(__tstate);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 }
4930 resultobj = SWIG_From_int(static_cast< int >(result));
4931 return resultobj;
4932 fail:
4933 return NULL;
4934 }
4935
4936
4937 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4938 PyObject *resultobj = 0;
4939 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4940 wxCheckBoxState arg2 ;
4941 void *argp1 = 0 ;
4942 int res1 = 0 ;
4943 int val2 ;
4944 int ecode2 = 0 ;
4945 PyObject * obj0 = 0 ;
4946 PyObject * obj1 = 0 ;
4947 char * kwnames[] = {
4948 (char *) "self",(char *) "state", NULL
4949 };
4950
4951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4953 if (!SWIG_IsOK(res1)) {
4954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4955 }
4956 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4957 ecode2 = SWIG_AsVal_int(obj1, &val2);
4958 if (!SWIG_IsOK(ecode2)) {
4959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4960 }
4961 arg2 = static_cast< wxCheckBoxState >(val2);
4962 {
4963 PyThreadState* __tstate = wxPyBeginAllowThreads();
4964 (arg1)->Set3StateValue(arg2);
4965 wxPyEndAllowThreads(__tstate);
4966 if (PyErr_Occurred()) SWIG_fail;
4967 }
4968 resultobj = SWIG_Py_Void();
4969 return resultobj;
4970 fail:
4971 return NULL;
4972 }
4973
4974
4975 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4976 PyObject *resultobj = 0;
4977 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4978 bool result;
4979 void *argp1 = 0 ;
4980 int res1 = 0 ;
4981 PyObject *swig_obj[1] ;
4982
4983 if (!args) SWIG_fail;
4984 swig_obj[0] = args;
4985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4986 if (!SWIG_IsOK(res1)) {
4987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4988 }
4989 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4990 {
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4993 wxPyEndAllowThreads(__tstate);
4994 if (PyErr_Occurred()) SWIG_fail;
4995 }
4996 {
4997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4998 }
4999 return resultobj;
5000 fail:
5001 return NULL;
5002 }
5003
5004
5005 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5006 PyObject *resultobj = 0;
5007 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5008 bool result;
5009 void *argp1 = 0 ;
5010 int res1 = 0 ;
5011 PyObject *swig_obj[1] ;
5012
5013 if (!args) SWIG_fail;
5014 swig_obj[0] = args;
5015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5016 if (!SWIG_IsOK(res1)) {
5017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5018 }
5019 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5020 {
5021 PyThreadState* __tstate = wxPyBeginAllowThreads();
5022 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5023 wxPyEndAllowThreads(__tstate);
5024 if (PyErr_Occurred()) SWIG_fail;
5025 }
5026 {
5027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5028 }
5029 return resultobj;
5030 fail:
5031 return NULL;
5032 }
5033
5034
5035 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5036 PyObject *resultobj = 0;
5037 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5038 SwigValueWrapper<wxVisualAttributes > result;
5039 int val1 ;
5040 int ecode1 = 0 ;
5041 PyObject * obj0 = 0 ;
5042 char * kwnames[] = {
5043 (char *) "variant", NULL
5044 };
5045
5046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5047 if (obj0) {
5048 ecode1 = SWIG_AsVal_int(obj0, &val1);
5049 if (!SWIG_IsOK(ecode1)) {
5050 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5051 }
5052 arg1 = static_cast< wxWindowVariant >(val1);
5053 }
5054 {
5055 if (!wxPyCheckForApp()) SWIG_fail;
5056 PyThreadState* __tstate = wxPyBeginAllowThreads();
5057 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5058 wxPyEndAllowThreads(__tstate);
5059 if (PyErr_Occurred()) SWIG_fail;
5060 }
5061 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5062 return resultobj;
5063 fail:
5064 return NULL;
5065 }
5066
5067
5068 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5069 PyObject *obj;
5070 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5071 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5072 return SWIG_Py_Void();
5073 }
5074
5075 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5076 return SWIG_Python_InitShadowInstance(args);
5077 }
5078
5079 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5080 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5081 return 1;
5082 }
5083
5084
5085 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5086 PyObject *pyobj = 0;
5087
5088 {
5089 #if wxUSE_UNICODE
5090 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5091 #else
5092 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5093 #endif
5094 }
5095 return pyobj;
5096 }
5097
5098
5099 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5100 PyObject *resultobj = 0;
5101 wxWindow *arg1 = (wxWindow *) 0 ;
5102 int arg2 = (int) -1 ;
5103 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5104 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5105 wxSize const &arg4_defvalue = wxDefaultSize ;
5106 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5107 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5108 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5109 long arg6 = (long) 0 ;
5110 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5111 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5112 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5113 wxString *arg8 = (wxString *) &arg8_defvalue ;
5114 wxChoice *result = 0 ;
5115 void *argp1 = 0 ;
5116 int res1 = 0 ;
5117 int val2 ;
5118 int ecode2 = 0 ;
5119 wxPoint temp3 ;
5120 wxSize temp4 ;
5121 bool temp5 = false ;
5122 long val6 ;
5123 int ecode6 = 0 ;
5124 void *argp7 = 0 ;
5125 int res7 = 0 ;
5126 bool temp8 = false ;
5127 PyObject * obj0 = 0 ;
5128 PyObject * obj1 = 0 ;
5129 PyObject * obj2 = 0 ;
5130 PyObject * obj3 = 0 ;
5131 PyObject * obj4 = 0 ;
5132 PyObject * obj5 = 0 ;
5133 PyObject * obj6 = 0 ;
5134 PyObject * obj7 = 0 ;
5135 char * kwnames[] = {
5136 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5137 };
5138
5139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5141 if (!SWIG_IsOK(res1)) {
5142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5143 }
5144 arg1 = reinterpret_cast< wxWindow * >(argp1);
5145 if (obj1) {
5146 ecode2 = SWIG_AsVal_int(obj1, &val2);
5147 if (!SWIG_IsOK(ecode2)) {
5148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5149 }
5150 arg2 = static_cast< int >(val2);
5151 }
5152 if (obj2) {
5153 {
5154 arg3 = &temp3;
5155 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5156 }
5157 }
5158 if (obj3) {
5159 {
5160 arg4 = &temp4;
5161 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5162 }
5163 }
5164 if (obj4) {
5165 {
5166 if (! PySequence_Check(obj4)) {
5167 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5168 SWIG_fail;
5169 }
5170 arg5 = new wxArrayString;
5171 temp5 = true;
5172 int i, len=PySequence_Length(obj4);
5173 for (i=0; i<len; i++) {
5174 PyObject* item = PySequence_GetItem(obj4, i);
5175 wxString* s = wxString_in_helper(item);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 arg5->Add(*s);
5178 delete s;
5179 Py_DECREF(item);
5180 }
5181 }
5182 }
5183 if (obj5) {
5184 ecode6 = SWIG_AsVal_long(obj5, &val6);
5185 if (!SWIG_IsOK(ecode6)) {
5186 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5187 }
5188 arg6 = static_cast< long >(val6);
5189 }
5190 if (obj6) {
5191 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5192 if (!SWIG_IsOK(res7)) {
5193 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5194 }
5195 if (!argp7) {
5196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5197 }
5198 arg7 = reinterpret_cast< wxValidator * >(argp7);
5199 }
5200 if (obj7) {
5201 {
5202 arg8 = wxString_in_helper(obj7);
5203 if (arg8 == NULL) SWIG_fail;
5204 temp8 = true;
5205 }
5206 }
5207 {
5208 if (!wxPyCheckForApp()) SWIG_fail;
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5215 {
5216 if (temp5) delete arg5;
5217 }
5218 {
5219 if (temp8)
5220 delete arg8;
5221 }
5222 return resultobj;
5223 fail:
5224 {
5225 if (temp5) delete arg5;
5226 }
5227 {
5228 if (temp8)
5229 delete arg8;
5230 }
5231 return NULL;
5232 }
5233
5234
5235 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5236 PyObject *resultobj = 0;
5237 wxChoice *result = 0 ;
5238
5239 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5240 {
5241 if (!wxPyCheckForApp()) SWIG_fail;
5242 PyThreadState* __tstate = wxPyBeginAllowThreads();
5243 result = (wxChoice *)new wxChoice();
5244 wxPyEndAllowThreads(__tstate);
5245 if (PyErr_Occurred()) SWIG_fail;
5246 }
5247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5248 return resultobj;
5249 fail:
5250 return NULL;
5251 }
5252
5253
5254 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5255 PyObject *resultobj = 0;
5256 wxChoice *arg1 = (wxChoice *) 0 ;
5257 wxWindow *arg2 = (wxWindow *) 0 ;
5258 int arg3 = (int) -1 ;
5259 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5260 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5261 wxSize const &arg5_defvalue = wxDefaultSize ;
5262 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5263 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5264 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5265 long arg7 = (long) 0 ;
5266 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5267 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5268 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5269 wxString *arg9 = (wxString *) &arg9_defvalue ;
5270 bool result;
5271 void *argp1 = 0 ;
5272 int res1 = 0 ;
5273 void *argp2 = 0 ;
5274 int res2 = 0 ;
5275 int val3 ;
5276 int ecode3 = 0 ;
5277 wxPoint temp4 ;
5278 wxSize temp5 ;
5279 bool temp6 = false ;
5280 long val7 ;
5281 int ecode7 = 0 ;
5282 void *argp8 = 0 ;
5283 int res8 = 0 ;
5284 bool temp9 = false ;
5285 PyObject * obj0 = 0 ;
5286 PyObject * obj1 = 0 ;
5287 PyObject * obj2 = 0 ;
5288 PyObject * obj3 = 0 ;
5289 PyObject * obj4 = 0 ;
5290 PyObject * obj5 = 0 ;
5291 PyObject * obj6 = 0 ;
5292 PyObject * obj7 = 0 ;
5293 PyObject * obj8 = 0 ;
5294 char * kwnames[] = {
5295 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5296 };
5297
5298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5300 if (!SWIG_IsOK(res1)) {
5301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5302 }
5303 arg1 = reinterpret_cast< wxChoice * >(argp1);
5304 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5305 if (!SWIG_IsOK(res2)) {
5306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5307 }
5308 arg2 = reinterpret_cast< wxWindow * >(argp2);
5309 if (obj2) {
5310 ecode3 = SWIG_AsVal_int(obj2, &val3);
5311 if (!SWIG_IsOK(ecode3)) {
5312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5313 }
5314 arg3 = static_cast< int >(val3);
5315 }
5316 if (obj3) {
5317 {
5318 arg4 = &temp4;
5319 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5320 }
5321 }
5322 if (obj4) {
5323 {
5324 arg5 = &temp5;
5325 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5326 }
5327 }
5328 if (obj5) {
5329 {
5330 if (! PySequence_Check(obj5)) {
5331 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5332 SWIG_fail;
5333 }
5334 arg6 = new wxArrayString;
5335 temp6 = true;
5336 int i, len=PySequence_Length(obj5);
5337 for (i=0; i<len; i++) {
5338 PyObject* item = PySequence_GetItem(obj5, i);
5339 wxString* s = wxString_in_helper(item);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 arg6->Add(*s);
5342 delete s;
5343 Py_DECREF(item);
5344 }
5345 }
5346 }
5347 if (obj6) {
5348 ecode7 = SWIG_AsVal_long(obj6, &val7);
5349 if (!SWIG_IsOK(ecode7)) {
5350 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5351 }
5352 arg7 = static_cast< long >(val7);
5353 }
5354 if (obj7) {
5355 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5356 if (!SWIG_IsOK(res8)) {
5357 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5358 }
5359 if (!argp8) {
5360 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5361 }
5362 arg8 = reinterpret_cast< wxValidator * >(argp8);
5363 }
5364 if (obj8) {
5365 {
5366 arg9 = wxString_in_helper(obj8);
5367 if (arg9 == NULL) SWIG_fail;
5368 temp9 = true;
5369 }
5370 }
5371 {
5372 PyThreadState* __tstate = wxPyBeginAllowThreads();
5373 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5374 wxPyEndAllowThreads(__tstate);
5375 if (PyErr_Occurred()) SWIG_fail;
5376 }
5377 {
5378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5379 }
5380 {
5381 if (temp6) delete arg6;
5382 }
5383 {
5384 if (temp9)
5385 delete arg9;
5386 }
5387 return resultobj;
5388 fail:
5389 {
5390 if (temp6) delete arg6;
5391 }
5392 {
5393 if (temp9)
5394 delete arg9;
5395 }
5396 return NULL;
5397 }
5398
5399
5400 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5401 PyObject *resultobj = 0;
5402 wxChoice *arg1 = (wxChoice *) 0 ;
5403 int result;
5404 void *argp1 = 0 ;
5405 int res1 = 0 ;
5406 PyObject *swig_obj[1] ;
5407
5408 if (!args) SWIG_fail;
5409 swig_obj[0] = args;
5410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5411 if (!SWIG_IsOK(res1)) {
5412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5413 }
5414 arg1 = reinterpret_cast< wxChoice * >(argp1);
5415 {
5416 PyThreadState* __tstate = wxPyBeginAllowThreads();
5417 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5418 wxPyEndAllowThreads(__tstate);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 }
5421 resultobj = SWIG_From_int(static_cast< int >(result));
5422 return resultobj;
5423 fail:
5424 return NULL;
5425 }
5426
5427
5428 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5429 PyObject *resultobj = 0;
5430 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5431 SwigValueWrapper<wxVisualAttributes > result;
5432 int val1 ;
5433 int ecode1 = 0 ;
5434 PyObject * obj0 = 0 ;
5435 char * kwnames[] = {
5436 (char *) "variant", NULL
5437 };
5438
5439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5440 if (obj0) {
5441 ecode1 = SWIG_AsVal_int(obj0, &val1);
5442 if (!SWIG_IsOK(ecode1)) {
5443 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5444 }
5445 arg1 = static_cast< wxWindowVariant >(val1);
5446 }
5447 {
5448 if (!wxPyCheckForApp()) SWIG_fail;
5449 PyThreadState* __tstate = wxPyBeginAllowThreads();
5450 result = wxChoice::GetClassDefaultAttributes(arg1);
5451 wxPyEndAllowThreads(__tstate);
5452 if (PyErr_Occurred()) SWIG_fail;
5453 }
5454 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5455 return resultobj;
5456 fail:
5457 return NULL;
5458 }
5459
5460
5461 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5462 PyObject *obj;
5463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5464 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5465 return SWIG_Py_Void();
5466 }
5467
5468 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5469 return SWIG_Python_InitShadowInstance(args);
5470 }
5471
5472 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5473 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5474 return 1;
5475 }
5476
5477
5478 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5479 PyObject *pyobj = 0;
5480
5481 {
5482 #if wxUSE_UNICODE
5483 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5484 #else
5485 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5486 #endif
5487 }
5488 return pyobj;
5489 }
5490
5491
5492 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5493 PyObject *resultobj = 0;
5494 wxWindow *arg1 = (wxWindow *) 0 ;
5495 int arg2 = (int) -1 ;
5496 wxString const &arg3_defvalue = wxPyEmptyString ;
5497 wxString *arg3 = (wxString *) &arg3_defvalue ;
5498 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5499 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5500 wxSize const &arg5_defvalue = wxDefaultSize ;
5501 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5502 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5503 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5504 long arg7 = (long) 0 ;
5505 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5506 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5507 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5508 wxString *arg9 = (wxString *) &arg9_defvalue ;
5509 wxComboBox *result = 0 ;
5510 void *argp1 = 0 ;
5511 int res1 = 0 ;
5512 int val2 ;
5513 int ecode2 = 0 ;
5514 bool temp3 = false ;
5515 wxPoint temp4 ;
5516 wxSize temp5 ;
5517 bool temp6 = false ;
5518 long val7 ;
5519 int ecode7 = 0 ;
5520 void *argp8 = 0 ;
5521 int res8 = 0 ;
5522 bool temp9 = false ;
5523 PyObject * obj0 = 0 ;
5524 PyObject * obj1 = 0 ;
5525 PyObject * obj2 = 0 ;
5526 PyObject * obj3 = 0 ;
5527 PyObject * obj4 = 0 ;
5528 PyObject * obj5 = 0 ;
5529 PyObject * obj6 = 0 ;
5530 PyObject * obj7 = 0 ;
5531 PyObject * obj8 = 0 ;
5532 char * kwnames[] = {
5533 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5534 };
5535
5536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5538 if (!SWIG_IsOK(res1)) {
5539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5540 }
5541 arg1 = reinterpret_cast< wxWindow * >(argp1);
5542 if (obj1) {
5543 ecode2 = SWIG_AsVal_int(obj1, &val2);
5544 if (!SWIG_IsOK(ecode2)) {
5545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5546 }
5547 arg2 = static_cast< int >(val2);
5548 }
5549 if (obj2) {
5550 {
5551 arg3 = wxString_in_helper(obj2);
5552 if (arg3 == NULL) SWIG_fail;
5553 temp3 = true;
5554 }
5555 }
5556 if (obj3) {
5557 {
5558 arg4 = &temp4;
5559 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5560 }
5561 }
5562 if (obj4) {
5563 {
5564 arg5 = &temp5;
5565 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5566 }
5567 }
5568 if (obj5) {
5569 {
5570 if (! PySequence_Check(obj5)) {
5571 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5572 SWIG_fail;
5573 }
5574 arg6 = new wxArrayString;
5575 temp6 = true;
5576 int i, len=PySequence_Length(obj5);
5577 for (i=0; i<len; i++) {
5578 PyObject* item = PySequence_GetItem(obj5, i);
5579 wxString* s = wxString_in_helper(item);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 arg6->Add(*s);
5582 delete s;
5583 Py_DECREF(item);
5584 }
5585 }
5586 }
5587 if (obj6) {
5588 ecode7 = SWIG_AsVal_long(obj6, &val7);
5589 if (!SWIG_IsOK(ecode7)) {
5590 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5591 }
5592 arg7 = static_cast< long >(val7);
5593 }
5594 if (obj7) {
5595 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5596 if (!SWIG_IsOK(res8)) {
5597 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5598 }
5599 if (!argp8) {
5600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5601 }
5602 arg8 = reinterpret_cast< wxValidator * >(argp8);
5603 }
5604 if (obj8) {
5605 {
5606 arg9 = wxString_in_helper(obj8);
5607 if (arg9 == NULL) SWIG_fail;
5608 temp9 = true;
5609 }
5610 }
5611 {
5612 if (!wxPyCheckForApp()) SWIG_fail;
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 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);
5615 wxPyEndAllowThreads(__tstate);
5616 if (PyErr_Occurred()) SWIG_fail;
5617 }
5618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5619 {
5620 if (temp3)
5621 delete arg3;
5622 }
5623 {
5624 if (temp6) delete arg6;
5625 }
5626 {
5627 if (temp9)
5628 delete arg9;
5629 }
5630 return resultobj;
5631 fail:
5632 {
5633 if (temp3)
5634 delete arg3;
5635 }
5636 {
5637 if (temp6) delete arg6;
5638 }
5639 {
5640 if (temp9)
5641 delete arg9;
5642 }
5643 return NULL;
5644 }
5645
5646
5647 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5648 PyObject *resultobj = 0;
5649 wxComboBox *result = 0 ;
5650
5651 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5652 {
5653 if (!wxPyCheckForApp()) SWIG_fail;
5654 PyThreadState* __tstate = wxPyBeginAllowThreads();
5655 result = (wxComboBox *)new wxComboBox();
5656 wxPyEndAllowThreads(__tstate);
5657 if (PyErr_Occurred()) SWIG_fail;
5658 }
5659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5660 return resultobj;
5661 fail:
5662 return NULL;
5663 }
5664
5665
5666 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5667 PyObject *resultobj = 0;
5668 wxComboBox *arg1 = (wxComboBox *) 0 ;
5669 wxWindow *arg2 = (wxWindow *) 0 ;
5670 int arg3 = (int) -1 ;
5671 wxString const &arg4_defvalue = wxPyEmptyString ;
5672 wxString *arg4 = (wxString *) &arg4_defvalue ;
5673 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5674 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5675 wxSize const &arg6_defvalue = wxDefaultSize ;
5676 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5677 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5678 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5679 long arg8 = (long) 0 ;
5680 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5681 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5682 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5683 wxString *arg10 = (wxString *) &arg10_defvalue ;
5684 bool result;
5685 void *argp1 = 0 ;
5686 int res1 = 0 ;
5687 void *argp2 = 0 ;
5688 int res2 = 0 ;
5689 int val3 ;
5690 int ecode3 = 0 ;
5691 bool temp4 = false ;
5692 wxPoint temp5 ;
5693 wxSize temp6 ;
5694 bool temp7 = false ;
5695 long val8 ;
5696 int ecode8 = 0 ;
5697 void *argp9 = 0 ;
5698 int res9 = 0 ;
5699 bool temp10 = false ;
5700 PyObject * obj0 = 0 ;
5701 PyObject * obj1 = 0 ;
5702 PyObject * obj2 = 0 ;
5703 PyObject * obj3 = 0 ;
5704 PyObject * obj4 = 0 ;
5705 PyObject * obj5 = 0 ;
5706 PyObject * obj6 = 0 ;
5707 PyObject * obj7 = 0 ;
5708 PyObject * obj8 = 0 ;
5709 PyObject * obj9 = 0 ;
5710 char * kwnames[] = {
5711 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5712 };
5713
5714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5716 if (!SWIG_IsOK(res1)) {
5717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5718 }
5719 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5720 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5721 if (!SWIG_IsOK(res2)) {
5722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5723 }
5724 arg2 = reinterpret_cast< wxWindow * >(argp2);
5725 if (obj2) {
5726 ecode3 = SWIG_AsVal_int(obj2, &val3);
5727 if (!SWIG_IsOK(ecode3)) {
5728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5729 }
5730 arg3 = static_cast< int >(val3);
5731 }
5732 if (obj3) {
5733 {
5734 arg4 = wxString_in_helper(obj3);
5735 if (arg4 == NULL) SWIG_fail;
5736 temp4 = true;
5737 }
5738 }
5739 if (obj4) {
5740 {
5741 arg5 = &temp5;
5742 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5743 }
5744 }
5745 if (obj5) {
5746 {
5747 arg6 = &temp6;
5748 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5749 }
5750 }
5751 if (obj6) {
5752 {
5753 if (! PySequence_Check(obj6)) {
5754 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5755 SWIG_fail;
5756 }
5757 arg7 = new wxArrayString;
5758 temp7 = true;
5759 int i, len=PySequence_Length(obj6);
5760 for (i=0; i<len; i++) {
5761 PyObject* item = PySequence_GetItem(obj6, i);
5762 wxString* s = wxString_in_helper(item);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 arg7->Add(*s);
5765 delete s;
5766 Py_DECREF(item);
5767 }
5768 }
5769 }
5770 if (obj7) {
5771 ecode8 = SWIG_AsVal_long(obj7, &val8);
5772 if (!SWIG_IsOK(ecode8)) {
5773 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5774 }
5775 arg8 = static_cast< long >(val8);
5776 }
5777 if (obj8) {
5778 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5779 if (!SWIG_IsOK(res9)) {
5780 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5781 }
5782 if (!argp9) {
5783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5784 }
5785 arg9 = reinterpret_cast< wxValidator * >(argp9);
5786 }
5787 if (obj9) {
5788 {
5789 arg10 = wxString_in_helper(obj9);
5790 if (arg10 == NULL) SWIG_fail;
5791 temp10 = true;
5792 }
5793 }
5794 {
5795 PyThreadState* __tstate = wxPyBeginAllowThreads();
5796 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);
5797 wxPyEndAllowThreads(__tstate);
5798 if (PyErr_Occurred()) SWIG_fail;
5799 }
5800 {
5801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5802 }
5803 {
5804 if (temp4)
5805 delete arg4;
5806 }
5807 {
5808 if (temp7) delete arg7;
5809 }
5810 {
5811 if (temp10)
5812 delete arg10;
5813 }
5814 return resultobj;
5815 fail:
5816 {
5817 if (temp4)
5818 delete arg4;
5819 }
5820 {
5821 if (temp7) delete arg7;
5822 }
5823 {
5824 if (temp10)
5825 delete arg10;
5826 }
5827 return NULL;
5828 }
5829
5830
5831 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5832 PyObject *resultobj = 0;
5833 wxComboBox *arg1 = (wxComboBox *) 0 ;
5834 wxString result;
5835 void *argp1 = 0 ;
5836 int res1 = 0 ;
5837 PyObject *swig_obj[1] ;
5838
5839 if (!args) SWIG_fail;
5840 swig_obj[0] = args;
5841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5842 if (!SWIG_IsOK(res1)) {
5843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5844 }
5845 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5846 {
5847 PyThreadState* __tstate = wxPyBeginAllowThreads();
5848 result = ((wxComboBox const *)arg1)->GetValue();
5849 wxPyEndAllowThreads(__tstate);
5850 if (PyErr_Occurred()) SWIG_fail;
5851 }
5852 {
5853 #if wxUSE_UNICODE
5854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5855 #else
5856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5857 #endif
5858 }
5859 return resultobj;
5860 fail:
5861 return NULL;
5862 }
5863
5864
5865 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5866 PyObject *resultobj = 0;
5867 wxComboBox *arg1 = (wxComboBox *) 0 ;
5868 wxString *arg2 = 0 ;
5869 void *argp1 = 0 ;
5870 int res1 = 0 ;
5871 bool temp2 = false ;
5872 PyObject * obj0 = 0 ;
5873 PyObject * obj1 = 0 ;
5874 char * kwnames[] = {
5875 (char *) "self",(char *) "value", NULL
5876 };
5877
5878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5880 if (!SWIG_IsOK(res1)) {
5881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5882 }
5883 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5884 {
5885 arg2 = wxString_in_helper(obj1);
5886 if (arg2 == NULL) SWIG_fail;
5887 temp2 = true;
5888 }
5889 {
5890 PyThreadState* __tstate = wxPyBeginAllowThreads();
5891 (arg1)->SetValue((wxString const &)*arg2);
5892 wxPyEndAllowThreads(__tstate);
5893 if (PyErr_Occurred()) SWIG_fail;
5894 }
5895 resultobj = SWIG_Py_Void();
5896 {
5897 if (temp2)
5898 delete arg2;
5899 }
5900 return resultobj;
5901 fail:
5902 {
5903 if (temp2)
5904 delete arg2;
5905 }
5906 return NULL;
5907 }
5908
5909
5910 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5911 PyObject *resultobj = 0;
5912 wxComboBox *arg1 = (wxComboBox *) 0 ;
5913 void *argp1 = 0 ;
5914 int res1 = 0 ;
5915 PyObject *swig_obj[1] ;
5916
5917 if (!args) SWIG_fail;
5918 swig_obj[0] = args;
5919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5920 if (!SWIG_IsOK(res1)) {
5921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5922 }
5923 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5924 {
5925 PyThreadState* __tstate = wxPyBeginAllowThreads();
5926 (arg1)->Copy();
5927 wxPyEndAllowThreads(__tstate);
5928 if (PyErr_Occurred()) SWIG_fail;
5929 }
5930 resultobj = SWIG_Py_Void();
5931 return resultobj;
5932 fail:
5933 return NULL;
5934 }
5935
5936
5937 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5938 PyObject *resultobj = 0;
5939 wxComboBox *arg1 = (wxComboBox *) 0 ;
5940 void *argp1 = 0 ;
5941 int res1 = 0 ;
5942 PyObject *swig_obj[1] ;
5943
5944 if (!args) SWIG_fail;
5945 swig_obj[0] = args;
5946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5947 if (!SWIG_IsOK(res1)) {
5948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5949 }
5950 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5951 {
5952 PyThreadState* __tstate = wxPyBeginAllowThreads();
5953 (arg1)->Cut();
5954 wxPyEndAllowThreads(__tstate);
5955 if (PyErr_Occurred()) SWIG_fail;
5956 }
5957 resultobj = SWIG_Py_Void();
5958 return resultobj;
5959 fail:
5960 return NULL;
5961 }
5962
5963
5964 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5965 PyObject *resultobj = 0;
5966 wxComboBox *arg1 = (wxComboBox *) 0 ;
5967 void *argp1 = 0 ;
5968 int res1 = 0 ;
5969 PyObject *swig_obj[1] ;
5970
5971 if (!args) SWIG_fail;
5972 swig_obj[0] = args;
5973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5974 if (!SWIG_IsOK(res1)) {
5975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5976 }
5977 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 (arg1)->Paste();
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 resultobj = SWIG_Py_Void();
5985 return resultobj;
5986 fail:
5987 return NULL;
5988 }
5989
5990
5991 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5992 PyObject *resultobj = 0;
5993 wxComboBox *arg1 = (wxComboBox *) 0 ;
5994 long arg2 ;
5995 void *argp1 = 0 ;
5996 int res1 = 0 ;
5997 long val2 ;
5998 int ecode2 = 0 ;
5999 PyObject * obj0 = 0 ;
6000 PyObject * obj1 = 0 ;
6001 char * kwnames[] = {
6002 (char *) "self",(char *) "pos", NULL
6003 };
6004
6005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6007 if (!SWIG_IsOK(res1)) {
6008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6009 }
6010 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6011 ecode2 = SWIG_AsVal_long(obj1, &val2);
6012 if (!SWIG_IsOK(ecode2)) {
6013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6014 }
6015 arg2 = static_cast< long >(val2);
6016 {
6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
6018 (arg1)->SetInsertionPoint(arg2);
6019 wxPyEndAllowThreads(__tstate);
6020 if (PyErr_Occurred()) SWIG_fail;
6021 }
6022 resultobj = SWIG_Py_Void();
6023 return resultobj;
6024 fail:
6025 return NULL;
6026 }
6027
6028
6029 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6030 PyObject *resultobj = 0;
6031 wxComboBox *arg1 = (wxComboBox *) 0 ;
6032 long result;
6033 void *argp1 = 0 ;
6034 int res1 = 0 ;
6035 PyObject *swig_obj[1] ;
6036
6037 if (!args) SWIG_fail;
6038 swig_obj[0] = args;
6039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6040 if (!SWIG_IsOK(res1)) {
6041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6042 }
6043 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6044 {
6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
6046 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6047 wxPyEndAllowThreads(__tstate);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 resultobj = SWIG_From_long(static_cast< long >(result));
6051 return resultobj;
6052 fail:
6053 return NULL;
6054 }
6055
6056
6057 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6058 PyObject *resultobj = 0;
6059 wxComboBox *arg1 = (wxComboBox *) 0 ;
6060 long result;
6061 void *argp1 = 0 ;
6062 int res1 = 0 ;
6063 PyObject *swig_obj[1] ;
6064
6065 if (!args) SWIG_fail;
6066 swig_obj[0] = args;
6067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6068 if (!SWIG_IsOK(res1)) {
6069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6070 }
6071 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6072 {
6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
6074 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
6078 resultobj = SWIG_From_long(static_cast< long >(result));
6079 return resultobj;
6080 fail:
6081 return NULL;
6082 }
6083
6084
6085 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6086 PyObject *resultobj = 0;
6087 wxComboBox *arg1 = (wxComboBox *) 0 ;
6088 long arg2 ;
6089 long arg3 ;
6090 wxString *arg4 = 0 ;
6091 void *argp1 = 0 ;
6092 int res1 = 0 ;
6093 long val2 ;
6094 int ecode2 = 0 ;
6095 long val3 ;
6096 int ecode3 = 0 ;
6097 bool temp4 = false ;
6098 PyObject * obj0 = 0 ;
6099 PyObject * obj1 = 0 ;
6100 PyObject * obj2 = 0 ;
6101 PyObject * obj3 = 0 ;
6102 char * kwnames[] = {
6103 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6104 };
6105
6106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6108 if (!SWIG_IsOK(res1)) {
6109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6110 }
6111 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6112 ecode2 = SWIG_AsVal_long(obj1, &val2);
6113 if (!SWIG_IsOK(ecode2)) {
6114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6115 }
6116 arg2 = static_cast< long >(val2);
6117 ecode3 = SWIG_AsVal_long(obj2, &val3);
6118 if (!SWIG_IsOK(ecode3)) {
6119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6120 }
6121 arg3 = static_cast< long >(val3);
6122 {
6123 arg4 = wxString_in_helper(obj3);
6124 if (arg4 == NULL) SWIG_fail;
6125 temp4 = true;
6126 }
6127 {
6128 PyThreadState* __tstate = wxPyBeginAllowThreads();
6129 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6130 wxPyEndAllowThreads(__tstate);
6131 if (PyErr_Occurred()) SWIG_fail;
6132 }
6133 resultobj = SWIG_Py_Void();
6134 {
6135 if (temp4)
6136 delete arg4;
6137 }
6138 return resultobj;
6139 fail:
6140 {
6141 if (temp4)
6142 delete arg4;
6143 }
6144 return NULL;
6145 }
6146
6147
6148 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6149 PyObject *resultobj = 0;
6150 wxComboBox *arg1 = (wxComboBox *) 0 ;
6151 long arg2 ;
6152 long arg3 ;
6153 void *argp1 = 0 ;
6154 int res1 = 0 ;
6155 long val2 ;
6156 int ecode2 = 0 ;
6157 long val3 ;
6158 int ecode3 = 0 ;
6159 PyObject * obj0 = 0 ;
6160 PyObject * obj1 = 0 ;
6161 PyObject * obj2 = 0 ;
6162 char * kwnames[] = {
6163 (char *) "self",(char *) "from",(char *) "to", NULL
6164 };
6165
6166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6168 if (!SWIG_IsOK(res1)) {
6169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6170 }
6171 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6172 ecode2 = SWIG_AsVal_long(obj1, &val2);
6173 if (!SWIG_IsOK(ecode2)) {
6174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6175 }
6176 arg2 = static_cast< long >(val2);
6177 ecode3 = SWIG_AsVal_long(obj2, &val3);
6178 if (!SWIG_IsOK(ecode3)) {
6179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6180 }
6181 arg3 = static_cast< long >(val3);
6182 {
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 (arg1)->SetSelection(arg2,arg3);
6185 wxPyEndAllowThreads(__tstate);
6186 if (PyErr_Occurred()) SWIG_fail;
6187 }
6188 resultobj = SWIG_Py_Void();
6189 return resultobj;
6190 fail:
6191 return NULL;
6192 }
6193
6194
6195 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6196 PyObject *resultobj = 0;
6197 wxComboBox *arg1 = (wxComboBox *) 0 ;
6198 long *arg2 = (long *) 0 ;
6199 long *arg3 = (long *) 0 ;
6200 void *argp1 = 0 ;
6201 int res1 = 0 ;
6202 long temp2 ;
6203 int res2 = SWIG_TMPOBJ ;
6204 long temp3 ;
6205 int res3 = SWIG_TMPOBJ ;
6206 PyObject *swig_obj[1] ;
6207
6208 arg2 = &temp2;
6209 arg3 = &temp3;
6210 if (!args) SWIG_fail;
6211 swig_obj[0] = args;
6212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6213 if (!SWIG_IsOK(res1)) {
6214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6215 }
6216 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6217 {
6218 PyThreadState* __tstate = wxPyBeginAllowThreads();
6219 (arg1)->GetSelection(arg2,arg3);
6220 wxPyEndAllowThreads(__tstate);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 resultobj = SWIG_Py_Void();
6224 if (SWIG_IsTmpObj(res2)) {
6225 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6226 } else {
6227 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6228 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6229 }
6230 if (SWIG_IsTmpObj(res3)) {
6231 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6232 } else {
6233 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6234 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6235 }
6236 return resultobj;
6237 fail:
6238 return NULL;
6239 }
6240
6241
6242 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6243 PyObject *resultobj = 0;
6244 wxComboBox *arg1 = (wxComboBox *) 0 ;
6245 int result;
6246 void *argp1 = 0 ;
6247 int res1 = 0 ;
6248 PyObject *swig_obj[1] ;
6249
6250 if (!args) SWIG_fail;
6251 swig_obj[0] = args;
6252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6253 if (!SWIG_IsOK(res1)) {
6254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6255 }
6256 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6257 {
6258 PyThreadState* __tstate = wxPyBeginAllowThreads();
6259 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6260 wxPyEndAllowThreads(__tstate);
6261 if (PyErr_Occurred()) SWIG_fail;
6262 }
6263 resultobj = SWIG_From_int(static_cast< int >(result));
6264 return resultobj;
6265 fail:
6266 return NULL;
6267 }
6268
6269
6270 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6271 PyObject *resultobj = 0;
6272 wxComboBox *arg1 = (wxComboBox *) 0 ;
6273 wxString *arg2 = 0 ;
6274 bool result;
6275 void *argp1 = 0 ;
6276 int res1 = 0 ;
6277 bool temp2 = false ;
6278 PyObject * obj0 = 0 ;
6279 PyObject * obj1 = 0 ;
6280 char * kwnames[] = {
6281 (char *) "self",(char *) "string", NULL
6282 };
6283
6284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6286 if (!SWIG_IsOK(res1)) {
6287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6288 }
6289 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6290 {
6291 arg2 = wxString_in_helper(obj1);
6292 if (arg2 == NULL) SWIG_fail;
6293 temp2 = true;
6294 }
6295 {
6296 PyThreadState* __tstate = wxPyBeginAllowThreads();
6297 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6298 wxPyEndAllowThreads(__tstate);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 {
6302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6303 }
6304 {
6305 if (temp2)
6306 delete arg2;
6307 }
6308 return resultobj;
6309 fail:
6310 {
6311 if (temp2)
6312 delete arg2;
6313 }
6314 return NULL;
6315 }
6316
6317
6318 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6319 PyObject *resultobj = 0;
6320 wxComboBox *arg1 = (wxComboBox *) 0 ;
6321 bool arg2 ;
6322 void *argp1 = 0 ;
6323 int res1 = 0 ;
6324 bool val2 ;
6325 int ecode2 = 0 ;
6326 PyObject * obj0 = 0 ;
6327 PyObject * obj1 = 0 ;
6328 char * kwnames[] = {
6329 (char *) "self",(char *) "editable", NULL
6330 };
6331
6332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6334 if (!SWIG_IsOK(res1)) {
6335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6336 }
6337 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6338 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6339 if (!SWIG_IsOK(ecode2)) {
6340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6341 }
6342 arg2 = static_cast< bool >(val2);
6343 {
6344 PyThreadState* __tstate = wxPyBeginAllowThreads();
6345 (arg1)->SetEditable(arg2);
6346 wxPyEndAllowThreads(__tstate);
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 resultobj = SWIG_Py_Void();
6350 return resultobj;
6351 fail:
6352 return NULL;
6353 }
6354
6355
6356 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6357 PyObject *resultobj = 0;
6358 wxComboBox *arg1 = (wxComboBox *) 0 ;
6359 void *argp1 = 0 ;
6360 int res1 = 0 ;
6361 PyObject *swig_obj[1] ;
6362
6363 if (!args) SWIG_fail;
6364 swig_obj[0] = args;
6365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6366 if (!SWIG_IsOK(res1)) {
6367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6368 }
6369 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6370 {
6371 PyThreadState* __tstate = wxPyBeginAllowThreads();
6372 (arg1)->SetInsertionPointEnd();
6373 wxPyEndAllowThreads(__tstate);
6374 if (PyErr_Occurred()) SWIG_fail;
6375 }
6376 resultobj = SWIG_Py_Void();
6377 return resultobj;
6378 fail:
6379 return NULL;
6380 }
6381
6382
6383 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6384 PyObject *resultobj = 0;
6385 wxComboBox *arg1 = (wxComboBox *) 0 ;
6386 long arg2 ;
6387 long arg3 ;
6388 void *argp1 = 0 ;
6389 int res1 = 0 ;
6390 long val2 ;
6391 int ecode2 = 0 ;
6392 long val3 ;
6393 int ecode3 = 0 ;
6394 PyObject * obj0 = 0 ;
6395 PyObject * obj1 = 0 ;
6396 PyObject * obj2 = 0 ;
6397 char * kwnames[] = {
6398 (char *) "self",(char *) "from",(char *) "to", NULL
6399 };
6400
6401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6403 if (!SWIG_IsOK(res1)) {
6404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6405 }
6406 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6407 ecode2 = SWIG_AsVal_long(obj1, &val2);
6408 if (!SWIG_IsOK(ecode2)) {
6409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6410 }
6411 arg2 = static_cast< long >(val2);
6412 ecode3 = SWIG_AsVal_long(obj2, &val3);
6413 if (!SWIG_IsOK(ecode3)) {
6414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6415 }
6416 arg3 = static_cast< long >(val3);
6417 {
6418 PyThreadState* __tstate = wxPyBeginAllowThreads();
6419 (arg1)->Remove(arg2,arg3);
6420 wxPyEndAllowThreads(__tstate);
6421 if (PyErr_Occurred()) SWIG_fail;
6422 }
6423 resultobj = SWIG_Py_Void();
6424 return resultobj;
6425 fail:
6426 return NULL;
6427 }
6428
6429
6430 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6431 PyObject *resultobj = 0;
6432 wxComboBox *arg1 = (wxComboBox *) 0 ;
6433 bool result;
6434 void *argp1 = 0 ;
6435 int res1 = 0 ;
6436 PyObject *swig_obj[1] ;
6437
6438 if (!args) SWIG_fail;
6439 swig_obj[0] = args;
6440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6441 if (!SWIG_IsOK(res1)) {
6442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6443 }
6444 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6445 {
6446 PyThreadState* __tstate = wxPyBeginAllowThreads();
6447 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6448 wxPyEndAllowThreads(__tstate);
6449 if (PyErr_Occurred()) SWIG_fail;
6450 }
6451 {
6452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6453 }
6454 return resultobj;
6455 fail:
6456 return NULL;
6457 }
6458
6459
6460 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6461 PyObject *resultobj = 0;
6462 wxComboBox *arg1 = (wxComboBox *) 0 ;
6463 void *argp1 = 0 ;
6464 int res1 = 0 ;
6465 PyObject *swig_obj[1] ;
6466
6467 if (!args) SWIG_fail;
6468 swig_obj[0] = args;
6469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6470 if (!SWIG_IsOK(res1)) {
6471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6472 }
6473 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6474 {
6475 PyThreadState* __tstate = wxPyBeginAllowThreads();
6476 (arg1)->Undo();
6477 wxPyEndAllowThreads(__tstate);
6478 if (PyErr_Occurred()) SWIG_fail;
6479 }
6480 resultobj = SWIG_Py_Void();
6481 return resultobj;
6482 fail:
6483 return NULL;
6484 }
6485
6486
6487 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6488 PyObject *resultobj = 0;
6489 wxComboBox *arg1 = (wxComboBox *) 0 ;
6490 void *argp1 = 0 ;
6491 int res1 = 0 ;
6492 PyObject *swig_obj[1] ;
6493
6494 if (!args) SWIG_fail;
6495 swig_obj[0] = args;
6496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6497 if (!SWIG_IsOK(res1)) {
6498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6499 }
6500 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6501 {
6502 PyThreadState* __tstate = wxPyBeginAllowThreads();
6503 (arg1)->Redo();
6504 wxPyEndAllowThreads(__tstate);
6505 if (PyErr_Occurred()) SWIG_fail;
6506 }
6507 resultobj = SWIG_Py_Void();
6508 return resultobj;
6509 fail:
6510 return NULL;
6511 }
6512
6513
6514 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6515 PyObject *resultobj = 0;
6516 wxComboBox *arg1 = (wxComboBox *) 0 ;
6517 void *argp1 = 0 ;
6518 int res1 = 0 ;
6519 PyObject *swig_obj[1] ;
6520
6521 if (!args) SWIG_fail;
6522 swig_obj[0] = args;
6523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6524 if (!SWIG_IsOK(res1)) {
6525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6526 }
6527 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6528 {
6529 PyThreadState* __tstate = wxPyBeginAllowThreads();
6530 (arg1)->SelectAll();
6531 wxPyEndAllowThreads(__tstate);
6532 if (PyErr_Occurred()) SWIG_fail;
6533 }
6534 resultobj = SWIG_Py_Void();
6535 return resultobj;
6536 fail:
6537 return NULL;
6538 }
6539
6540
6541 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6542 PyObject *resultobj = 0;
6543 wxComboBox *arg1 = (wxComboBox *) 0 ;
6544 bool result;
6545 void *argp1 = 0 ;
6546 int res1 = 0 ;
6547 PyObject *swig_obj[1] ;
6548
6549 if (!args) SWIG_fail;
6550 swig_obj[0] = args;
6551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6552 if (!SWIG_IsOK(res1)) {
6553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6554 }
6555 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6556 {
6557 PyThreadState* __tstate = wxPyBeginAllowThreads();
6558 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6559 wxPyEndAllowThreads(__tstate);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 {
6563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6564 }
6565 return resultobj;
6566 fail:
6567 return NULL;
6568 }
6569
6570
6571 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6572 PyObject *resultobj = 0;
6573 wxComboBox *arg1 = (wxComboBox *) 0 ;
6574 bool result;
6575 void *argp1 = 0 ;
6576 int res1 = 0 ;
6577 PyObject *swig_obj[1] ;
6578
6579 if (!args) SWIG_fail;
6580 swig_obj[0] = args;
6581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6582 if (!SWIG_IsOK(res1)) {
6583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6584 }
6585 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6586 {
6587 PyThreadState* __tstate = wxPyBeginAllowThreads();
6588 result = (bool)((wxComboBox const *)arg1)->CanCut();
6589 wxPyEndAllowThreads(__tstate);
6590 if (PyErr_Occurred()) SWIG_fail;
6591 }
6592 {
6593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6594 }
6595 return resultobj;
6596 fail:
6597 return NULL;
6598 }
6599
6600
6601 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6602 PyObject *resultobj = 0;
6603 wxComboBox *arg1 = (wxComboBox *) 0 ;
6604 bool result;
6605 void *argp1 = 0 ;
6606 int res1 = 0 ;
6607 PyObject *swig_obj[1] ;
6608
6609 if (!args) SWIG_fail;
6610 swig_obj[0] = args;
6611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6612 if (!SWIG_IsOK(res1)) {
6613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6614 }
6615 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6616 {
6617 PyThreadState* __tstate = wxPyBeginAllowThreads();
6618 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6619 wxPyEndAllowThreads(__tstate);
6620 if (PyErr_Occurred()) SWIG_fail;
6621 }
6622 {
6623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6624 }
6625 return resultobj;
6626 fail:
6627 return NULL;
6628 }
6629
6630
6631 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6632 PyObject *resultobj = 0;
6633 wxComboBox *arg1 = (wxComboBox *) 0 ;
6634 bool result;
6635 void *argp1 = 0 ;
6636 int res1 = 0 ;
6637 PyObject *swig_obj[1] ;
6638
6639 if (!args) SWIG_fail;
6640 swig_obj[0] = args;
6641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6642 if (!SWIG_IsOK(res1)) {
6643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6644 }
6645 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6646 {
6647 PyThreadState* __tstate = wxPyBeginAllowThreads();
6648 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6649 wxPyEndAllowThreads(__tstate);
6650 if (PyErr_Occurred()) SWIG_fail;
6651 }
6652 {
6653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6654 }
6655 return resultobj;
6656 fail:
6657 return NULL;
6658 }
6659
6660
6661 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6662 PyObject *resultobj = 0;
6663 wxComboBox *arg1 = (wxComboBox *) 0 ;
6664 bool result;
6665 void *argp1 = 0 ;
6666 int res1 = 0 ;
6667 PyObject *swig_obj[1] ;
6668
6669 if (!args) SWIG_fail;
6670 swig_obj[0] = args;
6671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6672 if (!SWIG_IsOK(res1)) {
6673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6674 }
6675 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6676 {
6677 PyThreadState* __tstate = wxPyBeginAllowThreads();
6678 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6679 wxPyEndAllowThreads(__tstate);
6680 if (PyErr_Occurred()) SWIG_fail;
6681 }
6682 {
6683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6684 }
6685 return resultobj;
6686 fail:
6687 return NULL;
6688 }
6689
6690
6691 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6692 PyObject *resultobj = 0;
6693 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6694 SwigValueWrapper<wxVisualAttributes > result;
6695 int val1 ;
6696 int ecode1 = 0 ;
6697 PyObject * obj0 = 0 ;
6698 char * kwnames[] = {
6699 (char *) "variant", NULL
6700 };
6701
6702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6703 if (obj0) {
6704 ecode1 = SWIG_AsVal_int(obj0, &val1);
6705 if (!SWIG_IsOK(ecode1)) {
6706 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6707 }
6708 arg1 = static_cast< wxWindowVariant >(val1);
6709 }
6710 {
6711 if (!wxPyCheckForApp()) SWIG_fail;
6712 PyThreadState* __tstate = wxPyBeginAllowThreads();
6713 result = wxComboBox::GetClassDefaultAttributes(arg1);
6714 wxPyEndAllowThreads(__tstate);
6715 if (PyErr_Occurred()) SWIG_fail;
6716 }
6717 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6718 return resultobj;
6719 fail:
6720 return NULL;
6721 }
6722
6723
6724 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6725 PyObject *obj;
6726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6727 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6728 return SWIG_Py_Void();
6729 }
6730
6731 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6732 return SWIG_Python_InitShadowInstance(args);
6733 }
6734
6735 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6736 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6737 return 1;
6738 }
6739
6740
6741 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6742 PyObject *pyobj = 0;
6743
6744 {
6745 #if wxUSE_UNICODE
6746 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6747 #else
6748 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6749 #endif
6750 }
6751 return pyobj;
6752 }
6753
6754
6755 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6756 PyObject *resultobj = 0;
6757 wxWindow *arg1 = (wxWindow *) 0 ;
6758 int arg2 = (int) -1 ;
6759 int arg3 = (int) 100 ;
6760 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6761 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6762 wxSize const &arg5_defvalue = wxDefaultSize ;
6763 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6764 long arg6 = (long) wxGA_HORIZONTAL ;
6765 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6766 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6767 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6768 wxString *arg8 = (wxString *) &arg8_defvalue ;
6769 wxGauge *result = 0 ;
6770 void *argp1 = 0 ;
6771 int res1 = 0 ;
6772 int val2 ;
6773 int ecode2 = 0 ;
6774 int val3 ;
6775 int ecode3 = 0 ;
6776 wxPoint temp4 ;
6777 wxSize temp5 ;
6778 long val6 ;
6779 int ecode6 = 0 ;
6780 void *argp7 = 0 ;
6781 int res7 = 0 ;
6782 bool temp8 = false ;
6783 PyObject * obj0 = 0 ;
6784 PyObject * obj1 = 0 ;
6785 PyObject * obj2 = 0 ;
6786 PyObject * obj3 = 0 ;
6787 PyObject * obj4 = 0 ;
6788 PyObject * obj5 = 0 ;
6789 PyObject * obj6 = 0 ;
6790 PyObject * obj7 = 0 ;
6791 char * kwnames[] = {
6792 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6793 };
6794
6795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6797 if (!SWIG_IsOK(res1)) {
6798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6799 }
6800 arg1 = reinterpret_cast< wxWindow * >(argp1);
6801 if (obj1) {
6802 ecode2 = SWIG_AsVal_int(obj1, &val2);
6803 if (!SWIG_IsOK(ecode2)) {
6804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6805 }
6806 arg2 = static_cast< int >(val2);
6807 }
6808 if (obj2) {
6809 ecode3 = SWIG_AsVal_int(obj2, &val3);
6810 if (!SWIG_IsOK(ecode3)) {
6811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6812 }
6813 arg3 = static_cast< int >(val3);
6814 }
6815 if (obj3) {
6816 {
6817 arg4 = &temp4;
6818 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6819 }
6820 }
6821 if (obj4) {
6822 {
6823 arg5 = &temp5;
6824 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6825 }
6826 }
6827 if (obj5) {
6828 ecode6 = SWIG_AsVal_long(obj5, &val6);
6829 if (!SWIG_IsOK(ecode6)) {
6830 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6831 }
6832 arg6 = static_cast< long >(val6);
6833 }
6834 if (obj6) {
6835 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6836 if (!SWIG_IsOK(res7)) {
6837 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6838 }
6839 if (!argp7) {
6840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6841 }
6842 arg7 = reinterpret_cast< wxValidator * >(argp7);
6843 }
6844 if (obj7) {
6845 {
6846 arg8 = wxString_in_helper(obj7);
6847 if (arg8 == NULL) SWIG_fail;
6848 temp8 = true;
6849 }
6850 }
6851 {
6852 if (!wxPyCheckForApp()) SWIG_fail;
6853 PyThreadState* __tstate = wxPyBeginAllowThreads();
6854 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6855 wxPyEndAllowThreads(__tstate);
6856 if (PyErr_Occurred()) SWIG_fail;
6857 }
6858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6859 {
6860 if (temp8)
6861 delete arg8;
6862 }
6863 return resultobj;
6864 fail:
6865 {
6866 if (temp8)
6867 delete arg8;
6868 }
6869 return NULL;
6870 }
6871
6872
6873 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6874 PyObject *resultobj = 0;
6875 wxGauge *result = 0 ;
6876
6877 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6878 {
6879 if (!wxPyCheckForApp()) SWIG_fail;
6880 PyThreadState* __tstate = wxPyBeginAllowThreads();
6881 result = (wxGauge *)new wxGauge();
6882 wxPyEndAllowThreads(__tstate);
6883 if (PyErr_Occurred()) SWIG_fail;
6884 }
6885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6886 return resultobj;
6887 fail:
6888 return NULL;
6889 }
6890
6891
6892 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj = 0;
6894 wxGauge *arg1 = (wxGauge *) 0 ;
6895 wxWindow *arg2 = (wxWindow *) 0 ;
6896 int arg3 = (int) -1 ;
6897 int arg4 = (int) 100 ;
6898 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6899 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6900 wxSize const &arg6_defvalue = wxDefaultSize ;
6901 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6902 long arg7 = (long) wxGA_HORIZONTAL ;
6903 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6904 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6905 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6906 wxString *arg9 = (wxString *) &arg9_defvalue ;
6907 bool result;
6908 void *argp1 = 0 ;
6909 int res1 = 0 ;
6910 void *argp2 = 0 ;
6911 int res2 = 0 ;
6912 int val3 ;
6913 int ecode3 = 0 ;
6914 int val4 ;
6915 int ecode4 = 0 ;
6916 wxPoint temp5 ;
6917 wxSize temp6 ;
6918 long val7 ;
6919 int ecode7 = 0 ;
6920 void *argp8 = 0 ;
6921 int res8 = 0 ;
6922 bool temp9 = false ;
6923 PyObject * obj0 = 0 ;
6924 PyObject * obj1 = 0 ;
6925 PyObject * obj2 = 0 ;
6926 PyObject * obj3 = 0 ;
6927 PyObject * obj4 = 0 ;
6928 PyObject * obj5 = 0 ;
6929 PyObject * obj6 = 0 ;
6930 PyObject * obj7 = 0 ;
6931 PyObject * obj8 = 0 ;
6932 char * kwnames[] = {
6933 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6934 };
6935
6936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6938 if (!SWIG_IsOK(res1)) {
6939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6940 }
6941 arg1 = reinterpret_cast< wxGauge * >(argp1);
6942 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6943 if (!SWIG_IsOK(res2)) {
6944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6945 }
6946 arg2 = reinterpret_cast< wxWindow * >(argp2);
6947 if (obj2) {
6948 ecode3 = SWIG_AsVal_int(obj2, &val3);
6949 if (!SWIG_IsOK(ecode3)) {
6950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6951 }
6952 arg3 = static_cast< int >(val3);
6953 }
6954 if (obj3) {
6955 ecode4 = SWIG_AsVal_int(obj3, &val4);
6956 if (!SWIG_IsOK(ecode4)) {
6957 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6958 }
6959 arg4 = static_cast< int >(val4);
6960 }
6961 if (obj4) {
6962 {
6963 arg5 = &temp5;
6964 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6965 }
6966 }
6967 if (obj5) {
6968 {
6969 arg6 = &temp6;
6970 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6971 }
6972 }
6973 if (obj6) {
6974 ecode7 = SWIG_AsVal_long(obj6, &val7);
6975 if (!SWIG_IsOK(ecode7)) {
6976 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6977 }
6978 arg7 = static_cast< long >(val7);
6979 }
6980 if (obj7) {
6981 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6982 if (!SWIG_IsOK(res8)) {
6983 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6984 }
6985 if (!argp8) {
6986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6987 }
6988 arg8 = reinterpret_cast< wxValidator * >(argp8);
6989 }
6990 if (obj8) {
6991 {
6992 arg9 = wxString_in_helper(obj8);
6993 if (arg9 == NULL) SWIG_fail;
6994 temp9 = true;
6995 }
6996 }
6997 {
6998 PyThreadState* __tstate = wxPyBeginAllowThreads();
6999 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7000 wxPyEndAllowThreads(__tstate);
7001 if (PyErr_Occurred()) SWIG_fail;
7002 }
7003 {
7004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7005 }
7006 {
7007 if (temp9)
7008 delete arg9;
7009 }
7010 return resultobj;
7011 fail:
7012 {
7013 if (temp9)
7014 delete arg9;
7015 }
7016 return NULL;
7017 }
7018
7019
7020 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7021 PyObject *resultobj = 0;
7022 wxGauge *arg1 = (wxGauge *) 0 ;
7023 int arg2 ;
7024 void *argp1 = 0 ;
7025 int res1 = 0 ;
7026 int val2 ;
7027 int ecode2 = 0 ;
7028 PyObject * obj0 = 0 ;
7029 PyObject * obj1 = 0 ;
7030 char * kwnames[] = {
7031 (char *) "self",(char *) "range", NULL
7032 };
7033
7034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7036 if (!SWIG_IsOK(res1)) {
7037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7038 }
7039 arg1 = reinterpret_cast< wxGauge * >(argp1);
7040 ecode2 = SWIG_AsVal_int(obj1, &val2);
7041 if (!SWIG_IsOK(ecode2)) {
7042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7043 }
7044 arg2 = static_cast< int >(val2);
7045 {
7046 PyThreadState* __tstate = wxPyBeginAllowThreads();
7047 (arg1)->SetRange(arg2);
7048 wxPyEndAllowThreads(__tstate);
7049 if (PyErr_Occurred()) SWIG_fail;
7050 }
7051 resultobj = SWIG_Py_Void();
7052 return resultobj;
7053 fail:
7054 return NULL;
7055 }
7056
7057
7058 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7059 PyObject *resultobj = 0;
7060 wxGauge *arg1 = (wxGauge *) 0 ;
7061 int result;
7062 void *argp1 = 0 ;
7063 int res1 = 0 ;
7064 PyObject *swig_obj[1] ;
7065
7066 if (!args) SWIG_fail;
7067 swig_obj[0] = args;
7068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7069 if (!SWIG_IsOK(res1)) {
7070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7071 }
7072 arg1 = reinterpret_cast< wxGauge * >(argp1);
7073 {
7074 PyThreadState* __tstate = wxPyBeginAllowThreads();
7075 result = (int)((wxGauge const *)arg1)->GetRange();
7076 wxPyEndAllowThreads(__tstate);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 }
7079 resultobj = SWIG_From_int(static_cast< int >(result));
7080 return resultobj;
7081 fail:
7082 return NULL;
7083 }
7084
7085
7086 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7087 PyObject *resultobj = 0;
7088 wxGauge *arg1 = (wxGauge *) 0 ;
7089 int arg2 ;
7090 void *argp1 = 0 ;
7091 int res1 = 0 ;
7092 int val2 ;
7093 int ecode2 = 0 ;
7094 PyObject * obj0 = 0 ;
7095 PyObject * obj1 = 0 ;
7096 char * kwnames[] = {
7097 (char *) "self",(char *) "pos", NULL
7098 };
7099
7100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7102 if (!SWIG_IsOK(res1)) {
7103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7104 }
7105 arg1 = reinterpret_cast< wxGauge * >(argp1);
7106 ecode2 = SWIG_AsVal_int(obj1, &val2);
7107 if (!SWIG_IsOK(ecode2)) {
7108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7109 }
7110 arg2 = static_cast< int >(val2);
7111 {
7112 PyThreadState* __tstate = wxPyBeginAllowThreads();
7113 (arg1)->SetValue(arg2);
7114 wxPyEndAllowThreads(__tstate);
7115 if (PyErr_Occurred()) SWIG_fail;
7116 }
7117 resultobj = SWIG_Py_Void();
7118 return resultobj;
7119 fail:
7120 return NULL;
7121 }
7122
7123
7124 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7125 PyObject *resultobj = 0;
7126 wxGauge *arg1 = (wxGauge *) 0 ;
7127 int result;
7128 void *argp1 = 0 ;
7129 int res1 = 0 ;
7130 PyObject *swig_obj[1] ;
7131
7132 if (!args) SWIG_fail;
7133 swig_obj[0] = args;
7134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7135 if (!SWIG_IsOK(res1)) {
7136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7137 }
7138 arg1 = reinterpret_cast< wxGauge * >(argp1);
7139 {
7140 PyThreadState* __tstate = wxPyBeginAllowThreads();
7141 result = (int)((wxGauge const *)arg1)->GetValue();
7142 wxPyEndAllowThreads(__tstate);
7143 if (PyErr_Occurred()) SWIG_fail;
7144 }
7145 resultobj = SWIG_From_int(static_cast< int >(result));
7146 return resultobj;
7147 fail:
7148 return NULL;
7149 }
7150
7151
7152 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7153 PyObject *resultobj = 0;
7154 wxGauge *arg1 = (wxGauge *) 0 ;
7155 void *argp1 = 0 ;
7156 int res1 = 0 ;
7157 PyObject *swig_obj[1] ;
7158
7159 if (!args) SWIG_fail;
7160 swig_obj[0] = args;
7161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7162 if (!SWIG_IsOK(res1)) {
7163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7164 }
7165 arg1 = reinterpret_cast< wxGauge * >(argp1);
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 (arg1)->Pulse();
7169 wxPyEndAllowThreads(__tstate);
7170 if (PyErr_Occurred()) SWIG_fail;
7171 }
7172 resultobj = SWIG_Py_Void();
7173 return resultobj;
7174 fail:
7175 return NULL;
7176 }
7177
7178
7179 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7180 PyObject *resultobj = 0;
7181 wxGauge *arg1 = (wxGauge *) 0 ;
7182 bool result;
7183 void *argp1 = 0 ;
7184 int res1 = 0 ;
7185 PyObject *swig_obj[1] ;
7186
7187 if (!args) SWIG_fail;
7188 swig_obj[0] = args;
7189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7190 if (!SWIG_IsOK(res1)) {
7191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7192 }
7193 arg1 = reinterpret_cast< wxGauge * >(argp1);
7194 {
7195 PyThreadState* __tstate = wxPyBeginAllowThreads();
7196 result = (bool)((wxGauge const *)arg1)->IsVertical();
7197 wxPyEndAllowThreads(__tstate);
7198 if (PyErr_Occurred()) SWIG_fail;
7199 }
7200 {
7201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7202 }
7203 return resultobj;
7204 fail:
7205 return NULL;
7206 }
7207
7208
7209 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7210 PyObject *resultobj = 0;
7211 wxGauge *arg1 = (wxGauge *) 0 ;
7212 int arg2 ;
7213 void *argp1 = 0 ;
7214 int res1 = 0 ;
7215 int val2 ;
7216 int ecode2 = 0 ;
7217 PyObject * obj0 = 0 ;
7218 PyObject * obj1 = 0 ;
7219 char * kwnames[] = {
7220 (char *) "self",(char *) "w", NULL
7221 };
7222
7223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7225 if (!SWIG_IsOK(res1)) {
7226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7227 }
7228 arg1 = reinterpret_cast< wxGauge * >(argp1);
7229 ecode2 = SWIG_AsVal_int(obj1, &val2);
7230 if (!SWIG_IsOK(ecode2)) {
7231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7232 }
7233 arg2 = static_cast< int >(val2);
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 (arg1)->SetShadowWidth(arg2);
7237 wxPyEndAllowThreads(__tstate);
7238 if (PyErr_Occurred()) SWIG_fail;
7239 }
7240 resultobj = SWIG_Py_Void();
7241 return resultobj;
7242 fail:
7243 return NULL;
7244 }
7245
7246
7247 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7248 PyObject *resultobj = 0;
7249 wxGauge *arg1 = (wxGauge *) 0 ;
7250 int result;
7251 void *argp1 = 0 ;
7252 int res1 = 0 ;
7253 PyObject *swig_obj[1] ;
7254
7255 if (!args) SWIG_fail;
7256 swig_obj[0] = args;
7257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7258 if (!SWIG_IsOK(res1)) {
7259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7260 }
7261 arg1 = reinterpret_cast< wxGauge * >(argp1);
7262 {
7263 PyThreadState* __tstate = wxPyBeginAllowThreads();
7264 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7265 wxPyEndAllowThreads(__tstate);
7266 if (PyErr_Occurred()) SWIG_fail;
7267 }
7268 resultobj = SWIG_From_int(static_cast< int >(result));
7269 return resultobj;
7270 fail:
7271 return NULL;
7272 }
7273
7274
7275 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7276 PyObject *resultobj = 0;
7277 wxGauge *arg1 = (wxGauge *) 0 ;
7278 int arg2 ;
7279 void *argp1 = 0 ;
7280 int res1 = 0 ;
7281 int val2 ;
7282 int ecode2 = 0 ;
7283 PyObject * obj0 = 0 ;
7284 PyObject * obj1 = 0 ;
7285 char * kwnames[] = {
7286 (char *) "self",(char *) "w", NULL
7287 };
7288
7289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7291 if (!SWIG_IsOK(res1)) {
7292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7293 }
7294 arg1 = reinterpret_cast< wxGauge * >(argp1);
7295 ecode2 = SWIG_AsVal_int(obj1, &val2);
7296 if (!SWIG_IsOK(ecode2)) {
7297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7298 }
7299 arg2 = static_cast< int >(val2);
7300 {
7301 PyThreadState* __tstate = wxPyBeginAllowThreads();
7302 (arg1)->SetBezelFace(arg2);
7303 wxPyEndAllowThreads(__tstate);
7304 if (PyErr_Occurred()) SWIG_fail;
7305 }
7306 resultobj = SWIG_Py_Void();
7307 return resultobj;
7308 fail:
7309 return NULL;
7310 }
7311
7312
7313 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7314 PyObject *resultobj = 0;
7315 wxGauge *arg1 = (wxGauge *) 0 ;
7316 int result;
7317 void *argp1 = 0 ;
7318 int res1 = 0 ;
7319 PyObject *swig_obj[1] ;
7320
7321 if (!args) SWIG_fail;
7322 swig_obj[0] = args;
7323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7324 if (!SWIG_IsOK(res1)) {
7325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7326 }
7327 arg1 = reinterpret_cast< wxGauge * >(argp1);
7328 {
7329 PyThreadState* __tstate = wxPyBeginAllowThreads();
7330 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7331 wxPyEndAllowThreads(__tstate);
7332 if (PyErr_Occurred()) SWIG_fail;
7333 }
7334 resultobj = SWIG_From_int(static_cast< int >(result));
7335 return resultobj;
7336 fail:
7337 return NULL;
7338 }
7339
7340
7341 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7342 PyObject *resultobj = 0;
7343 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7344 SwigValueWrapper<wxVisualAttributes > result;
7345 int val1 ;
7346 int ecode1 = 0 ;
7347 PyObject * obj0 = 0 ;
7348 char * kwnames[] = {
7349 (char *) "variant", NULL
7350 };
7351
7352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7353 if (obj0) {
7354 ecode1 = SWIG_AsVal_int(obj0, &val1);
7355 if (!SWIG_IsOK(ecode1)) {
7356 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7357 }
7358 arg1 = static_cast< wxWindowVariant >(val1);
7359 }
7360 {
7361 if (!wxPyCheckForApp()) SWIG_fail;
7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
7363 result = wxGauge::GetClassDefaultAttributes(arg1);
7364 wxPyEndAllowThreads(__tstate);
7365 if (PyErr_Occurred()) SWIG_fail;
7366 }
7367 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7368 return resultobj;
7369 fail:
7370 return NULL;
7371 }
7372
7373
7374 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7375 PyObject *obj;
7376 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7377 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7378 return SWIG_Py_Void();
7379 }
7380
7381 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7382 return SWIG_Python_InitShadowInstance(args);
7383 }
7384
7385 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7386 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7387 return 1;
7388 }
7389
7390
7391 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7392 PyObject *pyobj = 0;
7393
7394 {
7395 #if wxUSE_UNICODE
7396 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7397 #else
7398 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7399 #endif
7400 }
7401 return pyobj;
7402 }
7403
7404
7405 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7406 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7407 return 1;
7408 }
7409
7410
7411 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7412 PyObject *pyobj = 0;
7413
7414 {
7415 #if wxUSE_UNICODE
7416 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7417 #else
7418 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7419 #endif
7420 }
7421 return pyobj;
7422 }
7423
7424
7425 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7426 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7427 return 1;
7428 }
7429
7430
7431 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7432 PyObject *pyobj = 0;
7433
7434 {
7435 #if wxUSE_UNICODE
7436 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7437 #else
7438 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7439 #endif
7440 }
7441 return pyobj;
7442 }
7443
7444
7445 SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7446 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7447 return 1;
7448 }
7449
7450
7451 SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7452 PyObject *pyobj = 0;
7453
7454 {
7455 #if wxUSE_UNICODE
7456 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7457 #else
7458 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7459 #endif
7460 }
7461 return pyobj;
7462 }
7463
7464
7465 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7466 PyObject *resultobj = 0;
7467 wxWindow *arg1 = (wxWindow *) 0 ;
7468 int arg2 = (int) -1 ;
7469 wxString const &arg3_defvalue = wxPyEmptyString ;
7470 wxString *arg3 = (wxString *) &arg3_defvalue ;
7471 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7472 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7473 wxSize const &arg5_defvalue = wxDefaultSize ;
7474 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7475 long arg6 = (long) 0 ;
7476 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7477 wxString *arg7 = (wxString *) &arg7_defvalue ;
7478 wxStaticBox *result = 0 ;
7479 void *argp1 = 0 ;
7480 int res1 = 0 ;
7481 int val2 ;
7482 int ecode2 = 0 ;
7483 bool temp3 = false ;
7484 wxPoint temp4 ;
7485 wxSize temp5 ;
7486 long val6 ;
7487 int ecode6 = 0 ;
7488 bool temp7 = false ;
7489 PyObject * obj0 = 0 ;
7490 PyObject * obj1 = 0 ;
7491 PyObject * obj2 = 0 ;
7492 PyObject * obj3 = 0 ;
7493 PyObject * obj4 = 0 ;
7494 PyObject * obj5 = 0 ;
7495 PyObject * obj6 = 0 ;
7496 char * kwnames[] = {
7497 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7498 };
7499
7500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7502 if (!SWIG_IsOK(res1)) {
7503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7504 }
7505 arg1 = reinterpret_cast< wxWindow * >(argp1);
7506 if (obj1) {
7507 ecode2 = SWIG_AsVal_int(obj1, &val2);
7508 if (!SWIG_IsOK(ecode2)) {
7509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7510 }
7511 arg2 = static_cast< int >(val2);
7512 }
7513 if (obj2) {
7514 {
7515 arg3 = wxString_in_helper(obj2);
7516 if (arg3 == NULL) SWIG_fail;
7517 temp3 = true;
7518 }
7519 }
7520 if (obj3) {
7521 {
7522 arg4 = &temp4;
7523 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7524 }
7525 }
7526 if (obj4) {
7527 {
7528 arg5 = &temp5;
7529 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7530 }
7531 }
7532 if (obj5) {
7533 ecode6 = SWIG_AsVal_long(obj5, &val6);
7534 if (!SWIG_IsOK(ecode6)) {
7535 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7536 }
7537 arg6 = static_cast< long >(val6);
7538 }
7539 if (obj6) {
7540 {
7541 arg7 = wxString_in_helper(obj6);
7542 if (arg7 == NULL) SWIG_fail;
7543 temp7 = true;
7544 }
7545 }
7546 {
7547 if (!wxPyCheckForApp()) SWIG_fail;
7548 PyThreadState* __tstate = wxPyBeginAllowThreads();
7549 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7550 wxPyEndAllowThreads(__tstate);
7551 if (PyErr_Occurred()) SWIG_fail;
7552 }
7553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7554 {
7555 if (temp3)
7556 delete arg3;
7557 }
7558 {
7559 if (temp7)
7560 delete arg7;
7561 }
7562 return resultobj;
7563 fail:
7564 {
7565 if (temp3)
7566 delete arg3;
7567 }
7568 {
7569 if (temp7)
7570 delete arg7;
7571 }
7572 return NULL;
7573 }
7574
7575
7576 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7577 PyObject *resultobj = 0;
7578 wxStaticBox *result = 0 ;
7579
7580 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7581 {
7582 if (!wxPyCheckForApp()) SWIG_fail;
7583 PyThreadState* __tstate = wxPyBeginAllowThreads();
7584 result = (wxStaticBox *)new wxStaticBox();
7585 wxPyEndAllowThreads(__tstate);
7586 if (PyErr_Occurred()) SWIG_fail;
7587 }
7588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7589 return resultobj;
7590 fail:
7591 return NULL;
7592 }
7593
7594
7595 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7596 PyObject *resultobj = 0;
7597 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7598 wxWindow *arg2 = (wxWindow *) 0 ;
7599 int arg3 = (int) -1 ;
7600 wxString const &arg4_defvalue = wxPyEmptyString ;
7601 wxString *arg4 = (wxString *) &arg4_defvalue ;
7602 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7603 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7604 wxSize const &arg6_defvalue = wxDefaultSize ;
7605 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7606 long arg7 = (long) 0 ;
7607 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7608 wxString *arg8 = (wxString *) &arg8_defvalue ;
7609 bool result;
7610 void *argp1 = 0 ;
7611 int res1 = 0 ;
7612 void *argp2 = 0 ;
7613 int res2 = 0 ;
7614 int val3 ;
7615 int ecode3 = 0 ;
7616 bool temp4 = false ;
7617 wxPoint temp5 ;
7618 wxSize temp6 ;
7619 long val7 ;
7620 int ecode7 = 0 ;
7621 bool temp8 = false ;
7622 PyObject * obj0 = 0 ;
7623 PyObject * obj1 = 0 ;
7624 PyObject * obj2 = 0 ;
7625 PyObject * obj3 = 0 ;
7626 PyObject * obj4 = 0 ;
7627 PyObject * obj5 = 0 ;
7628 PyObject * obj6 = 0 ;
7629 PyObject * obj7 = 0 ;
7630 char * kwnames[] = {
7631 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7632 };
7633
7634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7636 if (!SWIG_IsOK(res1)) {
7637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7638 }
7639 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7640 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7641 if (!SWIG_IsOK(res2)) {
7642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7643 }
7644 arg2 = reinterpret_cast< wxWindow * >(argp2);
7645 if (obj2) {
7646 ecode3 = SWIG_AsVal_int(obj2, &val3);
7647 if (!SWIG_IsOK(ecode3)) {
7648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7649 }
7650 arg3 = static_cast< int >(val3);
7651 }
7652 if (obj3) {
7653 {
7654 arg4 = wxString_in_helper(obj3);
7655 if (arg4 == NULL) SWIG_fail;
7656 temp4 = true;
7657 }
7658 }
7659 if (obj4) {
7660 {
7661 arg5 = &temp5;
7662 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7663 }
7664 }
7665 if (obj5) {
7666 {
7667 arg6 = &temp6;
7668 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7669 }
7670 }
7671 if (obj6) {
7672 ecode7 = SWIG_AsVal_long(obj6, &val7);
7673 if (!SWIG_IsOK(ecode7)) {
7674 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7675 }
7676 arg7 = static_cast< long >(val7);
7677 }
7678 if (obj7) {
7679 {
7680 arg8 = wxString_in_helper(obj7);
7681 if (arg8 == NULL) SWIG_fail;
7682 temp8 = true;
7683 }
7684 }
7685 {
7686 PyThreadState* __tstate = wxPyBeginAllowThreads();
7687 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7688 wxPyEndAllowThreads(__tstate);
7689 if (PyErr_Occurred()) SWIG_fail;
7690 }
7691 {
7692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7693 }
7694 {
7695 if (temp4)
7696 delete arg4;
7697 }
7698 {
7699 if (temp8)
7700 delete arg8;
7701 }
7702 return resultobj;
7703 fail:
7704 {
7705 if (temp4)
7706 delete arg4;
7707 }
7708 {
7709 if (temp8)
7710 delete arg8;
7711 }
7712 return NULL;
7713 }
7714
7715
7716 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7717 PyObject *resultobj = 0;
7718 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7719 SwigValueWrapper<wxVisualAttributes > result;
7720 int val1 ;
7721 int ecode1 = 0 ;
7722 PyObject * obj0 = 0 ;
7723 char * kwnames[] = {
7724 (char *) "variant", NULL
7725 };
7726
7727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7728 if (obj0) {
7729 ecode1 = SWIG_AsVal_int(obj0, &val1);
7730 if (!SWIG_IsOK(ecode1)) {
7731 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7732 }
7733 arg1 = static_cast< wxWindowVariant >(val1);
7734 }
7735 {
7736 if (!wxPyCheckForApp()) SWIG_fail;
7737 PyThreadState* __tstate = wxPyBeginAllowThreads();
7738 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7739 wxPyEndAllowThreads(__tstate);
7740 if (PyErr_Occurred()) SWIG_fail;
7741 }
7742 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7743 return resultobj;
7744 fail:
7745 return NULL;
7746 }
7747
7748
7749 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7750 PyObject *obj;
7751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7752 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7753 return SWIG_Py_Void();
7754 }
7755
7756 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7757 return SWIG_Python_InitShadowInstance(args);
7758 }
7759
7760 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7761 PyObject *resultobj = 0;
7762 wxWindow *arg1 = (wxWindow *) 0 ;
7763 int arg2 = (int) -1 ;
7764 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7765 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7766 wxSize const &arg4_defvalue = wxDefaultSize ;
7767 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7768 long arg5 = (long) wxLI_HORIZONTAL ;
7769 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
7770 wxString *arg6 = (wxString *) &arg6_defvalue ;
7771 wxStaticLine *result = 0 ;
7772 void *argp1 = 0 ;
7773 int res1 = 0 ;
7774 int val2 ;
7775 int ecode2 = 0 ;
7776 wxPoint temp3 ;
7777 wxSize temp4 ;
7778 long val5 ;
7779 int ecode5 = 0 ;
7780 bool temp6 = false ;
7781 PyObject * obj0 = 0 ;
7782 PyObject * obj1 = 0 ;
7783 PyObject * obj2 = 0 ;
7784 PyObject * obj3 = 0 ;
7785 PyObject * obj4 = 0 ;
7786 PyObject * obj5 = 0 ;
7787 char * kwnames[] = {
7788 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7789 };
7790
7791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7793 if (!SWIG_IsOK(res1)) {
7794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7795 }
7796 arg1 = reinterpret_cast< wxWindow * >(argp1);
7797 if (obj1) {
7798 ecode2 = SWIG_AsVal_int(obj1, &val2);
7799 if (!SWIG_IsOK(ecode2)) {
7800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7801 }
7802 arg2 = static_cast< int >(val2);
7803 }
7804 if (obj2) {
7805 {
7806 arg3 = &temp3;
7807 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7808 }
7809 }
7810 if (obj3) {
7811 {
7812 arg4 = &temp4;
7813 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7814 }
7815 }
7816 if (obj4) {
7817 ecode5 = SWIG_AsVal_long(obj4, &val5);
7818 if (!SWIG_IsOK(ecode5)) {
7819 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7820 }
7821 arg5 = static_cast< long >(val5);
7822 }
7823 if (obj5) {
7824 {
7825 arg6 = wxString_in_helper(obj5);
7826 if (arg6 == NULL) SWIG_fail;
7827 temp6 = true;
7828 }
7829 }
7830 {
7831 if (!wxPyCheckForApp()) SWIG_fail;
7832 PyThreadState* __tstate = wxPyBeginAllowThreads();
7833 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7834 wxPyEndAllowThreads(__tstate);
7835 if (PyErr_Occurred()) SWIG_fail;
7836 }
7837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7838 {
7839 if (temp6)
7840 delete arg6;
7841 }
7842 return resultobj;
7843 fail:
7844 {
7845 if (temp6)
7846 delete arg6;
7847 }
7848 return NULL;
7849 }
7850
7851
7852 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7853 PyObject *resultobj = 0;
7854 wxStaticLine *result = 0 ;
7855
7856 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7857 {
7858 if (!wxPyCheckForApp()) SWIG_fail;
7859 PyThreadState* __tstate = wxPyBeginAllowThreads();
7860 result = (wxStaticLine *)new wxStaticLine();
7861 wxPyEndAllowThreads(__tstate);
7862 if (PyErr_Occurred()) SWIG_fail;
7863 }
7864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7865 return resultobj;
7866 fail:
7867 return NULL;
7868 }
7869
7870
7871 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7872 PyObject *resultobj = 0;
7873 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7874 wxWindow *arg2 = (wxWindow *) 0 ;
7875 int arg3 = (int) -1 ;
7876 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7877 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7878 wxSize const &arg5_defvalue = wxDefaultSize ;
7879 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7880 long arg6 = (long) wxLI_HORIZONTAL ;
7881 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
7882 wxString *arg7 = (wxString *) &arg7_defvalue ;
7883 bool result;
7884 void *argp1 = 0 ;
7885 int res1 = 0 ;
7886 void *argp2 = 0 ;
7887 int res2 = 0 ;
7888 int val3 ;
7889 int ecode3 = 0 ;
7890 wxPoint temp4 ;
7891 wxSize temp5 ;
7892 long val6 ;
7893 int ecode6 = 0 ;
7894 bool temp7 = false ;
7895 PyObject * obj0 = 0 ;
7896 PyObject * obj1 = 0 ;
7897 PyObject * obj2 = 0 ;
7898 PyObject * obj3 = 0 ;
7899 PyObject * obj4 = 0 ;
7900 PyObject * obj5 = 0 ;
7901 PyObject * obj6 = 0 ;
7902 char * kwnames[] = {
7903 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7904 };
7905
7906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7908 if (!SWIG_IsOK(res1)) {
7909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7910 }
7911 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7912 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7913 if (!SWIG_IsOK(res2)) {
7914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7915 }
7916 arg2 = reinterpret_cast< wxWindow * >(argp2);
7917 if (obj2) {
7918 ecode3 = SWIG_AsVal_int(obj2, &val3);
7919 if (!SWIG_IsOK(ecode3)) {
7920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7921 }
7922 arg3 = static_cast< int >(val3);
7923 }
7924 if (obj3) {
7925 {
7926 arg4 = &temp4;
7927 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7928 }
7929 }
7930 if (obj4) {
7931 {
7932 arg5 = &temp5;
7933 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7934 }
7935 }
7936 if (obj5) {
7937 ecode6 = SWIG_AsVal_long(obj5, &val6);
7938 if (!SWIG_IsOK(ecode6)) {
7939 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7940 }
7941 arg6 = static_cast< long >(val6);
7942 }
7943 if (obj6) {
7944 {
7945 arg7 = wxString_in_helper(obj6);
7946 if (arg7 == NULL) SWIG_fail;
7947 temp7 = true;
7948 }
7949 }
7950 {
7951 PyThreadState* __tstate = wxPyBeginAllowThreads();
7952 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7953 wxPyEndAllowThreads(__tstate);
7954 if (PyErr_Occurred()) SWIG_fail;
7955 }
7956 {
7957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7958 }
7959 {
7960 if (temp7)
7961 delete arg7;
7962 }
7963 return resultobj;
7964 fail:
7965 {
7966 if (temp7)
7967 delete arg7;
7968 }
7969 return NULL;
7970 }
7971
7972
7973 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7974 PyObject *resultobj = 0;
7975 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7976 bool result;
7977 void *argp1 = 0 ;
7978 int res1 = 0 ;
7979 PyObject *swig_obj[1] ;
7980
7981 if (!args) SWIG_fail;
7982 swig_obj[0] = args;
7983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7984 if (!SWIG_IsOK(res1)) {
7985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7986 }
7987 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7988 {
7989 PyThreadState* __tstate = wxPyBeginAllowThreads();
7990 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7991 wxPyEndAllowThreads(__tstate);
7992 if (PyErr_Occurred()) SWIG_fail;
7993 }
7994 {
7995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7996 }
7997 return resultobj;
7998 fail:
7999 return NULL;
8000 }
8001
8002
8003 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8004 PyObject *resultobj = 0;
8005 int result;
8006
8007 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8008 {
8009 PyThreadState* __tstate = wxPyBeginAllowThreads();
8010 result = (int)wxStaticLine::GetDefaultSize();
8011 wxPyEndAllowThreads(__tstate);
8012 if (PyErr_Occurred()) SWIG_fail;
8013 }
8014 resultobj = SWIG_From_int(static_cast< int >(result));
8015 return resultobj;
8016 fail:
8017 return NULL;
8018 }
8019
8020
8021 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8022 PyObject *resultobj = 0;
8023 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8024 SwigValueWrapper<wxVisualAttributes > result;
8025 int val1 ;
8026 int ecode1 = 0 ;
8027 PyObject * obj0 = 0 ;
8028 char * kwnames[] = {
8029 (char *) "variant", NULL
8030 };
8031
8032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8033 if (obj0) {
8034 ecode1 = SWIG_AsVal_int(obj0, &val1);
8035 if (!SWIG_IsOK(ecode1)) {
8036 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8037 }
8038 arg1 = static_cast< wxWindowVariant >(val1);
8039 }
8040 {
8041 if (!wxPyCheckForApp()) SWIG_fail;
8042 PyThreadState* __tstate = wxPyBeginAllowThreads();
8043 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8044 wxPyEndAllowThreads(__tstate);
8045 if (PyErr_Occurred()) SWIG_fail;
8046 }
8047 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8048 return resultobj;
8049 fail:
8050 return NULL;
8051 }
8052
8053
8054 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8055 PyObject *obj;
8056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8057 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8058 return SWIG_Py_Void();
8059 }
8060
8061 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8062 return SWIG_Python_InitShadowInstance(args);
8063 }
8064
8065 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8066 PyObject *resultobj = 0;
8067 wxWindow *arg1 = (wxWindow *) 0 ;
8068 int arg2 = (int) -1 ;
8069 wxString const &arg3_defvalue = wxPyEmptyString ;
8070 wxString *arg3 = (wxString *) &arg3_defvalue ;
8071 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8072 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8073 wxSize const &arg5_defvalue = wxDefaultSize ;
8074 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8075 long arg6 = (long) 0 ;
8076 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8077 wxString *arg7 = (wxString *) &arg7_defvalue ;
8078 wxStaticText *result = 0 ;
8079 void *argp1 = 0 ;
8080 int res1 = 0 ;
8081 int val2 ;
8082 int ecode2 = 0 ;
8083 bool temp3 = false ;
8084 wxPoint temp4 ;
8085 wxSize temp5 ;
8086 long val6 ;
8087 int ecode6 = 0 ;
8088 bool temp7 = false ;
8089 PyObject * obj0 = 0 ;
8090 PyObject * obj1 = 0 ;
8091 PyObject * obj2 = 0 ;
8092 PyObject * obj3 = 0 ;
8093 PyObject * obj4 = 0 ;
8094 PyObject * obj5 = 0 ;
8095 PyObject * obj6 = 0 ;
8096 char * kwnames[] = {
8097 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8098 };
8099
8100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8102 if (!SWIG_IsOK(res1)) {
8103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8104 }
8105 arg1 = reinterpret_cast< wxWindow * >(argp1);
8106 if (obj1) {
8107 ecode2 = SWIG_AsVal_int(obj1, &val2);
8108 if (!SWIG_IsOK(ecode2)) {
8109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8110 }
8111 arg2 = static_cast< int >(val2);
8112 }
8113 if (obj2) {
8114 {
8115 arg3 = wxString_in_helper(obj2);
8116 if (arg3 == NULL) SWIG_fail;
8117 temp3 = true;
8118 }
8119 }
8120 if (obj3) {
8121 {
8122 arg4 = &temp4;
8123 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8124 }
8125 }
8126 if (obj4) {
8127 {
8128 arg5 = &temp5;
8129 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8130 }
8131 }
8132 if (obj5) {
8133 ecode6 = SWIG_AsVal_long(obj5, &val6);
8134 if (!SWIG_IsOK(ecode6)) {
8135 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8136 }
8137 arg6 = static_cast< long >(val6);
8138 }
8139 if (obj6) {
8140 {
8141 arg7 = wxString_in_helper(obj6);
8142 if (arg7 == NULL) SWIG_fail;
8143 temp7 = true;
8144 }
8145 }
8146 {
8147 if (!wxPyCheckForApp()) SWIG_fail;
8148 PyThreadState* __tstate = wxPyBeginAllowThreads();
8149 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8150 wxPyEndAllowThreads(__tstate);
8151 if (PyErr_Occurred()) SWIG_fail;
8152 }
8153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8154 {
8155 if (temp3)
8156 delete arg3;
8157 }
8158 {
8159 if (temp7)
8160 delete arg7;
8161 }
8162 return resultobj;
8163 fail:
8164 {
8165 if (temp3)
8166 delete arg3;
8167 }
8168 {
8169 if (temp7)
8170 delete arg7;
8171 }
8172 return NULL;
8173 }
8174
8175
8176 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8177 PyObject *resultobj = 0;
8178 wxStaticText *result = 0 ;
8179
8180 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8181 {
8182 if (!wxPyCheckForApp()) SWIG_fail;
8183 PyThreadState* __tstate = wxPyBeginAllowThreads();
8184 result = (wxStaticText *)new wxStaticText();
8185 wxPyEndAllowThreads(__tstate);
8186 if (PyErr_Occurred()) SWIG_fail;
8187 }
8188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8189 return resultobj;
8190 fail:
8191 return NULL;
8192 }
8193
8194
8195 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8196 PyObject *resultobj = 0;
8197 wxStaticText *arg1 = (wxStaticText *) 0 ;
8198 wxWindow *arg2 = (wxWindow *) 0 ;
8199 int arg3 = (int) -1 ;
8200 wxString const &arg4_defvalue = wxPyEmptyString ;
8201 wxString *arg4 = (wxString *) &arg4_defvalue ;
8202 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8203 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8204 wxSize const &arg6_defvalue = wxDefaultSize ;
8205 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8206 long arg7 = (long) 0 ;
8207 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8208 wxString *arg8 = (wxString *) &arg8_defvalue ;
8209 bool result;
8210 void *argp1 = 0 ;
8211 int res1 = 0 ;
8212 void *argp2 = 0 ;
8213 int res2 = 0 ;
8214 int val3 ;
8215 int ecode3 = 0 ;
8216 bool temp4 = false ;
8217 wxPoint temp5 ;
8218 wxSize temp6 ;
8219 long val7 ;
8220 int ecode7 = 0 ;
8221 bool temp8 = false ;
8222 PyObject * obj0 = 0 ;
8223 PyObject * obj1 = 0 ;
8224 PyObject * obj2 = 0 ;
8225 PyObject * obj3 = 0 ;
8226 PyObject * obj4 = 0 ;
8227 PyObject * obj5 = 0 ;
8228 PyObject * obj6 = 0 ;
8229 PyObject * obj7 = 0 ;
8230 char * kwnames[] = {
8231 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8232 };
8233
8234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8236 if (!SWIG_IsOK(res1)) {
8237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8238 }
8239 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8240 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8241 if (!SWIG_IsOK(res2)) {
8242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8243 }
8244 arg2 = reinterpret_cast< wxWindow * >(argp2);
8245 if (obj2) {
8246 ecode3 = SWIG_AsVal_int(obj2, &val3);
8247 if (!SWIG_IsOK(ecode3)) {
8248 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8249 }
8250 arg3 = static_cast< int >(val3);
8251 }
8252 if (obj3) {
8253 {
8254 arg4 = wxString_in_helper(obj3);
8255 if (arg4 == NULL) SWIG_fail;
8256 temp4 = true;
8257 }
8258 }
8259 if (obj4) {
8260 {
8261 arg5 = &temp5;
8262 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8263 }
8264 }
8265 if (obj5) {
8266 {
8267 arg6 = &temp6;
8268 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8269 }
8270 }
8271 if (obj6) {
8272 ecode7 = SWIG_AsVal_long(obj6, &val7);
8273 if (!SWIG_IsOK(ecode7)) {
8274 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8275 }
8276 arg7 = static_cast< long >(val7);
8277 }
8278 if (obj7) {
8279 {
8280 arg8 = wxString_in_helper(obj7);
8281 if (arg8 == NULL) SWIG_fail;
8282 temp8 = true;
8283 }
8284 }
8285 {
8286 PyThreadState* __tstate = wxPyBeginAllowThreads();
8287 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8288 wxPyEndAllowThreads(__tstate);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 {
8292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8293 }
8294 {
8295 if (temp4)
8296 delete arg4;
8297 }
8298 {
8299 if (temp8)
8300 delete arg8;
8301 }
8302 return resultobj;
8303 fail:
8304 {
8305 if (temp4)
8306 delete arg4;
8307 }
8308 {
8309 if (temp8)
8310 delete arg8;
8311 }
8312 return NULL;
8313 }
8314
8315
8316 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8317 PyObject *resultobj = 0;
8318 wxStaticText *arg1 = (wxStaticText *) 0 ;
8319 int arg2 ;
8320 void *argp1 = 0 ;
8321 int res1 = 0 ;
8322 int val2 ;
8323 int ecode2 = 0 ;
8324 PyObject * obj0 = 0 ;
8325 PyObject * obj1 = 0 ;
8326 char * kwnames[] = {
8327 (char *) "self",(char *) "width", NULL
8328 };
8329
8330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8332 if (!SWIG_IsOK(res1)) {
8333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8334 }
8335 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8336 ecode2 = SWIG_AsVal_int(obj1, &val2);
8337 if (!SWIG_IsOK(ecode2)) {
8338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8339 }
8340 arg2 = static_cast< int >(val2);
8341 {
8342 PyThreadState* __tstate = wxPyBeginAllowThreads();
8343 (arg1)->Wrap(arg2);
8344 wxPyEndAllowThreads(__tstate);
8345 if (PyErr_Occurred()) SWIG_fail;
8346 }
8347 resultobj = SWIG_Py_Void();
8348 return resultobj;
8349 fail:
8350 return NULL;
8351 }
8352
8353
8354 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8355 PyObject *resultobj = 0;
8356 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8357 SwigValueWrapper<wxVisualAttributes > result;
8358 int val1 ;
8359 int ecode1 = 0 ;
8360 PyObject * obj0 = 0 ;
8361 char * kwnames[] = {
8362 (char *) "variant", NULL
8363 };
8364
8365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8366 if (obj0) {
8367 ecode1 = SWIG_AsVal_int(obj0, &val1);
8368 if (!SWIG_IsOK(ecode1)) {
8369 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8370 }
8371 arg1 = static_cast< wxWindowVariant >(val1);
8372 }
8373 {
8374 if (!wxPyCheckForApp()) SWIG_fail;
8375 PyThreadState* __tstate = wxPyBeginAllowThreads();
8376 result = wxStaticText::GetClassDefaultAttributes(arg1);
8377 wxPyEndAllowThreads(__tstate);
8378 if (PyErr_Occurred()) SWIG_fail;
8379 }
8380 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8381 return resultobj;
8382 fail:
8383 return NULL;
8384 }
8385
8386
8387 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8388 PyObject *obj;
8389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8390 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8391 return SWIG_Py_Void();
8392 }
8393
8394 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8395 return SWIG_Python_InitShadowInstance(args);
8396 }
8397
8398 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8399 PyObject *resultobj = 0;
8400 wxWindow *arg1 = (wxWindow *) 0 ;
8401 int arg2 = (int) -1 ;
8402 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8403 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8406 wxSize const &arg5_defvalue = wxDefaultSize ;
8407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8408 long arg6 = (long) 0 ;
8409 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8410 wxString *arg7 = (wxString *) &arg7_defvalue ;
8411 wxStaticBitmap *result = 0 ;
8412 void *argp1 = 0 ;
8413 int res1 = 0 ;
8414 int val2 ;
8415 int ecode2 = 0 ;
8416 void *argp3 = 0 ;
8417 int res3 = 0 ;
8418 wxPoint temp4 ;
8419 wxSize temp5 ;
8420 long val6 ;
8421 int ecode6 = 0 ;
8422 bool temp7 = false ;
8423 PyObject * obj0 = 0 ;
8424 PyObject * obj1 = 0 ;
8425 PyObject * obj2 = 0 ;
8426 PyObject * obj3 = 0 ;
8427 PyObject * obj4 = 0 ;
8428 PyObject * obj5 = 0 ;
8429 PyObject * obj6 = 0 ;
8430 char * kwnames[] = {
8431 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8432 };
8433
8434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8436 if (!SWIG_IsOK(res1)) {
8437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8438 }
8439 arg1 = reinterpret_cast< wxWindow * >(argp1);
8440 if (obj1) {
8441 ecode2 = SWIG_AsVal_int(obj1, &val2);
8442 if (!SWIG_IsOK(ecode2)) {
8443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8444 }
8445 arg2 = static_cast< int >(val2);
8446 }
8447 if (obj2) {
8448 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8449 if (!SWIG_IsOK(res3)) {
8450 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8451 }
8452 if (!argp3) {
8453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8454 }
8455 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8456 }
8457 if (obj3) {
8458 {
8459 arg4 = &temp4;
8460 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8461 }
8462 }
8463 if (obj4) {
8464 {
8465 arg5 = &temp5;
8466 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8467 }
8468 }
8469 if (obj5) {
8470 ecode6 = SWIG_AsVal_long(obj5, &val6);
8471 if (!SWIG_IsOK(ecode6)) {
8472 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8473 }
8474 arg6 = static_cast< long >(val6);
8475 }
8476 if (obj6) {
8477 {
8478 arg7 = wxString_in_helper(obj6);
8479 if (arg7 == NULL) SWIG_fail;
8480 temp7 = true;
8481 }
8482 }
8483 {
8484 if (!wxPyCheckForApp()) SWIG_fail;
8485 PyThreadState* __tstate = wxPyBeginAllowThreads();
8486 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8487 wxPyEndAllowThreads(__tstate);
8488 if (PyErr_Occurred()) SWIG_fail;
8489 }
8490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8491 {
8492 if (temp7)
8493 delete arg7;
8494 }
8495 return resultobj;
8496 fail:
8497 {
8498 if (temp7)
8499 delete arg7;
8500 }
8501 return NULL;
8502 }
8503
8504
8505 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8506 PyObject *resultobj = 0;
8507 wxStaticBitmap *result = 0 ;
8508
8509 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8510 {
8511 if (!wxPyCheckForApp()) SWIG_fail;
8512 PyThreadState* __tstate = wxPyBeginAllowThreads();
8513 result = (wxStaticBitmap *)new wxStaticBitmap();
8514 wxPyEndAllowThreads(__tstate);
8515 if (PyErr_Occurred()) SWIG_fail;
8516 }
8517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8518 return resultobj;
8519 fail:
8520 return NULL;
8521 }
8522
8523
8524 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8525 PyObject *resultobj = 0;
8526 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8527 wxWindow *arg2 = (wxWindow *) 0 ;
8528 int arg3 = (int) -1 ;
8529 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8530 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8531 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8532 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8533 wxSize const &arg6_defvalue = wxDefaultSize ;
8534 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8535 long arg7 = (long) 0 ;
8536 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8537 wxString *arg8 = (wxString *) &arg8_defvalue ;
8538 bool result;
8539 void *argp1 = 0 ;
8540 int res1 = 0 ;
8541 void *argp2 = 0 ;
8542 int res2 = 0 ;
8543 int val3 ;
8544 int ecode3 = 0 ;
8545 void *argp4 = 0 ;
8546 int res4 = 0 ;
8547 wxPoint temp5 ;
8548 wxSize temp6 ;
8549 long val7 ;
8550 int ecode7 = 0 ;
8551 bool temp8 = false ;
8552 PyObject * obj0 = 0 ;
8553 PyObject * obj1 = 0 ;
8554 PyObject * obj2 = 0 ;
8555 PyObject * obj3 = 0 ;
8556 PyObject * obj4 = 0 ;
8557 PyObject * obj5 = 0 ;
8558 PyObject * obj6 = 0 ;
8559 PyObject * obj7 = 0 ;
8560 char * kwnames[] = {
8561 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8562 };
8563
8564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8566 if (!SWIG_IsOK(res1)) {
8567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8568 }
8569 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8570 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8571 if (!SWIG_IsOK(res2)) {
8572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8573 }
8574 arg2 = reinterpret_cast< wxWindow * >(argp2);
8575 if (obj2) {
8576 ecode3 = SWIG_AsVal_int(obj2, &val3);
8577 if (!SWIG_IsOK(ecode3)) {
8578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8579 }
8580 arg3 = static_cast< int >(val3);
8581 }
8582 if (obj3) {
8583 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8584 if (!SWIG_IsOK(res4)) {
8585 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8586 }
8587 if (!argp4) {
8588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8589 }
8590 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8591 }
8592 if (obj4) {
8593 {
8594 arg5 = &temp5;
8595 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8596 }
8597 }
8598 if (obj5) {
8599 {
8600 arg6 = &temp6;
8601 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8602 }
8603 }
8604 if (obj6) {
8605 ecode7 = SWIG_AsVal_long(obj6, &val7);
8606 if (!SWIG_IsOK(ecode7)) {
8607 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8608 }
8609 arg7 = static_cast< long >(val7);
8610 }
8611 if (obj7) {
8612 {
8613 arg8 = wxString_in_helper(obj7);
8614 if (arg8 == NULL) SWIG_fail;
8615 temp8 = true;
8616 }
8617 }
8618 {
8619 PyThreadState* __tstate = wxPyBeginAllowThreads();
8620 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8621 wxPyEndAllowThreads(__tstate);
8622 if (PyErr_Occurred()) SWIG_fail;
8623 }
8624 {
8625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8626 }
8627 {
8628 if (temp8)
8629 delete arg8;
8630 }
8631 return resultobj;
8632 fail:
8633 {
8634 if (temp8)
8635 delete arg8;
8636 }
8637 return NULL;
8638 }
8639
8640
8641 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8642 PyObject *resultobj = 0;
8643 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8644 wxBitmap result;
8645 void *argp1 = 0 ;
8646 int res1 = 0 ;
8647 PyObject *swig_obj[1] ;
8648
8649 if (!args) SWIG_fail;
8650 swig_obj[0] = args;
8651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8652 if (!SWIG_IsOK(res1)) {
8653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8654 }
8655 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8656 {
8657 PyThreadState* __tstate = wxPyBeginAllowThreads();
8658 result = (arg1)->GetBitmap();
8659 wxPyEndAllowThreads(__tstate);
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8663 return resultobj;
8664 fail:
8665 return NULL;
8666 }
8667
8668
8669 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8670 PyObject *resultobj = 0;
8671 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8672 wxBitmap *arg2 = 0 ;
8673 void *argp1 = 0 ;
8674 int res1 = 0 ;
8675 void *argp2 = 0 ;
8676 int res2 = 0 ;
8677 PyObject * obj0 = 0 ;
8678 PyObject * obj1 = 0 ;
8679 char * kwnames[] = {
8680 (char *) "self",(char *) "bitmap", NULL
8681 };
8682
8683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8685 if (!SWIG_IsOK(res1)) {
8686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8687 }
8688 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8689 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8690 if (!SWIG_IsOK(res2)) {
8691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8692 }
8693 if (!argp2) {
8694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8695 }
8696 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8697 {
8698 PyThreadState* __tstate = wxPyBeginAllowThreads();
8699 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8700 wxPyEndAllowThreads(__tstate);
8701 if (PyErr_Occurred()) SWIG_fail;
8702 }
8703 resultobj = SWIG_Py_Void();
8704 return resultobj;
8705 fail:
8706 return NULL;
8707 }
8708
8709
8710 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8711 PyObject *resultobj = 0;
8712 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8713 wxIcon *arg2 = 0 ;
8714 void *argp1 = 0 ;
8715 int res1 = 0 ;
8716 void *argp2 = 0 ;
8717 int res2 = 0 ;
8718 PyObject * obj0 = 0 ;
8719 PyObject * obj1 = 0 ;
8720 char * kwnames[] = {
8721 (char *) "self",(char *) "icon", NULL
8722 };
8723
8724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8726 if (!SWIG_IsOK(res1)) {
8727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8728 }
8729 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8730 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8731 if (!SWIG_IsOK(res2)) {
8732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8733 }
8734 if (!argp2) {
8735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8736 }
8737 arg2 = reinterpret_cast< wxIcon * >(argp2);
8738 {
8739 PyThreadState* __tstate = wxPyBeginAllowThreads();
8740 (arg1)->SetIcon((wxIcon const &)*arg2);
8741 wxPyEndAllowThreads(__tstate);
8742 if (PyErr_Occurred()) SWIG_fail;
8743 }
8744 resultobj = SWIG_Py_Void();
8745 return resultobj;
8746 fail:
8747 return NULL;
8748 }
8749
8750
8751 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8752 PyObject *resultobj = 0;
8753 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8754 SwigValueWrapper<wxVisualAttributes > result;
8755 int val1 ;
8756 int ecode1 = 0 ;
8757 PyObject * obj0 = 0 ;
8758 char * kwnames[] = {
8759 (char *) "variant", NULL
8760 };
8761
8762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8763 if (obj0) {
8764 ecode1 = SWIG_AsVal_int(obj0, &val1);
8765 if (!SWIG_IsOK(ecode1)) {
8766 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8767 }
8768 arg1 = static_cast< wxWindowVariant >(val1);
8769 }
8770 {
8771 if (!wxPyCheckForApp()) SWIG_fail;
8772 PyThreadState* __tstate = wxPyBeginAllowThreads();
8773 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8774 wxPyEndAllowThreads(__tstate);
8775 if (PyErr_Occurred()) SWIG_fail;
8776 }
8777 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8778 return resultobj;
8779 fail:
8780 return NULL;
8781 }
8782
8783
8784 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8785 PyObject *obj;
8786 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8787 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8788 return SWIG_Py_Void();
8789 }
8790
8791 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8792 return SWIG_Python_InitShadowInstance(args);
8793 }
8794
8795 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8796 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8797 return 1;
8798 }
8799
8800
8801 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8802 PyObject *pyobj = 0;
8803
8804 {
8805 #if wxUSE_UNICODE
8806 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8807 #else
8808 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8809 #endif
8810 }
8811 return pyobj;
8812 }
8813
8814
8815 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8816 PyObject *resultobj = 0;
8817 wxWindow *arg1 = (wxWindow *) 0 ;
8818 int arg2 = (int) -1 ;
8819 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8820 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8821 wxSize const &arg4_defvalue = wxDefaultSize ;
8822 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8823 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8824 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8825 long arg6 = (long) 0 ;
8826 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8827 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8828 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8829 wxString *arg8 = (wxString *) &arg8_defvalue ;
8830 wxListBox *result = 0 ;
8831 void *argp1 = 0 ;
8832 int res1 = 0 ;
8833 int val2 ;
8834 int ecode2 = 0 ;
8835 wxPoint temp3 ;
8836 wxSize temp4 ;
8837 bool temp5 = false ;
8838 long val6 ;
8839 int ecode6 = 0 ;
8840 void *argp7 = 0 ;
8841 int res7 = 0 ;
8842 bool temp8 = false ;
8843 PyObject * obj0 = 0 ;
8844 PyObject * obj1 = 0 ;
8845 PyObject * obj2 = 0 ;
8846 PyObject * obj3 = 0 ;
8847 PyObject * obj4 = 0 ;
8848 PyObject * obj5 = 0 ;
8849 PyObject * obj6 = 0 ;
8850 PyObject * obj7 = 0 ;
8851 char * kwnames[] = {
8852 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8853 };
8854
8855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8857 if (!SWIG_IsOK(res1)) {
8858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8859 }
8860 arg1 = reinterpret_cast< wxWindow * >(argp1);
8861 if (obj1) {
8862 ecode2 = SWIG_AsVal_int(obj1, &val2);
8863 if (!SWIG_IsOK(ecode2)) {
8864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8865 }
8866 arg2 = static_cast< int >(val2);
8867 }
8868 if (obj2) {
8869 {
8870 arg3 = &temp3;
8871 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8872 }
8873 }
8874 if (obj3) {
8875 {
8876 arg4 = &temp4;
8877 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8878 }
8879 }
8880 if (obj4) {
8881 {
8882 if (! PySequence_Check(obj4)) {
8883 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8884 SWIG_fail;
8885 }
8886 arg5 = new wxArrayString;
8887 temp5 = true;
8888 int i, len=PySequence_Length(obj4);
8889 for (i=0; i<len; i++) {
8890 PyObject* item = PySequence_GetItem(obj4, i);
8891 wxString* s = wxString_in_helper(item);
8892 if (PyErr_Occurred()) SWIG_fail;
8893 arg5->Add(*s);
8894 delete s;
8895 Py_DECREF(item);
8896 }
8897 }
8898 }
8899 if (obj5) {
8900 ecode6 = SWIG_AsVal_long(obj5, &val6);
8901 if (!SWIG_IsOK(ecode6)) {
8902 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8903 }
8904 arg6 = static_cast< long >(val6);
8905 }
8906 if (obj6) {
8907 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8908 if (!SWIG_IsOK(res7)) {
8909 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8910 }
8911 if (!argp7) {
8912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8913 }
8914 arg7 = reinterpret_cast< wxValidator * >(argp7);
8915 }
8916 if (obj7) {
8917 {
8918 arg8 = wxString_in_helper(obj7);
8919 if (arg8 == NULL) SWIG_fail;
8920 temp8 = true;
8921 }
8922 }
8923 {
8924 if (!wxPyCheckForApp()) SWIG_fail;
8925 PyThreadState* __tstate = wxPyBeginAllowThreads();
8926 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8927 wxPyEndAllowThreads(__tstate);
8928 if (PyErr_Occurred()) SWIG_fail;
8929 }
8930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8931 {
8932 if (temp5) delete arg5;
8933 }
8934 {
8935 if (temp8)
8936 delete arg8;
8937 }
8938 return resultobj;
8939 fail:
8940 {
8941 if (temp5) delete arg5;
8942 }
8943 {
8944 if (temp8)
8945 delete arg8;
8946 }
8947 return NULL;
8948 }
8949
8950
8951 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8952 PyObject *resultobj = 0;
8953 wxListBox *result = 0 ;
8954
8955 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8956 {
8957 if (!wxPyCheckForApp()) SWIG_fail;
8958 PyThreadState* __tstate = wxPyBeginAllowThreads();
8959 result = (wxListBox *)new wxListBox();
8960 wxPyEndAllowThreads(__tstate);
8961 if (PyErr_Occurred()) SWIG_fail;
8962 }
8963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8964 return resultobj;
8965 fail:
8966 return NULL;
8967 }
8968
8969
8970 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8971 PyObject *resultobj = 0;
8972 wxListBox *arg1 = (wxListBox *) 0 ;
8973 wxWindow *arg2 = (wxWindow *) 0 ;
8974 int arg3 = (int) -1 ;
8975 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8976 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8977 wxSize const &arg5_defvalue = wxDefaultSize ;
8978 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8979 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8980 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8981 long arg7 = (long) 0 ;
8982 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8983 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8984 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8985 wxString *arg9 = (wxString *) &arg9_defvalue ;
8986 bool result;
8987 void *argp1 = 0 ;
8988 int res1 = 0 ;
8989 void *argp2 = 0 ;
8990 int res2 = 0 ;
8991 int val3 ;
8992 int ecode3 = 0 ;
8993 wxPoint temp4 ;
8994 wxSize temp5 ;
8995 bool temp6 = false ;
8996 long val7 ;
8997 int ecode7 = 0 ;
8998 void *argp8 = 0 ;
8999 int res8 = 0 ;
9000 bool temp9 = false ;
9001 PyObject * obj0 = 0 ;
9002 PyObject * obj1 = 0 ;
9003 PyObject * obj2 = 0 ;
9004 PyObject * obj3 = 0 ;
9005 PyObject * obj4 = 0 ;
9006 PyObject * obj5 = 0 ;
9007 PyObject * obj6 = 0 ;
9008 PyObject * obj7 = 0 ;
9009 PyObject * obj8 = 0 ;
9010 char * kwnames[] = {
9011 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9012 };
9013
9014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9016 if (!SWIG_IsOK(res1)) {
9017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9018 }
9019 arg1 = reinterpret_cast< wxListBox * >(argp1);
9020 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9021 if (!SWIG_IsOK(res2)) {
9022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9023 }
9024 arg2 = reinterpret_cast< wxWindow * >(argp2);
9025 if (obj2) {
9026 ecode3 = SWIG_AsVal_int(obj2, &val3);
9027 if (!SWIG_IsOK(ecode3)) {
9028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9029 }
9030 arg3 = static_cast< int >(val3);
9031 }
9032 if (obj3) {
9033 {
9034 arg4 = &temp4;
9035 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9036 }
9037 }
9038 if (obj4) {
9039 {
9040 arg5 = &temp5;
9041 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9042 }
9043 }
9044 if (obj5) {
9045 {
9046 if (! PySequence_Check(obj5)) {
9047 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9048 SWIG_fail;
9049 }
9050 arg6 = new wxArrayString;
9051 temp6 = true;
9052 int i, len=PySequence_Length(obj5);
9053 for (i=0; i<len; i++) {
9054 PyObject* item = PySequence_GetItem(obj5, i);
9055 wxString* s = wxString_in_helper(item);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 arg6->Add(*s);
9058 delete s;
9059 Py_DECREF(item);
9060 }
9061 }
9062 }
9063 if (obj6) {
9064 ecode7 = SWIG_AsVal_long(obj6, &val7);
9065 if (!SWIG_IsOK(ecode7)) {
9066 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9067 }
9068 arg7 = static_cast< long >(val7);
9069 }
9070 if (obj7) {
9071 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9072 if (!SWIG_IsOK(res8)) {
9073 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9074 }
9075 if (!argp8) {
9076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9077 }
9078 arg8 = reinterpret_cast< wxValidator * >(argp8);
9079 }
9080 if (obj8) {
9081 {
9082 arg9 = wxString_in_helper(obj8);
9083 if (arg9 == NULL) SWIG_fail;
9084 temp9 = true;
9085 }
9086 }
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 {
9094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9095 }
9096 {
9097 if (temp6) delete arg6;
9098 }
9099 {
9100 if (temp9)
9101 delete arg9;
9102 }
9103 return resultobj;
9104 fail:
9105 {
9106 if (temp6) delete arg6;
9107 }
9108 {
9109 if (temp9)
9110 delete arg9;
9111 }
9112 return NULL;
9113 }
9114
9115
9116 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9117 PyObject *resultobj = 0;
9118 wxListBox *arg1 = (wxListBox *) 0 ;
9119 wxString *arg2 = 0 ;
9120 int arg3 ;
9121 PyObject *arg4 = (PyObject *) NULL ;
9122 void *argp1 = 0 ;
9123 int res1 = 0 ;
9124 bool temp2 = false ;
9125 int val3 ;
9126 int ecode3 = 0 ;
9127 PyObject * obj0 = 0 ;
9128 PyObject * obj1 = 0 ;
9129 PyObject * obj2 = 0 ;
9130 PyObject * obj3 = 0 ;
9131 char * kwnames[] = {
9132 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9133 };
9134
9135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9137 if (!SWIG_IsOK(res1)) {
9138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9139 }
9140 arg1 = reinterpret_cast< wxListBox * >(argp1);
9141 {
9142 arg2 = wxString_in_helper(obj1);
9143 if (arg2 == NULL) SWIG_fail;
9144 temp2 = true;
9145 }
9146 ecode3 = SWIG_AsVal_int(obj2, &val3);
9147 if (!SWIG_IsOK(ecode3)) {
9148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9149 }
9150 arg3 = static_cast< int >(val3);
9151 if (obj3) {
9152 arg4 = obj3;
9153 }
9154 {
9155 PyThreadState* __tstate = wxPyBeginAllowThreads();
9156 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9157 wxPyEndAllowThreads(__tstate);
9158 if (PyErr_Occurred()) SWIG_fail;
9159 }
9160 resultobj = SWIG_Py_Void();
9161 {
9162 if (temp2)
9163 delete arg2;
9164 }
9165 return resultobj;
9166 fail:
9167 {
9168 if (temp2)
9169 delete arg2;
9170 }
9171 return NULL;
9172 }
9173
9174
9175 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9176 PyObject *resultobj = 0;
9177 wxListBox *arg1 = (wxListBox *) 0 ;
9178 wxArrayString *arg2 = 0 ;
9179 unsigned int arg3 ;
9180 void *argp1 = 0 ;
9181 int res1 = 0 ;
9182 bool temp2 = false ;
9183 unsigned int val3 ;
9184 int ecode3 = 0 ;
9185 PyObject * obj0 = 0 ;
9186 PyObject * obj1 = 0 ;
9187 PyObject * obj2 = 0 ;
9188 char * kwnames[] = {
9189 (char *) "self",(char *) "items",(char *) "pos", NULL
9190 };
9191
9192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9194 if (!SWIG_IsOK(res1)) {
9195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9196 }
9197 arg1 = reinterpret_cast< wxListBox * >(argp1);
9198 {
9199 if (! PySequence_Check(obj1)) {
9200 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9201 SWIG_fail;
9202 }
9203 arg2 = new wxArrayString;
9204 temp2 = true;
9205 int i, len=PySequence_Length(obj1);
9206 for (i=0; i<len; i++) {
9207 PyObject* item = PySequence_GetItem(obj1, i);
9208 wxString* s = wxString_in_helper(item);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 arg2->Add(*s);
9211 delete s;
9212 Py_DECREF(item);
9213 }
9214 }
9215 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9216 if (!SWIG_IsOK(ecode3)) {
9217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9218 }
9219 arg3 = static_cast< unsigned int >(val3);
9220 {
9221 PyThreadState* __tstate = wxPyBeginAllowThreads();
9222 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9223 wxPyEndAllowThreads(__tstate);
9224 if (PyErr_Occurred()) SWIG_fail;
9225 }
9226 resultobj = SWIG_Py_Void();
9227 {
9228 if (temp2) delete arg2;
9229 }
9230 return resultobj;
9231 fail:
9232 {
9233 if (temp2) delete arg2;
9234 }
9235 return NULL;
9236 }
9237
9238
9239 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9240 PyObject *resultobj = 0;
9241 wxListBox *arg1 = (wxListBox *) 0 ;
9242 wxArrayString *arg2 = 0 ;
9243 void *argp1 = 0 ;
9244 int res1 = 0 ;
9245 bool temp2 = false ;
9246 PyObject * obj0 = 0 ;
9247 PyObject * obj1 = 0 ;
9248 char * kwnames[] = {
9249 (char *) "self",(char *) "items", NULL
9250 };
9251
9252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9254 if (!SWIG_IsOK(res1)) {
9255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9256 }
9257 arg1 = reinterpret_cast< wxListBox * >(argp1);
9258 {
9259 if (! PySequence_Check(obj1)) {
9260 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9261 SWIG_fail;
9262 }
9263 arg2 = new wxArrayString;
9264 temp2 = true;
9265 int i, len=PySequence_Length(obj1);
9266 for (i=0; i<len; i++) {
9267 PyObject* item = PySequence_GetItem(obj1, i);
9268 wxString* s = wxString_in_helper(item);
9269 if (PyErr_Occurred()) SWIG_fail;
9270 arg2->Add(*s);
9271 delete s;
9272 Py_DECREF(item);
9273 }
9274 }
9275 {
9276 PyThreadState* __tstate = wxPyBeginAllowThreads();
9277 (arg1)->Set((wxArrayString const &)*arg2);
9278 wxPyEndAllowThreads(__tstate);
9279 if (PyErr_Occurred()) SWIG_fail;
9280 }
9281 resultobj = SWIG_Py_Void();
9282 {
9283 if (temp2) delete arg2;
9284 }
9285 return resultobj;
9286 fail:
9287 {
9288 if (temp2) delete arg2;
9289 }
9290 return NULL;
9291 }
9292
9293
9294 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9295 PyObject *resultobj = 0;
9296 wxListBox *arg1 = (wxListBox *) 0 ;
9297 int arg2 ;
9298 bool result;
9299 void *argp1 = 0 ;
9300 int res1 = 0 ;
9301 int val2 ;
9302 int ecode2 = 0 ;
9303 PyObject * obj0 = 0 ;
9304 PyObject * obj1 = 0 ;
9305 char * kwnames[] = {
9306 (char *) "self",(char *) "n", NULL
9307 };
9308
9309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9311 if (!SWIG_IsOK(res1)) {
9312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9313 }
9314 arg1 = reinterpret_cast< wxListBox * >(argp1);
9315 ecode2 = SWIG_AsVal_int(obj1, &val2);
9316 if (!SWIG_IsOK(ecode2)) {
9317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9318 }
9319 arg2 = static_cast< int >(val2);
9320 {
9321 PyThreadState* __tstate = wxPyBeginAllowThreads();
9322 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9323 wxPyEndAllowThreads(__tstate);
9324 if (PyErr_Occurred()) SWIG_fail;
9325 }
9326 {
9327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9328 }
9329 return resultobj;
9330 fail:
9331 return NULL;
9332 }
9333
9334
9335 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9336 PyObject *resultobj = 0;
9337 wxListBox *arg1 = (wxListBox *) 0 ;
9338 int arg2 ;
9339 bool arg3 = (bool) true ;
9340 void *argp1 = 0 ;
9341 int res1 = 0 ;
9342 int val2 ;
9343 int ecode2 = 0 ;
9344 bool val3 ;
9345 int ecode3 = 0 ;
9346 PyObject * obj0 = 0 ;
9347 PyObject * obj1 = 0 ;
9348 PyObject * obj2 = 0 ;
9349 char * kwnames[] = {
9350 (char *) "self",(char *) "n",(char *) "select", NULL
9351 };
9352
9353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) 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_SetSelection" "', 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_SetSelection" "', expected argument " "2"" of type '" "int""'");
9362 }
9363 arg2 = static_cast< int >(val2);
9364 if (obj2) {
9365 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9366 if (!SWIG_IsOK(ecode3)) {
9367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9368 }
9369 arg3 = static_cast< bool >(val3);
9370 }
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 (arg1)->SetSelection(arg2,arg3);
9374 wxPyEndAllowThreads(__tstate);
9375 if (PyErr_Occurred()) SWIG_fail;
9376 }
9377 resultobj = SWIG_Py_Void();
9378 return resultobj;
9379 fail:
9380 return NULL;
9381 }
9382
9383
9384 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9385 PyObject *resultobj = 0;
9386 wxListBox *arg1 = (wxListBox *) 0 ;
9387 int arg2 ;
9388 void *argp1 = 0 ;
9389 int res1 = 0 ;
9390 int val2 ;
9391 int ecode2 = 0 ;
9392 PyObject * obj0 = 0 ;
9393 PyObject * obj1 = 0 ;
9394 char * kwnames[] = {
9395 (char *) "self",(char *) "n", NULL
9396 };
9397
9398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9400 if (!SWIG_IsOK(res1)) {
9401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9402 }
9403 arg1 = reinterpret_cast< wxListBox * >(argp1);
9404 ecode2 = SWIG_AsVal_int(obj1, &val2);
9405 if (!SWIG_IsOK(ecode2)) {
9406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9407 }
9408 arg2 = static_cast< int >(val2);
9409 {
9410 PyThreadState* __tstate = wxPyBeginAllowThreads();
9411 (arg1)->Select(arg2);
9412 wxPyEndAllowThreads(__tstate);
9413 if (PyErr_Occurred()) SWIG_fail;
9414 }
9415 resultobj = SWIG_Py_Void();
9416 return resultobj;
9417 fail:
9418 return NULL;
9419 }
9420
9421
9422 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9423 PyObject *resultobj = 0;
9424 wxListBox *arg1 = (wxListBox *) 0 ;
9425 int arg2 ;
9426 void *argp1 = 0 ;
9427 int res1 = 0 ;
9428 int val2 ;
9429 int ecode2 = 0 ;
9430 PyObject * obj0 = 0 ;
9431 PyObject * obj1 = 0 ;
9432 char * kwnames[] = {
9433 (char *) "self",(char *) "n", NULL
9434 };
9435
9436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9438 if (!SWIG_IsOK(res1)) {
9439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9440 }
9441 arg1 = reinterpret_cast< wxListBox * >(argp1);
9442 ecode2 = SWIG_AsVal_int(obj1, &val2);
9443 if (!SWIG_IsOK(ecode2)) {
9444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9445 }
9446 arg2 = static_cast< int >(val2);
9447 {
9448 PyThreadState* __tstate = wxPyBeginAllowThreads();
9449 (arg1)->Deselect(arg2);
9450 wxPyEndAllowThreads(__tstate);
9451 if (PyErr_Occurred()) SWIG_fail;
9452 }
9453 resultobj = SWIG_Py_Void();
9454 return resultobj;
9455 fail:
9456 return NULL;
9457 }
9458
9459
9460 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9461 PyObject *resultobj = 0;
9462 wxListBox *arg1 = (wxListBox *) 0 ;
9463 int arg2 = (int) -1 ;
9464 void *argp1 = 0 ;
9465 int res1 = 0 ;
9466 int val2 ;
9467 int ecode2 = 0 ;
9468 PyObject * obj0 = 0 ;
9469 PyObject * obj1 = 0 ;
9470 char * kwnames[] = {
9471 (char *) "self",(char *) "itemToLeaveSelected", NULL
9472 };
9473
9474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9476 if (!SWIG_IsOK(res1)) {
9477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9478 }
9479 arg1 = reinterpret_cast< wxListBox * >(argp1);
9480 if (obj1) {
9481 ecode2 = SWIG_AsVal_int(obj1, &val2);
9482 if (!SWIG_IsOK(ecode2)) {
9483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9484 }
9485 arg2 = static_cast< int >(val2);
9486 }
9487 {
9488 PyThreadState* __tstate = wxPyBeginAllowThreads();
9489 (arg1)->DeselectAll(arg2);
9490 wxPyEndAllowThreads(__tstate);
9491 if (PyErr_Occurred()) SWIG_fail;
9492 }
9493 resultobj = SWIG_Py_Void();
9494 return resultobj;
9495 fail:
9496 return NULL;
9497 }
9498
9499
9500 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9501 PyObject *resultobj = 0;
9502 wxListBox *arg1 = (wxListBox *) 0 ;
9503 wxString *arg2 = 0 ;
9504 bool arg3 = (bool) true ;
9505 bool result;
9506 void *argp1 = 0 ;
9507 int res1 = 0 ;
9508 bool temp2 = false ;
9509 bool val3 ;
9510 int ecode3 = 0 ;
9511 PyObject * obj0 = 0 ;
9512 PyObject * obj1 = 0 ;
9513 PyObject * obj2 = 0 ;
9514 char * kwnames[] = {
9515 (char *) "self",(char *) "s",(char *) "select", NULL
9516 };
9517
9518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9520 if (!SWIG_IsOK(res1)) {
9521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9522 }
9523 arg1 = reinterpret_cast< wxListBox * >(argp1);
9524 {
9525 arg2 = wxString_in_helper(obj1);
9526 if (arg2 == NULL) SWIG_fail;
9527 temp2 = true;
9528 }
9529 if (obj2) {
9530 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9531 if (!SWIG_IsOK(ecode3)) {
9532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9533 }
9534 arg3 = static_cast< bool >(val3);
9535 }
9536 {
9537 PyThreadState* __tstate = wxPyBeginAllowThreads();
9538 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9539 wxPyEndAllowThreads(__tstate);
9540 if (PyErr_Occurred()) SWIG_fail;
9541 }
9542 {
9543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9544 }
9545 {
9546 if (temp2)
9547 delete arg2;
9548 }
9549 return resultobj;
9550 fail:
9551 {
9552 if (temp2)
9553 delete arg2;
9554 }
9555 return NULL;
9556 }
9557
9558
9559 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9560 PyObject *resultobj = 0;
9561 wxListBox *arg1 = (wxListBox *) 0 ;
9562 PyObject *result = 0 ;
9563 void *argp1 = 0 ;
9564 int res1 = 0 ;
9565 PyObject *swig_obj[1] ;
9566
9567 if (!args) SWIG_fail;
9568 swig_obj[0] = args;
9569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9570 if (!SWIG_IsOK(res1)) {
9571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9572 }
9573 arg1 = reinterpret_cast< wxListBox * >(argp1);
9574 {
9575 PyThreadState* __tstate = wxPyBeginAllowThreads();
9576 result = (PyObject *)wxListBox_GetSelections(arg1);
9577 wxPyEndAllowThreads(__tstate);
9578 if (PyErr_Occurred()) SWIG_fail;
9579 }
9580 resultobj = result;
9581 return resultobj;
9582 fail:
9583 return NULL;
9584 }
9585
9586
9587 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9588 PyObject *resultobj = 0;
9589 wxListBox *arg1 = (wxListBox *) 0 ;
9590 int arg2 ;
9591 void *argp1 = 0 ;
9592 int res1 = 0 ;
9593 int val2 ;
9594 int ecode2 = 0 ;
9595 PyObject * obj0 = 0 ;
9596 PyObject * obj1 = 0 ;
9597 char * kwnames[] = {
9598 (char *) "self",(char *) "n", NULL
9599 };
9600
9601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9603 if (!SWIG_IsOK(res1)) {
9604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9605 }
9606 arg1 = reinterpret_cast< wxListBox * >(argp1);
9607 ecode2 = SWIG_AsVal_int(obj1, &val2);
9608 if (!SWIG_IsOK(ecode2)) {
9609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9610 }
9611 arg2 = static_cast< int >(val2);
9612 {
9613 PyThreadState* __tstate = wxPyBeginAllowThreads();
9614 (arg1)->SetFirstItem(arg2);
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) SWIG_fail;
9617 }
9618 resultobj = SWIG_Py_Void();
9619 return resultobj;
9620 fail:
9621 return NULL;
9622 }
9623
9624
9625 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9626 PyObject *resultobj = 0;
9627 wxListBox *arg1 = (wxListBox *) 0 ;
9628 wxString *arg2 = 0 ;
9629 void *argp1 = 0 ;
9630 int res1 = 0 ;
9631 bool temp2 = false ;
9632 PyObject * obj0 = 0 ;
9633 PyObject * obj1 = 0 ;
9634 char * kwnames[] = {
9635 (char *) "self",(char *) "s", NULL
9636 };
9637
9638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9640 if (!SWIG_IsOK(res1)) {
9641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9642 }
9643 arg1 = reinterpret_cast< wxListBox * >(argp1);
9644 {
9645 arg2 = wxString_in_helper(obj1);
9646 if (arg2 == NULL) SWIG_fail;
9647 temp2 = true;
9648 }
9649 {
9650 PyThreadState* __tstate = wxPyBeginAllowThreads();
9651 (arg1)->SetFirstItem((wxString const &)*arg2);
9652 wxPyEndAllowThreads(__tstate);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 }
9655 resultobj = SWIG_Py_Void();
9656 {
9657 if (temp2)
9658 delete arg2;
9659 }
9660 return resultobj;
9661 fail:
9662 {
9663 if (temp2)
9664 delete arg2;
9665 }
9666 return NULL;
9667 }
9668
9669
9670 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9671 PyObject *resultobj = 0;
9672 wxListBox *arg1 = (wxListBox *) 0 ;
9673 int arg2 ;
9674 void *argp1 = 0 ;
9675 int res1 = 0 ;
9676 int val2 ;
9677 int ecode2 = 0 ;
9678 PyObject * obj0 = 0 ;
9679 PyObject * obj1 = 0 ;
9680 char * kwnames[] = {
9681 (char *) "self",(char *) "n", NULL
9682 };
9683
9684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9686 if (!SWIG_IsOK(res1)) {
9687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9688 }
9689 arg1 = reinterpret_cast< wxListBox * >(argp1);
9690 ecode2 = SWIG_AsVal_int(obj1, &val2);
9691 if (!SWIG_IsOK(ecode2)) {
9692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9693 }
9694 arg2 = static_cast< int >(val2);
9695 {
9696 PyThreadState* __tstate = wxPyBeginAllowThreads();
9697 (arg1)->EnsureVisible(arg2);
9698 wxPyEndAllowThreads(__tstate);
9699 if (PyErr_Occurred()) SWIG_fail;
9700 }
9701 resultobj = SWIG_Py_Void();
9702 return resultobj;
9703 fail:
9704 return NULL;
9705 }
9706
9707
9708 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9709 PyObject *resultobj = 0;
9710 wxListBox *arg1 = (wxListBox *) 0 ;
9711 wxString *arg2 = 0 ;
9712 void *argp1 = 0 ;
9713 int res1 = 0 ;
9714 bool temp2 = false ;
9715 PyObject * obj0 = 0 ;
9716 PyObject * obj1 = 0 ;
9717 char * kwnames[] = {
9718 (char *) "self",(char *) "s", NULL
9719 };
9720
9721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9723 if (!SWIG_IsOK(res1)) {
9724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9725 }
9726 arg1 = reinterpret_cast< wxListBox * >(argp1);
9727 {
9728 arg2 = wxString_in_helper(obj1);
9729 if (arg2 == NULL) SWIG_fail;
9730 temp2 = true;
9731 }
9732 {
9733 PyThreadState* __tstate = wxPyBeginAllowThreads();
9734 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9735 wxPyEndAllowThreads(__tstate);
9736 if (PyErr_Occurred()) SWIG_fail;
9737 }
9738 resultobj = SWIG_Py_Void();
9739 {
9740 if (temp2)
9741 delete arg2;
9742 }
9743 return resultobj;
9744 fail:
9745 {
9746 if (temp2)
9747 delete arg2;
9748 }
9749 return NULL;
9750 }
9751
9752
9753 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9754 PyObject *resultobj = 0;
9755 wxListBox *arg1 = (wxListBox *) 0 ;
9756 bool result;
9757 void *argp1 = 0 ;
9758 int res1 = 0 ;
9759 PyObject *swig_obj[1] ;
9760
9761 if (!args) SWIG_fail;
9762 swig_obj[0] = args;
9763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9764 if (!SWIG_IsOK(res1)) {
9765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9766 }
9767 arg1 = reinterpret_cast< wxListBox * >(argp1);
9768 {
9769 PyThreadState* __tstate = wxPyBeginAllowThreads();
9770 result = (bool)((wxListBox const *)arg1)->IsSorted();
9771 wxPyEndAllowThreads(__tstate);
9772 if (PyErr_Occurred()) SWIG_fail;
9773 }
9774 {
9775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9776 }
9777 return resultobj;
9778 fail:
9779 return NULL;
9780 }
9781
9782
9783 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9784 PyObject *resultobj = 0;
9785 wxListBox *arg1 = (wxListBox *) 0 ;
9786 wxPoint *arg2 = 0 ;
9787 int result;
9788 void *argp1 = 0 ;
9789 int res1 = 0 ;
9790 wxPoint temp2 ;
9791 PyObject * obj0 = 0 ;
9792 PyObject * obj1 = 0 ;
9793 char * kwnames[] = {
9794 (char *) "self",(char *) "pt", NULL
9795 };
9796
9797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9799 if (!SWIG_IsOK(res1)) {
9800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9801 }
9802 arg1 = reinterpret_cast< wxListBox * >(argp1);
9803 {
9804 arg2 = &temp2;
9805 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9806 }
9807 {
9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
9809 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9810 wxPyEndAllowThreads(__tstate);
9811 if (PyErr_Occurred()) SWIG_fail;
9812 }
9813 resultobj = SWIG_From_int(static_cast< int >(result));
9814 return resultobj;
9815 fail:
9816 return NULL;
9817 }
9818
9819
9820 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(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_SetItemForegroundColour",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_SetItemForegroundColour" "', 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_SetItemForegroundColour" "', 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_SetItemForegroundColour(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_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9866 PyObject *resultobj = 0;
9867 wxListBox *arg1 = (wxListBox *) 0 ;
9868 int arg2 ;
9869 wxColour *arg3 = 0 ;
9870 void *argp1 = 0 ;
9871 int res1 = 0 ;
9872 int val2 ;
9873 int ecode2 = 0 ;
9874 wxColour temp3 ;
9875 PyObject * obj0 = 0 ;
9876 PyObject * obj1 = 0 ;
9877 PyObject * obj2 = 0 ;
9878 char * kwnames[] = {
9879 (char *) "self",(char *) "item",(char *) "c", NULL
9880 };
9881
9882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9884 if (!SWIG_IsOK(res1)) {
9885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9886 }
9887 arg1 = reinterpret_cast< wxListBox * >(argp1);
9888 ecode2 = SWIG_AsVal_int(obj1, &val2);
9889 if (!SWIG_IsOK(ecode2)) {
9890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9891 }
9892 arg2 = static_cast< int >(val2);
9893 {
9894 arg3 = &temp3;
9895 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9896 }
9897 {
9898 PyThreadState* __tstate = wxPyBeginAllowThreads();
9899 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9900 wxPyEndAllowThreads(__tstate);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 }
9903 resultobj = SWIG_Py_Void();
9904 return resultobj;
9905 fail:
9906 return NULL;
9907 }
9908
9909
9910 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9911 PyObject *resultobj = 0;
9912 wxListBox *arg1 = (wxListBox *) 0 ;
9913 int arg2 ;
9914 wxFont *arg3 = 0 ;
9915 void *argp1 = 0 ;
9916 int res1 = 0 ;
9917 int val2 ;
9918 int ecode2 = 0 ;
9919 void *argp3 = 0 ;
9920 int res3 = 0 ;
9921 PyObject * obj0 = 0 ;
9922 PyObject * obj1 = 0 ;
9923 PyObject * obj2 = 0 ;
9924 char * kwnames[] = {
9925 (char *) "self",(char *) "item",(char *) "f", NULL
9926 };
9927
9928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9930 if (!SWIG_IsOK(res1)) {
9931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9932 }
9933 arg1 = reinterpret_cast< wxListBox * >(argp1);
9934 ecode2 = SWIG_AsVal_int(obj1, &val2);
9935 if (!SWIG_IsOK(ecode2)) {
9936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9937 }
9938 arg2 = static_cast< int >(val2);
9939 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9940 if (!SWIG_IsOK(res3)) {
9941 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9942 }
9943 if (!argp3) {
9944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9945 }
9946 arg3 = reinterpret_cast< wxFont * >(argp3);
9947 {
9948 PyThreadState* __tstate = wxPyBeginAllowThreads();
9949 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9950 wxPyEndAllowThreads(__tstate);
9951 if (PyErr_Occurred()) SWIG_fail;
9952 }
9953 resultobj = SWIG_Py_Void();
9954 return resultobj;
9955 fail:
9956 return NULL;
9957 }
9958
9959
9960 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9961 PyObject *resultobj = 0;
9962 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9963 SwigValueWrapper<wxVisualAttributes > result;
9964 int val1 ;
9965 int ecode1 = 0 ;
9966 PyObject * obj0 = 0 ;
9967 char * kwnames[] = {
9968 (char *) "variant", NULL
9969 };
9970
9971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9972 if (obj0) {
9973 ecode1 = SWIG_AsVal_int(obj0, &val1);
9974 if (!SWIG_IsOK(ecode1)) {
9975 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9976 }
9977 arg1 = static_cast< wxWindowVariant >(val1);
9978 }
9979 {
9980 if (!wxPyCheckForApp()) SWIG_fail;
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = wxListBox::GetClassDefaultAttributes(arg1);
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9987 return resultobj;
9988 fail:
9989 return NULL;
9990 }
9991
9992
9993 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9994 PyObject *obj;
9995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9996 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9997 return SWIG_Py_Void();
9998 }
9999
10000 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10001 return SWIG_Python_InitShadowInstance(args);
10002 }
10003
10004 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10005 PyObject *resultobj = 0;
10006 wxWindow *arg1 = (wxWindow *) 0 ;
10007 int arg2 = (int) -1 ;
10008 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10009 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10010 wxSize const &arg4_defvalue = wxDefaultSize ;
10011 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10012 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10013 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10014 long arg6 = (long) 0 ;
10015 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10016 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10017 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10018 wxString *arg8 = (wxString *) &arg8_defvalue ;
10019 wxCheckListBox *result = 0 ;
10020 void *argp1 = 0 ;
10021 int res1 = 0 ;
10022 int val2 ;
10023 int ecode2 = 0 ;
10024 wxPoint temp3 ;
10025 wxSize temp4 ;
10026 bool temp5 = false ;
10027 long val6 ;
10028 int ecode6 = 0 ;
10029 void *argp7 = 0 ;
10030 int res7 = 0 ;
10031 bool temp8 = false ;
10032 PyObject * obj0 = 0 ;
10033 PyObject * obj1 = 0 ;
10034 PyObject * obj2 = 0 ;
10035 PyObject * obj3 = 0 ;
10036 PyObject * obj4 = 0 ;
10037 PyObject * obj5 = 0 ;
10038 PyObject * obj6 = 0 ;
10039 PyObject * obj7 = 0 ;
10040 char * kwnames[] = {
10041 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10042 };
10043
10044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10046 if (!SWIG_IsOK(res1)) {
10047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10048 }
10049 arg1 = reinterpret_cast< wxWindow * >(argp1);
10050 if (obj1) {
10051 ecode2 = SWIG_AsVal_int(obj1, &val2);
10052 if (!SWIG_IsOK(ecode2)) {
10053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10054 }
10055 arg2 = static_cast< int >(val2);
10056 }
10057 if (obj2) {
10058 {
10059 arg3 = &temp3;
10060 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10061 }
10062 }
10063 if (obj3) {
10064 {
10065 arg4 = &temp4;
10066 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10067 }
10068 }
10069 if (obj4) {
10070 {
10071 if (! PySequence_Check(obj4)) {
10072 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10073 SWIG_fail;
10074 }
10075 arg5 = new wxArrayString;
10076 temp5 = true;
10077 int i, len=PySequence_Length(obj4);
10078 for (i=0; i<len; i++) {
10079 PyObject* item = PySequence_GetItem(obj4, i);
10080 wxString* s = wxString_in_helper(item);
10081 if (PyErr_Occurred()) SWIG_fail;
10082 arg5->Add(*s);
10083 delete s;
10084 Py_DECREF(item);
10085 }
10086 }
10087 }
10088 if (obj5) {
10089 ecode6 = SWIG_AsVal_long(obj5, &val6);
10090 if (!SWIG_IsOK(ecode6)) {
10091 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10092 }
10093 arg6 = static_cast< long >(val6);
10094 }
10095 if (obj6) {
10096 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10097 if (!SWIG_IsOK(res7)) {
10098 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10099 }
10100 if (!argp7) {
10101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10102 }
10103 arg7 = reinterpret_cast< wxValidator * >(argp7);
10104 }
10105 if (obj7) {
10106 {
10107 arg8 = wxString_in_helper(obj7);
10108 if (arg8 == NULL) SWIG_fail;
10109 temp8 = true;
10110 }
10111 }
10112 {
10113 if (!wxPyCheckForApp()) SWIG_fail;
10114 PyThreadState* __tstate = wxPyBeginAllowThreads();
10115 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10116 wxPyEndAllowThreads(__tstate);
10117 if (PyErr_Occurred()) SWIG_fail;
10118 }
10119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10120 {
10121 if (temp5) delete arg5;
10122 }
10123 {
10124 if (temp8)
10125 delete arg8;
10126 }
10127 return resultobj;
10128 fail:
10129 {
10130 if (temp5) delete arg5;
10131 }
10132 {
10133 if (temp8)
10134 delete arg8;
10135 }
10136 return NULL;
10137 }
10138
10139
10140 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10141 PyObject *resultobj = 0;
10142 wxCheckListBox *result = 0 ;
10143
10144 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10145 {
10146 if (!wxPyCheckForApp()) SWIG_fail;
10147 PyThreadState* __tstate = wxPyBeginAllowThreads();
10148 result = (wxCheckListBox *)new wxCheckListBox();
10149 wxPyEndAllowThreads(__tstate);
10150 if (PyErr_Occurred()) SWIG_fail;
10151 }
10152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10153 return resultobj;
10154 fail:
10155 return NULL;
10156 }
10157
10158
10159 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10160 PyObject *resultobj = 0;
10161 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10162 wxWindow *arg2 = (wxWindow *) 0 ;
10163 int arg3 = (int) -1 ;
10164 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10165 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10166 wxSize const &arg5_defvalue = wxDefaultSize ;
10167 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10168 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10169 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10170 long arg7 = (long) 0 ;
10171 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10172 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10173 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10174 wxString *arg9 = (wxString *) &arg9_defvalue ;
10175 bool result;
10176 void *argp1 = 0 ;
10177 int res1 = 0 ;
10178 void *argp2 = 0 ;
10179 int res2 = 0 ;
10180 int val3 ;
10181 int ecode3 = 0 ;
10182 wxPoint temp4 ;
10183 wxSize temp5 ;
10184 bool temp6 = false ;
10185 long val7 ;
10186 int ecode7 = 0 ;
10187 void *argp8 = 0 ;
10188 int res8 = 0 ;
10189 bool temp9 = false ;
10190 PyObject * obj0 = 0 ;
10191 PyObject * obj1 = 0 ;
10192 PyObject * obj2 = 0 ;
10193 PyObject * obj3 = 0 ;
10194 PyObject * obj4 = 0 ;
10195 PyObject * obj5 = 0 ;
10196 PyObject * obj6 = 0 ;
10197 PyObject * obj7 = 0 ;
10198 PyObject * obj8 = 0 ;
10199 char * kwnames[] = {
10200 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10201 };
10202
10203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10205 if (!SWIG_IsOK(res1)) {
10206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10207 }
10208 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10209 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10210 if (!SWIG_IsOK(res2)) {
10211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10212 }
10213 arg2 = reinterpret_cast< wxWindow * >(argp2);
10214 if (obj2) {
10215 ecode3 = SWIG_AsVal_int(obj2, &val3);
10216 if (!SWIG_IsOK(ecode3)) {
10217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10218 }
10219 arg3 = static_cast< int >(val3);
10220 }
10221 if (obj3) {
10222 {
10223 arg4 = &temp4;
10224 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10225 }
10226 }
10227 if (obj4) {
10228 {
10229 arg5 = &temp5;
10230 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10231 }
10232 }
10233 if (obj5) {
10234 {
10235 if (! PySequence_Check(obj5)) {
10236 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10237 SWIG_fail;
10238 }
10239 arg6 = new wxArrayString;
10240 temp6 = true;
10241 int i, len=PySequence_Length(obj5);
10242 for (i=0; i<len; i++) {
10243 PyObject* item = PySequence_GetItem(obj5, i);
10244 wxString* s = wxString_in_helper(item);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 arg6->Add(*s);
10247 delete s;
10248 Py_DECREF(item);
10249 }
10250 }
10251 }
10252 if (obj6) {
10253 ecode7 = SWIG_AsVal_long(obj6, &val7);
10254 if (!SWIG_IsOK(ecode7)) {
10255 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10256 }
10257 arg7 = static_cast< long >(val7);
10258 }
10259 if (obj7) {
10260 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10261 if (!SWIG_IsOK(res8)) {
10262 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10263 }
10264 if (!argp8) {
10265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10266 }
10267 arg8 = reinterpret_cast< wxValidator * >(argp8);
10268 }
10269 if (obj8) {
10270 {
10271 arg9 = wxString_in_helper(obj8);
10272 if (arg9 == NULL) SWIG_fail;
10273 temp9 = true;
10274 }
10275 }
10276 {
10277 PyThreadState* __tstate = wxPyBeginAllowThreads();
10278 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10279 wxPyEndAllowThreads(__tstate);
10280 if (PyErr_Occurred()) SWIG_fail;
10281 }
10282 {
10283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10284 }
10285 {
10286 if (temp6) delete arg6;
10287 }
10288 {
10289 if (temp9)
10290 delete arg9;
10291 }
10292 return resultobj;
10293 fail:
10294 {
10295 if (temp6) delete arg6;
10296 }
10297 {
10298 if (temp9)
10299 delete arg9;
10300 }
10301 return NULL;
10302 }
10303
10304
10305 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10306 PyObject *resultobj = 0;
10307 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10308 unsigned int arg2 ;
10309 bool result;
10310 void *argp1 = 0 ;
10311 int res1 = 0 ;
10312 unsigned int val2 ;
10313 int ecode2 = 0 ;
10314 PyObject * obj0 = 0 ;
10315 PyObject * obj1 = 0 ;
10316 char * kwnames[] = {
10317 (char *) "self",(char *) "index", NULL
10318 };
10319
10320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10322 if (!SWIG_IsOK(res1)) {
10323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10324 }
10325 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10326 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10327 if (!SWIG_IsOK(ecode2)) {
10328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10329 }
10330 arg2 = static_cast< unsigned int >(val2);
10331 {
10332 PyThreadState* __tstate = wxPyBeginAllowThreads();
10333 result = (bool)(arg1)->IsChecked(arg2);
10334 wxPyEndAllowThreads(__tstate);
10335 if (PyErr_Occurred()) SWIG_fail;
10336 }
10337 {
10338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10339 }
10340 return resultobj;
10341 fail:
10342 return NULL;
10343 }
10344
10345
10346 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10347 PyObject *resultobj = 0;
10348 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10349 unsigned int arg2 ;
10350 int arg3 = (int) true ;
10351 void *argp1 = 0 ;
10352 int res1 = 0 ;
10353 unsigned int val2 ;
10354 int ecode2 = 0 ;
10355 int val3 ;
10356 int ecode3 = 0 ;
10357 PyObject * obj0 = 0 ;
10358 PyObject * obj1 = 0 ;
10359 PyObject * obj2 = 0 ;
10360 char * kwnames[] = {
10361 (char *) "self",(char *) "index",(char *) "check", NULL
10362 };
10363
10364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10366 if (!SWIG_IsOK(res1)) {
10367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10368 }
10369 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10370 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10371 if (!SWIG_IsOK(ecode2)) {
10372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10373 }
10374 arg2 = static_cast< unsigned int >(val2);
10375 if (obj2) {
10376 ecode3 = SWIG_AsVal_int(obj2, &val3);
10377 if (!SWIG_IsOK(ecode3)) {
10378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10379 }
10380 arg3 = static_cast< int >(val3);
10381 }
10382 {
10383 PyThreadState* __tstate = wxPyBeginAllowThreads();
10384 (arg1)->Check(arg2,arg3);
10385 wxPyEndAllowThreads(__tstate);
10386 if (PyErr_Occurred()) SWIG_fail;
10387 }
10388 resultobj = SWIG_Py_Void();
10389 return resultobj;
10390 fail:
10391 return NULL;
10392 }
10393
10394
10395 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10396 PyObject *resultobj = 0;
10397 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10398 int result;
10399 void *argp1 = 0 ;
10400 int res1 = 0 ;
10401 PyObject *swig_obj[1] ;
10402
10403 if (!args) SWIG_fail;
10404 swig_obj[0] = args;
10405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10406 if (!SWIG_IsOK(res1)) {
10407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10408 }
10409 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10410 {
10411 PyThreadState* __tstate = wxPyBeginAllowThreads();
10412 result = (int)(arg1)->GetItemHeight();
10413 wxPyEndAllowThreads(__tstate);
10414 if (PyErr_Occurred()) SWIG_fail;
10415 }
10416 resultobj = SWIG_From_int(static_cast< int >(result));
10417 return resultobj;
10418 fail:
10419 return NULL;
10420 }
10421
10422
10423 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10424 PyObject *obj;
10425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10426 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10427 return SWIG_Py_Void();
10428 }
10429
10430 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10431 return SWIG_Python_InitShadowInstance(args);
10432 }
10433
10434 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10435 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10436 return 1;
10437 }
10438
10439
10440 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10441 PyObject *pyobj = 0;
10442
10443 {
10444 #if wxUSE_UNICODE
10445 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10446 #else
10447 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10448 #endif
10449 }
10450 return pyobj;
10451 }
10452
10453
10454 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10455 PyObject *resultobj = 0;
10456 wxColour const &arg1_defvalue = wxNullColour ;
10457 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10458 wxColour const &arg2_defvalue = wxNullColour ;
10459 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10460 wxFont const &arg3_defvalue = wxNullFont ;
10461 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10462 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10463 wxTextAttr *result = 0 ;
10464 wxColour temp1 ;
10465 wxColour temp2 ;
10466 void *argp3 = 0 ;
10467 int res3 = 0 ;
10468 int val4 ;
10469 int ecode4 = 0 ;
10470 PyObject * obj0 = 0 ;
10471 PyObject * obj1 = 0 ;
10472 PyObject * obj2 = 0 ;
10473 PyObject * obj3 = 0 ;
10474 char * kwnames[] = {
10475 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10476 };
10477
10478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10479 if (obj0) {
10480 {
10481 arg1 = &temp1;
10482 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10483 }
10484 }
10485 if (obj1) {
10486 {
10487 arg2 = &temp2;
10488 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10489 }
10490 }
10491 if (obj2) {
10492 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10493 if (!SWIG_IsOK(res3)) {
10494 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10495 }
10496 if (!argp3) {
10497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10498 }
10499 arg3 = reinterpret_cast< wxFont * >(argp3);
10500 }
10501 if (obj3) {
10502 ecode4 = SWIG_AsVal_int(obj3, &val4);
10503 if (!SWIG_IsOK(ecode4)) {
10504 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10505 }
10506 arg4 = static_cast< wxTextAttrAlignment >(val4);
10507 }
10508 {
10509 PyThreadState* __tstate = wxPyBeginAllowThreads();
10510 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10511 wxPyEndAllowThreads(__tstate);
10512 if (PyErr_Occurred()) SWIG_fail;
10513 }
10514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10515 return resultobj;
10516 fail:
10517 return NULL;
10518 }
10519
10520
10521 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10522 PyObject *resultobj = 0;
10523 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10524 void *argp1 = 0 ;
10525 int res1 = 0 ;
10526 PyObject *swig_obj[1] ;
10527
10528 if (!args) SWIG_fail;
10529 swig_obj[0] = args;
10530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10531 if (!SWIG_IsOK(res1)) {
10532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10533 }
10534 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 delete arg1;
10538
10539 wxPyEndAllowThreads(__tstate);
10540 if (PyErr_Occurred()) SWIG_fail;
10541 }
10542 resultobj = SWIG_Py_Void();
10543 return resultobj;
10544 fail:
10545 return NULL;
10546 }
10547
10548
10549 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10550 PyObject *resultobj = 0;
10551 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10552 void *argp1 = 0 ;
10553 int res1 = 0 ;
10554 PyObject *swig_obj[1] ;
10555
10556 if (!args) SWIG_fail;
10557 swig_obj[0] = args;
10558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10559 if (!SWIG_IsOK(res1)) {
10560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10561 }
10562 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10563 {
10564 PyThreadState* __tstate = wxPyBeginAllowThreads();
10565 (arg1)->Init();
10566 wxPyEndAllowThreads(__tstate);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 resultobj = SWIG_Py_Void();
10570 return resultobj;
10571 fail:
10572 return NULL;
10573 }
10574
10575
10576 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10577 PyObject *resultobj = 0;
10578 wxTextAttr *arg1 = 0 ;
10579 wxTextAttr *arg2 = 0 ;
10580 wxTextAttr result;
10581 void *argp1 = 0 ;
10582 int res1 = 0 ;
10583 void *argp2 = 0 ;
10584 int res2 = 0 ;
10585 PyObject * obj0 = 0 ;
10586 PyObject * obj1 = 0 ;
10587 char * kwnames[] = {
10588 (char *) "base",(char *) "overlay", NULL
10589 };
10590
10591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10592 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10593 if (!SWIG_IsOK(res1)) {
10594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10595 }
10596 if (!argp1) {
10597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10598 }
10599 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10601 if (!SWIG_IsOK(res2)) {
10602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10603 }
10604 if (!argp2) {
10605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10606 }
10607 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10608 {
10609 PyThreadState* __tstate = wxPyBeginAllowThreads();
10610 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10611 wxPyEndAllowThreads(__tstate);
10612 if (PyErr_Occurred()) SWIG_fail;
10613 }
10614 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10615 return resultobj;
10616 fail:
10617 return NULL;
10618 }
10619
10620
10621 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10622 PyObject *resultobj = 0;
10623 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10624 wxColour *arg2 = 0 ;
10625 void *argp1 = 0 ;
10626 int res1 = 0 ;
10627 wxColour temp2 ;
10628 PyObject * obj0 = 0 ;
10629 PyObject * obj1 = 0 ;
10630 char * kwnames[] = {
10631 (char *) "self",(char *) "colText", NULL
10632 };
10633
10634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10636 if (!SWIG_IsOK(res1)) {
10637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10638 }
10639 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10640 {
10641 arg2 = &temp2;
10642 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10643 }
10644 {
10645 PyThreadState* __tstate = wxPyBeginAllowThreads();
10646 (arg1)->SetTextColour((wxColour const &)*arg2);
10647 wxPyEndAllowThreads(__tstate);
10648 if (PyErr_Occurred()) SWIG_fail;
10649 }
10650 resultobj = SWIG_Py_Void();
10651 return resultobj;
10652 fail:
10653 return NULL;
10654 }
10655
10656
10657 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10658 PyObject *resultobj = 0;
10659 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10660 wxColour *arg2 = 0 ;
10661 void *argp1 = 0 ;
10662 int res1 = 0 ;
10663 wxColour temp2 ;
10664 PyObject * obj0 = 0 ;
10665 PyObject * obj1 = 0 ;
10666 char * kwnames[] = {
10667 (char *) "self",(char *) "colBack", NULL
10668 };
10669
10670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10672 if (!SWIG_IsOK(res1)) {
10673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10674 }
10675 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10676 {
10677 arg2 = &temp2;
10678 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10679 }
10680 {
10681 PyThreadState* __tstate = wxPyBeginAllowThreads();
10682 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10683 wxPyEndAllowThreads(__tstate);
10684 if (PyErr_Occurred()) SWIG_fail;
10685 }
10686 resultobj = SWIG_Py_Void();
10687 return resultobj;
10688 fail:
10689 return NULL;
10690 }
10691
10692
10693 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10694 PyObject *resultobj = 0;
10695 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10696 wxFont *arg2 = 0 ;
10697 long arg3 = (long) wxTEXT_ATTR_FONT ;
10698 void *argp1 = 0 ;
10699 int res1 = 0 ;
10700 void *argp2 = 0 ;
10701 int res2 = 0 ;
10702 long val3 ;
10703 int ecode3 = 0 ;
10704 PyObject * obj0 = 0 ;
10705 PyObject * obj1 = 0 ;
10706 PyObject * obj2 = 0 ;
10707 char * kwnames[] = {
10708 (char *) "self",(char *) "font",(char *) "flags", NULL
10709 };
10710
10711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10713 if (!SWIG_IsOK(res1)) {
10714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10715 }
10716 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10717 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10718 if (!SWIG_IsOK(res2)) {
10719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10720 }
10721 if (!argp2) {
10722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10723 }
10724 arg2 = reinterpret_cast< wxFont * >(argp2);
10725 if (obj2) {
10726 ecode3 = SWIG_AsVal_long(obj2, &val3);
10727 if (!SWIG_IsOK(ecode3)) {
10728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10729 }
10730 arg3 = static_cast< long >(val3);
10731 }
10732 {
10733 PyThreadState* __tstate = wxPyBeginAllowThreads();
10734 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10735 wxPyEndAllowThreads(__tstate);
10736 if (PyErr_Occurred()) SWIG_fail;
10737 }
10738 resultobj = SWIG_Py_Void();
10739 return resultobj;
10740 fail:
10741 return NULL;
10742 }
10743
10744
10745 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10746 PyObject *resultobj = 0;
10747 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10748 wxTextAttrAlignment arg2 ;
10749 void *argp1 = 0 ;
10750 int res1 = 0 ;
10751 int val2 ;
10752 int ecode2 = 0 ;
10753 PyObject * obj0 = 0 ;
10754 PyObject * obj1 = 0 ;
10755 char * kwnames[] = {
10756 (char *) "self",(char *) "alignment", NULL
10757 };
10758
10759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10761 if (!SWIG_IsOK(res1)) {
10762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10763 }
10764 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10765 ecode2 = SWIG_AsVal_int(obj1, &val2);
10766 if (!SWIG_IsOK(ecode2)) {
10767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10768 }
10769 arg2 = static_cast< wxTextAttrAlignment >(val2);
10770 {
10771 PyThreadState* __tstate = wxPyBeginAllowThreads();
10772 (arg1)->SetAlignment(arg2);
10773 wxPyEndAllowThreads(__tstate);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
10776 resultobj = SWIG_Py_Void();
10777 return resultobj;
10778 fail:
10779 return NULL;
10780 }
10781
10782
10783 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10784 PyObject *resultobj = 0;
10785 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10786 wxArrayInt *arg2 = 0 ;
10787 void *argp1 = 0 ;
10788 int res1 = 0 ;
10789 bool temp2 = false ;
10790 PyObject * obj0 = 0 ;
10791 PyObject * obj1 = 0 ;
10792 char * kwnames[] = {
10793 (char *) "self",(char *) "tabs", NULL
10794 };
10795
10796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10798 if (!SWIG_IsOK(res1)) {
10799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10800 }
10801 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10802 {
10803 if (! PySequence_Check(obj1)) {
10804 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10805 SWIG_fail;
10806 }
10807 arg2 = new wxArrayInt;
10808 temp2 = true;
10809 int i, len=PySequence_Length(obj1);
10810 for (i=0; i<len; i++) {
10811 PyObject* item = PySequence_GetItem(obj1, i);
10812 PyObject* number = PyNumber_Int(item);
10813 if (!number) {
10814 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10815 SWIG_fail;
10816 }
10817 arg2->Add(PyInt_AS_LONG(number));
10818 Py_DECREF(item);
10819 Py_DECREF(number);
10820 }
10821 }
10822 {
10823 PyThreadState* __tstate = wxPyBeginAllowThreads();
10824 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10825 wxPyEndAllowThreads(__tstate);
10826 if (PyErr_Occurred()) SWIG_fail;
10827 }
10828 resultobj = SWIG_Py_Void();
10829 {
10830 if (temp2) delete arg2;
10831 }
10832 return resultobj;
10833 fail:
10834 {
10835 if (temp2) delete arg2;
10836 }
10837 return NULL;
10838 }
10839
10840
10841 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10842 PyObject *resultobj = 0;
10843 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10844 int arg2 ;
10845 int arg3 = (int) 0 ;
10846 void *argp1 = 0 ;
10847 int res1 = 0 ;
10848 int val2 ;
10849 int ecode2 = 0 ;
10850 int val3 ;
10851 int ecode3 = 0 ;
10852 PyObject * obj0 = 0 ;
10853 PyObject * obj1 = 0 ;
10854 PyObject * obj2 = 0 ;
10855 char * kwnames[] = {
10856 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10857 };
10858
10859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10861 if (!SWIG_IsOK(res1)) {
10862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10863 }
10864 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10865 ecode2 = SWIG_AsVal_int(obj1, &val2);
10866 if (!SWIG_IsOK(ecode2)) {
10867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10868 }
10869 arg2 = static_cast< int >(val2);
10870 if (obj2) {
10871 ecode3 = SWIG_AsVal_int(obj2, &val3);
10872 if (!SWIG_IsOK(ecode3)) {
10873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10874 }
10875 arg3 = static_cast< int >(val3);
10876 }
10877 {
10878 PyThreadState* __tstate = wxPyBeginAllowThreads();
10879 (arg1)->SetLeftIndent(arg2,arg3);
10880 wxPyEndAllowThreads(__tstate);
10881 if (PyErr_Occurred()) SWIG_fail;
10882 }
10883 resultobj = SWIG_Py_Void();
10884 return resultobj;
10885 fail:
10886 return NULL;
10887 }
10888
10889
10890 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10891 PyObject *resultobj = 0;
10892 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10893 int arg2 ;
10894 void *argp1 = 0 ;
10895 int res1 = 0 ;
10896 int val2 ;
10897 int ecode2 = 0 ;
10898 PyObject * obj0 = 0 ;
10899 PyObject * obj1 = 0 ;
10900 char * kwnames[] = {
10901 (char *) "self",(char *) "indent", NULL
10902 };
10903
10904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10906 if (!SWIG_IsOK(res1)) {
10907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10908 }
10909 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10910 ecode2 = SWIG_AsVal_int(obj1, &val2);
10911 if (!SWIG_IsOK(ecode2)) {
10912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10913 }
10914 arg2 = static_cast< int >(val2);
10915 {
10916 PyThreadState* __tstate = wxPyBeginAllowThreads();
10917 (arg1)->SetRightIndent(arg2);
10918 wxPyEndAllowThreads(__tstate);
10919 if (PyErr_Occurred()) SWIG_fail;
10920 }
10921 resultobj = SWIG_Py_Void();
10922 return resultobj;
10923 fail:
10924 return NULL;
10925 }
10926
10927
10928 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10929 PyObject *resultobj = 0;
10930 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10931 long arg2 ;
10932 void *argp1 = 0 ;
10933 int res1 = 0 ;
10934 long val2 ;
10935 int ecode2 = 0 ;
10936 PyObject * obj0 = 0 ;
10937 PyObject * obj1 = 0 ;
10938 char * kwnames[] = {
10939 (char *) "self",(char *) "flags", NULL
10940 };
10941
10942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10944 if (!SWIG_IsOK(res1)) {
10945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10946 }
10947 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10948 ecode2 = SWIG_AsVal_long(obj1, &val2);
10949 if (!SWIG_IsOK(ecode2)) {
10950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10951 }
10952 arg2 = static_cast< long >(val2);
10953 {
10954 PyThreadState* __tstate = wxPyBeginAllowThreads();
10955 (arg1)->SetFlags(arg2);
10956 wxPyEndAllowThreads(__tstate);
10957 if (PyErr_Occurred()) SWIG_fail;
10958 }
10959 resultobj = SWIG_Py_Void();
10960 return resultobj;
10961 fail:
10962 return NULL;
10963 }
10964
10965
10966 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10967 PyObject *resultobj = 0;
10968 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10969 bool result;
10970 void *argp1 = 0 ;
10971 int res1 = 0 ;
10972 PyObject *swig_obj[1] ;
10973
10974 if (!args) SWIG_fail;
10975 swig_obj[0] = args;
10976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10977 if (!SWIG_IsOK(res1)) {
10978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10979 }
10980 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10981 {
10982 PyThreadState* __tstate = wxPyBeginAllowThreads();
10983 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10984 wxPyEndAllowThreads(__tstate);
10985 if (PyErr_Occurred()) SWIG_fail;
10986 }
10987 {
10988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10989 }
10990 return resultobj;
10991 fail:
10992 return NULL;
10993 }
10994
10995
10996 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10997 PyObject *resultobj = 0;
10998 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10999 bool result;
11000 void *argp1 = 0 ;
11001 int res1 = 0 ;
11002 PyObject *swig_obj[1] ;
11003
11004 if (!args) SWIG_fail;
11005 swig_obj[0] = args;
11006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11007 if (!SWIG_IsOK(res1)) {
11008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11009 }
11010 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11011 {
11012 PyThreadState* __tstate = wxPyBeginAllowThreads();
11013 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11014 wxPyEndAllowThreads(__tstate);
11015 if (PyErr_Occurred()) SWIG_fail;
11016 }
11017 {
11018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11019 }
11020 return resultobj;
11021 fail:
11022 return NULL;
11023 }
11024
11025
11026 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11027 PyObject *resultobj = 0;
11028 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11029 bool result;
11030 void *argp1 = 0 ;
11031 int res1 = 0 ;
11032 PyObject *swig_obj[1] ;
11033
11034 if (!args) SWIG_fail;
11035 swig_obj[0] = args;
11036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11037 if (!SWIG_IsOK(res1)) {
11038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11039 }
11040 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11041 {
11042 PyThreadState* __tstate = wxPyBeginAllowThreads();
11043 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11044 wxPyEndAllowThreads(__tstate);
11045 if (PyErr_Occurred()) SWIG_fail;
11046 }
11047 {
11048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11049 }
11050 return resultobj;
11051 fail:
11052 return NULL;
11053 }
11054
11055
11056 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11057 PyObject *resultobj = 0;
11058 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11059 bool result;
11060 void *argp1 = 0 ;
11061 int res1 = 0 ;
11062 PyObject *swig_obj[1] ;
11063
11064 if (!args) SWIG_fail;
11065 swig_obj[0] = args;
11066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11067 if (!SWIG_IsOK(res1)) {
11068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11069 }
11070 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 {
11078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11079 }
11080 return resultobj;
11081 fail:
11082 return NULL;
11083 }
11084
11085
11086 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11087 PyObject *resultobj = 0;
11088 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11089 bool result;
11090 void *argp1 = 0 ;
11091 int res1 = 0 ;
11092 PyObject *swig_obj[1] ;
11093
11094 if (!args) SWIG_fail;
11095 swig_obj[0] = args;
11096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11097 if (!SWIG_IsOK(res1)) {
11098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11099 }
11100 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11101 {
11102 PyThreadState* __tstate = wxPyBeginAllowThreads();
11103 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11104 wxPyEndAllowThreads(__tstate);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 {
11108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11109 }
11110 return resultobj;
11111 fail:
11112 return NULL;
11113 }
11114
11115
11116 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11117 PyObject *resultobj = 0;
11118 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11119 bool result;
11120 void *argp1 = 0 ;
11121 int res1 = 0 ;
11122 PyObject *swig_obj[1] ;
11123
11124 if (!args) SWIG_fail;
11125 swig_obj[0] = args;
11126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11127 if (!SWIG_IsOK(res1)) {
11128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11129 }
11130 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11131 {
11132 PyThreadState* __tstate = wxPyBeginAllowThreads();
11133 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11134 wxPyEndAllowThreads(__tstate);
11135 if (PyErr_Occurred()) SWIG_fail;
11136 }
11137 {
11138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11139 }
11140 return resultobj;
11141 fail:
11142 return NULL;
11143 }
11144
11145
11146 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11147 PyObject *resultobj = 0;
11148 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11149 bool result;
11150 void *argp1 = 0 ;
11151 int res1 = 0 ;
11152 PyObject *swig_obj[1] ;
11153
11154 if (!args) SWIG_fail;
11155 swig_obj[0] = args;
11156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11157 if (!SWIG_IsOK(res1)) {
11158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11159 }
11160 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11161 {
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
11163 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11164 wxPyEndAllowThreads(__tstate);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 }
11167 {
11168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11169 }
11170 return resultobj;
11171 fail:
11172 return NULL;
11173 }
11174
11175
11176 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11177 PyObject *resultobj = 0;
11178 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11179 long arg2 ;
11180 bool result;
11181 void *argp1 = 0 ;
11182 int res1 = 0 ;
11183 long val2 ;
11184 int ecode2 = 0 ;
11185 PyObject * obj0 = 0 ;
11186 PyObject * obj1 = 0 ;
11187 char * kwnames[] = {
11188 (char *) "self",(char *) "flag", NULL
11189 };
11190
11191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11193 if (!SWIG_IsOK(res1)) {
11194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11195 }
11196 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11197 ecode2 = SWIG_AsVal_long(obj1, &val2);
11198 if (!SWIG_IsOK(ecode2)) {
11199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11200 }
11201 arg2 = static_cast< long >(val2);
11202 {
11203 PyThreadState* __tstate = wxPyBeginAllowThreads();
11204 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11205 wxPyEndAllowThreads(__tstate);
11206 if (PyErr_Occurred()) SWIG_fail;
11207 }
11208 {
11209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11210 }
11211 return resultobj;
11212 fail:
11213 return NULL;
11214 }
11215
11216
11217 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11218 PyObject *resultobj = 0;
11219 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11220 wxColour *result = 0 ;
11221 void *argp1 = 0 ;
11222 int res1 = 0 ;
11223 PyObject *swig_obj[1] ;
11224
11225 if (!args) SWIG_fail;
11226 swig_obj[0] = args;
11227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11228 if (!SWIG_IsOK(res1)) {
11229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11230 }
11231 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11232 {
11233 PyThreadState* __tstate = wxPyBeginAllowThreads();
11234 {
11235 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11236 result = (wxColour *) &_result_ref;
11237 }
11238 wxPyEndAllowThreads(__tstate);
11239 if (PyErr_Occurred()) SWIG_fail;
11240 }
11241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11242 return resultobj;
11243 fail:
11244 return NULL;
11245 }
11246
11247
11248 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11249 PyObject *resultobj = 0;
11250 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11251 wxColour *result = 0 ;
11252 void *argp1 = 0 ;
11253 int res1 = 0 ;
11254 PyObject *swig_obj[1] ;
11255
11256 if (!args) SWIG_fail;
11257 swig_obj[0] = args;
11258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11259 if (!SWIG_IsOK(res1)) {
11260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11261 }
11262 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11263 {
11264 PyThreadState* __tstate = wxPyBeginAllowThreads();
11265 {
11266 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11267 result = (wxColour *) &_result_ref;
11268 }
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11273 return resultobj;
11274 fail:
11275 return NULL;
11276 }
11277
11278
11279 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11280 PyObject *resultobj = 0;
11281 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11282 wxFont *result = 0 ;
11283 void *argp1 = 0 ;
11284 int res1 = 0 ;
11285 PyObject *swig_obj[1] ;
11286
11287 if (!args) SWIG_fail;
11288 swig_obj[0] = args;
11289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11290 if (!SWIG_IsOK(res1)) {
11291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11292 }
11293 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11294 {
11295 PyThreadState* __tstate = wxPyBeginAllowThreads();
11296 {
11297 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11298 result = (wxFont *) &_result_ref;
11299 }
11300 wxPyEndAllowThreads(__tstate);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 }
11303 {
11304 wxFont* resultptr = new wxFont(*result);
11305 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11306 }
11307 return resultobj;
11308 fail:
11309 return NULL;
11310 }
11311
11312
11313 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11314 PyObject *resultobj = 0;
11315 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11316 wxTextAttrAlignment result;
11317 void *argp1 = 0 ;
11318 int res1 = 0 ;
11319 PyObject *swig_obj[1] ;
11320
11321 if (!args) SWIG_fail;
11322 swig_obj[0] = args;
11323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11324 if (!SWIG_IsOK(res1)) {
11325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11326 }
11327 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11328 {
11329 PyThreadState* __tstate = wxPyBeginAllowThreads();
11330 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11331 wxPyEndAllowThreads(__tstate);
11332 if (PyErr_Occurred()) SWIG_fail;
11333 }
11334 resultobj = SWIG_From_int(static_cast< int >(result));
11335 return resultobj;
11336 fail:
11337 return NULL;
11338 }
11339
11340
11341 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11342 PyObject *resultobj = 0;
11343 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11344 wxArrayInt *result = 0 ;
11345 void *argp1 = 0 ;
11346 int res1 = 0 ;
11347 PyObject *swig_obj[1] ;
11348
11349 if (!args) SWIG_fail;
11350 swig_obj[0] = args;
11351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11352 if (!SWIG_IsOK(res1)) {
11353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11354 }
11355 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11356 {
11357 PyThreadState* __tstate = wxPyBeginAllowThreads();
11358 {
11359 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11360 result = (wxArrayInt *) &_result_ref;
11361 }
11362 wxPyEndAllowThreads(__tstate);
11363 if (PyErr_Occurred()) SWIG_fail;
11364 }
11365 {
11366 resultobj = wxArrayInt2PyList_helper(*result);
11367 }
11368 return resultobj;
11369 fail:
11370 return NULL;
11371 }
11372
11373
11374 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11375 PyObject *resultobj = 0;
11376 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11377 long result;
11378 void *argp1 = 0 ;
11379 int res1 = 0 ;
11380 PyObject *swig_obj[1] ;
11381
11382 if (!args) SWIG_fail;
11383 swig_obj[0] = args;
11384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11385 if (!SWIG_IsOK(res1)) {
11386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11387 }
11388 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11389 {
11390 PyThreadState* __tstate = wxPyBeginAllowThreads();
11391 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11392 wxPyEndAllowThreads(__tstate);
11393 if (PyErr_Occurred()) SWIG_fail;
11394 }
11395 resultobj = SWIG_From_long(static_cast< long >(result));
11396 return resultobj;
11397 fail:
11398 return NULL;
11399 }
11400
11401
11402 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11403 PyObject *resultobj = 0;
11404 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11405 long result;
11406 void *argp1 = 0 ;
11407 int res1 = 0 ;
11408 PyObject *swig_obj[1] ;
11409
11410 if (!args) SWIG_fail;
11411 swig_obj[0] = args;
11412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11413 if (!SWIG_IsOK(res1)) {
11414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11415 }
11416 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11420 wxPyEndAllowThreads(__tstate);
11421 if (PyErr_Occurred()) SWIG_fail;
11422 }
11423 resultobj = SWIG_From_long(static_cast< long >(result));
11424 return resultobj;
11425 fail:
11426 return NULL;
11427 }
11428
11429
11430 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11431 PyObject *resultobj = 0;
11432 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11433 long result;
11434 void *argp1 = 0 ;
11435 int res1 = 0 ;
11436 PyObject *swig_obj[1] ;
11437
11438 if (!args) SWIG_fail;
11439 swig_obj[0] = args;
11440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11441 if (!SWIG_IsOK(res1)) {
11442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11443 }
11444 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11445 {
11446 PyThreadState* __tstate = wxPyBeginAllowThreads();
11447 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11448 wxPyEndAllowThreads(__tstate);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 }
11451 resultobj = SWIG_From_long(static_cast< long >(result));
11452 return resultobj;
11453 fail:
11454 return NULL;
11455 }
11456
11457
11458 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11459 PyObject *resultobj = 0;
11460 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11461 long result;
11462 void *argp1 = 0 ;
11463 int res1 = 0 ;
11464 PyObject *swig_obj[1] ;
11465
11466 if (!args) SWIG_fail;
11467 swig_obj[0] = args;
11468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11469 if (!SWIG_IsOK(res1)) {
11470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11471 }
11472 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11473 {
11474 PyThreadState* __tstate = wxPyBeginAllowThreads();
11475 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 resultobj = SWIG_From_long(static_cast< long >(result));
11480 return resultobj;
11481 fail:
11482 return NULL;
11483 }
11484
11485
11486 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11487 PyObject *resultobj = 0;
11488 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11489 bool result;
11490 void *argp1 = 0 ;
11491 int res1 = 0 ;
11492 PyObject *swig_obj[1] ;
11493
11494 if (!args) SWIG_fail;
11495 swig_obj[0] = args;
11496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11497 if (!SWIG_IsOK(res1)) {
11498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11499 }
11500 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11501 {
11502 PyThreadState* __tstate = wxPyBeginAllowThreads();
11503 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11504 wxPyEndAllowThreads(__tstate);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
11507 {
11508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11509 }
11510 return resultobj;
11511 fail:
11512 return NULL;
11513 }
11514
11515
11516 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11517 PyObject *resultobj = 0;
11518 wxTextAttr *arg1 = 0 ;
11519 wxTextAttr *arg2 = 0 ;
11520 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11521 wxTextAttr result;
11522 void *argp1 = 0 ;
11523 int res1 = 0 ;
11524 void *argp2 = 0 ;
11525 int res2 = 0 ;
11526 void *argp3 = 0 ;
11527 int res3 = 0 ;
11528 PyObject * obj0 = 0 ;
11529 PyObject * obj1 = 0 ;
11530 PyObject * obj2 = 0 ;
11531 char * kwnames[] = {
11532 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11533 };
11534
11535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11536 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11537 if (!SWIG_IsOK(res1)) {
11538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11539 }
11540 if (!argp1) {
11541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11542 }
11543 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11544 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11545 if (!SWIG_IsOK(res2)) {
11546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11547 }
11548 if (!argp2) {
11549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11550 }
11551 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11552 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11553 if (!SWIG_IsOK(res3)) {
11554 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11555 }
11556 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11557 {
11558 PyThreadState* __tstate = wxPyBeginAllowThreads();
11559 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11560 wxPyEndAllowThreads(__tstate);
11561 if (PyErr_Occurred()) SWIG_fail;
11562 }
11563 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11564 return resultobj;
11565 fail:
11566 return NULL;
11567 }
11568
11569
11570 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11571 PyObject *obj;
11572 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11573 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11574 return SWIG_Py_Void();
11575 }
11576
11577 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11578 return SWIG_Python_InitShadowInstance(args);
11579 }
11580
11581 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11582 PyObject *resultobj = 0;
11583 wxWindow *arg1 = (wxWindow *) 0 ;
11584 int arg2 = (int) -1 ;
11585 wxString const &arg3_defvalue = wxPyEmptyString ;
11586 wxString *arg3 = (wxString *) &arg3_defvalue ;
11587 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11588 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11589 wxSize const &arg5_defvalue = wxDefaultSize ;
11590 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11591 long arg6 = (long) 0 ;
11592 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11593 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11594 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11595 wxString *arg8 = (wxString *) &arg8_defvalue ;
11596 wxTextCtrl *result = 0 ;
11597 void *argp1 = 0 ;
11598 int res1 = 0 ;
11599 int val2 ;
11600 int ecode2 = 0 ;
11601 bool temp3 = false ;
11602 wxPoint temp4 ;
11603 wxSize temp5 ;
11604 long val6 ;
11605 int ecode6 = 0 ;
11606 void *argp7 = 0 ;
11607 int res7 = 0 ;
11608 bool temp8 = false ;
11609 PyObject * obj0 = 0 ;
11610 PyObject * obj1 = 0 ;
11611 PyObject * obj2 = 0 ;
11612 PyObject * obj3 = 0 ;
11613 PyObject * obj4 = 0 ;
11614 PyObject * obj5 = 0 ;
11615 PyObject * obj6 = 0 ;
11616 PyObject * obj7 = 0 ;
11617 char * kwnames[] = {
11618 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11619 };
11620
11621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11623 if (!SWIG_IsOK(res1)) {
11624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11625 }
11626 arg1 = reinterpret_cast< wxWindow * >(argp1);
11627 if (obj1) {
11628 ecode2 = SWIG_AsVal_int(obj1, &val2);
11629 if (!SWIG_IsOK(ecode2)) {
11630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11631 }
11632 arg2 = static_cast< int >(val2);
11633 }
11634 if (obj2) {
11635 {
11636 arg3 = wxString_in_helper(obj2);
11637 if (arg3 == NULL) SWIG_fail;
11638 temp3 = true;
11639 }
11640 }
11641 if (obj3) {
11642 {
11643 arg4 = &temp4;
11644 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11645 }
11646 }
11647 if (obj4) {
11648 {
11649 arg5 = &temp5;
11650 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11651 }
11652 }
11653 if (obj5) {
11654 ecode6 = SWIG_AsVal_long(obj5, &val6);
11655 if (!SWIG_IsOK(ecode6)) {
11656 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11657 }
11658 arg6 = static_cast< long >(val6);
11659 }
11660 if (obj6) {
11661 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11662 if (!SWIG_IsOK(res7)) {
11663 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11664 }
11665 if (!argp7) {
11666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11667 }
11668 arg7 = reinterpret_cast< wxValidator * >(argp7);
11669 }
11670 if (obj7) {
11671 {
11672 arg8 = wxString_in_helper(obj7);
11673 if (arg8 == NULL) SWIG_fail;
11674 temp8 = true;
11675 }
11676 }
11677 {
11678 if (!wxPyCheckForApp()) SWIG_fail;
11679 PyThreadState* __tstate = wxPyBeginAllowThreads();
11680 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11681 wxPyEndAllowThreads(__tstate);
11682 if (PyErr_Occurred()) SWIG_fail;
11683 }
11684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11685 {
11686 if (temp3)
11687 delete arg3;
11688 }
11689 {
11690 if (temp8)
11691 delete arg8;
11692 }
11693 return resultobj;
11694 fail:
11695 {
11696 if (temp3)
11697 delete arg3;
11698 }
11699 {
11700 if (temp8)
11701 delete arg8;
11702 }
11703 return NULL;
11704 }
11705
11706
11707 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11708 PyObject *resultobj = 0;
11709 wxTextCtrl *result = 0 ;
11710
11711 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11712 {
11713 if (!wxPyCheckForApp()) SWIG_fail;
11714 PyThreadState* __tstate = wxPyBeginAllowThreads();
11715 result = (wxTextCtrl *)new wxTextCtrl();
11716 wxPyEndAllowThreads(__tstate);
11717 if (PyErr_Occurred()) SWIG_fail;
11718 }
11719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11720 return resultobj;
11721 fail:
11722 return NULL;
11723 }
11724
11725
11726 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11727 PyObject *resultobj = 0;
11728 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11729 wxWindow *arg2 = (wxWindow *) 0 ;
11730 int arg3 = (int) -1 ;
11731 wxString const &arg4_defvalue = wxPyEmptyString ;
11732 wxString *arg4 = (wxString *) &arg4_defvalue ;
11733 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11734 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11735 wxSize const &arg6_defvalue = wxDefaultSize ;
11736 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11737 long arg7 = (long) 0 ;
11738 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11739 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11740 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11741 wxString *arg9 = (wxString *) &arg9_defvalue ;
11742 bool result;
11743 void *argp1 = 0 ;
11744 int res1 = 0 ;
11745 void *argp2 = 0 ;
11746 int res2 = 0 ;
11747 int val3 ;
11748 int ecode3 = 0 ;
11749 bool temp4 = false ;
11750 wxPoint temp5 ;
11751 wxSize temp6 ;
11752 long val7 ;
11753 int ecode7 = 0 ;
11754 void *argp8 = 0 ;
11755 int res8 = 0 ;
11756 bool temp9 = false ;
11757 PyObject * obj0 = 0 ;
11758 PyObject * obj1 = 0 ;
11759 PyObject * obj2 = 0 ;
11760 PyObject * obj3 = 0 ;
11761 PyObject * obj4 = 0 ;
11762 PyObject * obj5 = 0 ;
11763 PyObject * obj6 = 0 ;
11764 PyObject * obj7 = 0 ;
11765 PyObject * obj8 = 0 ;
11766 char * kwnames[] = {
11767 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11768 };
11769
11770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11772 if (!SWIG_IsOK(res1)) {
11773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11774 }
11775 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11776 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11777 if (!SWIG_IsOK(res2)) {
11778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11779 }
11780 arg2 = reinterpret_cast< wxWindow * >(argp2);
11781 if (obj2) {
11782 ecode3 = SWIG_AsVal_int(obj2, &val3);
11783 if (!SWIG_IsOK(ecode3)) {
11784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11785 }
11786 arg3 = static_cast< int >(val3);
11787 }
11788 if (obj3) {
11789 {
11790 arg4 = wxString_in_helper(obj3);
11791 if (arg4 == NULL) SWIG_fail;
11792 temp4 = true;
11793 }
11794 }
11795 if (obj4) {
11796 {
11797 arg5 = &temp5;
11798 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11799 }
11800 }
11801 if (obj5) {
11802 {
11803 arg6 = &temp6;
11804 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11805 }
11806 }
11807 if (obj6) {
11808 ecode7 = SWIG_AsVal_long(obj6, &val7);
11809 if (!SWIG_IsOK(ecode7)) {
11810 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11811 }
11812 arg7 = static_cast< long >(val7);
11813 }
11814 if (obj7) {
11815 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11816 if (!SWIG_IsOK(res8)) {
11817 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11818 }
11819 if (!argp8) {
11820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11821 }
11822 arg8 = reinterpret_cast< wxValidator * >(argp8);
11823 }
11824 if (obj8) {
11825 {
11826 arg9 = wxString_in_helper(obj8);
11827 if (arg9 == NULL) SWIG_fail;
11828 temp9 = true;
11829 }
11830 }
11831 {
11832 PyThreadState* __tstate = wxPyBeginAllowThreads();
11833 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11834 wxPyEndAllowThreads(__tstate);
11835 if (PyErr_Occurred()) SWIG_fail;
11836 }
11837 {
11838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11839 }
11840 {
11841 if (temp4)
11842 delete arg4;
11843 }
11844 {
11845 if (temp9)
11846 delete arg9;
11847 }
11848 return resultobj;
11849 fail:
11850 {
11851 if (temp4)
11852 delete arg4;
11853 }
11854 {
11855 if (temp9)
11856 delete arg9;
11857 }
11858 return NULL;
11859 }
11860
11861
11862 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11863 PyObject *resultobj = 0;
11864 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11865 wxString result;
11866 void *argp1 = 0 ;
11867 int res1 = 0 ;
11868 PyObject *swig_obj[1] ;
11869
11870 if (!args) SWIG_fail;
11871 swig_obj[0] = args;
11872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11873 if (!SWIG_IsOK(res1)) {
11874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11875 }
11876 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11877 {
11878 PyThreadState* __tstate = wxPyBeginAllowThreads();
11879 result = ((wxTextCtrl const *)arg1)->GetValue();
11880 wxPyEndAllowThreads(__tstate);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 }
11883 {
11884 #if wxUSE_UNICODE
11885 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11886 #else
11887 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11888 #endif
11889 }
11890 return resultobj;
11891 fail:
11892 return NULL;
11893 }
11894
11895
11896 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11897 PyObject *resultobj = 0;
11898 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11899 wxString *arg2 = 0 ;
11900 void *argp1 = 0 ;
11901 int res1 = 0 ;
11902 bool temp2 = false ;
11903 PyObject * obj0 = 0 ;
11904 PyObject * obj1 = 0 ;
11905 char * kwnames[] = {
11906 (char *) "self",(char *) "value", NULL
11907 };
11908
11909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11911 if (!SWIG_IsOK(res1)) {
11912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11913 }
11914 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11915 {
11916 arg2 = wxString_in_helper(obj1);
11917 if (arg2 == NULL) SWIG_fail;
11918 temp2 = true;
11919 }
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 (arg1)->SetValue((wxString const &)*arg2);
11923 wxPyEndAllowThreads(__tstate);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 resultobj = SWIG_Py_Void();
11927 {
11928 if (temp2)
11929 delete arg2;
11930 }
11931 return resultobj;
11932 fail:
11933 {
11934 if (temp2)
11935 delete arg2;
11936 }
11937 return NULL;
11938 }
11939
11940
11941 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11942 PyObject *resultobj = 0;
11943 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11944 bool result;
11945 void *argp1 = 0 ;
11946 int res1 = 0 ;
11947 PyObject *swig_obj[1] ;
11948
11949 if (!args) SWIG_fail;
11950 swig_obj[0] = args;
11951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11952 if (!SWIG_IsOK(res1)) {
11953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11954 }
11955 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11956 {
11957 PyThreadState* __tstate = wxPyBeginAllowThreads();
11958 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11959 wxPyEndAllowThreads(__tstate);
11960 if (PyErr_Occurred()) SWIG_fail;
11961 }
11962 {
11963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11964 }
11965 return resultobj;
11966 fail:
11967 return NULL;
11968 }
11969
11970
11971 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11972 PyObject *resultobj = 0;
11973 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11974 wxString *arg2 = 0 ;
11975 void *argp1 = 0 ;
11976 int res1 = 0 ;
11977 bool temp2 = false ;
11978 PyObject * obj0 = 0 ;
11979 PyObject * obj1 = 0 ;
11980 char * kwnames[] = {
11981 (char *) "self",(char *) "value", NULL
11982 };
11983
11984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
11985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11986 if (!SWIG_IsOK(res1)) {
11987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11988 }
11989 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11990 {
11991 arg2 = wxString_in_helper(obj1);
11992 if (arg2 == NULL) SWIG_fail;
11993 temp2 = true;
11994 }
11995 {
11996 PyThreadState* __tstate = wxPyBeginAllowThreads();
11997 (arg1)->ChangeValue((wxString const &)*arg2);
11998 wxPyEndAllowThreads(__tstate);
11999 if (PyErr_Occurred()) SWIG_fail;
12000 }
12001 resultobj = SWIG_Py_Void();
12002 {
12003 if (temp2)
12004 delete arg2;
12005 }
12006 return resultobj;
12007 fail:
12008 {
12009 if (temp2)
12010 delete arg2;
12011 }
12012 return NULL;
12013 }
12014
12015
12016 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12017 PyObject *resultobj = 0;
12018 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12019 long arg2 ;
12020 long arg3 ;
12021 wxString result;
12022 void *argp1 = 0 ;
12023 int res1 = 0 ;
12024 long val2 ;
12025 int ecode2 = 0 ;
12026 long val3 ;
12027 int ecode3 = 0 ;
12028 PyObject * obj0 = 0 ;
12029 PyObject * obj1 = 0 ;
12030 PyObject * obj2 = 0 ;
12031 char * kwnames[] = {
12032 (char *) "self",(char *) "from",(char *) "to", NULL
12033 };
12034
12035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12037 if (!SWIG_IsOK(res1)) {
12038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12039 }
12040 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12041 ecode2 = SWIG_AsVal_long(obj1, &val2);
12042 if (!SWIG_IsOK(ecode2)) {
12043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12044 }
12045 arg2 = static_cast< long >(val2);
12046 ecode3 = SWIG_AsVal_long(obj2, &val3);
12047 if (!SWIG_IsOK(ecode3)) {
12048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12049 }
12050 arg3 = static_cast< long >(val3);
12051 {
12052 PyThreadState* __tstate = wxPyBeginAllowThreads();
12053 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 {
12058 #if wxUSE_UNICODE
12059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12060 #else
12061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12062 #endif
12063 }
12064 return resultobj;
12065 fail:
12066 return NULL;
12067 }
12068
12069
12070 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12071 PyObject *resultobj = 0;
12072 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12073 long arg2 ;
12074 int result;
12075 void *argp1 = 0 ;
12076 int res1 = 0 ;
12077 long val2 ;
12078 int ecode2 = 0 ;
12079 PyObject * obj0 = 0 ;
12080 PyObject * obj1 = 0 ;
12081 char * kwnames[] = {
12082 (char *) "self",(char *) "lineNo", NULL
12083 };
12084
12085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12087 if (!SWIG_IsOK(res1)) {
12088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12089 }
12090 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12091 ecode2 = SWIG_AsVal_long(obj1, &val2);
12092 if (!SWIG_IsOK(ecode2)) {
12093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12094 }
12095 arg2 = static_cast< long >(val2);
12096 {
12097 PyThreadState* __tstate = wxPyBeginAllowThreads();
12098 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
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_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12110 PyObject *resultobj = 0;
12111 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12112 long arg2 ;
12113 wxString result;
12114 void *argp1 = 0 ;
12115 int res1 = 0 ;
12116 long val2 ;
12117 int ecode2 = 0 ;
12118 PyObject * obj0 = 0 ;
12119 PyObject * obj1 = 0 ;
12120 char * kwnames[] = {
12121 (char *) "self",(char *) "lineNo", NULL
12122 };
12123
12124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12126 if (!SWIG_IsOK(res1)) {
12127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12128 }
12129 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12130 ecode2 = SWIG_AsVal_long(obj1, &val2);
12131 if (!SWIG_IsOK(ecode2)) {
12132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12133 }
12134 arg2 = static_cast< long >(val2);
12135 {
12136 PyThreadState* __tstate = wxPyBeginAllowThreads();
12137 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12138 wxPyEndAllowThreads(__tstate);
12139 if (PyErr_Occurred()) SWIG_fail;
12140 }
12141 {
12142 #if wxUSE_UNICODE
12143 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12144 #else
12145 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12146 #endif
12147 }
12148 return resultobj;
12149 fail:
12150 return NULL;
12151 }
12152
12153
12154 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12155 PyObject *resultobj = 0;
12156 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12157 int result;
12158 void *argp1 = 0 ;
12159 int res1 = 0 ;
12160 PyObject *swig_obj[1] ;
12161
12162 if (!args) SWIG_fail;
12163 swig_obj[0] = args;
12164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12165 if (!SWIG_IsOK(res1)) {
12166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12167 }
12168 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12169 {
12170 PyThreadState* __tstate = wxPyBeginAllowThreads();
12171 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12172 wxPyEndAllowThreads(__tstate);
12173 if (PyErr_Occurred()) SWIG_fail;
12174 }
12175 resultobj = SWIG_From_int(static_cast< int >(result));
12176 return resultobj;
12177 fail:
12178 return NULL;
12179 }
12180
12181
12182 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12183 PyObject *resultobj = 0;
12184 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12185 bool result;
12186 void *argp1 = 0 ;
12187 int res1 = 0 ;
12188 PyObject *swig_obj[1] ;
12189
12190 if (!args) SWIG_fail;
12191 swig_obj[0] = args;
12192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12193 if (!SWIG_IsOK(res1)) {
12194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12195 }
12196 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12197 {
12198 PyThreadState* __tstate = wxPyBeginAllowThreads();
12199 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12200 wxPyEndAllowThreads(__tstate);
12201 if (PyErr_Occurred()) SWIG_fail;
12202 }
12203 {
12204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12205 }
12206 return resultobj;
12207 fail:
12208 return NULL;
12209 }
12210
12211
12212 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12213 PyObject *resultobj = 0;
12214 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12215 bool result;
12216 void *argp1 = 0 ;
12217 int res1 = 0 ;
12218 PyObject *swig_obj[1] ;
12219
12220 if (!args) SWIG_fail;
12221 swig_obj[0] = args;
12222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12223 if (!SWIG_IsOK(res1)) {
12224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12225 }
12226 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12227 {
12228 PyThreadState* __tstate = wxPyBeginAllowThreads();
12229 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12230 wxPyEndAllowThreads(__tstate);
12231 if (PyErr_Occurred()) SWIG_fail;
12232 }
12233 {
12234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12235 }
12236 return resultobj;
12237 fail:
12238 return NULL;
12239 }
12240
12241
12242 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12243 PyObject *resultobj = 0;
12244 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12245 bool result;
12246 void *argp1 = 0 ;
12247 int res1 = 0 ;
12248 PyObject *swig_obj[1] ;
12249
12250 if (!args) SWIG_fail;
12251 swig_obj[0] = args;
12252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12253 if (!SWIG_IsOK(res1)) {
12254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12255 }
12256 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12257 {
12258 PyThreadState* __tstate = wxPyBeginAllowThreads();
12259 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12260 wxPyEndAllowThreads(__tstate);
12261 if (PyErr_Occurred()) SWIG_fail;
12262 }
12263 {
12264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12265 }
12266 return resultobj;
12267 fail:
12268 return NULL;
12269 }
12270
12271
12272 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12273 PyObject *resultobj = 0;
12274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12275 bool result;
12276 void *argp1 = 0 ;
12277 int res1 = 0 ;
12278 PyObject *swig_obj[1] ;
12279
12280 if (!args) SWIG_fail;
12281 swig_obj[0] = args;
12282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12283 if (!SWIG_IsOK(res1)) {
12284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12285 }
12286 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12287 {
12288 PyThreadState* __tstate = wxPyBeginAllowThreads();
12289 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12290 wxPyEndAllowThreads(__tstate);
12291 if (PyErr_Occurred()) SWIG_fail;
12292 }
12293 {
12294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12295 }
12296 return resultobj;
12297 fail:
12298 return NULL;
12299 }
12300
12301
12302 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12303 PyObject *resultobj = 0;
12304 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12305 long *arg2 = (long *) 0 ;
12306 long *arg3 = (long *) 0 ;
12307 void *argp1 = 0 ;
12308 int res1 = 0 ;
12309 long temp2 ;
12310 int res2 = SWIG_TMPOBJ ;
12311 long temp3 ;
12312 int res3 = SWIG_TMPOBJ ;
12313 PyObject *swig_obj[1] ;
12314
12315 arg2 = &temp2;
12316 arg3 = &temp3;
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_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12322 }
12323 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12324 {
12325 PyThreadState* __tstate = wxPyBeginAllowThreads();
12326 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12327 wxPyEndAllowThreads(__tstate);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 }
12330 resultobj = SWIG_Py_Void();
12331 if (SWIG_IsTmpObj(res2)) {
12332 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12333 } else {
12334 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12335 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12336 }
12337 if (SWIG_IsTmpObj(res3)) {
12338 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12339 } else {
12340 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12341 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12342 }
12343 return resultobj;
12344 fail:
12345 return NULL;
12346 }
12347
12348
12349 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12350 PyObject *resultobj = 0;
12351 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12352 wxString result;
12353 void *argp1 = 0 ;
12354 int res1 = 0 ;
12355 PyObject *swig_obj[1] ;
12356
12357 if (!args) SWIG_fail;
12358 swig_obj[0] = args;
12359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12360 if (!SWIG_IsOK(res1)) {
12361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12362 }
12363 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
12366 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 {
12371 #if wxUSE_UNICODE
12372 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12373 #else
12374 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12375 #endif
12376 }
12377 return resultobj;
12378 fail:
12379 return NULL;
12380 }
12381
12382
12383 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12384 PyObject *resultobj = 0;
12385 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12386 void *argp1 = 0 ;
12387 int res1 = 0 ;
12388 PyObject *swig_obj[1] ;
12389
12390 if (!args) SWIG_fail;
12391 swig_obj[0] = args;
12392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12393 if (!SWIG_IsOK(res1)) {
12394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12395 }
12396 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12397 {
12398 PyThreadState* __tstate = wxPyBeginAllowThreads();
12399 (arg1)->Clear();
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 resultobj = SWIG_Py_Void();
12404 return resultobj;
12405 fail:
12406 return NULL;
12407 }
12408
12409
12410 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12411 PyObject *resultobj = 0;
12412 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12413 long arg2 ;
12414 long arg3 ;
12415 wxString *arg4 = 0 ;
12416 void *argp1 = 0 ;
12417 int res1 = 0 ;
12418 long val2 ;
12419 int ecode2 = 0 ;
12420 long val3 ;
12421 int ecode3 = 0 ;
12422 bool temp4 = false ;
12423 PyObject * obj0 = 0 ;
12424 PyObject * obj1 = 0 ;
12425 PyObject * obj2 = 0 ;
12426 PyObject * obj3 = 0 ;
12427 char * kwnames[] = {
12428 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12429 };
12430
12431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12433 if (!SWIG_IsOK(res1)) {
12434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12435 }
12436 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12437 ecode2 = SWIG_AsVal_long(obj1, &val2);
12438 if (!SWIG_IsOK(ecode2)) {
12439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12440 }
12441 arg2 = static_cast< long >(val2);
12442 ecode3 = SWIG_AsVal_long(obj2, &val3);
12443 if (!SWIG_IsOK(ecode3)) {
12444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12445 }
12446 arg3 = static_cast< long >(val3);
12447 {
12448 arg4 = wxString_in_helper(obj3);
12449 if (arg4 == NULL) SWIG_fail;
12450 temp4 = true;
12451 }
12452 {
12453 PyThreadState* __tstate = wxPyBeginAllowThreads();
12454 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12455 wxPyEndAllowThreads(__tstate);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 }
12458 resultobj = SWIG_Py_Void();
12459 {
12460 if (temp4)
12461 delete arg4;
12462 }
12463 return resultobj;
12464 fail:
12465 {
12466 if (temp4)
12467 delete arg4;
12468 }
12469 return NULL;
12470 }
12471
12472
12473 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12474 PyObject *resultobj = 0;
12475 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12476 long arg2 ;
12477 long arg3 ;
12478 void *argp1 = 0 ;
12479 int res1 = 0 ;
12480 long val2 ;
12481 int ecode2 = 0 ;
12482 long val3 ;
12483 int ecode3 = 0 ;
12484 PyObject * obj0 = 0 ;
12485 PyObject * obj1 = 0 ;
12486 PyObject * obj2 = 0 ;
12487 char * kwnames[] = {
12488 (char *) "self",(char *) "from",(char *) "to", NULL
12489 };
12490
12491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12493 if (!SWIG_IsOK(res1)) {
12494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12495 }
12496 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12497 ecode2 = SWIG_AsVal_long(obj1, &val2);
12498 if (!SWIG_IsOK(ecode2)) {
12499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12500 }
12501 arg2 = static_cast< long >(val2);
12502 ecode3 = SWIG_AsVal_long(obj2, &val3);
12503 if (!SWIG_IsOK(ecode3)) {
12504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12505 }
12506 arg3 = static_cast< long >(val3);
12507 {
12508 PyThreadState* __tstate = wxPyBeginAllowThreads();
12509 (arg1)->Remove(arg2,arg3);
12510 wxPyEndAllowThreads(__tstate);
12511 if (PyErr_Occurred()) SWIG_fail;
12512 }
12513 resultobj = SWIG_Py_Void();
12514 return resultobj;
12515 fail:
12516 return NULL;
12517 }
12518
12519
12520 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12521 PyObject *resultobj = 0;
12522 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12523 wxString *arg2 = 0 ;
12524 int arg3 = (int) wxTEXT_TYPE_ANY ;
12525 bool result;
12526 void *argp1 = 0 ;
12527 int res1 = 0 ;
12528 bool temp2 = false ;
12529 int val3 ;
12530 int ecode3 = 0 ;
12531 PyObject * obj0 = 0 ;
12532 PyObject * obj1 = 0 ;
12533 PyObject * obj2 = 0 ;
12534 char * kwnames[] = {
12535 (char *) "self",(char *) "file",(char *) "fileType", NULL
12536 };
12537
12538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12540 if (!SWIG_IsOK(res1)) {
12541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12542 }
12543 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12544 {
12545 arg2 = wxString_in_helper(obj1);
12546 if (arg2 == NULL) SWIG_fail;
12547 temp2 = true;
12548 }
12549 if (obj2) {
12550 ecode3 = SWIG_AsVal_int(obj2, &val3);
12551 if (!SWIG_IsOK(ecode3)) {
12552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12553 }
12554 arg3 = static_cast< int >(val3);
12555 }
12556 {
12557 PyThreadState* __tstate = wxPyBeginAllowThreads();
12558 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12559 wxPyEndAllowThreads(__tstate);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 {
12563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12564 }
12565 {
12566 if (temp2)
12567 delete arg2;
12568 }
12569 return resultobj;
12570 fail:
12571 {
12572 if (temp2)
12573 delete arg2;
12574 }
12575 return NULL;
12576 }
12577
12578
12579 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12580 PyObject *resultobj = 0;
12581 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12582 wxString const &arg2_defvalue = wxPyEmptyString ;
12583 wxString *arg2 = (wxString *) &arg2_defvalue ;
12584 int arg3 = (int) wxTEXT_TYPE_ANY ;
12585 bool result;
12586 void *argp1 = 0 ;
12587 int res1 = 0 ;
12588 bool temp2 = false ;
12589 int val3 ;
12590 int ecode3 = 0 ;
12591 PyObject * obj0 = 0 ;
12592 PyObject * obj1 = 0 ;
12593 PyObject * obj2 = 0 ;
12594 char * kwnames[] = {
12595 (char *) "self",(char *) "file",(char *) "fileType", NULL
12596 };
12597
12598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12600 if (!SWIG_IsOK(res1)) {
12601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12602 }
12603 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12604 if (obj1) {
12605 {
12606 arg2 = wxString_in_helper(obj1);
12607 if (arg2 == NULL) SWIG_fail;
12608 temp2 = true;
12609 }
12610 }
12611 if (obj2) {
12612 ecode3 = SWIG_AsVal_int(obj2, &val3);
12613 if (!SWIG_IsOK(ecode3)) {
12614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12615 }
12616 arg3 = static_cast< int >(val3);
12617 }
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 {
12625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12626 }
12627 {
12628 if (temp2)
12629 delete arg2;
12630 }
12631 return resultobj;
12632 fail:
12633 {
12634 if (temp2)
12635 delete arg2;
12636 }
12637 return NULL;
12638 }
12639
12640
12641 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12642 PyObject *resultobj = 0;
12643 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12644 void *argp1 = 0 ;
12645 int res1 = 0 ;
12646 PyObject *swig_obj[1] ;
12647
12648 if (!args) SWIG_fail;
12649 swig_obj[0] = args;
12650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12651 if (!SWIG_IsOK(res1)) {
12652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12653 }
12654 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12655 {
12656 PyThreadState* __tstate = wxPyBeginAllowThreads();
12657 (arg1)->MarkDirty();
12658 wxPyEndAllowThreads(__tstate);
12659 if (PyErr_Occurred()) SWIG_fail;
12660 }
12661 resultobj = SWIG_Py_Void();
12662 return resultobj;
12663 fail:
12664 return NULL;
12665 }
12666
12667
12668 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12669 PyObject *resultobj = 0;
12670 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12671 void *argp1 = 0 ;
12672 int res1 = 0 ;
12673 PyObject *swig_obj[1] ;
12674
12675 if (!args) SWIG_fail;
12676 swig_obj[0] = args;
12677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12678 if (!SWIG_IsOK(res1)) {
12679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12680 }
12681 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 (arg1)->DiscardEdits();
12685 wxPyEndAllowThreads(__tstate);
12686 if (PyErr_Occurred()) SWIG_fail;
12687 }
12688 resultobj = SWIG_Py_Void();
12689 return resultobj;
12690 fail:
12691 return NULL;
12692 }
12693
12694
12695 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12696 PyObject *resultobj = 0;
12697 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12698 bool arg2 ;
12699 void *argp1 = 0 ;
12700 int res1 = 0 ;
12701 bool val2 ;
12702 int ecode2 = 0 ;
12703 PyObject * obj0 = 0 ;
12704 PyObject * obj1 = 0 ;
12705 char * kwnames[] = {
12706 (char *) "self",(char *) "modified", NULL
12707 };
12708
12709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12711 if (!SWIG_IsOK(res1)) {
12712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12713 }
12714 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12715 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12716 if (!SWIG_IsOK(ecode2)) {
12717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12718 }
12719 arg2 = static_cast< bool >(val2);
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 (arg1)->SetModified(arg2);
12723 wxPyEndAllowThreads(__tstate);
12724 if (PyErr_Occurred()) SWIG_fail;
12725 }
12726 resultobj = SWIG_Py_Void();
12727 return resultobj;
12728 fail:
12729 return NULL;
12730 }
12731
12732
12733 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12734 PyObject *resultobj = 0;
12735 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12736 unsigned long arg2 ;
12737 void *argp1 = 0 ;
12738 int res1 = 0 ;
12739 unsigned long val2 ;
12740 int ecode2 = 0 ;
12741 PyObject * obj0 = 0 ;
12742 PyObject * obj1 = 0 ;
12743 char * kwnames[] = {
12744 (char *) "self",(char *) "len", NULL
12745 };
12746
12747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12749 if (!SWIG_IsOK(res1)) {
12750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12751 }
12752 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12753 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12754 if (!SWIG_IsOK(ecode2)) {
12755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12756 }
12757 arg2 = static_cast< unsigned long >(val2);
12758 {
12759 PyThreadState* __tstate = wxPyBeginAllowThreads();
12760 (arg1)->SetMaxLength(arg2);
12761 wxPyEndAllowThreads(__tstate);
12762 if (PyErr_Occurred()) SWIG_fail;
12763 }
12764 resultobj = SWIG_Py_Void();
12765 return resultobj;
12766 fail:
12767 return NULL;
12768 }
12769
12770
12771 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12772 PyObject *resultobj = 0;
12773 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12774 wxString *arg2 = 0 ;
12775 void *argp1 = 0 ;
12776 int res1 = 0 ;
12777 bool temp2 = false ;
12778 PyObject * obj0 = 0 ;
12779 PyObject * obj1 = 0 ;
12780 char * kwnames[] = {
12781 (char *) "self",(char *) "text", NULL
12782 };
12783
12784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12786 if (!SWIG_IsOK(res1)) {
12787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12788 }
12789 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12790 {
12791 arg2 = wxString_in_helper(obj1);
12792 if (arg2 == NULL) SWIG_fail;
12793 temp2 = true;
12794 }
12795 {
12796 PyThreadState* __tstate = wxPyBeginAllowThreads();
12797 (arg1)->WriteText((wxString const &)*arg2);
12798 wxPyEndAllowThreads(__tstate);
12799 if (PyErr_Occurred()) SWIG_fail;
12800 }
12801 resultobj = SWIG_Py_Void();
12802 {
12803 if (temp2)
12804 delete arg2;
12805 }
12806 return resultobj;
12807 fail:
12808 {
12809 if (temp2)
12810 delete arg2;
12811 }
12812 return NULL;
12813 }
12814
12815
12816 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12817 PyObject *resultobj = 0;
12818 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12819 wxString *arg2 = 0 ;
12820 void *argp1 = 0 ;
12821 int res1 = 0 ;
12822 bool temp2 = false ;
12823 PyObject * obj0 = 0 ;
12824 PyObject * obj1 = 0 ;
12825 char * kwnames[] = {
12826 (char *) "self",(char *) "text", NULL
12827 };
12828
12829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12831 if (!SWIG_IsOK(res1)) {
12832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12833 }
12834 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12835 {
12836 arg2 = wxString_in_helper(obj1);
12837 if (arg2 == NULL) SWIG_fail;
12838 temp2 = true;
12839 }
12840 {
12841 PyThreadState* __tstate = wxPyBeginAllowThreads();
12842 (arg1)->AppendText((wxString const &)*arg2);
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 resultobj = SWIG_Py_Void();
12847 {
12848 if (temp2)
12849 delete arg2;
12850 }
12851 return resultobj;
12852 fail:
12853 {
12854 if (temp2)
12855 delete arg2;
12856 }
12857 return NULL;
12858 }
12859
12860
12861 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12862 PyObject *resultobj = 0;
12863 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12864 wxKeyEvent *arg2 = 0 ;
12865 bool result;
12866 void *argp1 = 0 ;
12867 int res1 = 0 ;
12868 void *argp2 = 0 ;
12869 int res2 = 0 ;
12870 PyObject * obj0 = 0 ;
12871 PyObject * obj1 = 0 ;
12872 char * kwnames[] = {
12873 (char *) "self",(char *) "event", NULL
12874 };
12875
12876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12878 if (!SWIG_IsOK(res1)) {
12879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12880 }
12881 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12882 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12883 if (!SWIG_IsOK(res2)) {
12884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12885 }
12886 if (!argp2) {
12887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12888 }
12889 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12890 {
12891 PyThreadState* __tstate = wxPyBeginAllowThreads();
12892 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12893 wxPyEndAllowThreads(__tstate);
12894 if (PyErr_Occurred()) SWIG_fail;
12895 }
12896 {
12897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12898 }
12899 return resultobj;
12900 fail:
12901 return NULL;
12902 }
12903
12904
12905 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12906 PyObject *resultobj = 0;
12907 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12908 long arg2 ;
12909 long arg3 ;
12910 wxTextAttr *arg4 = 0 ;
12911 bool result;
12912 void *argp1 = 0 ;
12913 int res1 = 0 ;
12914 long val2 ;
12915 int ecode2 = 0 ;
12916 long val3 ;
12917 int ecode3 = 0 ;
12918 void *argp4 = 0 ;
12919 int res4 = 0 ;
12920 PyObject * obj0 = 0 ;
12921 PyObject * obj1 = 0 ;
12922 PyObject * obj2 = 0 ;
12923 PyObject * obj3 = 0 ;
12924 char * kwnames[] = {
12925 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12926 };
12927
12928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12930 if (!SWIG_IsOK(res1)) {
12931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12932 }
12933 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12934 ecode2 = SWIG_AsVal_long(obj1, &val2);
12935 if (!SWIG_IsOK(ecode2)) {
12936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12937 }
12938 arg2 = static_cast< long >(val2);
12939 ecode3 = SWIG_AsVal_long(obj2, &val3);
12940 if (!SWIG_IsOK(ecode3)) {
12941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12942 }
12943 arg3 = static_cast< long >(val3);
12944 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12945 if (!SWIG_IsOK(res4)) {
12946 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12947 }
12948 if (!argp4) {
12949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12950 }
12951 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12952 {
12953 PyThreadState* __tstate = wxPyBeginAllowThreads();
12954 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12955 wxPyEndAllowThreads(__tstate);
12956 if (PyErr_Occurred()) SWIG_fail;
12957 }
12958 {
12959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12960 }
12961 return resultobj;
12962 fail:
12963 return NULL;
12964 }
12965
12966
12967 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12968 PyObject *resultobj = 0;
12969 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12970 long arg2 ;
12971 wxTextAttr *arg3 = 0 ;
12972 bool result;
12973 void *argp1 = 0 ;
12974 int res1 = 0 ;
12975 long val2 ;
12976 int ecode2 = 0 ;
12977 void *argp3 = 0 ;
12978 int res3 = 0 ;
12979 PyObject * obj0 = 0 ;
12980 PyObject * obj1 = 0 ;
12981 PyObject * obj2 = 0 ;
12982 char * kwnames[] = {
12983 (char *) "self",(char *) "position",(char *) "style", NULL
12984 };
12985
12986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12988 if (!SWIG_IsOK(res1)) {
12989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12990 }
12991 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12992 ecode2 = SWIG_AsVal_long(obj1, &val2);
12993 if (!SWIG_IsOK(ecode2)) {
12994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12995 }
12996 arg2 = static_cast< long >(val2);
12997 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12998 if (!SWIG_IsOK(res3)) {
12999 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13000 }
13001 if (!argp3) {
13002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13003 }
13004 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13005 {
13006 PyThreadState* __tstate = wxPyBeginAllowThreads();
13007 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13008 wxPyEndAllowThreads(__tstate);
13009 if (PyErr_Occurred()) SWIG_fail;
13010 }
13011 {
13012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13013 }
13014 return resultobj;
13015 fail:
13016 return NULL;
13017 }
13018
13019
13020 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13021 PyObject *resultobj = 0;
13022 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13023 wxTextAttr *arg2 = 0 ;
13024 bool result;
13025 void *argp1 = 0 ;
13026 int res1 = 0 ;
13027 void *argp2 = 0 ;
13028 int res2 = 0 ;
13029 PyObject * obj0 = 0 ;
13030 PyObject * obj1 = 0 ;
13031 char * kwnames[] = {
13032 (char *) "self",(char *) "style", NULL
13033 };
13034
13035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13037 if (!SWIG_IsOK(res1)) {
13038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13039 }
13040 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13042 if (!SWIG_IsOK(res2)) {
13043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13044 }
13045 if (!argp2) {
13046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13047 }
13048 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13049 {
13050 PyThreadState* __tstate = wxPyBeginAllowThreads();
13051 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13052 wxPyEndAllowThreads(__tstate);
13053 if (PyErr_Occurred()) SWIG_fail;
13054 }
13055 {
13056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13057 }
13058 return resultobj;
13059 fail:
13060 return NULL;
13061 }
13062
13063
13064 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13065 PyObject *resultobj = 0;
13066 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13067 wxTextAttr *result = 0 ;
13068 void *argp1 = 0 ;
13069 int res1 = 0 ;
13070 PyObject *swig_obj[1] ;
13071
13072 if (!args) SWIG_fail;
13073 swig_obj[0] = args;
13074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13075 if (!SWIG_IsOK(res1)) {
13076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13077 }
13078 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13079 {
13080 PyThreadState* __tstate = wxPyBeginAllowThreads();
13081 {
13082 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13083 result = (wxTextAttr *) &_result_ref;
13084 }
13085 wxPyEndAllowThreads(__tstate);
13086 if (PyErr_Occurred()) SWIG_fail;
13087 }
13088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13089 return resultobj;
13090 fail:
13091 return NULL;
13092 }
13093
13094
13095 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13096 PyObject *resultobj = 0;
13097 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13098 long arg2 ;
13099 long arg3 ;
13100 long result;
13101 void *argp1 = 0 ;
13102 int res1 = 0 ;
13103 long val2 ;
13104 int ecode2 = 0 ;
13105 long val3 ;
13106 int ecode3 = 0 ;
13107 PyObject * obj0 = 0 ;
13108 PyObject * obj1 = 0 ;
13109 PyObject * obj2 = 0 ;
13110 char * kwnames[] = {
13111 (char *) "self",(char *) "x",(char *) "y", NULL
13112 };
13113
13114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13116 if (!SWIG_IsOK(res1)) {
13117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13118 }
13119 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13120 ecode2 = SWIG_AsVal_long(obj1, &val2);
13121 if (!SWIG_IsOK(ecode2)) {
13122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13123 }
13124 arg2 = static_cast< long >(val2);
13125 ecode3 = SWIG_AsVal_long(obj2, &val3);
13126 if (!SWIG_IsOK(ecode3)) {
13127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13128 }
13129 arg3 = static_cast< long >(val3);
13130 {
13131 PyThreadState* __tstate = wxPyBeginAllowThreads();
13132 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13133 wxPyEndAllowThreads(__tstate);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 resultobj = SWIG_From_long(static_cast< long >(result));
13137 return resultobj;
13138 fail:
13139 return NULL;
13140 }
13141
13142
13143 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13144 PyObject *resultobj = 0;
13145 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13146 long arg2 ;
13147 long *arg3 = (long *) 0 ;
13148 long *arg4 = (long *) 0 ;
13149 void *argp1 = 0 ;
13150 int res1 = 0 ;
13151 long val2 ;
13152 int ecode2 = 0 ;
13153 long temp3 ;
13154 int res3 = SWIG_TMPOBJ ;
13155 long temp4 ;
13156 int res4 = SWIG_TMPOBJ ;
13157 PyObject * obj0 = 0 ;
13158 PyObject * obj1 = 0 ;
13159 char * kwnames[] = {
13160 (char *) "self",(char *) "pos", NULL
13161 };
13162
13163 arg3 = &temp3;
13164 arg4 = &temp4;
13165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13167 if (!SWIG_IsOK(res1)) {
13168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13169 }
13170 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13171 ecode2 = SWIG_AsVal_long(obj1, &val2);
13172 if (!SWIG_IsOK(ecode2)) {
13173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13174 }
13175 arg2 = static_cast< long >(val2);
13176 {
13177 PyThreadState* __tstate = wxPyBeginAllowThreads();
13178 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13179 wxPyEndAllowThreads(__tstate);
13180 if (PyErr_Occurred()) SWIG_fail;
13181 }
13182 resultobj = SWIG_Py_Void();
13183 if (SWIG_IsTmpObj(res3)) {
13184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13185 } else {
13186 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13188 }
13189 if (SWIG_IsTmpObj(res4)) {
13190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13191 } else {
13192 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13194 }
13195 return resultobj;
13196 fail:
13197 return NULL;
13198 }
13199
13200
13201 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13202 PyObject *resultobj = 0;
13203 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13204 long arg2 ;
13205 void *argp1 = 0 ;
13206 int res1 = 0 ;
13207 long val2 ;
13208 int ecode2 = 0 ;
13209 PyObject * obj0 = 0 ;
13210 PyObject * obj1 = 0 ;
13211 char * kwnames[] = {
13212 (char *) "self",(char *) "pos", NULL
13213 };
13214
13215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13217 if (!SWIG_IsOK(res1)) {
13218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13219 }
13220 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13221 ecode2 = SWIG_AsVal_long(obj1, &val2);
13222 if (!SWIG_IsOK(ecode2)) {
13223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13224 }
13225 arg2 = static_cast< long >(val2);
13226 {
13227 PyThreadState* __tstate = wxPyBeginAllowThreads();
13228 (arg1)->ShowPosition(arg2);
13229 wxPyEndAllowThreads(__tstate);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 }
13232 resultobj = SWIG_Py_Void();
13233 return resultobj;
13234 fail:
13235 return NULL;
13236 }
13237
13238
13239 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13240 PyObject *resultobj = 0;
13241 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13242 wxPoint *arg2 = 0 ;
13243 long *arg3 = (long *) 0 ;
13244 long *arg4 = (long *) 0 ;
13245 wxTextCtrlHitTestResult result;
13246 void *argp1 = 0 ;
13247 int res1 = 0 ;
13248 wxPoint temp2 ;
13249 long temp3 ;
13250 int res3 = SWIG_TMPOBJ ;
13251 long temp4 ;
13252 int res4 = SWIG_TMPOBJ ;
13253 PyObject * obj0 = 0 ;
13254 PyObject * obj1 = 0 ;
13255 char * kwnames[] = {
13256 (char *) "self",(char *) "pt", NULL
13257 };
13258
13259 arg3 = &temp3;
13260 arg4 = &temp4;
13261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13263 if (!SWIG_IsOK(res1)) {
13264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13265 }
13266 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13267 {
13268 arg2 = &temp2;
13269 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13270 }
13271 {
13272 PyThreadState* __tstate = wxPyBeginAllowThreads();
13273 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13274 wxPyEndAllowThreads(__tstate);
13275 if (PyErr_Occurred()) SWIG_fail;
13276 }
13277 resultobj = SWIG_From_int(static_cast< int >(result));
13278 if (SWIG_IsTmpObj(res3)) {
13279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13280 } else {
13281 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13283 }
13284 if (SWIG_IsTmpObj(res4)) {
13285 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13286 } else {
13287 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13289 }
13290 return resultobj;
13291 fail:
13292 return NULL;
13293 }
13294
13295
13296 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13297 PyObject *resultobj = 0;
13298 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13299 wxPoint *arg2 = 0 ;
13300 long *arg3 = (long *) 0 ;
13301 wxTextCtrlHitTestResult result;
13302 void *argp1 = 0 ;
13303 int res1 = 0 ;
13304 wxPoint temp2 ;
13305 long temp3 ;
13306 int res3 = SWIG_TMPOBJ ;
13307 PyObject * obj0 = 0 ;
13308 PyObject * obj1 = 0 ;
13309 char * kwnames[] = {
13310 (char *) "self",(char *) "pt", NULL
13311 };
13312
13313 arg3 = &temp3;
13314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13316 if (!SWIG_IsOK(res1)) {
13317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13318 }
13319 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13320 {
13321 arg2 = &temp2;
13322 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13323 }
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 resultobj = SWIG_From_int(static_cast< int >(result));
13331 if (SWIG_IsTmpObj(res3)) {
13332 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13333 } else {
13334 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13335 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13336 }
13337 return resultobj;
13338 fail:
13339 return NULL;
13340 }
13341
13342
13343 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13344 PyObject *resultobj = 0;
13345 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13346 void *argp1 = 0 ;
13347 int res1 = 0 ;
13348 PyObject *swig_obj[1] ;
13349
13350 if (!args) SWIG_fail;
13351 swig_obj[0] = args;
13352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13353 if (!SWIG_IsOK(res1)) {
13354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13355 }
13356 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13357 {
13358 PyThreadState* __tstate = wxPyBeginAllowThreads();
13359 (arg1)->Copy();
13360 wxPyEndAllowThreads(__tstate);
13361 if (PyErr_Occurred()) SWIG_fail;
13362 }
13363 resultobj = SWIG_Py_Void();
13364 return resultobj;
13365 fail:
13366 return NULL;
13367 }
13368
13369
13370 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13371 PyObject *resultobj = 0;
13372 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13373 void *argp1 = 0 ;
13374 int res1 = 0 ;
13375 PyObject *swig_obj[1] ;
13376
13377 if (!args) SWIG_fail;
13378 swig_obj[0] = args;
13379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13380 if (!SWIG_IsOK(res1)) {
13381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13382 }
13383 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13384 {
13385 PyThreadState* __tstate = wxPyBeginAllowThreads();
13386 (arg1)->Cut();
13387 wxPyEndAllowThreads(__tstate);
13388 if (PyErr_Occurred()) SWIG_fail;
13389 }
13390 resultobj = SWIG_Py_Void();
13391 return resultobj;
13392 fail:
13393 return NULL;
13394 }
13395
13396
13397 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13398 PyObject *resultobj = 0;
13399 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13400 void *argp1 = 0 ;
13401 int res1 = 0 ;
13402 PyObject *swig_obj[1] ;
13403
13404 if (!args) SWIG_fail;
13405 swig_obj[0] = args;
13406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13407 if (!SWIG_IsOK(res1)) {
13408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13409 }
13410 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 (arg1)->Paste();
13414 wxPyEndAllowThreads(__tstate);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 }
13417 resultobj = SWIG_Py_Void();
13418 return resultobj;
13419 fail:
13420 return NULL;
13421 }
13422
13423
13424 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13425 PyObject *resultobj = 0;
13426 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13427 bool result;
13428 void *argp1 = 0 ;
13429 int res1 = 0 ;
13430 PyObject *swig_obj[1] ;
13431
13432 if (!args) SWIG_fail;
13433 swig_obj[0] = args;
13434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13435 if (!SWIG_IsOK(res1)) {
13436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13437 }
13438 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13439 {
13440 PyThreadState* __tstate = wxPyBeginAllowThreads();
13441 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13442 wxPyEndAllowThreads(__tstate);
13443 if (PyErr_Occurred()) SWIG_fail;
13444 }
13445 {
13446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13447 }
13448 return resultobj;
13449 fail:
13450 return NULL;
13451 }
13452
13453
13454 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13455 PyObject *resultobj = 0;
13456 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13457 bool result;
13458 void *argp1 = 0 ;
13459 int res1 = 0 ;
13460 PyObject *swig_obj[1] ;
13461
13462 if (!args) SWIG_fail;
13463 swig_obj[0] = args;
13464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13465 if (!SWIG_IsOK(res1)) {
13466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13467 }
13468 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13469 {
13470 PyThreadState* __tstate = wxPyBeginAllowThreads();
13471 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13472 wxPyEndAllowThreads(__tstate);
13473 if (PyErr_Occurred()) SWIG_fail;
13474 }
13475 {
13476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13477 }
13478 return resultobj;
13479 fail:
13480 return NULL;
13481 }
13482
13483
13484 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13485 PyObject *resultobj = 0;
13486 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13487 bool result;
13488 void *argp1 = 0 ;
13489 int res1 = 0 ;
13490 PyObject *swig_obj[1] ;
13491
13492 if (!args) SWIG_fail;
13493 swig_obj[0] = args;
13494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13495 if (!SWIG_IsOK(res1)) {
13496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13497 }
13498 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13499 {
13500 PyThreadState* __tstate = wxPyBeginAllowThreads();
13501 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13502 wxPyEndAllowThreads(__tstate);
13503 if (PyErr_Occurred()) SWIG_fail;
13504 }
13505 {
13506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13507 }
13508 return resultobj;
13509 fail:
13510 return NULL;
13511 }
13512
13513
13514 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13515 PyObject *resultobj = 0;
13516 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13517 void *argp1 = 0 ;
13518 int res1 = 0 ;
13519 PyObject *swig_obj[1] ;
13520
13521 if (!args) SWIG_fail;
13522 swig_obj[0] = args;
13523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13524 if (!SWIG_IsOK(res1)) {
13525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13526 }
13527 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 (arg1)->Undo();
13531 wxPyEndAllowThreads(__tstate);
13532 if (PyErr_Occurred()) SWIG_fail;
13533 }
13534 resultobj = SWIG_Py_Void();
13535 return resultobj;
13536 fail:
13537 return NULL;
13538 }
13539
13540
13541 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13542 PyObject *resultobj = 0;
13543 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13544 void *argp1 = 0 ;
13545 int res1 = 0 ;
13546 PyObject *swig_obj[1] ;
13547
13548 if (!args) SWIG_fail;
13549 swig_obj[0] = args;
13550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13551 if (!SWIG_IsOK(res1)) {
13552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13553 }
13554 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13555 {
13556 PyThreadState* __tstate = wxPyBeginAllowThreads();
13557 (arg1)->Redo();
13558 wxPyEndAllowThreads(__tstate);
13559 if (PyErr_Occurred()) SWIG_fail;
13560 }
13561 resultobj = SWIG_Py_Void();
13562 return resultobj;
13563 fail:
13564 return NULL;
13565 }
13566
13567
13568 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13569 PyObject *resultobj = 0;
13570 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13571 bool result;
13572 void *argp1 = 0 ;
13573 int res1 = 0 ;
13574 PyObject *swig_obj[1] ;
13575
13576 if (!args) SWIG_fail;
13577 swig_obj[0] = args;
13578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13579 if (!SWIG_IsOK(res1)) {
13580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13581 }
13582 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13583 {
13584 PyThreadState* __tstate = wxPyBeginAllowThreads();
13585 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13586 wxPyEndAllowThreads(__tstate);
13587 if (PyErr_Occurred()) SWIG_fail;
13588 }
13589 {
13590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13591 }
13592 return resultobj;
13593 fail:
13594 return NULL;
13595 }
13596
13597
13598 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13599 PyObject *resultobj = 0;
13600 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13601 bool result;
13602 void *argp1 = 0 ;
13603 int res1 = 0 ;
13604 PyObject *swig_obj[1] ;
13605
13606 if (!args) SWIG_fail;
13607 swig_obj[0] = args;
13608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13609 if (!SWIG_IsOK(res1)) {
13610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13611 }
13612 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13613 {
13614 PyThreadState* __tstate = wxPyBeginAllowThreads();
13615 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13616 wxPyEndAllowThreads(__tstate);
13617 if (PyErr_Occurred()) SWIG_fail;
13618 }
13619 {
13620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13621 }
13622 return resultobj;
13623 fail:
13624 return NULL;
13625 }
13626
13627
13628 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13629 PyObject *resultobj = 0;
13630 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13631 long arg2 ;
13632 void *argp1 = 0 ;
13633 int res1 = 0 ;
13634 long val2 ;
13635 int ecode2 = 0 ;
13636 PyObject * obj0 = 0 ;
13637 PyObject * obj1 = 0 ;
13638 char * kwnames[] = {
13639 (char *) "self",(char *) "pos", NULL
13640 };
13641
13642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13644 if (!SWIG_IsOK(res1)) {
13645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13646 }
13647 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13648 ecode2 = SWIG_AsVal_long(obj1, &val2);
13649 if (!SWIG_IsOK(ecode2)) {
13650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13651 }
13652 arg2 = static_cast< long >(val2);
13653 {
13654 PyThreadState* __tstate = wxPyBeginAllowThreads();
13655 (arg1)->SetInsertionPoint(arg2);
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 resultobj = SWIG_Py_Void();
13660 return resultobj;
13661 fail:
13662 return NULL;
13663 }
13664
13665
13666 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13667 PyObject *resultobj = 0;
13668 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13669 void *argp1 = 0 ;
13670 int res1 = 0 ;
13671 PyObject *swig_obj[1] ;
13672
13673 if (!args) SWIG_fail;
13674 swig_obj[0] = args;
13675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13676 if (!SWIG_IsOK(res1)) {
13677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13678 }
13679 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13680 {
13681 PyThreadState* __tstate = wxPyBeginAllowThreads();
13682 (arg1)->SetInsertionPointEnd();
13683 wxPyEndAllowThreads(__tstate);
13684 if (PyErr_Occurred()) SWIG_fail;
13685 }
13686 resultobj = SWIG_Py_Void();
13687 return resultobj;
13688 fail:
13689 return NULL;
13690 }
13691
13692
13693 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13694 PyObject *resultobj = 0;
13695 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13696 long result;
13697 void *argp1 = 0 ;
13698 int res1 = 0 ;
13699 PyObject *swig_obj[1] ;
13700
13701 if (!args) SWIG_fail;
13702 swig_obj[0] = args;
13703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13704 if (!SWIG_IsOK(res1)) {
13705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13706 }
13707 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 resultobj = SWIG_From_long(static_cast< long >(result));
13715 return resultobj;
13716 fail:
13717 return NULL;
13718 }
13719
13720
13721 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13722 PyObject *resultobj = 0;
13723 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13724 long result;
13725 void *argp1 = 0 ;
13726 int res1 = 0 ;
13727 PyObject *swig_obj[1] ;
13728
13729 if (!args) SWIG_fail;
13730 swig_obj[0] = args;
13731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13732 if (!SWIG_IsOK(res1)) {
13733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13734 }
13735 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13736 {
13737 PyThreadState* __tstate = wxPyBeginAllowThreads();
13738 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13739 wxPyEndAllowThreads(__tstate);
13740 if (PyErr_Occurred()) SWIG_fail;
13741 }
13742 resultobj = SWIG_From_long(static_cast< long >(result));
13743 return resultobj;
13744 fail:
13745 return NULL;
13746 }
13747
13748
13749 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13750 PyObject *resultobj = 0;
13751 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13752 long arg2 ;
13753 long arg3 ;
13754 void *argp1 = 0 ;
13755 int res1 = 0 ;
13756 long val2 ;
13757 int ecode2 = 0 ;
13758 long val3 ;
13759 int ecode3 = 0 ;
13760 PyObject * obj0 = 0 ;
13761 PyObject * obj1 = 0 ;
13762 PyObject * obj2 = 0 ;
13763 char * kwnames[] = {
13764 (char *) "self",(char *) "from",(char *) "to", NULL
13765 };
13766
13767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13769 if (!SWIG_IsOK(res1)) {
13770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13771 }
13772 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13773 ecode2 = SWIG_AsVal_long(obj1, &val2);
13774 if (!SWIG_IsOK(ecode2)) {
13775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13776 }
13777 arg2 = static_cast< long >(val2);
13778 ecode3 = SWIG_AsVal_long(obj2, &val3);
13779 if (!SWIG_IsOK(ecode3)) {
13780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13781 }
13782 arg3 = static_cast< long >(val3);
13783 {
13784 PyThreadState* __tstate = wxPyBeginAllowThreads();
13785 (arg1)->SetSelection(arg2,arg3);
13786 wxPyEndAllowThreads(__tstate);
13787 if (PyErr_Occurred()) SWIG_fail;
13788 }
13789 resultobj = SWIG_Py_Void();
13790 return resultobj;
13791 fail:
13792 return NULL;
13793 }
13794
13795
13796 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13797 PyObject *resultobj = 0;
13798 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13799 void *argp1 = 0 ;
13800 int res1 = 0 ;
13801 PyObject *swig_obj[1] ;
13802
13803 if (!args) SWIG_fail;
13804 swig_obj[0] = args;
13805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13806 if (!SWIG_IsOK(res1)) {
13807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13808 }
13809 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13810 {
13811 PyThreadState* __tstate = wxPyBeginAllowThreads();
13812 (arg1)->SelectAll();
13813 wxPyEndAllowThreads(__tstate);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
13816 resultobj = SWIG_Py_Void();
13817 return resultobj;
13818 fail:
13819 return NULL;
13820 }
13821
13822
13823 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13824 PyObject *resultobj = 0;
13825 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13826 bool arg2 ;
13827 void *argp1 = 0 ;
13828 int res1 = 0 ;
13829 bool val2 ;
13830 int ecode2 = 0 ;
13831 PyObject * obj0 = 0 ;
13832 PyObject * obj1 = 0 ;
13833 char * kwnames[] = {
13834 (char *) "self",(char *) "editable", NULL
13835 };
13836
13837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13839 if (!SWIG_IsOK(res1)) {
13840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13841 }
13842 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13843 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13844 if (!SWIG_IsOK(ecode2)) {
13845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13846 }
13847 arg2 = static_cast< bool >(val2);
13848 {
13849 PyThreadState* __tstate = wxPyBeginAllowThreads();
13850 (arg1)->SetEditable(arg2);
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_Py_Void();
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj = 0;
13863 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13864 bool arg2 ;
13865 void *argp1 = 0 ;
13866 int res1 = 0 ;
13867 bool val2 ;
13868 int ecode2 = 0 ;
13869 PyObject * obj0 = 0 ;
13870 PyObject * obj1 = 0 ;
13871 char * kwnames[] = {
13872 (char *) "self",(char *) "check", NULL
13873 };
13874
13875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13877 if (!SWIG_IsOK(res1)) {
13878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13879 }
13880 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13881 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13882 if (!SWIG_IsOK(ecode2)) {
13883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13884 }
13885 arg2 = static_cast< bool >(val2);
13886 {
13887 PyThreadState* __tstate = wxPyBeginAllowThreads();
13888 wxTextCtrl_MacCheckSpelling(arg1,arg2);
13889 wxPyEndAllowThreads(__tstate);
13890 if (PyErr_Occurred()) SWIG_fail;
13891 }
13892 resultobj = SWIG_Py_Void();
13893 return resultobj;
13894 fail:
13895 return NULL;
13896 }
13897
13898
13899 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13900 PyObject *resultobj = 0;
13901 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13902 void *argp1 = 0 ;
13903 int res1 = 0 ;
13904 PyObject *swig_obj[1] ;
13905
13906 if (!args) SWIG_fail;
13907 swig_obj[0] = args;
13908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13909 if (!SWIG_IsOK(res1)) {
13910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13911 }
13912 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13913 {
13914 PyThreadState* __tstate = wxPyBeginAllowThreads();
13915 (arg1)->SendTextUpdatedEvent();
13916 wxPyEndAllowThreads(__tstate);
13917 if (PyErr_Occurred()) SWIG_fail;
13918 }
13919 resultobj = SWIG_Py_Void();
13920 return resultobj;
13921 fail:
13922 return NULL;
13923 }
13924
13925
13926 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13927 PyObject *resultobj = 0;
13928 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13929 wxString *arg2 = 0 ;
13930 void *argp1 = 0 ;
13931 int res1 = 0 ;
13932 bool temp2 = false ;
13933 PyObject * obj0 = 0 ;
13934 PyObject * obj1 = 0 ;
13935 char * kwnames[] = {
13936 (char *) "self",(char *) "text", NULL
13937 };
13938
13939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13941 if (!SWIG_IsOK(res1)) {
13942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13943 }
13944 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13945 {
13946 arg2 = wxString_in_helper(obj1);
13947 if (arg2 == NULL) SWIG_fail;
13948 temp2 = true;
13949 }
13950 {
13951 PyThreadState* __tstate = wxPyBeginAllowThreads();
13952 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13953 wxPyEndAllowThreads(__tstate);
13954 if (PyErr_Occurred()) SWIG_fail;
13955 }
13956 resultobj = SWIG_Py_Void();
13957 {
13958 if (temp2)
13959 delete arg2;
13960 }
13961 return resultobj;
13962 fail:
13963 {
13964 if (temp2)
13965 delete arg2;
13966 }
13967 return NULL;
13968 }
13969
13970
13971 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13972 PyObject *resultobj = 0;
13973 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13974 long arg2 ;
13975 long arg3 ;
13976 wxString result;
13977 void *argp1 = 0 ;
13978 int res1 = 0 ;
13979 long val2 ;
13980 int ecode2 = 0 ;
13981 long val3 ;
13982 int ecode3 = 0 ;
13983 PyObject * obj0 = 0 ;
13984 PyObject * obj1 = 0 ;
13985 PyObject * obj2 = 0 ;
13986 char * kwnames[] = {
13987 (char *) "self",(char *) "from",(char *) "to", NULL
13988 };
13989
13990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13992 if (!SWIG_IsOK(res1)) {
13993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13994 }
13995 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13996 ecode2 = SWIG_AsVal_long(obj1, &val2);
13997 if (!SWIG_IsOK(ecode2)) {
13998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13999 }
14000 arg2 = static_cast< long >(val2);
14001 ecode3 = SWIG_AsVal_long(obj2, &val3);
14002 if (!SWIG_IsOK(ecode3)) {
14003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14004 }
14005 arg3 = static_cast< long >(val3);
14006 {
14007 PyThreadState* __tstate = wxPyBeginAllowThreads();
14008 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14009 wxPyEndAllowThreads(__tstate);
14010 if (PyErr_Occurred()) SWIG_fail;
14011 }
14012 {
14013 #if wxUSE_UNICODE
14014 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14015 #else
14016 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14017 #endif
14018 }
14019 return resultobj;
14020 fail:
14021 return NULL;
14022 }
14023
14024
14025 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14026 PyObject *resultobj = 0;
14027 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14028 SwigValueWrapper<wxVisualAttributes > result;
14029 int val1 ;
14030 int ecode1 = 0 ;
14031 PyObject * obj0 = 0 ;
14032 char * kwnames[] = {
14033 (char *) "variant", NULL
14034 };
14035
14036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14037 if (obj0) {
14038 ecode1 = SWIG_AsVal_int(obj0, &val1);
14039 if (!SWIG_IsOK(ecode1)) {
14040 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14041 }
14042 arg1 = static_cast< wxWindowVariant >(val1);
14043 }
14044 {
14045 if (!wxPyCheckForApp()) SWIG_fail;
14046 PyThreadState* __tstate = wxPyBeginAllowThreads();
14047 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14048 wxPyEndAllowThreads(__tstate);
14049 if (PyErr_Occurred()) SWIG_fail;
14050 }
14051 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14052 return resultobj;
14053 fail:
14054 return NULL;
14055 }
14056
14057
14058 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14059 PyObject *obj;
14060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14061 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14062 return SWIG_Py_Void();
14063 }
14064
14065 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14066 return SWIG_Python_InitShadowInstance(args);
14067 }
14068
14069 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14070 PyObject *resultobj = 0;
14071 int arg1 ;
14072 wxMouseEvent *arg2 = 0 ;
14073 long arg3 ;
14074 long arg4 ;
14075 wxTextUrlEvent *result = 0 ;
14076 int val1 ;
14077 int ecode1 = 0 ;
14078 void *argp2 = 0 ;
14079 int res2 = 0 ;
14080 long val3 ;
14081 int ecode3 = 0 ;
14082 long val4 ;
14083 int ecode4 = 0 ;
14084 PyObject * obj0 = 0 ;
14085 PyObject * obj1 = 0 ;
14086 PyObject * obj2 = 0 ;
14087 PyObject * obj3 = 0 ;
14088 char * kwnames[] = {
14089 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14090 };
14091
14092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14093 ecode1 = SWIG_AsVal_int(obj0, &val1);
14094 if (!SWIG_IsOK(ecode1)) {
14095 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14096 }
14097 arg1 = static_cast< int >(val1);
14098 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14099 if (!SWIG_IsOK(res2)) {
14100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14101 }
14102 if (!argp2) {
14103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14104 }
14105 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14106 ecode3 = SWIG_AsVal_long(obj2, &val3);
14107 if (!SWIG_IsOK(ecode3)) {
14108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14109 }
14110 arg3 = static_cast< long >(val3);
14111 ecode4 = SWIG_AsVal_long(obj3, &val4);
14112 if (!SWIG_IsOK(ecode4)) {
14113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14114 }
14115 arg4 = static_cast< long >(val4);
14116 {
14117 PyThreadState* __tstate = wxPyBeginAllowThreads();
14118 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14119 wxPyEndAllowThreads(__tstate);
14120 if (PyErr_Occurred()) SWIG_fail;
14121 }
14122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14123 return resultobj;
14124 fail:
14125 return NULL;
14126 }
14127
14128
14129 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14130 PyObject *resultobj = 0;
14131 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14132 wxMouseEvent *result = 0 ;
14133 void *argp1 = 0 ;
14134 int res1 = 0 ;
14135 PyObject *swig_obj[1] ;
14136
14137 if (!args) SWIG_fail;
14138 swig_obj[0] = args;
14139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14140 if (!SWIG_IsOK(res1)) {
14141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14142 }
14143 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14144 {
14145 PyThreadState* __tstate = wxPyBeginAllowThreads();
14146 {
14147 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14148 result = (wxMouseEvent *) &_result_ref;
14149 }
14150 wxPyEndAllowThreads(__tstate);
14151 if (PyErr_Occurred()) SWIG_fail;
14152 }
14153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14154 return resultobj;
14155 fail:
14156 return NULL;
14157 }
14158
14159
14160 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14161 PyObject *resultobj = 0;
14162 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14163 long result;
14164 void *argp1 = 0 ;
14165 int res1 = 0 ;
14166 PyObject *swig_obj[1] ;
14167
14168 if (!args) SWIG_fail;
14169 swig_obj[0] = args;
14170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14171 if (!SWIG_IsOK(res1)) {
14172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14173 }
14174 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14175 {
14176 PyThreadState* __tstate = wxPyBeginAllowThreads();
14177 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14178 wxPyEndAllowThreads(__tstate);
14179 if (PyErr_Occurred()) SWIG_fail;
14180 }
14181 resultobj = SWIG_From_long(static_cast< long >(result));
14182 return resultobj;
14183 fail:
14184 return NULL;
14185 }
14186
14187
14188 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14189 PyObject *resultobj = 0;
14190 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14191 long result;
14192 void *argp1 = 0 ;
14193 int res1 = 0 ;
14194 PyObject *swig_obj[1] ;
14195
14196 if (!args) SWIG_fail;
14197 swig_obj[0] = args;
14198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14199 if (!SWIG_IsOK(res1)) {
14200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14201 }
14202 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14206 wxPyEndAllowThreads(__tstate);
14207 if (PyErr_Occurred()) SWIG_fail;
14208 }
14209 resultobj = SWIG_From_long(static_cast< long >(result));
14210 return resultobj;
14211 fail:
14212 return NULL;
14213 }
14214
14215
14216 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14217 PyObject *obj;
14218 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14219 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14220 return SWIG_Py_Void();
14221 }
14222
14223 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14224 return SWIG_Python_InitShadowInstance(args);
14225 }
14226
14227 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14228 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14229 return 1;
14230 }
14231
14232
14233 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14234 PyObject *pyobj = 0;
14235
14236 {
14237 #if wxUSE_UNICODE
14238 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14239 #else
14240 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14241 #endif
14242 }
14243 return pyobj;
14244 }
14245
14246
14247 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14248 PyObject *resultobj = 0;
14249 wxWindow *arg1 = (wxWindow *) 0 ;
14250 int arg2 = (int) -1 ;
14251 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14252 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14253 wxSize const &arg4_defvalue = wxDefaultSize ;
14254 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14255 long arg5 = (long) wxSB_HORIZONTAL ;
14256 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14257 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14258 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14259 wxString *arg7 = (wxString *) &arg7_defvalue ;
14260 wxScrollBar *result = 0 ;
14261 void *argp1 = 0 ;
14262 int res1 = 0 ;
14263 int val2 ;
14264 int ecode2 = 0 ;
14265 wxPoint temp3 ;
14266 wxSize temp4 ;
14267 long val5 ;
14268 int ecode5 = 0 ;
14269 void *argp6 = 0 ;
14270 int res6 = 0 ;
14271 bool temp7 = false ;
14272 PyObject * obj0 = 0 ;
14273 PyObject * obj1 = 0 ;
14274 PyObject * obj2 = 0 ;
14275 PyObject * obj3 = 0 ;
14276 PyObject * obj4 = 0 ;
14277 PyObject * obj5 = 0 ;
14278 PyObject * obj6 = 0 ;
14279 char * kwnames[] = {
14280 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14281 };
14282
14283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14285 if (!SWIG_IsOK(res1)) {
14286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14287 }
14288 arg1 = reinterpret_cast< wxWindow * >(argp1);
14289 if (obj1) {
14290 ecode2 = SWIG_AsVal_int(obj1, &val2);
14291 if (!SWIG_IsOK(ecode2)) {
14292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14293 }
14294 arg2 = static_cast< int >(val2);
14295 }
14296 if (obj2) {
14297 {
14298 arg3 = &temp3;
14299 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14300 }
14301 }
14302 if (obj3) {
14303 {
14304 arg4 = &temp4;
14305 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14306 }
14307 }
14308 if (obj4) {
14309 ecode5 = SWIG_AsVal_long(obj4, &val5);
14310 if (!SWIG_IsOK(ecode5)) {
14311 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14312 }
14313 arg5 = static_cast< long >(val5);
14314 }
14315 if (obj5) {
14316 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14317 if (!SWIG_IsOK(res6)) {
14318 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14319 }
14320 if (!argp6) {
14321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14322 }
14323 arg6 = reinterpret_cast< wxValidator * >(argp6);
14324 }
14325 if (obj6) {
14326 {
14327 arg7 = wxString_in_helper(obj6);
14328 if (arg7 == NULL) SWIG_fail;
14329 temp7 = true;
14330 }
14331 }
14332 {
14333 if (!wxPyCheckForApp()) SWIG_fail;
14334 PyThreadState* __tstate = wxPyBeginAllowThreads();
14335 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14336 wxPyEndAllowThreads(__tstate);
14337 if (PyErr_Occurred()) SWIG_fail;
14338 }
14339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14340 {
14341 if (temp7)
14342 delete arg7;
14343 }
14344 return resultobj;
14345 fail:
14346 {
14347 if (temp7)
14348 delete arg7;
14349 }
14350 return NULL;
14351 }
14352
14353
14354 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14355 PyObject *resultobj = 0;
14356 wxScrollBar *result = 0 ;
14357
14358 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14359 {
14360 if (!wxPyCheckForApp()) SWIG_fail;
14361 PyThreadState* __tstate = wxPyBeginAllowThreads();
14362 result = (wxScrollBar *)new wxScrollBar();
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14367 return resultobj;
14368 fail:
14369 return NULL;
14370 }
14371
14372
14373 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14374 PyObject *resultobj = 0;
14375 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14376 wxWindow *arg2 = (wxWindow *) 0 ;
14377 int arg3 = (int) -1 ;
14378 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14379 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14380 wxSize const &arg5_defvalue = wxDefaultSize ;
14381 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14382 long arg6 = (long) wxSB_HORIZONTAL ;
14383 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14384 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14385 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14386 wxString *arg8 = (wxString *) &arg8_defvalue ;
14387 bool result;
14388 void *argp1 = 0 ;
14389 int res1 = 0 ;
14390 void *argp2 = 0 ;
14391 int res2 = 0 ;
14392 int val3 ;
14393 int ecode3 = 0 ;
14394 wxPoint temp4 ;
14395 wxSize temp5 ;
14396 long val6 ;
14397 int ecode6 = 0 ;
14398 void *argp7 = 0 ;
14399 int res7 = 0 ;
14400 bool temp8 = false ;
14401 PyObject * obj0 = 0 ;
14402 PyObject * obj1 = 0 ;
14403 PyObject * obj2 = 0 ;
14404 PyObject * obj3 = 0 ;
14405 PyObject * obj4 = 0 ;
14406 PyObject * obj5 = 0 ;
14407 PyObject * obj6 = 0 ;
14408 PyObject * obj7 = 0 ;
14409 char * kwnames[] = {
14410 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14411 };
14412
14413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14415 if (!SWIG_IsOK(res1)) {
14416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14417 }
14418 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14419 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14420 if (!SWIG_IsOK(res2)) {
14421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14422 }
14423 arg2 = reinterpret_cast< wxWindow * >(argp2);
14424 if (obj2) {
14425 ecode3 = SWIG_AsVal_int(obj2, &val3);
14426 if (!SWIG_IsOK(ecode3)) {
14427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14428 }
14429 arg3 = static_cast< int >(val3);
14430 }
14431 if (obj3) {
14432 {
14433 arg4 = &temp4;
14434 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14435 }
14436 }
14437 if (obj4) {
14438 {
14439 arg5 = &temp5;
14440 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14441 }
14442 }
14443 if (obj5) {
14444 ecode6 = SWIG_AsVal_long(obj5, &val6);
14445 if (!SWIG_IsOK(ecode6)) {
14446 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14447 }
14448 arg6 = static_cast< long >(val6);
14449 }
14450 if (obj6) {
14451 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14452 if (!SWIG_IsOK(res7)) {
14453 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14454 }
14455 if (!argp7) {
14456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14457 }
14458 arg7 = reinterpret_cast< wxValidator * >(argp7);
14459 }
14460 if (obj7) {
14461 {
14462 arg8 = wxString_in_helper(obj7);
14463 if (arg8 == NULL) SWIG_fail;
14464 temp8 = true;
14465 }
14466 }
14467 {
14468 PyThreadState* __tstate = wxPyBeginAllowThreads();
14469 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14470 wxPyEndAllowThreads(__tstate);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 }
14473 {
14474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14475 }
14476 {
14477 if (temp8)
14478 delete arg8;
14479 }
14480 return resultobj;
14481 fail:
14482 {
14483 if (temp8)
14484 delete arg8;
14485 }
14486 return NULL;
14487 }
14488
14489
14490 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14491 PyObject *resultobj = 0;
14492 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14493 int result;
14494 void *argp1 = 0 ;
14495 int res1 = 0 ;
14496 PyObject *swig_obj[1] ;
14497
14498 if (!args) SWIG_fail;
14499 swig_obj[0] = args;
14500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14501 if (!SWIG_IsOK(res1)) {
14502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14503 }
14504 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14505 {
14506 PyThreadState* __tstate = wxPyBeginAllowThreads();
14507 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14508 wxPyEndAllowThreads(__tstate);
14509 if (PyErr_Occurred()) SWIG_fail;
14510 }
14511 resultobj = SWIG_From_int(static_cast< int >(result));
14512 return resultobj;
14513 fail:
14514 return NULL;
14515 }
14516
14517
14518 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14519 PyObject *resultobj = 0;
14520 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14521 int result;
14522 void *argp1 = 0 ;
14523 int res1 = 0 ;
14524 PyObject *swig_obj[1] ;
14525
14526 if (!args) SWIG_fail;
14527 swig_obj[0] = args;
14528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14529 if (!SWIG_IsOK(res1)) {
14530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14531 }
14532 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14533 {
14534 PyThreadState* __tstate = wxPyBeginAllowThreads();
14535 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14536 wxPyEndAllowThreads(__tstate);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 }
14539 resultobj = SWIG_From_int(static_cast< int >(result));
14540 return resultobj;
14541 fail:
14542 return NULL;
14543 }
14544
14545
14546 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14547 PyObject *resultobj = 0;
14548 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14549 int result;
14550 void *argp1 = 0 ;
14551 int res1 = 0 ;
14552 PyObject *swig_obj[1] ;
14553
14554 if (!args) SWIG_fail;
14555 swig_obj[0] = args;
14556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14557 if (!SWIG_IsOK(res1)) {
14558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14559 }
14560 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14561 {
14562 PyThreadState* __tstate = wxPyBeginAllowThreads();
14563 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14564 wxPyEndAllowThreads(__tstate);
14565 if (PyErr_Occurred()) SWIG_fail;
14566 }
14567 resultobj = SWIG_From_int(static_cast< int >(result));
14568 return resultobj;
14569 fail:
14570 return NULL;
14571 }
14572
14573
14574 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14575 PyObject *resultobj = 0;
14576 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14577 int result;
14578 void *argp1 = 0 ;
14579 int res1 = 0 ;
14580 PyObject *swig_obj[1] ;
14581
14582 if (!args) SWIG_fail;
14583 swig_obj[0] = args;
14584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14585 if (!SWIG_IsOK(res1)) {
14586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14587 }
14588 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14589 {
14590 PyThreadState* __tstate = wxPyBeginAllowThreads();
14591 result = (int)((wxScrollBar const *)arg1)->GetRange();
14592 wxPyEndAllowThreads(__tstate);
14593 if (PyErr_Occurred()) SWIG_fail;
14594 }
14595 resultobj = SWIG_From_int(static_cast< int >(result));
14596 return resultobj;
14597 fail:
14598 return NULL;
14599 }
14600
14601
14602 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14603 PyObject *resultobj = 0;
14604 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14605 bool result;
14606 void *argp1 = 0 ;
14607 int res1 = 0 ;
14608 PyObject *swig_obj[1] ;
14609
14610 if (!args) SWIG_fail;
14611 swig_obj[0] = args;
14612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14613 if (!SWIG_IsOK(res1)) {
14614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14615 }
14616 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14617 {
14618 PyThreadState* __tstate = wxPyBeginAllowThreads();
14619 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14620 wxPyEndAllowThreads(__tstate);
14621 if (PyErr_Occurred()) SWIG_fail;
14622 }
14623 {
14624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14625 }
14626 return resultobj;
14627 fail:
14628 return NULL;
14629 }
14630
14631
14632 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14633 PyObject *resultobj = 0;
14634 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14635 int arg2 ;
14636 void *argp1 = 0 ;
14637 int res1 = 0 ;
14638 int val2 ;
14639 int ecode2 = 0 ;
14640 PyObject * obj0 = 0 ;
14641 PyObject * obj1 = 0 ;
14642 char * kwnames[] = {
14643 (char *) "self",(char *) "viewStart", NULL
14644 };
14645
14646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14648 if (!SWIG_IsOK(res1)) {
14649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14650 }
14651 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14652 ecode2 = SWIG_AsVal_int(obj1, &val2);
14653 if (!SWIG_IsOK(ecode2)) {
14654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14655 }
14656 arg2 = static_cast< int >(val2);
14657 {
14658 PyThreadState* __tstate = wxPyBeginAllowThreads();
14659 (arg1)->SetThumbPosition(arg2);
14660 wxPyEndAllowThreads(__tstate);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 }
14663 resultobj = SWIG_Py_Void();
14664 return resultobj;
14665 fail:
14666 return NULL;
14667 }
14668
14669
14670 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14671 PyObject *resultobj = 0;
14672 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14673 SwigValueWrapper<wxVisualAttributes > result;
14674 int val1 ;
14675 int ecode1 = 0 ;
14676 PyObject * obj0 = 0 ;
14677 char * kwnames[] = {
14678 (char *) "variant", NULL
14679 };
14680
14681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14682 if (obj0) {
14683 ecode1 = SWIG_AsVal_int(obj0, &val1);
14684 if (!SWIG_IsOK(ecode1)) {
14685 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14686 }
14687 arg1 = static_cast< wxWindowVariant >(val1);
14688 }
14689 {
14690 if (!wxPyCheckForApp()) SWIG_fail;
14691 PyThreadState* __tstate = wxPyBeginAllowThreads();
14692 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14693 wxPyEndAllowThreads(__tstate);
14694 if (PyErr_Occurred()) SWIG_fail;
14695 }
14696 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14697 return resultobj;
14698 fail:
14699 return NULL;
14700 }
14701
14702
14703 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14704 PyObject *obj;
14705 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14706 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14707 return SWIG_Py_Void();
14708 }
14709
14710 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14711 return SWIG_Python_InitShadowInstance(args);
14712 }
14713
14714 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14715 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14716 return 1;
14717 }
14718
14719
14720 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14721 PyObject *pyobj = 0;
14722
14723 {
14724 #if wxUSE_UNICODE
14725 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14726 #else
14727 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14728 #endif
14729 }
14730 return pyobj;
14731 }
14732
14733
14734 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14735 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14736 return 1;
14737 }
14738
14739
14740 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14741 PyObject *pyobj = 0;
14742
14743 {
14744 #if wxUSE_UNICODE
14745 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14746 #else
14747 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14748 #endif
14749 }
14750 return pyobj;
14751 }
14752
14753
14754 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14755 PyObject *resultobj = 0;
14756 wxWindow *arg1 = (wxWindow *) 0 ;
14757 int arg2 = (int) -1 ;
14758 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14759 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14760 wxSize const &arg4_defvalue = wxDefaultSize ;
14761 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14762 long arg5 = (long) wxSP_HORIZONTAL ;
14763 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14764 wxString *arg6 = (wxString *) &arg6_defvalue ;
14765 wxSpinButton *result = 0 ;
14766 void *argp1 = 0 ;
14767 int res1 = 0 ;
14768 int val2 ;
14769 int ecode2 = 0 ;
14770 wxPoint temp3 ;
14771 wxSize temp4 ;
14772 long val5 ;
14773 int ecode5 = 0 ;
14774 bool temp6 = false ;
14775 PyObject * obj0 = 0 ;
14776 PyObject * obj1 = 0 ;
14777 PyObject * obj2 = 0 ;
14778 PyObject * obj3 = 0 ;
14779 PyObject * obj4 = 0 ;
14780 PyObject * obj5 = 0 ;
14781 char * kwnames[] = {
14782 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14783 };
14784
14785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14787 if (!SWIG_IsOK(res1)) {
14788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14789 }
14790 arg1 = reinterpret_cast< wxWindow * >(argp1);
14791 if (obj1) {
14792 ecode2 = SWIG_AsVal_int(obj1, &val2);
14793 if (!SWIG_IsOK(ecode2)) {
14794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14795 }
14796 arg2 = static_cast< int >(val2);
14797 }
14798 if (obj2) {
14799 {
14800 arg3 = &temp3;
14801 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14802 }
14803 }
14804 if (obj3) {
14805 {
14806 arg4 = &temp4;
14807 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14808 }
14809 }
14810 if (obj4) {
14811 ecode5 = SWIG_AsVal_long(obj4, &val5);
14812 if (!SWIG_IsOK(ecode5)) {
14813 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14814 }
14815 arg5 = static_cast< long >(val5);
14816 }
14817 if (obj5) {
14818 {
14819 arg6 = wxString_in_helper(obj5);
14820 if (arg6 == NULL) SWIG_fail;
14821 temp6 = true;
14822 }
14823 }
14824 {
14825 if (!wxPyCheckForApp()) SWIG_fail;
14826 PyThreadState* __tstate = wxPyBeginAllowThreads();
14827 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14828 wxPyEndAllowThreads(__tstate);
14829 if (PyErr_Occurred()) SWIG_fail;
14830 }
14831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14832 {
14833 if (temp6)
14834 delete arg6;
14835 }
14836 return resultobj;
14837 fail:
14838 {
14839 if (temp6)
14840 delete arg6;
14841 }
14842 return NULL;
14843 }
14844
14845
14846 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14847 PyObject *resultobj = 0;
14848 wxSpinButton *result = 0 ;
14849
14850 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14851 {
14852 if (!wxPyCheckForApp()) SWIG_fail;
14853 PyThreadState* __tstate = wxPyBeginAllowThreads();
14854 result = (wxSpinButton *)new wxSpinButton();
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14859 return resultobj;
14860 fail:
14861 return NULL;
14862 }
14863
14864
14865 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj = 0;
14867 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14868 wxWindow *arg2 = (wxWindow *) 0 ;
14869 int arg3 = (int) -1 ;
14870 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14871 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14872 wxSize const &arg5_defvalue = wxDefaultSize ;
14873 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14874 long arg6 = (long) wxSP_HORIZONTAL ;
14875 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14876 wxString *arg7 = (wxString *) &arg7_defvalue ;
14877 bool result;
14878 void *argp1 = 0 ;
14879 int res1 = 0 ;
14880 void *argp2 = 0 ;
14881 int res2 = 0 ;
14882 int val3 ;
14883 int ecode3 = 0 ;
14884 wxPoint temp4 ;
14885 wxSize temp5 ;
14886 long val6 ;
14887 int ecode6 = 0 ;
14888 bool temp7 = false ;
14889 PyObject * obj0 = 0 ;
14890 PyObject * obj1 = 0 ;
14891 PyObject * obj2 = 0 ;
14892 PyObject * obj3 = 0 ;
14893 PyObject * obj4 = 0 ;
14894 PyObject * obj5 = 0 ;
14895 PyObject * obj6 = 0 ;
14896 char * kwnames[] = {
14897 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14898 };
14899
14900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14902 if (!SWIG_IsOK(res1)) {
14903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14904 }
14905 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14906 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14907 if (!SWIG_IsOK(res2)) {
14908 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14909 }
14910 arg2 = reinterpret_cast< wxWindow * >(argp2);
14911 if (obj2) {
14912 ecode3 = SWIG_AsVal_int(obj2, &val3);
14913 if (!SWIG_IsOK(ecode3)) {
14914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14915 }
14916 arg3 = static_cast< int >(val3);
14917 }
14918 if (obj3) {
14919 {
14920 arg4 = &temp4;
14921 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14922 }
14923 }
14924 if (obj4) {
14925 {
14926 arg5 = &temp5;
14927 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14928 }
14929 }
14930 if (obj5) {
14931 ecode6 = SWIG_AsVal_long(obj5, &val6);
14932 if (!SWIG_IsOK(ecode6)) {
14933 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14934 }
14935 arg6 = static_cast< long >(val6);
14936 }
14937 if (obj6) {
14938 {
14939 arg7 = wxString_in_helper(obj6);
14940 if (arg7 == NULL) SWIG_fail;
14941 temp7 = true;
14942 }
14943 }
14944 {
14945 PyThreadState* __tstate = wxPyBeginAllowThreads();
14946 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14947 wxPyEndAllowThreads(__tstate);
14948 if (PyErr_Occurred()) SWIG_fail;
14949 }
14950 {
14951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14952 }
14953 {
14954 if (temp7)
14955 delete arg7;
14956 }
14957 return resultobj;
14958 fail:
14959 {
14960 if (temp7)
14961 delete arg7;
14962 }
14963 return NULL;
14964 }
14965
14966
14967 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14968 PyObject *resultobj = 0;
14969 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14970 int result;
14971 void *argp1 = 0 ;
14972 int res1 = 0 ;
14973 PyObject *swig_obj[1] ;
14974
14975 if (!args) SWIG_fail;
14976 swig_obj[0] = args;
14977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14978 if (!SWIG_IsOK(res1)) {
14979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14980 }
14981 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14982 {
14983 PyThreadState* __tstate = wxPyBeginAllowThreads();
14984 result = (int)((wxSpinButton const *)arg1)->GetValue();
14985 wxPyEndAllowThreads(__tstate);
14986 if (PyErr_Occurred()) SWIG_fail;
14987 }
14988 resultobj = SWIG_From_int(static_cast< int >(result));
14989 return resultobj;
14990 fail:
14991 return NULL;
14992 }
14993
14994
14995 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14996 PyObject *resultobj = 0;
14997 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14998 int result;
14999 void *argp1 = 0 ;
15000 int res1 = 0 ;
15001 PyObject *swig_obj[1] ;
15002
15003 if (!args) SWIG_fail;
15004 swig_obj[0] = args;
15005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15006 if (!SWIG_IsOK(res1)) {
15007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15008 }
15009 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15010 {
15011 PyThreadState* __tstate = wxPyBeginAllowThreads();
15012 result = (int)((wxSpinButton const *)arg1)->GetMin();
15013 wxPyEndAllowThreads(__tstate);
15014 if (PyErr_Occurred()) SWIG_fail;
15015 }
15016 resultobj = SWIG_From_int(static_cast< int >(result));
15017 return resultobj;
15018 fail:
15019 return NULL;
15020 }
15021
15022
15023 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15024 PyObject *resultobj = 0;
15025 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15026 int result;
15027 void *argp1 = 0 ;
15028 int res1 = 0 ;
15029 PyObject *swig_obj[1] ;
15030
15031 if (!args) SWIG_fail;
15032 swig_obj[0] = args;
15033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15034 if (!SWIG_IsOK(res1)) {
15035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15036 }
15037 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15038 {
15039 PyThreadState* __tstate = wxPyBeginAllowThreads();
15040 result = (int)((wxSpinButton const *)arg1)->GetMax();
15041 wxPyEndAllowThreads(__tstate);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 resultobj = SWIG_From_int(static_cast< int >(result));
15045 return resultobj;
15046 fail:
15047 return NULL;
15048 }
15049
15050
15051 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15052 PyObject *resultobj = 0;
15053 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15054 int arg2 ;
15055 void *argp1 = 0 ;
15056 int res1 = 0 ;
15057 int val2 ;
15058 int ecode2 = 0 ;
15059 PyObject * obj0 = 0 ;
15060 PyObject * obj1 = 0 ;
15061 char * kwnames[] = {
15062 (char *) "self",(char *) "val", NULL
15063 };
15064
15065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15067 if (!SWIG_IsOK(res1)) {
15068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15069 }
15070 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15071 ecode2 = SWIG_AsVal_int(obj1, &val2);
15072 if (!SWIG_IsOK(ecode2)) {
15073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15074 }
15075 arg2 = static_cast< int >(val2);
15076 {
15077 PyThreadState* __tstate = wxPyBeginAllowThreads();
15078 (arg1)->SetValue(arg2);
15079 wxPyEndAllowThreads(__tstate);
15080 if (PyErr_Occurred()) SWIG_fail;
15081 }
15082 resultobj = SWIG_Py_Void();
15083 return resultobj;
15084 fail:
15085 return NULL;
15086 }
15087
15088
15089 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15090 PyObject *resultobj = 0;
15091 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15092 int arg2 ;
15093 void *argp1 = 0 ;
15094 int res1 = 0 ;
15095 int val2 ;
15096 int ecode2 = 0 ;
15097 PyObject * obj0 = 0 ;
15098 PyObject * obj1 = 0 ;
15099 char * kwnames[] = {
15100 (char *) "self",(char *) "minVal", NULL
15101 };
15102
15103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15105 if (!SWIG_IsOK(res1)) {
15106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15107 }
15108 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15109 ecode2 = SWIG_AsVal_int(obj1, &val2);
15110 if (!SWIG_IsOK(ecode2)) {
15111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15112 }
15113 arg2 = static_cast< int >(val2);
15114 {
15115 PyThreadState* __tstate = wxPyBeginAllowThreads();
15116 (arg1)->SetMin(arg2);
15117 wxPyEndAllowThreads(__tstate);
15118 if (PyErr_Occurred()) SWIG_fail;
15119 }
15120 resultobj = SWIG_Py_Void();
15121 return resultobj;
15122 fail:
15123 return NULL;
15124 }
15125
15126
15127 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15128 PyObject *resultobj = 0;
15129 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15130 int arg2 ;
15131 void *argp1 = 0 ;
15132 int res1 = 0 ;
15133 int val2 ;
15134 int ecode2 = 0 ;
15135 PyObject * obj0 = 0 ;
15136 PyObject * obj1 = 0 ;
15137 char * kwnames[] = {
15138 (char *) "self",(char *) "maxVal", NULL
15139 };
15140
15141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15143 if (!SWIG_IsOK(res1)) {
15144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15145 }
15146 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15147 ecode2 = SWIG_AsVal_int(obj1, &val2);
15148 if (!SWIG_IsOK(ecode2)) {
15149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15150 }
15151 arg2 = static_cast< int >(val2);
15152 {
15153 PyThreadState* __tstate = wxPyBeginAllowThreads();
15154 (arg1)->SetMax(arg2);
15155 wxPyEndAllowThreads(__tstate);
15156 if (PyErr_Occurred()) SWIG_fail;
15157 }
15158 resultobj = SWIG_Py_Void();
15159 return resultobj;
15160 fail:
15161 return NULL;
15162 }
15163
15164
15165 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15166 PyObject *resultobj = 0;
15167 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15168 int arg2 ;
15169 int arg3 ;
15170 void *argp1 = 0 ;
15171 int res1 = 0 ;
15172 int val2 ;
15173 int ecode2 = 0 ;
15174 int val3 ;
15175 int ecode3 = 0 ;
15176 PyObject * obj0 = 0 ;
15177 PyObject * obj1 = 0 ;
15178 PyObject * obj2 = 0 ;
15179 char * kwnames[] = {
15180 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15181 };
15182
15183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15185 if (!SWIG_IsOK(res1)) {
15186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15187 }
15188 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15189 ecode2 = SWIG_AsVal_int(obj1, &val2);
15190 if (!SWIG_IsOK(ecode2)) {
15191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15192 }
15193 arg2 = static_cast< int >(val2);
15194 ecode3 = SWIG_AsVal_int(obj2, &val3);
15195 if (!SWIG_IsOK(ecode3)) {
15196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15197 }
15198 arg3 = static_cast< int >(val3);
15199 {
15200 PyThreadState* __tstate = wxPyBeginAllowThreads();
15201 (arg1)->SetRange(arg2,arg3);
15202 wxPyEndAllowThreads(__tstate);
15203 if (PyErr_Occurred()) SWIG_fail;
15204 }
15205 resultobj = SWIG_Py_Void();
15206 return resultobj;
15207 fail:
15208 return NULL;
15209 }
15210
15211
15212 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15213 PyObject *resultobj = 0;
15214 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15215 bool result;
15216 void *argp1 = 0 ;
15217 int res1 = 0 ;
15218 PyObject *swig_obj[1] ;
15219
15220 if (!args) SWIG_fail;
15221 swig_obj[0] = args;
15222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15223 if (!SWIG_IsOK(res1)) {
15224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15225 }
15226 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15227 {
15228 PyThreadState* __tstate = wxPyBeginAllowThreads();
15229 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15230 wxPyEndAllowThreads(__tstate);
15231 if (PyErr_Occurred()) SWIG_fail;
15232 }
15233 {
15234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15235 }
15236 return resultobj;
15237 fail:
15238 return NULL;
15239 }
15240
15241
15242 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15243 PyObject *resultobj = 0;
15244 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15245 SwigValueWrapper<wxVisualAttributes > result;
15246 int val1 ;
15247 int ecode1 = 0 ;
15248 PyObject * obj0 = 0 ;
15249 char * kwnames[] = {
15250 (char *) "variant", NULL
15251 };
15252
15253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15254 if (obj0) {
15255 ecode1 = SWIG_AsVal_int(obj0, &val1);
15256 if (!SWIG_IsOK(ecode1)) {
15257 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15258 }
15259 arg1 = static_cast< wxWindowVariant >(val1);
15260 }
15261 {
15262 if (!wxPyCheckForApp()) SWIG_fail;
15263 PyThreadState* __tstate = wxPyBeginAllowThreads();
15264 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15265 wxPyEndAllowThreads(__tstate);
15266 if (PyErr_Occurred()) SWIG_fail;
15267 }
15268 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15269 return resultobj;
15270 fail:
15271 return NULL;
15272 }
15273
15274
15275 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15276 PyObject *obj;
15277 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15278 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15279 return SWIG_Py_Void();
15280 }
15281
15282 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15283 return SWIG_Python_InitShadowInstance(args);
15284 }
15285
15286 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15287 PyObject *resultobj = 0;
15288 wxWindow *arg1 = (wxWindow *) 0 ;
15289 int arg2 = (int) -1 ;
15290 wxString const &arg3_defvalue = wxPyEmptyString ;
15291 wxString *arg3 = (wxString *) &arg3_defvalue ;
15292 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15293 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15294 wxSize const &arg5_defvalue = wxDefaultSize ;
15295 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15296 long arg6 = (long) wxSP_ARROW_KEYS ;
15297 int arg7 = (int) 0 ;
15298 int arg8 = (int) 100 ;
15299 int arg9 = (int) 0 ;
15300 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15301 wxString *arg10 = (wxString *) &arg10_defvalue ;
15302 wxSpinCtrl *result = 0 ;
15303 void *argp1 = 0 ;
15304 int res1 = 0 ;
15305 int val2 ;
15306 int ecode2 = 0 ;
15307 bool temp3 = false ;
15308 wxPoint temp4 ;
15309 wxSize temp5 ;
15310 long val6 ;
15311 int ecode6 = 0 ;
15312 int val7 ;
15313 int ecode7 = 0 ;
15314 int val8 ;
15315 int ecode8 = 0 ;
15316 int val9 ;
15317 int ecode9 = 0 ;
15318 bool temp10 = false ;
15319 PyObject * obj0 = 0 ;
15320 PyObject * obj1 = 0 ;
15321 PyObject * obj2 = 0 ;
15322 PyObject * obj3 = 0 ;
15323 PyObject * obj4 = 0 ;
15324 PyObject * obj5 = 0 ;
15325 PyObject * obj6 = 0 ;
15326 PyObject * obj7 = 0 ;
15327 PyObject * obj8 = 0 ;
15328 PyObject * obj9 = 0 ;
15329 char * kwnames[] = {
15330 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15331 };
15332
15333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15335 if (!SWIG_IsOK(res1)) {
15336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15337 }
15338 arg1 = reinterpret_cast< wxWindow * >(argp1);
15339 if (obj1) {
15340 ecode2 = SWIG_AsVal_int(obj1, &val2);
15341 if (!SWIG_IsOK(ecode2)) {
15342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15343 }
15344 arg2 = static_cast< int >(val2);
15345 }
15346 if (obj2) {
15347 {
15348 arg3 = wxString_in_helper(obj2);
15349 if (arg3 == NULL) SWIG_fail;
15350 temp3 = true;
15351 }
15352 }
15353 if (obj3) {
15354 {
15355 arg4 = &temp4;
15356 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15357 }
15358 }
15359 if (obj4) {
15360 {
15361 arg5 = &temp5;
15362 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15363 }
15364 }
15365 if (obj5) {
15366 ecode6 = SWIG_AsVal_long(obj5, &val6);
15367 if (!SWIG_IsOK(ecode6)) {
15368 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15369 }
15370 arg6 = static_cast< long >(val6);
15371 }
15372 if (obj6) {
15373 ecode7 = SWIG_AsVal_int(obj6, &val7);
15374 if (!SWIG_IsOK(ecode7)) {
15375 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15376 }
15377 arg7 = static_cast< int >(val7);
15378 }
15379 if (obj7) {
15380 ecode8 = SWIG_AsVal_int(obj7, &val8);
15381 if (!SWIG_IsOK(ecode8)) {
15382 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15383 }
15384 arg8 = static_cast< int >(val8);
15385 }
15386 if (obj8) {
15387 ecode9 = SWIG_AsVal_int(obj8, &val9);
15388 if (!SWIG_IsOK(ecode9)) {
15389 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15390 }
15391 arg9 = static_cast< int >(val9);
15392 }
15393 if (obj9) {
15394 {
15395 arg10 = wxString_in_helper(obj9);
15396 if (arg10 == NULL) SWIG_fail;
15397 temp10 = true;
15398 }
15399 }
15400 {
15401 if (!wxPyCheckForApp()) SWIG_fail;
15402 PyThreadState* __tstate = wxPyBeginAllowThreads();
15403 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15404 wxPyEndAllowThreads(__tstate);
15405 if (PyErr_Occurred()) SWIG_fail;
15406 }
15407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15408 {
15409 if (temp3)
15410 delete arg3;
15411 }
15412 {
15413 if (temp10)
15414 delete arg10;
15415 }
15416 return resultobj;
15417 fail:
15418 {
15419 if (temp3)
15420 delete arg3;
15421 }
15422 {
15423 if (temp10)
15424 delete arg10;
15425 }
15426 return NULL;
15427 }
15428
15429
15430 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15431 PyObject *resultobj = 0;
15432 wxSpinCtrl *result = 0 ;
15433
15434 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15435 {
15436 if (!wxPyCheckForApp()) SWIG_fail;
15437 PyThreadState* __tstate = wxPyBeginAllowThreads();
15438 result = (wxSpinCtrl *)new wxSpinCtrl();
15439 wxPyEndAllowThreads(__tstate);
15440 if (PyErr_Occurred()) SWIG_fail;
15441 }
15442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15443 return resultobj;
15444 fail:
15445 return NULL;
15446 }
15447
15448
15449 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15450 PyObject *resultobj = 0;
15451 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15452 wxWindow *arg2 = (wxWindow *) 0 ;
15453 int arg3 = (int) -1 ;
15454 wxString const &arg4_defvalue = wxPyEmptyString ;
15455 wxString *arg4 = (wxString *) &arg4_defvalue ;
15456 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15457 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15458 wxSize const &arg6_defvalue = wxDefaultSize ;
15459 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15460 long arg7 = (long) wxSP_ARROW_KEYS ;
15461 int arg8 = (int) 0 ;
15462 int arg9 = (int) 100 ;
15463 int arg10 = (int) 0 ;
15464 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15465 wxString *arg11 = (wxString *) &arg11_defvalue ;
15466 bool result;
15467 void *argp1 = 0 ;
15468 int res1 = 0 ;
15469 void *argp2 = 0 ;
15470 int res2 = 0 ;
15471 int val3 ;
15472 int ecode3 = 0 ;
15473 bool temp4 = false ;
15474 wxPoint temp5 ;
15475 wxSize temp6 ;
15476 long val7 ;
15477 int ecode7 = 0 ;
15478 int val8 ;
15479 int ecode8 = 0 ;
15480 int val9 ;
15481 int ecode9 = 0 ;
15482 int val10 ;
15483 int ecode10 = 0 ;
15484 bool temp11 = false ;
15485 PyObject * obj0 = 0 ;
15486 PyObject * obj1 = 0 ;
15487 PyObject * obj2 = 0 ;
15488 PyObject * obj3 = 0 ;
15489 PyObject * obj4 = 0 ;
15490 PyObject * obj5 = 0 ;
15491 PyObject * obj6 = 0 ;
15492 PyObject * obj7 = 0 ;
15493 PyObject * obj8 = 0 ;
15494 PyObject * obj9 = 0 ;
15495 PyObject * obj10 = 0 ;
15496 char * kwnames[] = {
15497 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15498 };
15499
15500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15502 if (!SWIG_IsOK(res1)) {
15503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15504 }
15505 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15506 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15507 if (!SWIG_IsOK(res2)) {
15508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15509 }
15510 arg2 = reinterpret_cast< wxWindow * >(argp2);
15511 if (obj2) {
15512 ecode3 = SWIG_AsVal_int(obj2, &val3);
15513 if (!SWIG_IsOK(ecode3)) {
15514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15515 }
15516 arg3 = static_cast< int >(val3);
15517 }
15518 if (obj3) {
15519 {
15520 arg4 = wxString_in_helper(obj3);
15521 if (arg4 == NULL) SWIG_fail;
15522 temp4 = true;
15523 }
15524 }
15525 if (obj4) {
15526 {
15527 arg5 = &temp5;
15528 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15529 }
15530 }
15531 if (obj5) {
15532 {
15533 arg6 = &temp6;
15534 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15535 }
15536 }
15537 if (obj6) {
15538 ecode7 = SWIG_AsVal_long(obj6, &val7);
15539 if (!SWIG_IsOK(ecode7)) {
15540 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15541 }
15542 arg7 = static_cast< long >(val7);
15543 }
15544 if (obj7) {
15545 ecode8 = SWIG_AsVal_int(obj7, &val8);
15546 if (!SWIG_IsOK(ecode8)) {
15547 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15548 }
15549 arg8 = static_cast< int >(val8);
15550 }
15551 if (obj8) {
15552 ecode9 = SWIG_AsVal_int(obj8, &val9);
15553 if (!SWIG_IsOK(ecode9)) {
15554 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15555 }
15556 arg9 = static_cast< int >(val9);
15557 }
15558 if (obj9) {
15559 ecode10 = SWIG_AsVal_int(obj9, &val10);
15560 if (!SWIG_IsOK(ecode10)) {
15561 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15562 }
15563 arg10 = static_cast< int >(val10);
15564 }
15565 if (obj10) {
15566 {
15567 arg11 = wxString_in_helper(obj10);
15568 if (arg11 == NULL) SWIG_fail;
15569 temp11 = true;
15570 }
15571 }
15572 {
15573 PyThreadState* __tstate = wxPyBeginAllowThreads();
15574 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15575 wxPyEndAllowThreads(__tstate);
15576 if (PyErr_Occurred()) SWIG_fail;
15577 }
15578 {
15579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15580 }
15581 {
15582 if (temp4)
15583 delete arg4;
15584 }
15585 {
15586 if (temp11)
15587 delete arg11;
15588 }
15589 return resultobj;
15590 fail:
15591 {
15592 if (temp4)
15593 delete arg4;
15594 }
15595 {
15596 if (temp11)
15597 delete arg11;
15598 }
15599 return NULL;
15600 }
15601
15602
15603 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15604 PyObject *resultobj = 0;
15605 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15606 int result;
15607 void *argp1 = 0 ;
15608 int res1 = 0 ;
15609 PyObject *swig_obj[1] ;
15610
15611 if (!args) SWIG_fail;
15612 swig_obj[0] = args;
15613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15614 if (!SWIG_IsOK(res1)) {
15615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15616 }
15617 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15618 {
15619 PyThreadState* __tstate = wxPyBeginAllowThreads();
15620 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15621 wxPyEndAllowThreads(__tstate);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 resultobj = SWIG_From_int(static_cast< int >(result));
15625 return resultobj;
15626 fail:
15627 return NULL;
15628 }
15629
15630
15631 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj = 0;
15633 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15634 int arg2 ;
15635 void *argp1 = 0 ;
15636 int res1 = 0 ;
15637 int val2 ;
15638 int ecode2 = 0 ;
15639 PyObject * obj0 = 0 ;
15640 PyObject * obj1 = 0 ;
15641 char * kwnames[] = {
15642 (char *) "self",(char *) "value", NULL
15643 };
15644
15645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15647 if (!SWIG_IsOK(res1)) {
15648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15649 }
15650 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15651 ecode2 = SWIG_AsVal_int(obj1, &val2);
15652 if (!SWIG_IsOK(ecode2)) {
15653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15654 }
15655 arg2 = static_cast< int >(val2);
15656 {
15657 PyThreadState* __tstate = wxPyBeginAllowThreads();
15658 (arg1)->SetValue(arg2);
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 resultobj = SWIG_Py_Void();
15663 return resultobj;
15664 fail:
15665 return NULL;
15666 }
15667
15668
15669 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15670 PyObject *resultobj = 0;
15671 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15672 wxString *arg2 = 0 ;
15673 void *argp1 = 0 ;
15674 int res1 = 0 ;
15675 bool temp2 = false ;
15676 PyObject * obj0 = 0 ;
15677 PyObject * obj1 = 0 ;
15678 char * kwnames[] = {
15679 (char *) "self",(char *) "text", NULL
15680 };
15681
15682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15684 if (!SWIG_IsOK(res1)) {
15685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15686 }
15687 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15688 {
15689 arg2 = wxString_in_helper(obj1);
15690 if (arg2 == NULL) SWIG_fail;
15691 temp2 = true;
15692 }
15693 {
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 (arg1)->SetValue((wxString const &)*arg2);
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 resultobj = SWIG_Py_Void();
15700 {
15701 if (temp2)
15702 delete arg2;
15703 }
15704 return resultobj;
15705 fail:
15706 {
15707 if (temp2)
15708 delete arg2;
15709 }
15710 return NULL;
15711 }
15712
15713
15714 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15715 PyObject *resultobj = 0;
15716 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15717 int arg2 ;
15718 int arg3 ;
15719 void *argp1 = 0 ;
15720 int res1 = 0 ;
15721 int val2 ;
15722 int ecode2 = 0 ;
15723 int val3 ;
15724 int ecode3 = 0 ;
15725 PyObject * obj0 = 0 ;
15726 PyObject * obj1 = 0 ;
15727 PyObject * obj2 = 0 ;
15728 char * kwnames[] = {
15729 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15730 };
15731
15732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15734 if (!SWIG_IsOK(res1)) {
15735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15736 }
15737 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15738 ecode2 = SWIG_AsVal_int(obj1, &val2);
15739 if (!SWIG_IsOK(ecode2)) {
15740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15741 }
15742 arg2 = static_cast< int >(val2);
15743 ecode3 = SWIG_AsVal_int(obj2, &val3);
15744 if (!SWIG_IsOK(ecode3)) {
15745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15746 }
15747 arg3 = static_cast< int >(val3);
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 (arg1)->SetRange(arg2,arg3);
15751 wxPyEndAllowThreads(__tstate);
15752 if (PyErr_Occurred()) SWIG_fail;
15753 }
15754 resultobj = SWIG_Py_Void();
15755 return resultobj;
15756 fail:
15757 return NULL;
15758 }
15759
15760
15761 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15762 PyObject *resultobj = 0;
15763 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15764 int result;
15765 void *argp1 = 0 ;
15766 int res1 = 0 ;
15767 PyObject *swig_obj[1] ;
15768
15769 if (!args) SWIG_fail;
15770 swig_obj[0] = args;
15771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15772 if (!SWIG_IsOK(res1)) {
15773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15774 }
15775 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15776 {
15777 PyThreadState* __tstate = wxPyBeginAllowThreads();
15778 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15779 wxPyEndAllowThreads(__tstate);
15780 if (PyErr_Occurred()) SWIG_fail;
15781 }
15782 resultobj = SWIG_From_int(static_cast< int >(result));
15783 return resultobj;
15784 fail:
15785 return NULL;
15786 }
15787
15788
15789 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15790 PyObject *resultobj = 0;
15791 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15792 int result;
15793 void *argp1 = 0 ;
15794 int res1 = 0 ;
15795 PyObject *swig_obj[1] ;
15796
15797 if (!args) SWIG_fail;
15798 swig_obj[0] = args;
15799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15800 if (!SWIG_IsOK(res1)) {
15801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15802 }
15803 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15804 {
15805 PyThreadState* __tstate = wxPyBeginAllowThreads();
15806 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15807 wxPyEndAllowThreads(__tstate);
15808 if (PyErr_Occurred()) SWIG_fail;
15809 }
15810 resultobj = SWIG_From_int(static_cast< int >(result));
15811 return resultobj;
15812 fail:
15813 return NULL;
15814 }
15815
15816
15817 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15818 PyObject *resultobj = 0;
15819 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15820 long arg2 ;
15821 long arg3 ;
15822 void *argp1 = 0 ;
15823 int res1 = 0 ;
15824 long val2 ;
15825 int ecode2 = 0 ;
15826 long val3 ;
15827 int ecode3 = 0 ;
15828 PyObject * obj0 = 0 ;
15829 PyObject * obj1 = 0 ;
15830 PyObject * obj2 = 0 ;
15831 char * kwnames[] = {
15832 (char *) "self",(char *) "from",(char *) "to", NULL
15833 };
15834
15835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15837 if (!SWIG_IsOK(res1)) {
15838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15839 }
15840 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15841 ecode2 = SWIG_AsVal_long(obj1, &val2);
15842 if (!SWIG_IsOK(ecode2)) {
15843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15844 }
15845 arg2 = static_cast< long >(val2);
15846 ecode3 = SWIG_AsVal_long(obj2, &val3);
15847 if (!SWIG_IsOK(ecode3)) {
15848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15849 }
15850 arg3 = static_cast< long >(val3);
15851 {
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 (arg1)->SetSelection(arg2,arg3);
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 resultobj = SWIG_Py_Void();
15858 return resultobj;
15859 fail:
15860 return NULL;
15861 }
15862
15863
15864 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15865 PyObject *resultobj = 0;
15866 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15867 SwigValueWrapper<wxVisualAttributes > result;
15868 int val1 ;
15869 int ecode1 = 0 ;
15870 PyObject * obj0 = 0 ;
15871 char * kwnames[] = {
15872 (char *) "variant", NULL
15873 };
15874
15875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15876 if (obj0) {
15877 ecode1 = SWIG_AsVal_int(obj0, &val1);
15878 if (!SWIG_IsOK(ecode1)) {
15879 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15880 }
15881 arg1 = static_cast< wxWindowVariant >(val1);
15882 }
15883 {
15884 if (!wxPyCheckForApp()) SWIG_fail;
15885 PyThreadState* __tstate = wxPyBeginAllowThreads();
15886 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15887 wxPyEndAllowThreads(__tstate);
15888 if (PyErr_Occurred()) SWIG_fail;
15889 }
15890 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15891 return resultobj;
15892 fail:
15893 return NULL;
15894 }
15895
15896
15897 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15898 PyObject *obj;
15899 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15900 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15901 return SWIG_Py_Void();
15902 }
15903
15904 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15905 return SWIG_Python_InitShadowInstance(args);
15906 }
15907
15908 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15909 PyObject *resultobj = 0;
15910 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15911 int arg2 = (int) 0 ;
15912 wxSpinEvent *result = 0 ;
15913 int val1 ;
15914 int ecode1 = 0 ;
15915 int val2 ;
15916 int ecode2 = 0 ;
15917 PyObject * obj0 = 0 ;
15918 PyObject * obj1 = 0 ;
15919 char * kwnames[] = {
15920 (char *) "commandType",(char *) "winid", NULL
15921 };
15922
15923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15924 if (obj0) {
15925 ecode1 = SWIG_AsVal_int(obj0, &val1);
15926 if (!SWIG_IsOK(ecode1)) {
15927 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15928 }
15929 arg1 = static_cast< wxEventType >(val1);
15930 }
15931 if (obj1) {
15932 ecode2 = SWIG_AsVal_int(obj1, &val2);
15933 if (!SWIG_IsOK(ecode2)) {
15934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15935 }
15936 arg2 = static_cast< int >(val2);
15937 }
15938 {
15939 PyThreadState* __tstate = wxPyBeginAllowThreads();
15940 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15941 wxPyEndAllowThreads(__tstate);
15942 if (PyErr_Occurred()) SWIG_fail;
15943 }
15944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15945 return resultobj;
15946 fail:
15947 return NULL;
15948 }
15949
15950
15951 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15952 PyObject *resultobj = 0;
15953 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15954 int result;
15955 void *argp1 = 0 ;
15956 int res1 = 0 ;
15957 PyObject *swig_obj[1] ;
15958
15959 if (!args) SWIG_fail;
15960 swig_obj[0] = args;
15961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15962 if (!SWIG_IsOK(res1)) {
15963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15964 }
15965 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15966 {
15967 PyThreadState* __tstate = wxPyBeginAllowThreads();
15968 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15969 wxPyEndAllowThreads(__tstate);
15970 if (PyErr_Occurred()) SWIG_fail;
15971 }
15972 resultobj = SWIG_From_int(static_cast< int >(result));
15973 return resultobj;
15974 fail:
15975 return NULL;
15976 }
15977
15978
15979 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15980 PyObject *resultobj = 0;
15981 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15982 int arg2 ;
15983 void *argp1 = 0 ;
15984 int res1 = 0 ;
15985 int val2 ;
15986 int ecode2 = 0 ;
15987 PyObject * obj0 = 0 ;
15988 PyObject * obj1 = 0 ;
15989 char * kwnames[] = {
15990 (char *) "self",(char *) "pos", NULL
15991 };
15992
15993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15995 if (!SWIG_IsOK(res1)) {
15996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15997 }
15998 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15999 ecode2 = SWIG_AsVal_int(obj1, &val2);
16000 if (!SWIG_IsOK(ecode2)) {
16001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16002 }
16003 arg2 = static_cast< int >(val2);
16004 {
16005 PyThreadState* __tstate = wxPyBeginAllowThreads();
16006 (arg1)->SetPosition(arg2);
16007 wxPyEndAllowThreads(__tstate);
16008 if (PyErr_Occurred()) SWIG_fail;
16009 }
16010 resultobj = SWIG_Py_Void();
16011 return resultobj;
16012 fail:
16013 return NULL;
16014 }
16015
16016
16017 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16018 PyObject *obj;
16019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16020 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16021 return SWIG_Py_Void();
16022 }
16023
16024 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16025 return SWIG_Python_InitShadowInstance(args);
16026 }
16027
16028 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16029 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16030 return 1;
16031 }
16032
16033
16034 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16035 PyObject *pyobj = 0;
16036
16037 {
16038 #if wxUSE_UNICODE
16039 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16040 #else
16041 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16042 #endif
16043 }
16044 return pyobj;
16045 }
16046
16047
16048 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16049 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16050 return 1;
16051 }
16052
16053
16054 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16055 PyObject *pyobj = 0;
16056
16057 {
16058 #if wxUSE_UNICODE
16059 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16060 #else
16061 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16062 #endif
16063 }
16064 return pyobj;
16065 }
16066
16067
16068 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16069 PyObject *resultobj = 0;
16070 wxWindow *arg1 = (wxWindow *) 0 ;
16071 int arg2 = (int) -1 ;
16072 wxString const &arg3_defvalue = wxPyEmptyString ;
16073 wxString *arg3 = (wxString *) &arg3_defvalue ;
16074 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16075 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16076 wxSize const &arg5_defvalue = wxDefaultSize ;
16077 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16078 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16079 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16080 int arg7 = (int) 0 ;
16081 long arg8 = (long) wxRA_HORIZONTAL ;
16082 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16083 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16084 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16085 wxString *arg10 = (wxString *) &arg10_defvalue ;
16086 wxRadioBox *result = 0 ;
16087 void *argp1 = 0 ;
16088 int res1 = 0 ;
16089 int val2 ;
16090 int ecode2 = 0 ;
16091 bool temp3 = false ;
16092 wxPoint temp4 ;
16093 wxSize temp5 ;
16094 bool temp6 = false ;
16095 int val7 ;
16096 int ecode7 = 0 ;
16097 long val8 ;
16098 int ecode8 = 0 ;
16099 void *argp9 = 0 ;
16100 int res9 = 0 ;
16101 bool temp10 = false ;
16102 PyObject * obj0 = 0 ;
16103 PyObject * obj1 = 0 ;
16104 PyObject * obj2 = 0 ;
16105 PyObject * obj3 = 0 ;
16106 PyObject * obj4 = 0 ;
16107 PyObject * obj5 = 0 ;
16108 PyObject * obj6 = 0 ;
16109 PyObject * obj7 = 0 ;
16110 PyObject * obj8 = 0 ;
16111 PyObject * obj9 = 0 ;
16112 char * kwnames[] = {
16113 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16114 };
16115
16116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16118 if (!SWIG_IsOK(res1)) {
16119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16120 }
16121 arg1 = reinterpret_cast< wxWindow * >(argp1);
16122 if (obj1) {
16123 ecode2 = SWIG_AsVal_int(obj1, &val2);
16124 if (!SWIG_IsOK(ecode2)) {
16125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16126 }
16127 arg2 = static_cast< int >(val2);
16128 }
16129 if (obj2) {
16130 {
16131 arg3 = wxString_in_helper(obj2);
16132 if (arg3 == NULL) SWIG_fail;
16133 temp3 = true;
16134 }
16135 }
16136 if (obj3) {
16137 {
16138 arg4 = &temp4;
16139 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16140 }
16141 }
16142 if (obj4) {
16143 {
16144 arg5 = &temp5;
16145 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16146 }
16147 }
16148 if (obj5) {
16149 {
16150 if (! PySequence_Check(obj5)) {
16151 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16152 SWIG_fail;
16153 }
16154 arg6 = new wxArrayString;
16155 temp6 = true;
16156 int i, len=PySequence_Length(obj5);
16157 for (i=0; i<len; i++) {
16158 PyObject* item = PySequence_GetItem(obj5, i);
16159 wxString* s = wxString_in_helper(item);
16160 if (PyErr_Occurred()) SWIG_fail;
16161 arg6->Add(*s);
16162 delete s;
16163 Py_DECREF(item);
16164 }
16165 }
16166 }
16167 if (obj6) {
16168 ecode7 = SWIG_AsVal_int(obj6, &val7);
16169 if (!SWIG_IsOK(ecode7)) {
16170 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16171 }
16172 arg7 = static_cast< int >(val7);
16173 }
16174 if (obj7) {
16175 ecode8 = SWIG_AsVal_long(obj7, &val8);
16176 if (!SWIG_IsOK(ecode8)) {
16177 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16178 }
16179 arg8 = static_cast< long >(val8);
16180 }
16181 if (obj8) {
16182 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16183 if (!SWIG_IsOK(res9)) {
16184 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16185 }
16186 if (!argp9) {
16187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16188 }
16189 arg9 = reinterpret_cast< wxValidator * >(argp9);
16190 }
16191 if (obj9) {
16192 {
16193 arg10 = wxString_in_helper(obj9);
16194 if (arg10 == NULL) SWIG_fail;
16195 temp10 = true;
16196 }
16197 }
16198 {
16199 if (!wxPyCheckForApp()) SWIG_fail;
16200 PyThreadState* __tstate = wxPyBeginAllowThreads();
16201 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);
16202 wxPyEndAllowThreads(__tstate);
16203 if (PyErr_Occurred()) SWIG_fail;
16204 }
16205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16206 {
16207 if (temp3)
16208 delete arg3;
16209 }
16210 {
16211 if (temp6) delete arg6;
16212 }
16213 {
16214 if (temp10)
16215 delete arg10;
16216 }
16217 return resultobj;
16218 fail:
16219 {
16220 if (temp3)
16221 delete arg3;
16222 }
16223 {
16224 if (temp6) delete arg6;
16225 }
16226 {
16227 if (temp10)
16228 delete arg10;
16229 }
16230 return NULL;
16231 }
16232
16233
16234 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16235 PyObject *resultobj = 0;
16236 wxRadioBox *result = 0 ;
16237
16238 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16239 {
16240 if (!wxPyCheckForApp()) SWIG_fail;
16241 PyThreadState* __tstate = wxPyBeginAllowThreads();
16242 result = (wxRadioBox *)new wxRadioBox();
16243 wxPyEndAllowThreads(__tstate);
16244 if (PyErr_Occurred()) SWIG_fail;
16245 }
16246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16247 return resultobj;
16248 fail:
16249 return NULL;
16250 }
16251
16252
16253 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16254 PyObject *resultobj = 0;
16255 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16256 wxWindow *arg2 = (wxWindow *) 0 ;
16257 int arg3 = (int) -1 ;
16258 wxString const &arg4_defvalue = wxPyEmptyString ;
16259 wxString *arg4 = (wxString *) &arg4_defvalue ;
16260 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16261 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16262 wxSize const &arg6_defvalue = wxDefaultSize ;
16263 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16264 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16265 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16266 int arg8 = (int) 0 ;
16267 long arg9 = (long) wxRA_HORIZONTAL ;
16268 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16269 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16270 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16271 wxString *arg11 = (wxString *) &arg11_defvalue ;
16272 bool result;
16273 void *argp1 = 0 ;
16274 int res1 = 0 ;
16275 void *argp2 = 0 ;
16276 int res2 = 0 ;
16277 int val3 ;
16278 int ecode3 = 0 ;
16279 bool temp4 = false ;
16280 wxPoint temp5 ;
16281 wxSize temp6 ;
16282 bool temp7 = false ;
16283 int val8 ;
16284 int ecode8 = 0 ;
16285 long val9 ;
16286 int ecode9 = 0 ;
16287 void *argp10 = 0 ;
16288 int res10 = 0 ;
16289 bool temp11 = false ;
16290 PyObject * obj0 = 0 ;
16291 PyObject * obj1 = 0 ;
16292 PyObject * obj2 = 0 ;
16293 PyObject * obj3 = 0 ;
16294 PyObject * obj4 = 0 ;
16295 PyObject * obj5 = 0 ;
16296 PyObject * obj6 = 0 ;
16297 PyObject * obj7 = 0 ;
16298 PyObject * obj8 = 0 ;
16299 PyObject * obj9 = 0 ;
16300 PyObject * obj10 = 0 ;
16301 char * kwnames[] = {
16302 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16303 };
16304
16305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16307 if (!SWIG_IsOK(res1)) {
16308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16309 }
16310 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16311 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16312 if (!SWIG_IsOK(res2)) {
16313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16314 }
16315 arg2 = reinterpret_cast< wxWindow * >(argp2);
16316 if (obj2) {
16317 ecode3 = SWIG_AsVal_int(obj2, &val3);
16318 if (!SWIG_IsOK(ecode3)) {
16319 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16320 }
16321 arg3 = static_cast< int >(val3);
16322 }
16323 if (obj3) {
16324 {
16325 arg4 = wxString_in_helper(obj3);
16326 if (arg4 == NULL) SWIG_fail;
16327 temp4 = true;
16328 }
16329 }
16330 if (obj4) {
16331 {
16332 arg5 = &temp5;
16333 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16334 }
16335 }
16336 if (obj5) {
16337 {
16338 arg6 = &temp6;
16339 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16340 }
16341 }
16342 if (obj6) {
16343 {
16344 if (! PySequence_Check(obj6)) {
16345 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16346 SWIG_fail;
16347 }
16348 arg7 = new wxArrayString;
16349 temp7 = true;
16350 int i, len=PySequence_Length(obj6);
16351 for (i=0; i<len; i++) {
16352 PyObject* item = PySequence_GetItem(obj6, i);
16353 wxString* s = wxString_in_helper(item);
16354 if (PyErr_Occurred()) SWIG_fail;
16355 arg7->Add(*s);
16356 delete s;
16357 Py_DECREF(item);
16358 }
16359 }
16360 }
16361 if (obj7) {
16362 ecode8 = SWIG_AsVal_int(obj7, &val8);
16363 if (!SWIG_IsOK(ecode8)) {
16364 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16365 }
16366 arg8 = static_cast< int >(val8);
16367 }
16368 if (obj8) {
16369 ecode9 = SWIG_AsVal_long(obj8, &val9);
16370 if (!SWIG_IsOK(ecode9)) {
16371 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16372 }
16373 arg9 = static_cast< long >(val9);
16374 }
16375 if (obj9) {
16376 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16377 if (!SWIG_IsOK(res10)) {
16378 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16379 }
16380 if (!argp10) {
16381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16382 }
16383 arg10 = reinterpret_cast< wxValidator * >(argp10);
16384 }
16385 if (obj10) {
16386 {
16387 arg11 = wxString_in_helper(obj10);
16388 if (arg11 == NULL) SWIG_fail;
16389 temp11 = true;
16390 }
16391 }
16392 {
16393 PyThreadState* __tstate = wxPyBeginAllowThreads();
16394 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);
16395 wxPyEndAllowThreads(__tstate);
16396 if (PyErr_Occurred()) SWIG_fail;
16397 }
16398 {
16399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16400 }
16401 {
16402 if (temp4)
16403 delete arg4;
16404 }
16405 {
16406 if (temp7) delete arg7;
16407 }
16408 {
16409 if (temp11)
16410 delete arg11;
16411 }
16412 return resultobj;
16413 fail:
16414 {
16415 if (temp4)
16416 delete arg4;
16417 }
16418 {
16419 if (temp7) delete arg7;
16420 }
16421 {
16422 if (temp11)
16423 delete arg11;
16424 }
16425 return NULL;
16426 }
16427
16428
16429 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16430 PyObject *resultobj = 0;
16431 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16432 int arg2 ;
16433 void *argp1 = 0 ;
16434 int res1 = 0 ;
16435 int val2 ;
16436 int ecode2 = 0 ;
16437 PyObject * obj0 = 0 ;
16438 PyObject * obj1 = 0 ;
16439 char * kwnames[] = {
16440 (char *) "self",(char *) "n", NULL
16441 };
16442
16443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16445 if (!SWIG_IsOK(res1)) {
16446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16447 }
16448 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16449 ecode2 = SWIG_AsVal_int(obj1, &val2);
16450 if (!SWIG_IsOK(ecode2)) {
16451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16452 }
16453 arg2 = static_cast< int >(val2);
16454 {
16455 PyThreadState* __tstate = wxPyBeginAllowThreads();
16456 (arg1)->SetSelection(arg2);
16457 wxPyEndAllowThreads(__tstate);
16458 if (PyErr_Occurred()) SWIG_fail;
16459 }
16460 resultobj = SWIG_Py_Void();
16461 return resultobj;
16462 fail:
16463 return NULL;
16464 }
16465
16466
16467 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16468 PyObject *resultobj = 0;
16469 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16470 int result;
16471 void *argp1 = 0 ;
16472 int res1 = 0 ;
16473 PyObject *swig_obj[1] ;
16474
16475 if (!args) SWIG_fail;
16476 swig_obj[0] = args;
16477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16478 if (!SWIG_IsOK(res1)) {
16479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16480 }
16481 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16482 {
16483 PyThreadState* __tstate = wxPyBeginAllowThreads();
16484 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16485 wxPyEndAllowThreads(__tstate);
16486 if (PyErr_Occurred()) SWIG_fail;
16487 }
16488 resultobj = SWIG_From_int(static_cast< int >(result));
16489 return resultobj;
16490 fail:
16491 return NULL;
16492 }
16493
16494
16495 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16496 PyObject *resultobj = 0;
16497 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16498 wxString result;
16499 void *argp1 = 0 ;
16500 int res1 = 0 ;
16501 PyObject *swig_obj[1] ;
16502
16503 if (!args) SWIG_fail;
16504 swig_obj[0] = args;
16505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16506 if (!SWIG_IsOK(res1)) {
16507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16508 }
16509 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16510 {
16511 PyThreadState* __tstate = wxPyBeginAllowThreads();
16512 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16513 wxPyEndAllowThreads(__tstate);
16514 if (PyErr_Occurred()) SWIG_fail;
16515 }
16516 {
16517 #if wxUSE_UNICODE
16518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16519 #else
16520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16521 #endif
16522 }
16523 return resultobj;
16524 fail:
16525 return NULL;
16526 }
16527
16528
16529 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16530 PyObject *resultobj = 0;
16531 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16532 wxString *arg2 = 0 ;
16533 bool result;
16534 void *argp1 = 0 ;
16535 int res1 = 0 ;
16536 bool temp2 = false ;
16537 PyObject * obj0 = 0 ;
16538 PyObject * obj1 = 0 ;
16539 char * kwnames[] = {
16540 (char *) "self",(char *) "s", NULL
16541 };
16542
16543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16545 if (!SWIG_IsOK(res1)) {
16546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16547 }
16548 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16549 {
16550 arg2 = wxString_in_helper(obj1);
16551 if (arg2 == NULL) SWIG_fail;
16552 temp2 = true;
16553 }
16554 {
16555 PyThreadState* __tstate = wxPyBeginAllowThreads();
16556 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16557 wxPyEndAllowThreads(__tstate);
16558 if (PyErr_Occurred()) SWIG_fail;
16559 }
16560 {
16561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16562 }
16563 {
16564 if (temp2)
16565 delete arg2;
16566 }
16567 return resultobj;
16568 fail:
16569 {
16570 if (temp2)
16571 delete arg2;
16572 }
16573 return NULL;
16574 }
16575
16576
16577 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16578 PyObject *resultobj = 0;
16579 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16580 size_t result;
16581 void *argp1 = 0 ;
16582 int res1 = 0 ;
16583 PyObject *swig_obj[1] ;
16584
16585 if (!args) SWIG_fail;
16586 swig_obj[0] = args;
16587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16588 if (!SWIG_IsOK(res1)) {
16589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16590 }
16591 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16592 {
16593 PyThreadState* __tstate = wxPyBeginAllowThreads();
16594 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16595 wxPyEndAllowThreads(__tstate);
16596 if (PyErr_Occurred()) SWIG_fail;
16597 }
16598 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16599 return resultobj;
16600 fail:
16601 return NULL;
16602 }
16603
16604
16605 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16606 PyObject *resultobj = 0;
16607 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16608 wxString *arg2 = 0 ;
16609 int result;
16610 void *argp1 = 0 ;
16611 int res1 = 0 ;
16612 bool temp2 = false ;
16613 PyObject * obj0 = 0 ;
16614 PyObject * obj1 = 0 ;
16615 char * kwnames[] = {
16616 (char *) "self",(char *) "s", NULL
16617 };
16618
16619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16621 if (!SWIG_IsOK(res1)) {
16622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16623 }
16624 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16625 {
16626 arg2 = wxString_in_helper(obj1);
16627 if (arg2 == NULL) SWIG_fail;
16628 temp2 = true;
16629 }
16630 {
16631 PyThreadState* __tstate = wxPyBeginAllowThreads();
16632 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16633 wxPyEndAllowThreads(__tstate);
16634 if (PyErr_Occurred()) SWIG_fail;
16635 }
16636 resultobj = SWIG_From_int(static_cast< int >(result));
16637 {
16638 if (temp2)
16639 delete arg2;
16640 }
16641 return resultobj;
16642 fail:
16643 {
16644 if (temp2)
16645 delete arg2;
16646 }
16647 return NULL;
16648 }
16649
16650
16651 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16652 PyObject *resultobj = 0;
16653 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16654 int arg2 ;
16655 wxString result;
16656 void *argp1 = 0 ;
16657 int res1 = 0 ;
16658 int val2 ;
16659 int ecode2 = 0 ;
16660 PyObject * obj0 = 0 ;
16661 PyObject * obj1 = 0 ;
16662 char * kwnames[] = {
16663 (char *) "self",(char *) "n", NULL
16664 };
16665
16666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16668 if (!SWIG_IsOK(res1)) {
16669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16670 }
16671 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16672 ecode2 = SWIG_AsVal_int(obj1, &val2);
16673 if (!SWIG_IsOK(ecode2)) {
16674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16675 }
16676 arg2 = static_cast< int >(val2);
16677 {
16678 PyThreadState* __tstate = wxPyBeginAllowThreads();
16679 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16680 wxPyEndAllowThreads(__tstate);
16681 if (PyErr_Occurred()) SWIG_fail;
16682 }
16683 {
16684 #if wxUSE_UNICODE
16685 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16686 #else
16687 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16688 #endif
16689 }
16690 return resultobj;
16691 fail:
16692 return NULL;
16693 }
16694
16695
16696 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16697 PyObject *resultobj = 0;
16698 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16699 int arg2 ;
16700 wxString *arg3 = 0 ;
16701 void *argp1 = 0 ;
16702 int res1 = 0 ;
16703 int val2 ;
16704 int ecode2 = 0 ;
16705 bool temp3 = false ;
16706 PyObject * obj0 = 0 ;
16707 PyObject * obj1 = 0 ;
16708 PyObject * obj2 = 0 ;
16709 char * kwnames[] = {
16710 (char *) "self",(char *) "n",(char *) "label", NULL
16711 };
16712
16713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16715 if (!SWIG_IsOK(res1)) {
16716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16717 }
16718 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16719 ecode2 = SWIG_AsVal_int(obj1, &val2);
16720 if (!SWIG_IsOK(ecode2)) {
16721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16722 }
16723 arg2 = static_cast< int >(val2);
16724 {
16725 arg3 = wxString_in_helper(obj2);
16726 if (arg3 == NULL) SWIG_fail;
16727 temp3 = true;
16728 }
16729 {
16730 PyThreadState* __tstate = wxPyBeginAllowThreads();
16731 (arg1)->SetString(arg2,(wxString const &)*arg3);
16732 wxPyEndAllowThreads(__tstate);
16733 if (PyErr_Occurred()) SWIG_fail;
16734 }
16735 resultobj = SWIG_Py_Void();
16736 {
16737 if (temp3)
16738 delete arg3;
16739 }
16740 return resultobj;
16741 fail:
16742 {
16743 if (temp3)
16744 delete arg3;
16745 }
16746 return NULL;
16747 }
16748
16749
16750 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16751 PyObject *resultobj = 0;
16752 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16753 unsigned int arg2 ;
16754 bool arg3 = (bool) true ;
16755 void *argp1 = 0 ;
16756 int res1 = 0 ;
16757 unsigned int val2 ;
16758 int ecode2 = 0 ;
16759 bool val3 ;
16760 int ecode3 = 0 ;
16761 PyObject * obj0 = 0 ;
16762 PyObject * obj1 = 0 ;
16763 PyObject * obj2 = 0 ;
16764 char * kwnames[] = {
16765 (char *) "self",(char *) "n",(char *) "enable", NULL
16766 };
16767
16768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16770 if (!SWIG_IsOK(res1)) {
16771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16772 }
16773 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16774 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16775 if (!SWIG_IsOK(ecode2)) {
16776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16777 }
16778 arg2 = static_cast< unsigned int >(val2);
16779 if (obj2) {
16780 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16781 if (!SWIG_IsOK(ecode3)) {
16782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16783 }
16784 arg3 = static_cast< bool >(val3);
16785 }
16786 {
16787 PyThreadState* __tstate = wxPyBeginAllowThreads();
16788 (arg1)->Enable(arg2,arg3);
16789 wxPyEndAllowThreads(__tstate);
16790 if (PyErr_Occurred()) SWIG_fail;
16791 }
16792 resultobj = SWIG_Py_Void();
16793 return resultobj;
16794 fail:
16795 return NULL;
16796 }
16797
16798
16799 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16800 PyObject *resultobj = 0;
16801 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16802 unsigned int arg2 ;
16803 bool arg3 = (bool) true ;
16804 void *argp1 = 0 ;
16805 int res1 = 0 ;
16806 unsigned int val2 ;
16807 int ecode2 = 0 ;
16808 bool val3 ;
16809 int ecode3 = 0 ;
16810 PyObject * obj0 = 0 ;
16811 PyObject * obj1 = 0 ;
16812 PyObject * obj2 = 0 ;
16813 char * kwnames[] = {
16814 (char *) "self",(char *) "n",(char *) "show", NULL
16815 };
16816
16817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16819 if (!SWIG_IsOK(res1)) {
16820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16821 }
16822 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16823 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16824 if (!SWIG_IsOK(ecode2)) {
16825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16826 }
16827 arg2 = static_cast< unsigned int >(val2);
16828 if (obj2) {
16829 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16830 if (!SWIG_IsOK(ecode3)) {
16831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16832 }
16833 arg3 = static_cast< bool >(val3);
16834 }
16835 {
16836 PyThreadState* __tstate = wxPyBeginAllowThreads();
16837 (arg1)->Show(arg2,arg3);
16838 wxPyEndAllowThreads(__tstate);
16839 if (PyErr_Occurred()) SWIG_fail;
16840 }
16841 resultobj = SWIG_Py_Void();
16842 return resultobj;
16843 fail:
16844 return NULL;
16845 }
16846
16847
16848 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16849 PyObject *resultobj = 0;
16850 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16851 unsigned int arg2 ;
16852 bool result;
16853 void *argp1 = 0 ;
16854 int res1 = 0 ;
16855 unsigned int val2 ;
16856 int ecode2 = 0 ;
16857 PyObject * obj0 = 0 ;
16858 PyObject * obj1 = 0 ;
16859 char * kwnames[] = {
16860 (char *) "self",(char *) "n", NULL
16861 };
16862
16863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16865 if (!SWIG_IsOK(res1)) {
16866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16867 }
16868 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16869 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16870 if (!SWIG_IsOK(ecode2)) {
16871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16872 }
16873 arg2 = static_cast< unsigned int >(val2);
16874 {
16875 PyThreadState* __tstate = wxPyBeginAllowThreads();
16876 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16877 wxPyEndAllowThreads(__tstate);
16878 if (PyErr_Occurred()) SWIG_fail;
16879 }
16880 {
16881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16882 }
16883 return resultobj;
16884 fail:
16885 return NULL;
16886 }
16887
16888
16889 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16890 PyObject *resultobj = 0;
16891 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16892 unsigned int arg2 ;
16893 bool result;
16894 void *argp1 = 0 ;
16895 int res1 = 0 ;
16896 unsigned int val2 ;
16897 int ecode2 = 0 ;
16898 PyObject * obj0 = 0 ;
16899 PyObject * obj1 = 0 ;
16900 char * kwnames[] = {
16901 (char *) "self",(char *) "n", NULL
16902 };
16903
16904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16906 if (!SWIG_IsOK(res1)) {
16907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16908 }
16909 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16910 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16911 if (!SWIG_IsOK(ecode2)) {
16912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16913 }
16914 arg2 = static_cast< unsigned int >(val2);
16915 {
16916 PyThreadState* __tstate = wxPyBeginAllowThreads();
16917 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16918 wxPyEndAllowThreads(__tstate);
16919 if (PyErr_Occurred()) SWIG_fail;
16920 }
16921 {
16922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16923 }
16924 return resultobj;
16925 fail:
16926 return NULL;
16927 }
16928
16929
16930 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16931 PyObject *resultobj = 0;
16932 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16933 unsigned int result;
16934 void *argp1 = 0 ;
16935 int res1 = 0 ;
16936 PyObject *swig_obj[1] ;
16937
16938 if (!args) SWIG_fail;
16939 swig_obj[0] = args;
16940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16941 if (!SWIG_IsOK(res1)) {
16942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16943 }
16944 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16945 {
16946 PyThreadState* __tstate = wxPyBeginAllowThreads();
16947 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16948 wxPyEndAllowThreads(__tstate);
16949 if (PyErr_Occurred()) SWIG_fail;
16950 }
16951 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16952 return resultobj;
16953 fail:
16954 return NULL;
16955 }
16956
16957
16958 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16959 PyObject *resultobj = 0;
16960 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16961 unsigned int result;
16962 void *argp1 = 0 ;
16963 int res1 = 0 ;
16964 PyObject *swig_obj[1] ;
16965
16966 if (!args) SWIG_fail;
16967 swig_obj[0] = args;
16968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16969 if (!SWIG_IsOK(res1)) {
16970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16971 }
16972 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16973 {
16974 PyThreadState* __tstate = wxPyBeginAllowThreads();
16975 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16976 wxPyEndAllowThreads(__tstate);
16977 if (PyErr_Occurred()) SWIG_fail;
16978 }
16979 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16980 return resultobj;
16981 fail:
16982 return NULL;
16983 }
16984
16985
16986 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16987 PyObject *resultobj = 0;
16988 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16989 int arg2 ;
16990 wxDirection arg3 ;
16991 long arg4 ;
16992 int result;
16993 void *argp1 = 0 ;
16994 int res1 = 0 ;
16995 int val2 ;
16996 int ecode2 = 0 ;
16997 int val3 ;
16998 int ecode3 = 0 ;
16999 long val4 ;
17000 int ecode4 = 0 ;
17001 PyObject * obj0 = 0 ;
17002 PyObject * obj1 = 0 ;
17003 PyObject * obj2 = 0 ;
17004 PyObject * obj3 = 0 ;
17005 char * kwnames[] = {
17006 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17007 };
17008
17009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17011 if (!SWIG_IsOK(res1)) {
17012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17013 }
17014 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17015 ecode2 = SWIG_AsVal_int(obj1, &val2);
17016 if (!SWIG_IsOK(ecode2)) {
17017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17018 }
17019 arg2 = static_cast< int >(val2);
17020 ecode3 = SWIG_AsVal_int(obj2, &val3);
17021 if (!SWIG_IsOK(ecode3)) {
17022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17023 }
17024 arg3 = static_cast< wxDirection >(val3);
17025 ecode4 = SWIG_AsVal_long(obj3, &val4);
17026 if (!SWIG_IsOK(ecode4)) {
17027 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17028 }
17029 arg4 = static_cast< long >(val4);
17030 {
17031 PyThreadState* __tstate = wxPyBeginAllowThreads();
17032 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17033 wxPyEndAllowThreads(__tstate);
17034 if (PyErr_Occurred()) SWIG_fail;
17035 }
17036 resultobj = SWIG_From_int(static_cast< int >(result));
17037 return resultobj;
17038 fail:
17039 return NULL;
17040 }
17041
17042
17043 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17044 PyObject *resultobj = 0;
17045 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17046 unsigned int arg2 ;
17047 wxString *arg3 = 0 ;
17048 void *argp1 = 0 ;
17049 int res1 = 0 ;
17050 unsigned int val2 ;
17051 int ecode2 = 0 ;
17052 bool temp3 = false ;
17053 PyObject * obj0 = 0 ;
17054 PyObject * obj1 = 0 ;
17055 PyObject * obj2 = 0 ;
17056 char * kwnames[] = {
17057 (char *) "self",(char *) "item",(char *) "text", NULL
17058 };
17059
17060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17062 if (!SWIG_IsOK(res1)) {
17063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17064 }
17065 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17066 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17067 if (!SWIG_IsOK(ecode2)) {
17068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17069 }
17070 arg2 = static_cast< unsigned int >(val2);
17071 {
17072 arg3 = wxString_in_helper(obj2);
17073 if (arg3 == NULL) SWIG_fail;
17074 temp3 = true;
17075 }
17076 {
17077 PyThreadState* __tstate = wxPyBeginAllowThreads();
17078 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17079 wxPyEndAllowThreads(__tstate);
17080 if (PyErr_Occurred()) SWIG_fail;
17081 }
17082 resultobj = SWIG_Py_Void();
17083 {
17084 if (temp3)
17085 delete arg3;
17086 }
17087 return resultobj;
17088 fail:
17089 {
17090 if (temp3)
17091 delete arg3;
17092 }
17093 return NULL;
17094 }
17095
17096
17097 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17098 PyObject *resultobj = 0;
17099 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17100 unsigned int arg2 ;
17101 wxToolTip *result = 0 ;
17102 void *argp1 = 0 ;
17103 int res1 = 0 ;
17104 unsigned int val2 ;
17105 int ecode2 = 0 ;
17106 PyObject * obj0 = 0 ;
17107 PyObject * obj1 = 0 ;
17108 char * kwnames[] = {
17109 (char *) "self",(char *) "item", NULL
17110 };
17111
17112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17114 if (!SWIG_IsOK(res1)) {
17115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17116 }
17117 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17118 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17119 if (!SWIG_IsOK(ecode2)) {
17120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17121 }
17122 arg2 = static_cast< unsigned int >(val2);
17123 {
17124 PyThreadState* __tstate = wxPyBeginAllowThreads();
17125 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17126 wxPyEndAllowThreads(__tstate);
17127 if (PyErr_Occurred()) SWIG_fail;
17128 }
17129 {
17130 resultobj = wxPyMake_wxObject(result, (bool)0);
17131 }
17132 return resultobj;
17133 fail:
17134 return NULL;
17135 }
17136
17137
17138 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17139 PyObject *resultobj = 0;
17140 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17141 unsigned int arg2 ;
17142 wxString *arg3 = 0 ;
17143 void *argp1 = 0 ;
17144 int res1 = 0 ;
17145 unsigned int val2 ;
17146 int ecode2 = 0 ;
17147 bool temp3 = false ;
17148 PyObject * obj0 = 0 ;
17149 PyObject * obj1 = 0 ;
17150 PyObject * obj2 = 0 ;
17151 char * kwnames[] = {
17152 (char *) "self",(char *) "n",(char *) "helpText", NULL
17153 };
17154
17155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17157 if (!SWIG_IsOK(res1)) {
17158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17159 }
17160 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17161 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17162 if (!SWIG_IsOK(ecode2)) {
17163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17164 }
17165 arg2 = static_cast< unsigned int >(val2);
17166 {
17167 arg3 = wxString_in_helper(obj2);
17168 if (arg3 == NULL) SWIG_fail;
17169 temp3 = true;
17170 }
17171 {
17172 PyThreadState* __tstate = wxPyBeginAllowThreads();
17173 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17174 wxPyEndAllowThreads(__tstate);
17175 if (PyErr_Occurred()) SWIG_fail;
17176 }
17177 resultobj = SWIG_Py_Void();
17178 {
17179 if (temp3)
17180 delete arg3;
17181 }
17182 return resultobj;
17183 fail:
17184 {
17185 if (temp3)
17186 delete arg3;
17187 }
17188 return NULL;
17189 }
17190
17191
17192 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17193 PyObject *resultobj = 0;
17194 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17195 unsigned int arg2 ;
17196 wxString result;
17197 void *argp1 = 0 ;
17198 int res1 = 0 ;
17199 unsigned int val2 ;
17200 int ecode2 = 0 ;
17201 PyObject * obj0 = 0 ;
17202 PyObject * obj1 = 0 ;
17203 char * kwnames[] = {
17204 (char *) "self",(char *) "n", NULL
17205 };
17206
17207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17209 if (!SWIG_IsOK(res1)) {
17210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17211 }
17212 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17213 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17214 if (!SWIG_IsOK(ecode2)) {
17215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17216 }
17217 arg2 = static_cast< unsigned int >(val2);
17218 {
17219 PyThreadState* __tstate = wxPyBeginAllowThreads();
17220 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17221 wxPyEndAllowThreads(__tstate);
17222 if (PyErr_Occurred()) SWIG_fail;
17223 }
17224 {
17225 #if wxUSE_UNICODE
17226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17227 #else
17228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17229 #endif
17230 }
17231 return resultobj;
17232 fail:
17233 return NULL;
17234 }
17235
17236
17237 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17238 PyObject *resultobj = 0;
17239 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17240 SwigValueWrapper<wxVisualAttributes > result;
17241 int val1 ;
17242 int ecode1 = 0 ;
17243 PyObject * obj0 = 0 ;
17244 char * kwnames[] = {
17245 (char *) "variant", NULL
17246 };
17247
17248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17249 if (obj0) {
17250 ecode1 = SWIG_AsVal_int(obj0, &val1);
17251 if (!SWIG_IsOK(ecode1)) {
17252 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17253 }
17254 arg1 = static_cast< wxWindowVariant >(val1);
17255 }
17256 {
17257 if (!wxPyCheckForApp()) SWIG_fail;
17258 PyThreadState* __tstate = wxPyBeginAllowThreads();
17259 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17260 wxPyEndAllowThreads(__tstate);
17261 if (PyErr_Occurred()) SWIG_fail;
17262 }
17263 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17264 return resultobj;
17265 fail:
17266 return NULL;
17267 }
17268
17269
17270 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17271 PyObject *obj;
17272 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17273 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17274 return SWIG_Py_Void();
17275 }
17276
17277 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17278 return SWIG_Python_InitShadowInstance(args);
17279 }
17280
17281 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17282 PyObject *resultobj = 0;
17283 wxWindow *arg1 = (wxWindow *) 0 ;
17284 int arg2 = (int) -1 ;
17285 wxString const &arg3_defvalue = wxPyEmptyString ;
17286 wxString *arg3 = (wxString *) &arg3_defvalue ;
17287 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17288 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17289 wxSize const &arg5_defvalue = wxDefaultSize ;
17290 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17291 long arg6 = (long) 0 ;
17292 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17293 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17294 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17295 wxString *arg8 = (wxString *) &arg8_defvalue ;
17296 wxRadioButton *result = 0 ;
17297 void *argp1 = 0 ;
17298 int res1 = 0 ;
17299 int val2 ;
17300 int ecode2 = 0 ;
17301 bool temp3 = false ;
17302 wxPoint temp4 ;
17303 wxSize temp5 ;
17304 long val6 ;
17305 int ecode6 = 0 ;
17306 void *argp7 = 0 ;
17307 int res7 = 0 ;
17308 bool temp8 = false ;
17309 PyObject * obj0 = 0 ;
17310 PyObject * obj1 = 0 ;
17311 PyObject * obj2 = 0 ;
17312 PyObject * obj3 = 0 ;
17313 PyObject * obj4 = 0 ;
17314 PyObject * obj5 = 0 ;
17315 PyObject * obj6 = 0 ;
17316 PyObject * obj7 = 0 ;
17317 char * kwnames[] = {
17318 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17319 };
17320
17321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17323 if (!SWIG_IsOK(res1)) {
17324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17325 }
17326 arg1 = reinterpret_cast< wxWindow * >(argp1);
17327 if (obj1) {
17328 ecode2 = SWIG_AsVal_int(obj1, &val2);
17329 if (!SWIG_IsOK(ecode2)) {
17330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17331 }
17332 arg2 = static_cast< int >(val2);
17333 }
17334 if (obj2) {
17335 {
17336 arg3 = wxString_in_helper(obj2);
17337 if (arg3 == NULL) SWIG_fail;
17338 temp3 = true;
17339 }
17340 }
17341 if (obj3) {
17342 {
17343 arg4 = &temp4;
17344 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17345 }
17346 }
17347 if (obj4) {
17348 {
17349 arg5 = &temp5;
17350 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17351 }
17352 }
17353 if (obj5) {
17354 ecode6 = SWIG_AsVal_long(obj5, &val6);
17355 if (!SWIG_IsOK(ecode6)) {
17356 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17357 }
17358 arg6 = static_cast< long >(val6);
17359 }
17360 if (obj6) {
17361 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17362 if (!SWIG_IsOK(res7)) {
17363 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17364 }
17365 if (!argp7) {
17366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17367 }
17368 arg7 = reinterpret_cast< wxValidator * >(argp7);
17369 }
17370 if (obj7) {
17371 {
17372 arg8 = wxString_in_helper(obj7);
17373 if (arg8 == NULL) SWIG_fail;
17374 temp8 = true;
17375 }
17376 }
17377 {
17378 if (!wxPyCheckForApp()) SWIG_fail;
17379 PyThreadState* __tstate = wxPyBeginAllowThreads();
17380 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17381 wxPyEndAllowThreads(__tstate);
17382 if (PyErr_Occurred()) SWIG_fail;
17383 }
17384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17385 {
17386 if (temp3)
17387 delete arg3;
17388 }
17389 {
17390 if (temp8)
17391 delete arg8;
17392 }
17393 return resultobj;
17394 fail:
17395 {
17396 if (temp3)
17397 delete arg3;
17398 }
17399 {
17400 if (temp8)
17401 delete arg8;
17402 }
17403 return NULL;
17404 }
17405
17406
17407 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17408 PyObject *resultobj = 0;
17409 wxRadioButton *result = 0 ;
17410
17411 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17412 {
17413 if (!wxPyCheckForApp()) SWIG_fail;
17414 PyThreadState* __tstate = wxPyBeginAllowThreads();
17415 result = (wxRadioButton *)new wxRadioButton();
17416 wxPyEndAllowThreads(__tstate);
17417 if (PyErr_Occurred()) SWIG_fail;
17418 }
17419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17420 return resultobj;
17421 fail:
17422 return NULL;
17423 }
17424
17425
17426 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17427 PyObject *resultobj = 0;
17428 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17429 wxWindow *arg2 = (wxWindow *) 0 ;
17430 int arg3 = (int) -1 ;
17431 wxString const &arg4_defvalue = wxPyEmptyString ;
17432 wxString *arg4 = (wxString *) &arg4_defvalue ;
17433 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17434 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17435 wxSize const &arg6_defvalue = wxDefaultSize ;
17436 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17437 long arg7 = (long) 0 ;
17438 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17439 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17440 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17441 wxString *arg9 = (wxString *) &arg9_defvalue ;
17442 bool result;
17443 void *argp1 = 0 ;
17444 int res1 = 0 ;
17445 void *argp2 = 0 ;
17446 int res2 = 0 ;
17447 int val3 ;
17448 int ecode3 = 0 ;
17449 bool temp4 = false ;
17450 wxPoint temp5 ;
17451 wxSize temp6 ;
17452 long val7 ;
17453 int ecode7 = 0 ;
17454 void *argp8 = 0 ;
17455 int res8 = 0 ;
17456 bool temp9 = false ;
17457 PyObject * obj0 = 0 ;
17458 PyObject * obj1 = 0 ;
17459 PyObject * obj2 = 0 ;
17460 PyObject * obj3 = 0 ;
17461 PyObject * obj4 = 0 ;
17462 PyObject * obj5 = 0 ;
17463 PyObject * obj6 = 0 ;
17464 PyObject * obj7 = 0 ;
17465 PyObject * obj8 = 0 ;
17466 char * kwnames[] = {
17467 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17468 };
17469
17470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17472 if (!SWIG_IsOK(res1)) {
17473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17474 }
17475 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17476 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17477 if (!SWIG_IsOK(res2)) {
17478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17479 }
17480 arg2 = reinterpret_cast< wxWindow * >(argp2);
17481 if (obj2) {
17482 ecode3 = SWIG_AsVal_int(obj2, &val3);
17483 if (!SWIG_IsOK(ecode3)) {
17484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17485 }
17486 arg3 = static_cast< int >(val3);
17487 }
17488 if (obj3) {
17489 {
17490 arg4 = wxString_in_helper(obj3);
17491 if (arg4 == NULL) SWIG_fail;
17492 temp4 = true;
17493 }
17494 }
17495 if (obj4) {
17496 {
17497 arg5 = &temp5;
17498 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17499 }
17500 }
17501 if (obj5) {
17502 {
17503 arg6 = &temp6;
17504 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17505 }
17506 }
17507 if (obj6) {
17508 ecode7 = SWIG_AsVal_long(obj6, &val7);
17509 if (!SWIG_IsOK(ecode7)) {
17510 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17511 }
17512 arg7 = static_cast< long >(val7);
17513 }
17514 if (obj7) {
17515 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17516 if (!SWIG_IsOK(res8)) {
17517 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17518 }
17519 if (!argp8) {
17520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17521 }
17522 arg8 = reinterpret_cast< wxValidator * >(argp8);
17523 }
17524 if (obj8) {
17525 {
17526 arg9 = wxString_in_helper(obj8);
17527 if (arg9 == NULL) SWIG_fail;
17528 temp9 = true;
17529 }
17530 }
17531 {
17532 PyThreadState* __tstate = wxPyBeginAllowThreads();
17533 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17534 wxPyEndAllowThreads(__tstate);
17535 if (PyErr_Occurred()) SWIG_fail;
17536 }
17537 {
17538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17539 }
17540 {
17541 if (temp4)
17542 delete arg4;
17543 }
17544 {
17545 if (temp9)
17546 delete arg9;
17547 }
17548 return resultobj;
17549 fail:
17550 {
17551 if (temp4)
17552 delete arg4;
17553 }
17554 {
17555 if (temp9)
17556 delete arg9;
17557 }
17558 return NULL;
17559 }
17560
17561
17562 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17563 PyObject *resultobj = 0;
17564 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17565 bool result;
17566 void *argp1 = 0 ;
17567 int res1 = 0 ;
17568 PyObject *swig_obj[1] ;
17569
17570 if (!args) SWIG_fail;
17571 swig_obj[0] = args;
17572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17573 if (!SWIG_IsOK(res1)) {
17574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17575 }
17576 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17577 {
17578 PyThreadState* __tstate = wxPyBeginAllowThreads();
17579 result = (bool)(arg1)->GetValue();
17580 wxPyEndAllowThreads(__tstate);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 {
17584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17585 }
17586 return resultobj;
17587 fail:
17588 return NULL;
17589 }
17590
17591
17592 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17593 PyObject *resultobj = 0;
17594 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17595 bool arg2 ;
17596 void *argp1 = 0 ;
17597 int res1 = 0 ;
17598 bool val2 ;
17599 int ecode2 = 0 ;
17600 PyObject * obj0 = 0 ;
17601 PyObject * obj1 = 0 ;
17602 char * kwnames[] = {
17603 (char *) "self",(char *) "value", NULL
17604 };
17605
17606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17608 if (!SWIG_IsOK(res1)) {
17609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17610 }
17611 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17612 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17613 if (!SWIG_IsOK(ecode2)) {
17614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17615 }
17616 arg2 = static_cast< bool >(val2);
17617 {
17618 PyThreadState* __tstate = wxPyBeginAllowThreads();
17619 (arg1)->SetValue(arg2);
17620 wxPyEndAllowThreads(__tstate);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 resultobj = SWIG_Py_Void();
17624 return resultobj;
17625 fail:
17626 return NULL;
17627 }
17628
17629
17630 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17631 PyObject *resultobj = 0;
17632 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17633 SwigValueWrapper<wxVisualAttributes > result;
17634 int val1 ;
17635 int ecode1 = 0 ;
17636 PyObject * obj0 = 0 ;
17637 char * kwnames[] = {
17638 (char *) "variant", NULL
17639 };
17640
17641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17642 if (obj0) {
17643 ecode1 = SWIG_AsVal_int(obj0, &val1);
17644 if (!SWIG_IsOK(ecode1)) {
17645 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17646 }
17647 arg1 = static_cast< wxWindowVariant >(val1);
17648 }
17649 {
17650 if (!wxPyCheckForApp()) SWIG_fail;
17651 PyThreadState* __tstate = wxPyBeginAllowThreads();
17652 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17653 wxPyEndAllowThreads(__tstate);
17654 if (PyErr_Occurred()) SWIG_fail;
17655 }
17656 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17657 return resultobj;
17658 fail:
17659 return NULL;
17660 }
17661
17662
17663 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17664 PyObject *obj;
17665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17666 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17667 return SWIG_Py_Void();
17668 }
17669
17670 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17671 return SWIG_Python_InitShadowInstance(args);
17672 }
17673
17674 SWIGINTERN int SliderNameStr_set(PyObject *) {
17675 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17676 return 1;
17677 }
17678
17679
17680 SWIGINTERN PyObject *SliderNameStr_get(void) {
17681 PyObject *pyobj = 0;
17682
17683 {
17684 #if wxUSE_UNICODE
17685 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17686 #else
17687 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17688 #endif
17689 }
17690 return pyobj;
17691 }
17692
17693
17694 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17695 PyObject *resultobj = 0;
17696 wxWindow *arg1 = (wxWindow *) 0 ;
17697 int arg2 = (int) -1 ;
17698 int arg3 = (int) 0 ;
17699 int arg4 = (int) 0 ;
17700 int arg5 = (int) 100 ;
17701 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17702 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17703 wxSize const &arg7_defvalue = wxDefaultSize ;
17704 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17705 long arg8 = (long) wxSL_HORIZONTAL ;
17706 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17707 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17708 wxString const &arg10_defvalue = wxPySliderNameStr ;
17709 wxString *arg10 = (wxString *) &arg10_defvalue ;
17710 wxSlider *result = 0 ;
17711 void *argp1 = 0 ;
17712 int res1 = 0 ;
17713 int val2 ;
17714 int ecode2 = 0 ;
17715 int val3 ;
17716 int ecode3 = 0 ;
17717 int val4 ;
17718 int ecode4 = 0 ;
17719 int val5 ;
17720 int ecode5 = 0 ;
17721 wxPoint temp6 ;
17722 wxSize temp7 ;
17723 long val8 ;
17724 int ecode8 = 0 ;
17725 void *argp9 = 0 ;
17726 int res9 = 0 ;
17727 bool temp10 = false ;
17728 PyObject * obj0 = 0 ;
17729 PyObject * obj1 = 0 ;
17730 PyObject * obj2 = 0 ;
17731 PyObject * obj3 = 0 ;
17732 PyObject * obj4 = 0 ;
17733 PyObject * obj5 = 0 ;
17734 PyObject * obj6 = 0 ;
17735 PyObject * obj7 = 0 ;
17736 PyObject * obj8 = 0 ;
17737 PyObject * obj9 = 0 ;
17738 char * kwnames[] = {
17739 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17740 };
17741
17742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17744 if (!SWIG_IsOK(res1)) {
17745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17746 }
17747 arg1 = reinterpret_cast< wxWindow * >(argp1);
17748 if (obj1) {
17749 ecode2 = SWIG_AsVal_int(obj1, &val2);
17750 if (!SWIG_IsOK(ecode2)) {
17751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17752 }
17753 arg2 = static_cast< int >(val2);
17754 }
17755 if (obj2) {
17756 ecode3 = SWIG_AsVal_int(obj2, &val3);
17757 if (!SWIG_IsOK(ecode3)) {
17758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17759 }
17760 arg3 = static_cast< int >(val3);
17761 }
17762 if (obj3) {
17763 ecode4 = SWIG_AsVal_int(obj3, &val4);
17764 if (!SWIG_IsOK(ecode4)) {
17765 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17766 }
17767 arg4 = static_cast< int >(val4);
17768 }
17769 if (obj4) {
17770 ecode5 = SWIG_AsVal_int(obj4, &val5);
17771 if (!SWIG_IsOK(ecode5)) {
17772 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17773 }
17774 arg5 = static_cast< int >(val5);
17775 }
17776 if (obj5) {
17777 {
17778 arg6 = &temp6;
17779 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17780 }
17781 }
17782 if (obj6) {
17783 {
17784 arg7 = &temp7;
17785 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17786 }
17787 }
17788 if (obj7) {
17789 ecode8 = SWIG_AsVal_long(obj7, &val8);
17790 if (!SWIG_IsOK(ecode8)) {
17791 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17792 }
17793 arg8 = static_cast< long >(val8);
17794 }
17795 if (obj8) {
17796 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17797 if (!SWIG_IsOK(res9)) {
17798 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17799 }
17800 if (!argp9) {
17801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17802 }
17803 arg9 = reinterpret_cast< wxValidator * >(argp9);
17804 }
17805 if (obj9) {
17806 {
17807 arg10 = wxString_in_helper(obj9);
17808 if (arg10 == NULL) SWIG_fail;
17809 temp10 = true;
17810 }
17811 }
17812 {
17813 if (!wxPyCheckForApp()) SWIG_fail;
17814 PyThreadState* __tstate = wxPyBeginAllowThreads();
17815 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17816 wxPyEndAllowThreads(__tstate);
17817 if (PyErr_Occurred()) SWIG_fail;
17818 }
17819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17820 {
17821 if (temp10)
17822 delete arg10;
17823 }
17824 return resultobj;
17825 fail:
17826 {
17827 if (temp10)
17828 delete arg10;
17829 }
17830 return NULL;
17831 }
17832
17833
17834 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17835 PyObject *resultobj = 0;
17836 wxSlider *result = 0 ;
17837
17838 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17839 {
17840 if (!wxPyCheckForApp()) SWIG_fail;
17841 PyThreadState* __tstate = wxPyBeginAllowThreads();
17842 result = (wxSlider *)new wxSlider();
17843 wxPyEndAllowThreads(__tstate);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 }
17846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17847 return resultobj;
17848 fail:
17849 return NULL;
17850 }
17851
17852
17853 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17854 PyObject *resultobj = 0;
17855 wxSlider *arg1 = (wxSlider *) 0 ;
17856 wxWindow *arg2 = (wxWindow *) 0 ;
17857 int arg3 = (int) -1 ;
17858 int arg4 = (int) 0 ;
17859 int arg5 = (int) 0 ;
17860 int arg6 = (int) 100 ;
17861 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17862 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17863 wxSize const &arg8_defvalue = wxDefaultSize ;
17864 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17865 long arg9 = (long) wxSL_HORIZONTAL ;
17866 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17867 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17868 wxString const &arg11_defvalue = wxPySliderNameStr ;
17869 wxString *arg11 = (wxString *) &arg11_defvalue ;
17870 bool result;
17871 void *argp1 = 0 ;
17872 int res1 = 0 ;
17873 void *argp2 = 0 ;
17874 int res2 = 0 ;
17875 int val3 ;
17876 int ecode3 = 0 ;
17877 int val4 ;
17878 int ecode4 = 0 ;
17879 int val5 ;
17880 int ecode5 = 0 ;
17881 int val6 ;
17882 int ecode6 = 0 ;
17883 wxPoint temp7 ;
17884 wxSize temp8 ;
17885 long val9 ;
17886 int ecode9 = 0 ;
17887 void *argp10 = 0 ;
17888 int res10 = 0 ;
17889 bool temp11 = false ;
17890 PyObject * obj0 = 0 ;
17891 PyObject * obj1 = 0 ;
17892 PyObject * obj2 = 0 ;
17893 PyObject * obj3 = 0 ;
17894 PyObject * obj4 = 0 ;
17895 PyObject * obj5 = 0 ;
17896 PyObject * obj6 = 0 ;
17897 PyObject * obj7 = 0 ;
17898 PyObject * obj8 = 0 ;
17899 PyObject * obj9 = 0 ;
17900 PyObject * obj10 = 0 ;
17901 char * kwnames[] = {
17902 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17903 };
17904
17905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17907 if (!SWIG_IsOK(res1)) {
17908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17909 }
17910 arg1 = reinterpret_cast< wxSlider * >(argp1);
17911 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17912 if (!SWIG_IsOK(res2)) {
17913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17914 }
17915 arg2 = reinterpret_cast< wxWindow * >(argp2);
17916 if (obj2) {
17917 ecode3 = SWIG_AsVal_int(obj2, &val3);
17918 if (!SWIG_IsOK(ecode3)) {
17919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17920 }
17921 arg3 = static_cast< int >(val3);
17922 }
17923 if (obj3) {
17924 ecode4 = SWIG_AsVal_int(obj3, &val4);
17925 if (!SWIG_IsOK(ecode4)) {
17926 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17927 }
17928 arg4 = static_cast< int >(val4);
17929 }
17930 if (obj4) {
17931 ecode5 = SWIG_AsVal_int(obj4, &val5);
17932 if (!SWIG_IsOK(ecode5)) {
17933 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17934 }
17935 arg5 = static_cast< int >(val5);
17936 }
17937 if (obj5) {
17938 ecode6 = SWIG_AsVal_int(obj5, &val6);
17939 if (!SWIG_IsOK(ecode6)) {
17940 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17941 }
17942 arg6 = static_cast< int >(val6);
17943 }
17944 if (obj6) {
17945 {
17946 arg7 = &temp7;
17947 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17948 }
17949 }
17950 if (obj7) {
17951 {
17952 arg8 = &temp8;
17953 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17954 }
17955 }
17956 if (obj8) {
17957 ecode9 = SWIG_AsVal_long(obj8, &val9);
17958 if (!SWIG_IsOK(ecode9)) {
17959 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17960 }
17961 arg9 = static_cast< long >(val9);
17962 }
17963 if (obj9) {
17964 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17965 if (!SWIG_IsOK(res10)) {
17966 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17967 }
17968 if (!argp10) {
17969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17970 }
17971 arg10 = reinterpret_cast< wxValidator * >(argp10);
17972 }
17973 if (obj10) {
17974 {
17975 arg11 = wxString_in_helper(obj10);
17976 if (arg11 == NULL) SWIG_fail;
17977 temp11 = true;
17978 }
17979 }
17980 {
17981 PyThreadState* __tstate = wxPyBeginAllowThreads();
17982 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17983 wxPyEndAllowThreads(__tstate);
17984 if (PyErr_Occurred()) SWIG_fail;
17985 }
17986 {
17987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17988 }
17989 {
17990 if (temp11)
17991 delete arg11;
17992 }
17993 return resultobj;
17994 fail:
17995 {
17996 if (temp11)
17997 delete arg11;
17998 }
17999 return NULL;
18000 }
18001
18002
18003 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18004 PyObject *resultobj = 0;
18005 wxSlider *arg1 = (wxSlider *) 0 ;
18006 int result;
18007 void *argp1 = 0 ;
18008 int res1 = 0 ;
18009 PyObject *swig_obj[1] ;
18010
18011 if (!args) SWIG_fail;
18012 swig_obj[0] = args;
18013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18014 if (!SWIG_IsOK(res1)) {
18015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18016 }
18017 arg1 = reinterpret_cast< wxSlider * >(argp1);
18018 {
18019 PyThreadState* __tstate = wxPyBeginAllowThreads();
18020 result = (int)((wxSlider const *)arg1)->GetValue();
18021 wxPyEndAllowThreads(__tstate);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 resultobj = SWIG_From_int(static_cast< int >(result));
18025 return resultobj;
18026 fail:
18027 return NULL;
18028 }
18029
18030
18031 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18032 PyObject *resultobj = 0;
18033 wxSlider *arg1 = (wxSlider *) 0 ;
18034 int arg2 ;
18035 void *argp1 = 0 ;
18036 int res1 = 0 ;
18037 int val2 ;
18038 int ecode2 = 0 ;
18039 PyObject * obj0 = 0 ;
18040 PyObject * obj1 = 0 ;
18041 char * kwnames[] = {
18042 (char *) "self",(char *) "value", NULL
18043 };
18044
18045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18047 if (!SWIG_IsOK(res1)) {
18048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18049 }
18050 arg1 = reinterpret_cast< wxSlider * >(argp1);
18051 ecode2 = SWIG_AsVal_int(obj1, &val2);
18052 if (!SWIG_IsOK(ecode2)) {
18053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18054 }
18055 arg2 = static_cast< int >(val2);
18056 {
18057 PyThreadState* __tstate = wxPyBeginAllowThreads();
18058 (arg1)->SetValue(arg2);
18059 wxPyEndAllowThreads(__tstate);
18060 if (PyErr_Occurred()) SWIG_fail;
18061 }
18062 resultobj = SWIG_Py_Void();
18063 return resultobj;
18064 fail:
18065 return NULL;
18066 }
18067
18068
18069 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18070 PyObject *resultobj = 0;
18071 wxSlider *arg1 = (wxSlider *) 0 ;
18072 int arg2 ;
18073 int arg3 ;
18074 void *argp1 = 0 ;
18075 int res1 = 0 ;
18076 int val2 ;
18077 int ecode2 = 0 ;
18078 int val3 ;
18079 int ecode3 = 0 ;
18080 PyObject * obj0 = 0 ;
18081 PyObject * obj1 = 0 ;
18082 PyObject * obj2 = 0 ;
18083 char * kwnames[] = {
18084 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18085 };
18086
18087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18089 if (!SWIG_IsOK(res1)) {
18090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18091 }
18092 arg1 = reinterpret_cast< wxSlider * >(argp1);
18093 ecode2 = SWIG_AsVal_int(obj1, &val2);
18094 if (!SWIG_IsOK(ecode2)) {
18095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18096 }
18097 arg2 = static_cast< int >(val2);
18098 ecode3 = SWIG_AsVal_int(obj2, &val3);
18099 if (!SWIG_IsOK(ecode3)) {
18100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18101 }
18102 arg3 = static_cast< int >(val3);
18103 {
18104 PyThreadState* __tstate = wxPyBeginAllowThreads();
18105 (arg1)->SetRange(arg2,arg3);
18106 wxPyEndAllowThreads(__tstate);
18107 if (PyErr_Occurred()) SWIG_fail;
18108 }
18109 resultobj = SWIG_Py_Void();
18110 return resultobj;
18111 fail:
18112 return NULL;
18113 }
18114
18115
18116 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18117 PyObject *resultobj = 0;
18118 wxSlider *arg1 = (wxSlider *) 0 ;
18119 int result;
18120 void *argp1 = 0 ;
18121 int res1 = 0 ;
18122 PyObject *swig_obj[1] ;
18123
18124 if (!args) SWIG_fail;
18125 swig_obj[0] = args;
18126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18127 if (!SWIG_IsOK(res1)) {
18128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18129 }
18130 arg1 = reinterpret_cast< wxSlider * >(argp1);
18131 {
18132 PyThreadState* __tstate = wxPyBeginAllowThreads();
18133 result = (int)((wxSlider const *)arg1)->GetMin();
18134 wxPyEndAllowThreads(__tstate);
18135 if (PyErr_Occurred()) SWIG_fail;
18136 }
18137 resultobj = SWIG_From_int(static_cast< int >(result));
18138 return resultobj;
18139 fail:
18140 return NULL;
18141 }
18142
18143
18144 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18145 PyObject *resultobj = 0;
18146 wxSlider *arg1 = (wxSlider *) 0 ;
18147 int result;
18148 void *argp1 = 0 ;
18149 int res1 = 0 ;
18150 PyObject *swig_obj[1] ;
18151
18152 if (!args) SWIG_fail;
18153 swig_obj[0] = args;
18154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18155 if (!SWIG_IsOK(res1)) {
18156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18157 }
18158 arg1 = reinterpret_cast< wxSlider * >(argp1);
18159 {
18160 PyThreadState* __tstate = wxPyBeginAllowThreads();
18161 result = (int)((wxSlider const *)arg1)->GetMax();
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 resultobj = SWIG_From_int(static_cast< int >(result));
18166 return resultobj;
18167 fail:
18168 return NULL;
18169 }
18170
18171
18172 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18173 PyObject *resultobj = 0;
18174 wxSlider *arg1 = (wxSlider *) 0 ;
18175 int arg2 ;
18176 void *argp1 = 0 ;
18177 int res1 = 0 ;
18178 int val2 ;
18179 int ecode2 = 0 ;
18180 PyObject * obj0 = 0 ;
18181 PyObject * obj1 = 0 ;
18182 char * kwnames[] = {
18183 (char *) "self",(char *) "minValue", NULL
18184 };
18185
18186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18188 if (!SWIG_IsOK(res1)) {
18189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18190 }
18191 arg1 = reinterpret_cast< wxSlider * >(argp1);
18192 ecode2 = SWIG_AsVal_int(obj1, &val2);
18193 if (!SWIG_IsOK(ecode2)) {
18194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18195 }
18196 arg2 = static_cast< int >(val2);
18197 {
18198 PyThreadState* __tstate = wxPyBeginAllowThreads();
18199 (arg1)->SetMin(arg2);
18200 wxPyEndAllowThreads(__tstate);
18201 if (PyErr_Occurred()) SWIG_fail;
18202 }
18203 resultobj = SWIG_Py_Void();
18204 return resultobj;
18205 fail:
18206 return NULL;
18207 }
18208
18209
18210 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18211 PyObject *resultobj = 0;
18212 wxSlider *arg1 = (wxSlider *) 0 ;
18213 int arg2 ;
18214 void *argp1 = 0 ;
18215 int res1 = 0 ;
18216 int val2 ;
18217 int ecode2 = 0 ;
18218 PyObject * obj0 = 0 ;
18219 PyObject * obj1 = 0 ;
18220 char * kwnames[] = {
18221 (char *) "self",(char *) "maxValue", NULL
18222 };
18223
18224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18226 if (!SWIG_IsOK(res1)) {
18227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18228 }
18229 arg1 = reinterpret_cast< wxSlider * >(argp1);
18230 ecode2 = SWIG_AsVal_int(obj1, &val2);
18231 if (!SWIG_IsOK(ecode2)) {
18232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18233 }
18234 arg2 = static_cast< int >(val2);
18235 {
18236 PyThreadState* __tstate = wxPyBeginAllowThreads();
18237 (arg1)->SetMax(arg2);
18238 wxPyEndAllowThreads(__tstate);
18239 if (PyErr_Occurred()) SWIG_fail;
18240 }
18241 resultobj = SWIG_Py_Void();
18242 return resultobj;
18243 fail:
18244 return NULL;
18245 }
18246
18247
18248 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18249 PyObject *resultobj = 0;
18250 wxSlider *arg1 = (wxSlider *) 0 ;
18251 int arg2 ;
18252 void *argp1 = 0 ;
18253 int res1 = 0 ;
18254 int val2 ;
18255 int ecode2 = 0 ;
18256 PyObject * obj0 = 0 ;
18257 PyObject * obj1 = 0 ;
18258 char * kwnames[] = {
18259 (char *) "self",(char *) "lineSize", NULL
18260 };
18261
18262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18264 if (!SWIG_IsOK(res1)) {
18265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18266 }
18267 arg1 = reinterpret_cast< wxSlider * >(argp1);
18268 ecode2 = SWIG_AsVal_int(obj1, &val2);
18269 if (!SWIG_IsOK(ecode2)) {
18270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18271 }
18272 arg2 = static_cast< int >(val2);
18273 {
18274 PyThreadState* __tstate = wxPyBeginAllowThreads();
18275 (arg1)->SetLineSize(arg2);
18276 wxPyEndAllowThreads(__tstate);
18277 if (PyErr_Occurred()) SWIG_fail;
18278 }
18279 resultobj = SWIG_Py_Void();
18280 return resultobj;
18281 fail:
18282 return NULL;
18283 }
18284
18285
18286 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18287 PyObject *resultobj = 0;
18288 wxSlider *arg1 = (wxSlider *) 0 ;
18289 int arg2 ;
18290 void *argp1 = 0 ;
18291 int res1 = 0 ;
18292 int val2 ;
18293 int ecode2 = 0 ;
18294 PyObject * obj0 = 0 ;
18295 PyObject * obj1 = 0 ;
18296 char * kwnames[] = {
18297 (char *) "self",(char *) "pageSize", NULL
18298 };
18299
18300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18302 if (!SWIG_IsOK(res1)) {
18303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18304 }
18305 arg1 = reinterpret_cast< wxSlider * >(argp1);
18306 ecode2 = SWIG_AsVal_int(obj1, &val2);
18307 if (!SWIG_IsOK(ecode2)) {
18308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18309 }
18310 arg2 = static_cast< int >(val2);
18311 {
18312 PyThreadState* __tstate = wxPyBeginAllowThreads();
18313 (arg1)->SetPageSize(arg2);
18314 wxPyEndAllowThreads(__tstate);
18315 if (PyErr_Occurred()) SWIG_fail;
18316 }
18317 resultobj = SWIG_Py_Void();
18318 return resultobj;
18319 fail:
18320 return NULL;
18321 }
18322
18323
18324 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18325 PyObject *resultobj = 0;
18326 wxSlider *arg1 = (wxSlider *) 0 ;
18327 int result;
18328 void *argp1 = 0 ;
18329 int res1 = 0 ;
18330 PyObject *swig_obj[1] ;
18331
18332 if (!args) SWIG_fail;
18333 swig_obj[0] = args;
18334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18335 if (!SWIG_IsOK(res1)) {
18336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18337 }
18338 arg1 = reinterpret_cast< wxSlider * >(argp1);
18339 {
18340 PyThreadState* __tstate = wxPyBeginAllowThreads();
18341 result = (int)((wxSlider const *)arg1)->GetLineSize();
18342 wxPyEndAllowThreads(__tstate);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 resultobj = SWIG_From_int(static_cast< int >(result));
18346 return resultobj;
18347 fail:
18348 return NULL;
18349 }
18350
18351
18352 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18353 PyObject *resultobj = 0;
18354 wxSlider *arg1 = (wxSlider *) 0 ;
18355 int result;
18356 void *argp1 = 0 ;
18357 int res1 = 0 ;
18358 PyObject *swig_obj[1] ;
18359
18360 if (!args) SWIG_fail;
18361 swig_obj[0] = args;
18362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18363 if (!SWIG_IsOK(res1)) {
18364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18365 }
18366 arg1 = reinterpret_cast< wxSlider * >(argp1);
18367 {
18368 PyThreadState* __tstate = wxPyBeginAllowThreads();
18369 result = (int)((wxSlider const *)arg1)->GetPageSize();
18370 wxPyEndAllowThreads(__tstate);
18371 if (PyErr_Occurred()) SWIG_fail;
18372 }
18373 resultobj = SWIG_From_int(static_cast< int >(result));
18374 return resultobj;
18375 fail:
18376 return NULL;
18377 }
18378
18379
18380 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18381 PyObject *resultobj = 0;
18382 wxSlider *arg1 = (wxSlider *) 0 ;
18383 int arg2 ;
18384 void *argp1 = 0 ;
18385 int res1 = 0 ;
18386 int val2 ;
18387 int ecode2 = 0 ;
18388 PyObject * obj0 = 0 ;
18389 PyObject * obj1 = 0 ;
18390 char * kwnames[] = {
18391 (char *) "self",(char *) "lenPixels", NULL
18392 };
18393
18394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18396 if (!SWIG_IsOK(res1)) {
18397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18398 }
18399 arg1 = reinterpret_cast< wxSlider * >(argp1);
18400 ecode2 = SWIG_AsVal_int(obj1, &val2);
18401 if (!SWIG_IsOK(ecode2)) {
18402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18403 }
18404 arg2 = static_cast< int >(val2);
18405 {
18406 PyThreadState* __tstate = wxPyBeginAllowThreads();
18407 (arg1)->SetThumbLength(arg2);
18408 wxPyEndAllowThreads(__tstate);
18409 if (PyErr_Occurred()) SWIG_fail;
18410 }
18411 resultobj = SWIG_Py_Void();
18412 return resultobj;
18413 fail:
18414 return NULL;
18415 }
18416
18417
18418 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18419 PyObject *resultobj = 0;
18420 wxSlider *arg1 = (wxSlider *) 0 ;
18421 int result;
18422 void *argp1 = 0 ;
18423 int res1 = 0 ;
18424 PyObject *swig_obj[1] ;
18425
18426 if (!args) SWIG_fail;
18427 swig_obj[0] = args;
18428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18429 if (!SWIG_IsOK(res1)) {
18430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18431 }
18432 arg1 = reinterpret_cast< wxSlider * >(argp1);
18433 {
18434 PyThreadState* __tstate = wxPyBeginAllowThreads();
18435 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18436 wxPyEndAllowThreads(__tstate);
18437 if (PyErr_Occurred()) SWIG_fail;
18438 }
18439 resultobj = SWIG_From_int(static_cast< int >(result));
18440 return resultobj;
18441 fail:
18442 return NULL;
18443 }
18444
18445
18446 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18447 PyObject *resultobj = 0;
18448 wxSlider *arg1 = (wxSlider *) 0 ;
18449 int arg2 ;
18450 int arg3 = (int) 1 ;
18451 void *argp1 = 0 ;
18452 int res1 = 0 ;
18453 int val2 ;
18454 int ecode2 = 0 ;
18455 int val3 ;
18456 int ecode3 = 0 ;
18457 PyObject * obj0 = 0 ;
18458 PyObject * obj1 = 0 ;
18459 PyObject * obj2 = 0 ;
18460 char * kwnames[] = {
18461 (char *) "self",(char *) "n",(char *) "pos", NULL
18462 };
18463
18464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18466 if (!SWIG_IsOK(res1)) {
18467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18468 }
18469 arg1 = reinterpret_cast< wxSlider * >(argp1);
18470 ecode2 = SWIG_AsVal_int(obj1, &val2);
18471 if (!SWIG_IsOK(ecode2)) {
18472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18473 }
18474 arg2 = static_cast< int >(val2);
18475 if (obj2) {
18476 ecode3 = SWIG_AsVal_int(obj2, &val3);
18477 if (!SWIG_IsOK(ecode3)) {
18478 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18479 }
18480 arg3 = static_cast< int >(val3);
18481 }
18482 {
18483 PyThreadState* __tstate = wxPyBeginAllowThreads();
18484 (arg1)->SetTickFreq(arg2,arg3);
18485 wxPyEndAllowThreads(__tstate);
18486 if (PyErr_Occurred()) SWIG_fail;
18487 }
18488 resultobj = SWIG_Py_Void();
18489 return resultobj;
18490 fail:
18491 return NULL;
18492 }
18493
18494
18495 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18496 PyObject *resultobj = 0;
18497 wxSlider *arg1 = (wxSlider *) 0 ;
18498 int result;
18499 void *argp1 = 0 ;
18500 int res1 = 0 ;
18501 PyObject *swig_obj[1] ;
18502
18503 if (!args) SWIG_fail;
18504 swig_obj[0] = args;
18505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18506 if (!SWIG_IsOK(res1)) {
18507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18508 }
18509 arg1 = reinterpret_cast< wxSlider * >(argp1);
18510 {
18511 PyThreadState* __tstate = wxPyBeginAllowThreads();
18512 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18513 wxPyEndAllowThreads(__tstate);
18514 if (PyErr_Occurred()) SWIG_fail;
18515 }
18516 resultobj = SWIG_From_int(static_cast< int >(result));
18517 return resultobj;
18518 fail:
18519 return NULL;
18520 }
18521
18522
18523 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18524 PyObject *resultobj = 0;
18525 wxSlider *arg1 = (wxSlider *) 0 ;
18526 void *argp1 = 0 ;
18527 int res1 = 0 ;
18528 PyObject *swig_obj[1] ;
18529
18530 if (!args) SWIG_fail;
18531 swig_obj[0] = args;
18532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18533 if (!SWIG_IsOK(res1)) {
18534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18535 }
18536 arg1 = reinterpret_cast< wxSlider * >(argp1);
18537 {
18538 PyThreadState* __tstate = wxPyBeginAllowThreads();
18539 (arg1)->ClearTicks();
18540 wxPyEndAllowThreads(__tstate);
18541 if (PyErr_Occurred()) SWIG_fail;
18542 }
18543 resultobj = SWIG_Py_Void();
18544 return resultobj;
18545 fail:
18546 return NULL;
18547 }
18548
18549
18550 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18551 PyObject *resultobj = 0;
18552 wxSlider *arg1 = (wxSlider *) 0 ;
18553 int arg2 ;
18554 void *argp1 = 0 ;
18555 int res1 = 0 ;
18556 int val2 ;
18557 int ecode2 = 0 ;
18558 PyObject * obj0 = 0 ;
18559 PyObject * obj1 = 0 ;
18560 char * kwnames[] = {
18561 (char *) "self",(char *) "tickPos", NULL
18562 };
18563
18564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18566 if (!SWIG_IsOK(res1)) {
18567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18568 }
18569 arg1 = reinterpret_cast< wxSlider * >(argp1);
18570 ecode2 = SWIG_AsVal_int(obj1, &val2);
18571 if (!SWIG_IsOK(ecode2)) {
18572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18573 }
18574 arg2 = static_cast< int >(val2);
18575 {
18576 PyThreadState* __tstate = wxPyBeginAllowThreads();
18577 (arg1)->SetTick(arg2);
18578 wxPyEndAllowThreads(__tstate);
18579 if (PyErr_Occurred()) SWIG_fail;
18580 }
18581 resultobj = SWIG_Py_Void();
18582 return resultobj;
18583 fail:
18584 return NULL;
18585 }
18586
18587
18588 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18589 PyObject *resultobj = 0;
18590 wxSlider *arg1 = (wxSlider *) 0 ;
18591 void *argp1 = 0 ;
18592 int res1 = 0 ;
18593 PyObject *swig_obj[1] ;
18594
18595 if (!args) SWIG_fail;
18596 swig_obj[0] = args;
18597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18598 if (!SWIG_IsOK(res1)) {
18599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18600 }
18601 arg1 = reinterpret_cast< wxSlider * >(argp1);
18602 {
18603 PyThreadState* __tstate = wxPyBeginAllowThreads();
18604 (arg1)->ClearSel();
18605 wxPyEndAllowThreads(__tstate);
18606 if (PyErr_Occurred()) SWIG_fail;
18607 }
18608 resultobj = SWIG_Py_Void();
18609 return resultobj;
18610 fail:
18611 return NULL;
18612 }
18613
18614
18615 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18616 PyObject *resultobj = 0;
18617 wxSlider *arg1 = (wxSlider *) 0 ;
18618 int result;
18619 void *argp1 = 0 ;
18620 int res1 = 0 ;
18621 PyObject *swig_obj[1] ;
18622
18623 if (!args) SWIG_fail;
18624 swig_obj[0] = args;
18625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18626 if (!SWIG_IsOK(res1)) {
18627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18628 }
18629 arg1 = reinterpret_cast< wxSlider * >(argp1);
18630 {
18631 PyThreadState* __tstate = wxPyBeginAllowThreads();
18632 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18633 wxPyEndAllowThreads(__tstate);
18634 if (PyErr_Occurred()) SWIG_fail;
18635 }
18636 resultobj = SWIG_From_int(static_cast< int >(result));
18637 return resultobj;
18638 fail:
18639 return NULL;
18640 }
18641
18642
18643 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18644 PyObject *resultobj = 0;
18645 wxSlider *arg1 = (wxSlider *) 0 ;
18646 int result;
18647 void *argp1 = 0 ;
18648 int res1 = 0 ;
18649 PyObject *swig_obj[1] ;
18650
18651 if (!args) SWIG_fail;
18652 swig_obj[0] = args;
18653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18654 if (!SWIG_IsOK(res1)) {
18655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18656 }
18657 arg1 = reinterpret_cast< wxSlider * >(argp1);
18658 {
18659 PyThreadState* __tstate = wxPyBeginAllowThreads();
18660 result = (int)((wxSlider const *)arg1)->GetSelStart();
18661 wxPyEndAllowThreads(__tstate);
18662 if (PyErr_Occurred()) SWIG_fail;
18663 }
18664 resultobj = SWIG_From_int(static_cast< int >(result));
18665 return resultobj;
18666 fail:
18667 return NULL;
18668 }
18669
18670
18671 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18672 PyObject *resultobj = 0;
18673 wxSlider *arg1 = (wxSlider *) 0 ;
18674 int arg2 ;
18675 int arg3 ;
18676 void *argp1 = 0 ;
18677 int res1 = 0 ;
18678 int val2 ;
18679 int ecode2 = 0 ;
18680 int val3 ;
18681 int ecode3 = 0 ;
18682 PyObject * obj0 = 0 ;
18683 PyObject * obj1 = 0 ;
18684 PyObject * obj2 = 0 ;
18685 char * kwnames[] = {
18686 (char *) "self",(char *) "min",(char *) "max", NULL
18687 };
18688
18689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18691 if (!SWIG_IsOK(res1)) {
18692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18693 }
18694 arg1 = reinterpret_cast< wxSlider * >(argp1);
18695 ecode2 = SWIG_AsVal_int(obj1, &val2);
18696 if (!SWIG_IsOK(ecode2)) {
18697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18698 }
18699 arg2 = static_cast< int >(val2);
18700 ecode3 = SWIG_AsVal_int(obj2, &val3);
18701 if (!SWIG_IsOK(ecode3)) {
18702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18703 }
18704 arg3 = static_cast< int >(val3);
18705 {
18706 PyThreadState* __tstate = wxPyBeginAllowThreads();
18707 (arg1)->SetSelection(arg2,arg3);
18708 wxPyEndAllowThreads(__tstate);
18709 if (PyErr_Occurred()) SWIG_fail;
18710 }
18711 resultobj = SWIG_Py_Void();
18712 return resultobj;
18713 fail:
18714 return NULL;
18715 }
18716
18717
18718 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18719 PyObject *resultobj = 0;
18720 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18721 SwigValueWrapper<wxVisualAttributes > result;
18722 int val1 ;
18723 int ecode1 = 0 ;
18724 PyObject * obj0 = 0 ;
18725 char * kwnames[] = {
18726 (char *) "variant", NULL
18727 };
18728
18729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18730 if (obj0) {
18731 ecode1 = SWIG_AsVal_int(obj0, &val1);
18732 if (!SWIG_IsOK(ecode1)) {
18733 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18734 }
18735 arg1 = static_cast< wxWindowVariant >(val1);
18736 }
18737 {
18738 if (!wxPyCheckForApp()) SWIG_fail;
18739 PyThreadState* __tstate = wxPyBeginAllowThreads();
18740 result = wxSlider::GetClassDefaultAttributes(arg1);
18741 wxPyEndAllowThreads(__tstate);
18742 if (PyErr_Occurred()) SWIG_fail;
18743 }
18744 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18745 return resultobj;
18746 fail:
18747 return NULL;
18748 }
18749
18750
18751 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18752 PyObject *obj;
18753 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18754 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18755 return SWIG_Py_Void();
18756 }
18757
18758 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18759 return SWIG_Python_InitShadowInstance(args);
18760 }
18761
18762 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18763 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18764 return 1;
18765 }
18766
18767
18768 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18769 PyObject *pyobj = 0;
18770
18771 {
18772 #if wxUSE_UNICODE
18773 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18774 #else
18775 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18776 #endif
18777 }
18778 return pyobj;
18779 }
18780
18781
18782 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18783 PyObject *resultobj = 0;
18784 wxWindow *arg1 = (wxWindow *) 0 ;
18785 int arg2 = (int) -1 ;
18786 wxString const &arg3_defvalue = wxPyEmptyString ;
18787 wxString *arg3 = (wxString *) &arg3_defvalue ;
18788 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18789 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18790 wxSize const &arg5_defvalue = wxDefaultSize ;
18791 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18792 long arg6 = (long) 0 ;
18793 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18794 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18795 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18796 wxString *arg8 = (wxString *) &arg8_defvalue ;
18797 wxToggleButton *result = 0 ;
18798 void *argp1 = 0 ;
18799 int res1 = 0 ;
18800 int val2 ;
18801 int ecode2 = 0 ;
18802 bool temp3 = false ;
18803 wxPoint temp4 ;
18804 wxSize temp5 ;
18805 long val6 ;
18806 int ecode6 = 0 ;
18807 void *argp7 = 0 ;
18808 int res7 = 0 ;
18809 bool temp8 = false ;
18810 PyObject * obj0 = 0 ;
18811 PyObject * obj1 = 0 ;
18812 PyObject * obj2 = 0 ;
18813 PyObject * obj3 = 0 ;
18814 PyObject * obj4 = 0 ;
18815 PyObject * obj5 = 0 ;
18816 PyObject * obj6 = 0 ;
18817 PyObject * obj7 = 0 ;
18818 char * kwnames[] = {
18819 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18820 };
18821
18822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18824 if (!SWIG_IsOK(res1)) {
18825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18826 }
18827 arg1 = reinterpret_cast< wxWindow * >(argp1);
18828 if (obj1) {
18829 ecode2 = SWIG_AsVal_int(obj1, &val2);
18830 if (!SWIG_IsOK(ecode2)) {
18831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18832 }
18833 arg2 = static_cast< int >(val2);
18834 }
18835 if (obj2) {
18836 {
18837 arg3 = wxString_in_helper(obj2);
18838 if (arg3 == NULL) SWIG_fail;
18839 temp3 = true;
18840 }
18841 }
18842 if (obj3) {
18843 {
18844 arg4 = &temp4;
18845 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18846 }
18847 }
18848 if (obj4) {
18849 {
18850 arg5 = &temp5;
18851 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18852 }
18853 }
18854 if (obj5) {
18855 ecode6 = SWIG_AsVal_long(obj5, &val6);
18856 if (!SWIG_IsOK(ecode6)) {
18857 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18858 }
18859 arg6 = static_cast< long >(val6);
18860 }
18861 if (obj6) {
18862 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18863 if (!SWIG_IsOK(res7)) {
18864 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18865 }
18866 if (!argp7) {
18867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18868 }
18869 arg7 = reinterpret_cast< wxValidator * >(argp7);
18870 }
18871 if (obj7) {
18872 {
18873 arg8 = wxString_in_helper(obj7);
18874 if (arg8 == NULL) SWIG_fail;
18875 temp8 = true;
18876 }
18877 }
18878 {
18879 if (!wxPyCheckForApp()) SWIG_fail;
18880 PyThreadState* __tstate = wxPyBeginAllowThreads();
18881 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18882 wxPyEndAllowThreads(__tstate);
18883 if (PyErr_Occurred()) SWIG_fail;
18884 }
18885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18886 {
18887 if (temp3)
18888 delete arg3;
18889 }
18890 {
18891 if (temp8)
18892 delete arg8;
18893 }
18894 return resultobj;
18895 fail:
18896 {
18897 if (temp3)
18898 delete arg3;
18899 }
18900 {
18901 if (temp8)
18902 delete arg8;
18903 }
18904 return NULL;
18905 }
18906
18907
18908 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18909 PyObject *resultobj = 0;
18910 wxToggleButton *result = 0 ;
18911
18912 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18913 {
18914 if (!wxPyCheckForApp()) SWIG_fail;
18915 PyThreadState* __tstate = wxPyBeginAllowThreads();
18916 result = (wxToggleButton *)new wxToggleButton();
18917 wxPyEndAllowThreads(__tstate);
18918 if (PyErr_Occurred()) SWIG_fail;
18919 }
18920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18921 return resultobj;
18922 fail:
18923 return NULL;
18924 }
18925
18926
18927 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18928 PyObject *resultobj = 0;
18929 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18930 wxWindow *arg2 = (wxWindow *) 0 ;
18931 int arg3 = (int) -1 ;
18932 wxString const &arg4_defvalue = wxPyEmptyString ;
18933 wxString *arg4 = (wxString *) &arg4_defvalue ;
18934 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18935 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18936 wxSize const &arg6_defvalue = wxDefaultSize ;
18937 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18938 long arg7 = (long) 0 ;
18939 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18940 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18941 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18942 wxString *arg9 = (wxString *) &arg9_defvalue ;
18943 bool result;
18944 void *argp1 = 0 ;
18945 int res1 = 0 ;
18946 void *argp2 = 0 ;
18947 int res2 = 0 ;
18948 int val3 ;
18949 int ecode3 = 0 ;
18950 bool temp4 = false ;
18951 wxPoint temp5 ;
18952 wxSize temp6 ;
18953 long val7 ;
18954 int ecode7 = 0 ;
18955 void *argp8 = 0 ;
18956 int res8 = 0 ;
18957 bool temp9 = false ;
18958 PyObject * obj0 = 0 ;
18959 PyObject * obj1 = 0 ;
18960 PyObject * obj2 = 0 ;
18961 PyObject * obj3 = 0 ;
18962 PyObject * obj4 = 0 ;
18963 PyObject * obj5 = 0 ;
18964 PyObject * obj6 = 0 ;
18965 PyObject * obj7 = 0 ;
18966 PyObject * obj8 = 0 ;
18967 char * kwnames[] = {
18968 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18969 };
18970
18971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18973 if (!SWIG_IsOK(res1)) {
18974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18975 }
18976 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18977 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18978 if (!SWIG_IsOK(res2)) {
18979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18980 }
18981 arg2 = reinterpret_cast< wxWindow * >(argp2);
18982 if (obj2) {
18983 ecode3 = SWIG_AsVal_int(obj2, &val3);
18984 if (!SWIG_IsOK(ecode3)) {
18985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18986 }
18987 arg3 = static_cast< int >(val3);
18988 }
18989 if (obj3) {
18990 {
18991 arg4 = wxString_in_helper(obj3);
18992 if (arg4 == NULL) SWIG_fail;
18993 temp4 = true;
18994 }
18995 }
18996 if (obj4) {
18997 {
18998 arg5 = &temp5;
18999 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19000 }
19001 }
19002 if (obj5) {
19003 {
19004 arg6 = &temp6;
19005 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
19006 }
19007 }
19008 if (obj6) {
19009 ecode7 = SWIG_AsVal_long(obj6, &val7);
19010 if (!SWIG_IsOK(ecode7)) {
19011 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19012 }
19013 arg7 = static_cast< long >(val7);
19014 }
19015 if (obj7) {
19016 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19017 if (!SWIG_IsOK(res8)) {
19018 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19019 }
19020 if (!argp8) {
19021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19022 }
19023 arg8 = reinterpret_cast< wxValidator * >(argp8);
19024 }
19025 if (obj8) {
19026 {
19027 arg9 = wxString_in_helper(obj8);
19028 if (arg9 == NULL) SWIG_fail;
19029 temp9 = true;
19030 }
19031 }
19032 {
19033 PyThreadState* __tstate = wxPyBeginAllowThreads();
19034 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19035 wxPyEndAllowThreads(__tstate);
19036 if (PyErr_Occurred()) SWIG_fail;
19037 }
19038 {
19039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19040 }
19041 {
19042 if (temp4)
19043 delete arg4;
19044 }
19045 {
19046 if (temp9)
19047 delete arg9;
19048 }
19049 return resultobj;
19050 fail:
19051 {
19052 if (temp4)
19053 delete arg4;
19054 }
19055 {
19056 if (temp9)
19057 delete arg9;
19058 }
19059 return NULL;
19060 }
19061
19062
19063 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19064 PyObject *resultobj = 0;
19065 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19066 bool arg2 ;
19067 void *argp1 = 0 ;
19068 int res1 = 0 ;
19069 bool val2 ;
19070 int ecode2 = 0 ;
19071 PyObject * obj0 = 0 ;
19072 PyObject * obj1 = 0 ;
19073 char * kwnames[] = {
19074 (char *) "self",(char *) "value", NULL
19075 };
19076
19077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19079 if (!SWIG_IsOK(res1)) {
19080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19081 }
19082 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19083 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19084 if (!SWIG_IsOK(ecode2)) {
19085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19086 }
19087 arg2 = static_cast< bool >(val2);
19088 {
19089 PyThreadState* __tstate = wxPyBeginAllowThreads();
19090 (arg1)->SetValue(arg2);
19091 wxPyEndAllowThreads(__tstate);
19092 if (PyErr_Occurred()) SWIG_fail;
19093 }
19094 resultobj = SWIG_Py_Void();
19095 return resultobj;
19096 fail:
19097 return NULL;
19098 }
19099
19100
19101 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19102 PyObject *resultobj = 0;
19103 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19104 bool result;
19105 void *argp1 = 0 ;
19106 int res1 = 0 ;
19107 PyObject *swig_obj[1] ;
19108
19109 if (!args) SWIG_fail;
19110 swig_obj[0] = args;
19111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19112 if (!SWIG_IsOK(res1)) {
19113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19114 }
19115 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19116 {
19117 PyThreadState* __tstate = wxPyBeginAllowThreads();
19118 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19119 wxPyEndAllowThreads(__tstate);
19120 if (PyErr_Occurred()) SWIG_fail;
19121 }
19122 {
19123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19124 }
19125 return resultobj;
19126 fail:
19127 return NULL;
19128 }
19129
19130
19131 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19132 PyObject *resultobj = 0;
19133 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19134 SwigValueWrapper<wxVisualAttributes > result;
19135 int val1 ;
19136 int ecode1 = 0 ;
19137 PyObject * obj0 = 0 ;
19138 char * kwnames[] = {
19139 (char *) "variant", NULL
19140 };
19141
19142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19143 if (obj0) {
19144 ecode1 = SWIG_AsVal_int(obj0, &val1);
19145 if (!SWIG_IsOK(ecode1)) {
19146 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19147 }
19148 arg1 = static_cast< wxWindowVariant >(val1);
19149 }
19150 {
19151 if (!wxPyCheckForApp()) SWIG_fail;
19152 PyThreadState* __tstate = wxPyBeginAllowThreads();
19153 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19154 wxPyEndAllowThreads(__tstate);
19155 if (PyErr_Occurred()) SWIG_fail;
19156 }
19157 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19158 return resultobj;
19159 fail:
19160 return NULL;
19161 }
19162
19163
19164 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19165 PyObject *obj;
19166 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19167 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19168 return SWIG_Py_Void();
19169 }
19170
19171 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19172 return SWIG_Python_InitShadowInstance(args);
19173 }
19174
19175 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19176 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19177 return 1;
19178 }
19179
19180
19181 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19182 PyObject *pyobj = 0;
19183
19184 {
19185 #if wxUSE_UNICODE
19186 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19187 #else
19188 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19189 #endif
19190 }
19191 return pyobj;
19192 }
19193
19194
19195 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19196 PyObject *resultobj = 0;
19197 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19198 size_t result;
19199 void *argp1 = 0 ;
19200 int res1 = 0 ;
19201 PyObject *swig_obj[1] ;
19202
19203 if (!args) SWIG_fail;
19204 swig_obj[0] = args;
19205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19206 if (!SWIG_IsOK(res1)) {
19207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19208 }
19209 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19210 {
19211 PyThreadState* __tstate = wxPyBeginAllowThreads();
19212 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19213 wxPyEndAllowThreads(__tstate);
19214 if (PyErr_Occurred()) SWIG_fail;
19215 }
19216 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19217 return resultobj;
19218 fail:
19219 return NULL;
19220 }
19221
19222
19223 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj = 0;
19225 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19226 size_t arg2 ;
19227 wxWindow *result = 0 ;
19228 void *argp1 = 0 ;
19229 int res1 = 0 ;
19230 size_t val2 ;
19231 int ecode2 = 0 ;
19232 PyObject * obj0 = 0 ;
19233 PyObject * obj1 = 0 ;
19234 char * kwnames[] = {
19235 (char *) "self",(char *) "n", NULL
19236 };
19237
19238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19240 if (!SWIG_IsOK(res1)) {
19241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19242 }
19243 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19244 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19245 if (!SWIG_IsOK(ecode2)) {
19246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19247 }
19248 arg2 = static_cast< size_t >(val2);
19249 {
19250 PyThreadState* __tstate = wxPyBeginAllowThreads();
19251 result = (wxWindow *)(arg1)->GetPage(arg2);
19252 wxPyEndAllowThreads(__tstate);
19253 if (PyErr_Occurred()) SWIG_fail;
19254 }
19255 {
19256 resultobj = wxPyMake_wxObject(result, 0);
19257 }
19258 return resultobj;
19259 fail:
19260 return NULL;
19261 }
19262
19263
19264 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19265 PyObject *resultobj = 0;
19266 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19267 wxWindow *result = 0 ;
19268 void *argp1 = 0 ;
19269 int res1 = 0 ;
19270 PyObject *swig_obj[1] ;
19271
19272 if (!args) SWIG_fail;
19273 swig_obj[0] = args;
19274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19275 if (!SWIG_IsOK(res1)) {
19276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19277 }
19278 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19279 {
19280 PyThreadState* __tstate = wxPyBeginAllowThreads();
19281 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19282 wxPyEndAllowThreads(__tstate);
19283 if (PyErr_Occurred()) SWIG_fail;
19284 }
19285 {
19286 resultobj = wxPyMake_wxObject(result, 0);
19287 }
19288 return resultobj;
19289 fail:
19290 return NULL;
19291 }
19292
19293
19294 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19295 PyObject *resultobj = 0;
19296 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19297 int result;
19298 void *argp1 = 0 ;
19299 int res1 = 0 ;
19300 PyObject *swig_obj[1] ;
19301
19302 if (!args) SWIG_fail;
19303 swig_obj[0] = args;
19304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19305 if (!SWIG_IsOK(res1)) {
19306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19307 }
19308 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19309 {
19310 PyThreadState* __tstate = wxPyBeginAllowThreads();
19311 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19312 wxPyEndAllowThreads(__tstate);
19313 if (PyErr_Occurred()) SWIG_fail;
19314 }
19315 resultobj = SWIG_From_int(static_cast< int >(result));
19316 return resultobj;
19317 fail:
19318 return NULL;
19319 }
19320
19321
19322 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19323 PyObject *resultobj = 0;
19324 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19325 size_t arg2 ;
19326 wxString *arg3 = 0 ;
19327 bool result;
19328 void *argp1 = 0 ;
19329 int res1 = 0 ;
19330 size_t val2 ;
19331 int ecode2 = 0 ;
19332 bool temp3 = false ;
19333 PyObject * obj0 = 0 ;
19334 PyObject * obj1 = 0 ;
19335 PyObject * obj2 = 0 ;
19336 char * kwnames[] = {
19337 (char *) "self",(char *) "n",(char *) "strText", NULL
19338 };
19339
19340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19342 if (!SWIG_IsOK(res1)) {
19343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19344 }
19345 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19346 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19347 if (!SWIG_IsOK(ecode2)) {
19348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19349 }
19350 arg2 = static_cast< size_t >(val2);
19351 {
19352 arg3 = wxString_in_helper(obj2);
19353 if (arg3 == NULL) SWIG_fail;
19354 temp3 = true;
19355 }
19356 {
19357 PyThreadState* __tstate = wxPyBeginAllowThreads();
19358 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19359 wxPyEndAllowThreads(__tstate);
19360 if (PyErr_Occurred()) SWIG_fail;
19361 }
19362 {
19363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19364 }
19365 {
19366 if (temp3)
19367 delete arg3;
19368 }
19369 return resultobj;
19370 fail:
19371 {
19372 if (temp3)
19373 delete arg3;
19374 }
19375 return NULL;
19376 }
19377
19378
19379 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19380 PyObject *resultobj = 0;
19381 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19382 size_t arg2 ;
19383 wxString result;
19384 void *argp1 = 0 ;
19385 int res1 = 0 ;
19386 size_t val2 ;
19387 int ecode2 = 0 ;
19388 PyObject * obj0 = 0 ;
19389 PyObject * obj1 = 0 ;
19390 char * kwnames[] = {
19391 (char *) "self",(char *) "n", NULL
19392 };
19393
19394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19396 if (!SWIG_IsOK(res1)) {
19397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19398 }
19399 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19400 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19401 if (!SWIG_IsOK(ecode2)) {
19402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19403 }
19404 arg2 = static_cast< size_t >(val2);
19405 {
19406 PyThreadState* __tstate = wxPyBeginAllowThreads();
19407 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19408 wxPyEndAllowThreads(__tstate);
19409 if (PyErr_Occurred()) SWIG_fail;
19410 }
19411 {
19412 #if wxUSE_UNICODE
19413 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19414 #else
19415 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19416 #endif
19417 }
19418 return resultobj;
19419 fail:
19420 return NULL;
19421 }
19422
19423
19424 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19425 PyObject *resultobj = 0;
19426 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19427 wxImageList *arg2 = (wxImageList *) 0 ;
19428 void *argp1 = 0 ;
19429 int res1 = 0 ;
19430 void *argp2 = 0 ;
19431 int res2 = 0 ;
19432 PyObject * obj0 = 0 ;
19433 PyObject * obj1 = 0 ;
19434 char * kwnames[] = {
19435 (char *) "self",(char *) "imageList", NULL
19436 };
19437
19438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19440 if (!SWIG_IsOK(res1)) {
19441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19442 }
19443 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19444 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19445 if (!SWIG_IsOK(res2)) {
19446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19447 }
19448 arg2 = reinterpret_cast< wxImageList * >(argp2);
19449 {
19450 PyThreadState* __tstate = wxPyBeginAllowThreads();
19451 (arg1)->SetImageList(arg2);
19452 wxPyEndAllowThreads(__tstate);
19453 if (PyErr_Occurred()) SWIG_fail;
19454 }
19455 resultobj = SWIG_Py_Void();
19456 return resultobj;
19457 fail:
19458 return NULL;
19459 }
19460
19461
19462 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19463 PyObject *resultobj = 0;
19464 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19465 wxImageList *arg2 = (wxImageList *) 0 ;
19466 void *argp1 = 0 ;
19467 int res1 = 0 ;
19468 int res2 = 0 ;
19469 PyObject * obj0 = 0 ;
19470 PyObject * obj1 = 0 ;
19471 char * kwnames[] = {
19472 (char *) "self",(char *) "imageList", NULL
19473 };
19474
19475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19477 if (!SWIG_IsOK(res1)) {
19478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19479 }
19480 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19481 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19482 if (!SWIG_IsOK(res2)) {
19483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19484 }
19485 {
19486 PyThreadState* __tstate = wxPyBeginAllowThreads();
19487 (arg1)->AssignImageList(arg2);
19488 wxPyEndAllowThreads(__tstate);
19489 if (PyErr_Occurred()) SWIG_fail;
19490 }
19491 resultobj = SWIG_Py_Void();
19492 return resultobj;
19493 fail:
19494 return NULL;
19495 }
19496
19497
19498 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19499 PyObject *resultobj = 0;
19500 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19501 wxImageList *result = 0 ;
19502 void *argp1 = 0 ;
19503 int res1 = 0 ;
19504 PyObject *swig_obj[1] ;
19505
19506 if (!args) SWIG_fail;
19507 swig_obj[0] = args;
19508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19509 if (!SWIG_IsOK(res1)) {
19510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19511 }
19512 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19513 {
19514 PyThreadState* __tstate = wxPyBeginAllowThreads();
19515 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19516 wxPyEndAllowThreads(__tstate);
19517 if (PyErr_Occurred()) SWIG_fail;
19518 }
19519 {
19520 resultobj = wxPyMake_wxObject(result, (bool)0);
19521 }
19522 return resultobj;
19523 fail:
19524 return NULL;
19525 }
19526
19527
19528 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19529 PyObject *resultobj = 0;
19530 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19531 size_t arg2 ;
19532 int result;
19533 void *argp1 = 0 ;
19534 int res1 = 0 ;
19535 size_t val2 ;
19536 int ecode2 = 0 ;
19537 PyObject * obj0 = 0 ;
19538 PyObject * obj1 = 0 ;
19539 char * kwnames[] = {
19540 (char *) "self",(char *) "n", NULL
19541 };
19542
19543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19545 if (!SWIG_IsOK(res1)) {
19546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19547 }
19548 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19549 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19550 if (!SWIG_IsOK(ecode2)) {
19551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19552 }
19553 arg2 = static_cast< size_t >(val2);
19554 {
19555 PyThreadState* __tstate = wxPyBeginAllowThreads();
19556 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19557 wxPyEndAllowThreads(__tstate);
19558 if (PyErr_Occurred()) SWIG_fail;
19559 }
19560 resultobj = SWIG_From_int(static_cast< int >(result));
19561 return resultobj;
19562 fail:
19563 return NULL;
19564 }
19565
19566
19567 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19568 PyObject *resultobj = 0;
19569 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19570 size_t arg2 ;
19571 int arg3 ;
19572 bool result;
19573 void *argp1 = 0 ;
19574 int res1 = 0 ;
19575 size_t val2 ;
19576 int ecode2 = 0 ;
19577 int val3 ;
19578 int ecode3 = 0 ;
19579 PyObject * obj0 = 0 ;
19580 PyObject * obj1 = 0 ;
19581 PyObject * obj2 = 0 ;
19582 char * kwnames[] = {
19583 (char *) "self",(char *) "n",(char *) "imageId", NULL
19584 };
19585
19586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19588 if (!SWIG_IsOK(res1)) {
19589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19590 }
19591 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19592 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19593 if (!SWIG_IsOK(ecode2)) {
19594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19595 }
19596 arg2 = static_cast< size_t >(val2);
19597 ecode3 = SWIG_AsVal_int(obj2, &val3);
19598 if (!SWIG_IsOK(ecode3)) {
19599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19600 }
19601 arg3 = static_cast< int >(val3);
19602 {
19603 PyThreadState* __tstate = wxPyBeginAllowThreads();
19604 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19605 wxPyEndAllowThreads(__tstate);
19606 if (PyErr_Occurred()) SWIG_fail;
19607 }
19608 {
19609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19610 }
19611 return resultobj;
19612 fail:
19613 return NULL;
19614 }
19615
19616
19617 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19618 PyObject *resultobj = 0;
19619 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19620 wxSize *arg2 = 0 ;
19621 void *argp1 = 0 ;
19622 int res1 = 0 ;
19623 wxSize temp2 ;
19624 PyObject * obj0 = 0 ;
19625 PyObject * obj1 = 0 ;
19626 char * kwnames[] = {
19627 (char *) "self",(char *) "size", NULL
19628 };
19629
19630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19632 if (!SWIG_IsOK(res1)) {
19633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19634 }
19635 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19636 {
19637 arg2 = &temp2;
19638 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19639 }
19640 {
19641 PyThreadState* __tstate = wxPyBeginAllowThreads();
19642 (arg1)->SetPageSize((wxSize const &)*arg2);
19643 wxPyEndAllowThreads(__tstate);
19644 if (PyErr_Occurred()) SWIG_fail;
19645 }
19646 resultobj = SWIG_Py_Void();
19647 return resultobj;
19648 fail:
19649 return NULL;
19650 }
19651
19652
19653 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19654 PyObject *resultobj = 0;
19655 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19656 wxSize *arg2 = 0 ;
19657 wxSize result;
19658 void *argp1 = 0 ;
19659 int res1 = 0 ;
19660 wxSize temp2 ;
19661 PyObject * obj0 = 0 ;
19662 PyObject * obj1 = 0 ;
19663 char * kwnames[] = {
19664 (char *) "self",(char *) "sizePage", NULL
19665 };
19666
19667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19669 if (!SWIG_IsOK(res1)) {
19670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19671 }
19672 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19673 {
19674 arg2 = &temp2;
19675 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19676 }
19677 {
19678 PyThreadState* __tstate = wxPyBeginAllowThreads();
19679 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19680 wxPyEndAllowThreads(__tstate);
19681 if (PyErr_Occurred()) SWIG_fail;
19682 }
19683 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19684 return resultobj;
19685 fail:
19686 return NULL;
19687 }
19688
19689
19690 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19691 PyObject *resultobj = 0;
19692 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19693 unsigned int result;
19694 void *argp1 = 0 ;
19695 int res1 = 0 ;
19696 PyObject *swig_obj[1] ;
19697
19698 if (!args) SWIG_fail;
19699 swig_obj[0] = args;
19700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19701 if (!SWIG_IsOK(res1)) {
19702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19703 }
19704 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19705 {
19706 PyThreadState* __tstate = wxPyBeginAllowThreads();
19707 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19708 wxPyEndAllowThreads(__tstate);
19709 if (PyErr_Occurred()) SWIG_fail;
19710 }
19711 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19712 return resultobj;
19713 fail:
19714 return NULL;
19715 }
19716
19717
19718 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19719 PyObject *resultobj = 0;
19720 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19721 unsigned int arg2 ;
19722 void *argp1 = 0 ;
19723 int res1 = 0 ;
19724 unsigned int val2 ;
19725 int ecode2 = 0 ;
19726 PyObject * obj0 = 0 ;
19727 PyObject * obj1 = 0 ;
19728 char * kwnames[] = {
19729 (char *) "self",(char *) "internalBorder", NULL
19730 };
19731
19732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19734 if (!SWIG_IsOK(res1)) {
19735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19736 }
19737 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19738 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19739 if (!SWIG_IsOK(ecode2)) {
19740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19741 }
19742 arg2 = static_cast< unsigned int >(val2);
19743 {
19744 PyThreadState* __tstate = wxPyBeginAllowThreads();
19745 (arg1)->SetInternalBorder(arg2);
19746 wxPyEndAllowThreads(__tstate);
19747 if (PyErr_Occurred()) SWIG_fail;
19748 }
19749 resultobj = SWIG_Py_Void();
19750 return resultobj;
19751 fail:
19752 return NULL;
19753 }
19754
19755
19756 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19757 PyObject *resultobj = 0;
19758 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19759 bool result;
19760 void *argp1 = 0 ;
19761 int res1 = 0 ;
19762 PyObject *swig_obj[1] ;
19763
19764 if (!args) SWIG_fail;
19765 swig_obj[0] = args;
19766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19767 if (!SWIG_IsOK(res1)) {
19768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19769 }
19770 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19771 {
19772 PyThreadState* __tstate = wxPyBeginAllowThreads();
19773 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19774 wxPyEndAllowThreads(__tstate);
19775 if (PyErr_Occurred()) SWIG_fail;
19776 }
19777 {
19778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19779 }
19780 return resultobj;
19781 fail:
19782 return NULL;
19783 }
19784
19785
19786 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19787 PyObject *resultobj = 0;
19788 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19789 int arg2 ;
19790 void *argp1 = 0 ;
19791 int res1 = 0 ;
19792 int val2 ;
19793 int ecode2 = 0 ;
19794 PyObject * obj0 = 0 ;
19795 PyObject * obj1 = 0 ;
19796 char * kwnames[] = {
19797 (char *) "self",(char *) "margin", NULL
19798 };
19799
19800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19802 if (!SWIG_IsOK(res1)) {
19803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19804 }
19805 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19806 ecode2 = SWIG_AsVal_int(obj1, &val2);
19807 if (!SWIG_IsOK(ecode2)) {
19808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19809 }
19810 arg2 = static_cast< int >(val2);
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 (arg1)->SetControlMargin(arg2);
19814 wxPyEndAllowThreads(__tstate);
19815 if (PyErr_Occurred()) SWIG_fail;
19816 }
19817 resultobj = SWIG_Py_Void();
19818 return resultobj;
19819 fail:
19820 return NULL;
19821 }
19822
19823
19824 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19825 PyObject *resultobj = 0;
19826 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19827 int result;
19828 void *argp1 = 0 ;
19829 int res1 = 0 ;
19830 PyObject *swig_obj[1] ;
19831
19832 if (!args) SWIG_fail;
19833 swig_obj[0] = args;
19834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19835 if (!SWIG_IsOK(res1)) {
19836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19837 }
19838 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19839 {
19840 PyThreadState* __tstate = wxPyBeginAllowThreads();
19841 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19842 wxPyEndAllowThreads(__tstate);
19843 if (PyErr_Occurred()) SWIG_fail;
19844 }
19845 resultobj = SWIG_From_int(static_cast< int >(result));
19846 return resultobj;
19847 fail:
19848 return NULL;
19849 }
19850
19851
19852 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19853 PyObject *resultobj = 0;
19854 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19855 bool arg2 ;
19856 void *argp1 = 0 ;
19857 int res1 = 0 ;
19858 bool val2 ;
19859 int ecode2 = 0 ;
19860 PyObject * obj0 = 0 ;
19861 PyObject * obj1 = 0 ;
19862 char * kwnames[] = {
19863 (char *) "self",(char *) "fit", NULL
19864 };
19865
19866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19868 if (!SWIG_IsOK(res1)) {
19869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19870 }
19871 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19872 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19873 if (!SWIG_IsOK(ecode2)) {
19874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19875 }
19876 arg2 = static_cast< bool >(val2);
19877 {
19878 PyThreadState* __tstate = wxPyBeginAllowThreads();
19879 (arg1)->SetFitToCurrentPage(arg2);
19880 wxPyEndAllowThreads(__tstate);
19881 if (PyErr_Occurred()) SWIG_fail;
19882 }
19883 resultobj = SWIG_Py_Void();
19884 return resultobj;
19885 fail:
19886 return NULL;
19887 }
19888
19889
19890 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19891 PyObject *resultobj = 0;
19892 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19893 bool result;
19894 void *argp1 = 0 ;
19895 int res1 = 0 ;
19896 PyObject *swig_obj[1] ;
19897
19898 if (!args) SWIG_fail;
19899 swig_obj[0] = args;
19900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19901 if (!SWIG_IsOK(res1)) {
19902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19903 }
19904 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19905 {
19906 PyThreadState* __tstate = wxPyBeginAllowThreads();
19907 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19908 wxPyEndAllowThreads(__tstate);
19909 if (PyErr_Occurred()) SWIG_fail;
19910 }
19911 {
19912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19913 }
19914 return resultobj;
19915 fail:
19916 return NULL;
19917 }
19918
19919
19920 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19921 PyObject *resultobj = 0;
19922 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19923 wxSizer *result = 0 ;
19924 void *argp1 = 0 ;
19925 int res1 = 0 ;
19926 PyObject *swig_obj[1] ;
19927
19928 if (!args) SWIG_fail;
19929 swig_obj[0] = args;
19930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19931 if (!SWIG_IsOK(res1)) {
19932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19933 }
19934 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19935 {
19936 PyThreadState* __tstate = wxPyBeginAllowThreads();
19937 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19938 wxPyEndAllowThreads(__tstate);
19939 if (PyErr_Occurred()) SWIG_fail;
19940 }
19941 {
19942 resultobj = wxPyMake_wxObject(result, (bool)0);
19943 }
19944 return resultobj;
19945 fail:
19946 return NULL;
19947 }
19948
19949
19950 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19951 PyObject *resultobj = 0;
19952 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19953 size_t arg2 ;
19954 bool result;
19955 void *argp1 = 0 ;
19956 int res1 = 0 ;
19957 size_t val2 ;
19958 int ecode2 = 0 ;
19959 PyObject * obj0 = 0 ;
19960 PyObject * obj1 = 0 ;
19961 char * kwnames[] = {
19962 (char *) "self",(char *) "n", NULL
19963 };
19964
19965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19967 if (!SWIG_IsOK(res1)) {
19968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19969 }
19970 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19971 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19972 if (!SWIG_IsOK(ecode2)) {
19973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19974 }
19975 arg2 = static_cast< size_t >(val2);
19976 {
19977 PyThreadState* __tstate = wxPyBeginAllowThreads();
19978 result = (bool)(arg1)->DeletePage(arg2);
19979 wxPyEndAllowThreads(__tstate);
19980 if (PyErr_Occurred()) SWIG_fail;
19981 }
19982 {
19983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19984 }
19985 return resultobj;
19986 fail:
19987 return NULL;
19988 }
19989
19990
19991 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19992 PyObject *resultobj = 0;
19993 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19994 size_t arg2 ;
19995 bool result;
19996 void *argp1 = 0 ;
19997 int res1 = 0 ;
19998 size_t val2 ;
19999 int ecode2 = 0 ;
20000 PyObject * obj0 = 0 ;
20001 PyObject * obj1 = 0 ;
20002 char * kwnames[] = {
20003 (char *) "self",(char *) "n", NULL
20004 };
20005
20006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20008 if (!SWIG_IsOK(res1)) {
20009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20010 }
20011 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20012 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20013 if (!SWIG_IsOK(ecode2)) {
20014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20015 }
20016 arg2 = static_cast< size_t >(val2);
20017 {
20018 PyThreadState* __tstate = wxPyBeginAllowThreads();
20019 result = (bool)(arg1)->RemovePage(arg2);
20020 wxPyEndAllowThreads(__tstate);
20021 if (PyErr_Occurred()) SWIG_fail;
20022 }
20023 {
20024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20025 }
20026 return resultobj;
20027 fail:
20028 return NULL;
20029 }
20030
20031
20032 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20033 PyObject *resultobj = 0;
20034 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20035 bool result;
20036 void *argp1 = 0 ;
20037 int res1 = 0 ;
20038 PyObject *swig_obj[1] ;
20039
20040 if (!args) SWIG_fail;
20041 swig_obj[0] = args;
20042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20043 if (!SWIG_IsOK(res1)) {
20044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20045 }
20046 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20047 {
20048 PyThreadState* __tstate = wxPyBeginAllowThreads();
20049 result = (bool)(arg1)->DeleteAllPages();
20050 wxPyEndAllowThreads(__tstate);
20051 if (PyErr_Occurred()) SWIG_fail;
20052 }
20053 {
20054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20055 }
20056 return resultobj;
20057 fail:
20058 return NULL;
20059 }
20060
20061
20062 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20063 PyObject *resultobj = 0;
20064 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20065 wxWindow *arg2 = (wxWindow *) 0 ;
20066 wxString *arg3 = 0 ;
20067 bool arg4 = (bool) false ;
20068 int arg5 = (int) -1 ;
20069 bool result;
20070 void *argp1 = 0 ;
20071 int res1 = 0 ;
20072 void *argp2 = 0 ;
20073 int res2 = 0 ;
20074 bool temp3 = false ;
20075 bool val4 ;
20076 int ecode4 = 0 ;
20077 int val5 ;
20078 int ecode5 = 0 ;
20079 PyObject * obj0 = 0 ;
20080 PyObject * obj1 = 0 ;
20081 PyObject * obj2 = 0 ;
20082 PyObject * obj3 = 0 ;
20083 PyObject * obj4 = 0 ;
20084 char * kwnames[] = {
20085 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20086 };
20087
20088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20090 if (!SWIG_IsOK(res1)) {
20091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20092 }
20093 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20094 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20095 if (!SWIG_IsOK(res2)) {
20096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20097 }
20098 arg2 = reinterpret_cast< wxWindow * >(argp2);
20099 {
20100 arg3 = wxString_in_helper(obj2);
20101 if (arg3 == NULL) SWIG_fail;
20102 temp3 = true;
20103 }
20104 if (obj3) {
20105 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20106 if (!SWIG_IsOK(ecode4)) {
20107 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20108 }
20109 arg4 = static_cast< bool >(val4);
20110 }
20111 if (obj4) {
20112 ecode5 = SWIG_AsVal_int(obj4, &val5);
20113 if (!SWIG_IsOK(ecode5)) {
20114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20115 }
20116 arg5 = static_cast< int >(val5);
20117 }
20118 {
20119 PyThreadState* __tstate = wxPyBeginAllowThreads();
20120 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20121 wxPyEndAllowThreads(__tstate);
20122 if (PyErr_Occurred()) SWIG_fail;
20123 }
20124 {
20125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20126 }
20127 {
20128 if (temp3)
20129 delete arg3;
20130 }
20131 return resultobj;
20132 fail:
20133 {
20134 if (temp3)
20135 delete arg3;
20136 }
20137 return NULL;
20138 }
20139
20140
20141 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20142 PyObject *resultobj = 0;
20143 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20144 size_t arg2 ;
20145 wxWindow *arg3 = (wxWindow *) 0 ;
20146 wxString *arg4 = 0 ;
20147 bool arg5 = (bool) false ;
20148 int arg6 = (int) -1 ;
20149 bool result;
20150 void *argp1 = 0 ;
20151 int res1 = 0 ;
20152 size_t val2 ;
20153 int ecode2 = 0 ;
20154 void *argp3 = 0 ;
20155 int res3 = 0 ;
20156 bool temp4 = false ;
20157 bool val5 ;
20158 int ecode5 = 0 ;
20159 int val6 ;
20160 int ecode6 = 0 ;
20161 PyObject * obj0 = 0 ;
20162 PyObject * obj1 = 0 ;
20163 PyObject * obj2 = 0 ;
20164 PyObject * obj3 = 0 ;
20165 PyObject * obj4 = 0 ;
20166 PyObject * obj5 = 0 ;
20167 char * kwnames[] = {
20168 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20169 };
20170
20171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_InsertPage" "', 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_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20180 }
20181 arg2 = static_cast< size_t >(val2);
20182 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20183 if (!SWIG_IsOK(res3)) {
20184 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20185 }
20186 arg3 = reinterpret_cast< wxWindow * >(argp3);
20187 {
20188 arg4 = wxString_in_helper(obj3);
20189 if (arg4 == NULL) SWIG_fail;
20190 temp4 = true;
20191 }
20192 if (obj4) {
20193 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20194 if (!SWIG_IsOK(ecode5)) {
20195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20196 }
20197 arg5 = static_cast< bool >(val5);
20198 }
20199 if (obj5) {
20200 ecode6 = SWIG_AsVal_int(obj5, &val6);
20201 if (!SWIG_IsOK(ecode6)) {
20202 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20203 }
20204 arg6 = static_cast< int >(val6);
20205 }
20206 {
20207 PyThreadState* __tstate = wxPyBeginAllowThreads();
20208 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20209 wxPyEndAllowThreads(__tstate);
20210 if (PyErr_Occurred()) SWIG_fail;
20211 }
20212 {
20213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20214 }
20215 {
20216 if (temp4)
20217 delete arg4;
20218 }
20219 return resultobj;
20220 fail:
20221 {
20222 if (temp4)
20223 delete arg4;
20224 }
20225 return NULL;
20226 }
20227
20228
20229 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20230 PyObject *resultobj = 0;
20231 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20232 size_t arg2 ;
20233 int result;
20234 void *argp1 = 0 ;
20235 int res1 = 0 ;
20236 size_t val2 ;
20237 int ecode2 = 0 ;
20238 PyObject * obj0 = 0 ;
20239 PyObject * obj1 = 0 ;
20240 char * kwnames[] = {
20241 (char *) "self",(char *) "n", NULL
20242 };
20243
20244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20246 if (!SWIG_IsOK(res1)) {
20247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20248 }
20249 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20250 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20251 if (!SWIG_IsOK(ecode2)) {
20252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20253 }
20254 arg2 = static_cast< size_t >(val2);
20255 {
20256 PyThreadState* __tstate = wxPyBeginAllowThreads();
20257 result = (int)(arg1)->SetSelection(arg2);
20258 wxPyEndAllowThreads(__tstate);
20259 if (PyErr_Occurred()) SWIG_fail;
20260 }
20261 resultobj = SWIG_From_int(static_cast< int >(result));
20262 return resultobj;
20263 fail:
20264 return NULL;
20265 }
20266
20267
20268 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20269 PyObject *resultobj = 0;
20270 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20271 size_t arg2 ;
20272 int result;
20273 void *argp1 = 0 ;
20274 int res1 = 0 ;
20275 size_t val2 ;
20276 int ecode2 = 0 ;
20277 PyObject * obj0 = 0 ;
20278 PyObject * obj1 = 0 ;
20279 char * kwnames[] = {
20280 (char *) "self",(char *) "n", NULL
20281 };
20282
20283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20285 if (!SWIG_IsOK(res1)) {
20286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20287 }
20288 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20289 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20290 if (!SWIG_IsOK(ecode2)) {
20291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20292 }
20293 arg2 = static_cast< size_t >(val2);
20294 {
20295 PyThreadState* __tstate = wxPyBeginAllowThreads();
20296 result = (int)(arg1)->ChangeSelection(arg2);
20297 wxPyEndAllowThreads(__tstate);
20298 if (PyErr_Occurred()) SWIG_fail;
20299 }
20300 resultobj = SWIG_From_int(static_cast< int >(result));
20301 return resultobj;
20302 fail:
20303 return NULL;
20304 }
20305
20306
20307 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20308 PyObject *resultobj = 0;
20309 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20310 bool arg2 = (bool) true ;
20311 void *argp1 = 0 ;
20312 int res1 = 0 ;
20313 bool val2 ;
20314 int ecode2 = 0 ;
20315 PyObject * obj0 = 0 ;
20316 PyObject * obj1 = 0 ;
20317 char * kwnames[] = {
20318 (char *) "self",(char *) "forward", NULL
20319 };
20320
20321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20323 if (!SWIG_IsOK(res1)) {
20324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20325 }
20326 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20327 if (obj1) {
20328 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20329 if (!SWIG_IsOK(ecode2)) {
20330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20331 }
20332 arg2 = static_cast< bool >(val2);
20333 }
20334 {
20335 PyThreadState* __tstate = wxPyBeginAllowThreads();
20336 (arg1)->AdvanceSelection(arg2);
20337 wxPyEndAllowThreads(__tstate);
20338 if (PyErr_Occurred()) SWIG_fail;
20339 }
20340 resultobj = SWIG_Py_Void();
20341 return resultobj;
20342 fail:
20343 return NULL;
20344 }
20345
20346
20347 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20348 PyObject *resultobj = 0;
20349 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20350 wxPoint *arg2 = 0 ;
20351 long *arg3 = (long *) 0 ;
20352 int result;
20353 void *argp1 = 0 ;
20354 int res1 = 0 ;
20355 wxPoint temp2 ;
20356 long temp3 ;
20357 int res3 = SWIG_TMPOBJ ;
20358 PyObject * obj0 = 0 ;
20359 PyObject * obj1 = 0 ;
20360 char * kwnames[] = {
20361 (char *) "self",(char *) "pt", NULL
20362 };
20363
20364 arg3 = &temp3;
20365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20367 if (!SWIG_IsOK(res1)) {
20368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20369 }
20370 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20371 {
20372 arg2 = &temp2;
20373 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20374 }
20375 {
20376 PyThreadState* __tstate = wxPyBeginAllowThreads();
20377 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20378 wxPyEndAllowThreads(__tstate);
20379 if (PyErr_Occurred()) SWIG_fail;
20380 }
20381 resultobj = SWIG_From_int(static_cast< int >(result));
20382 if (SWIG_IsTmpObj(res3)) {
20383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20384 } else {
20385 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20386 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20387 }
20388 return resultobj;
20389 fail:
20390 return NULL;
20391 }
20392
20393
20394 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20395 PyObject *resultobj = 0;
20396 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20397 SwigValueWrapper<wxVisualAttributes > result;
20398 int val1 ;
20399 int ecode1 = 0 ;
20400 PyObject * obj0 = 0 ;
20401 char * kwnames[] = {
20402 (char *) "variant", NULL
20403 };
20404
20405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20406 if (obj0) {
20407 ecode1 = SWIG_AsVal_int(obj0, &val1);
20408 if (!SWIG_IsOK(ecode1)) {
20409 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20410 }
20411 arg1 = static_cast< wxWindowVariant >(val1);
20412 }
20413 {
20414 if (!wxPyCheckForApp()) SWIG_fail;
20415 PyThreadState* __tstate = wxPyBeginAllowThreads();
20416 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20417 wxPyEndAllowThreads(__tstate);
20418 if (PyErr_Occurred()) SWIG_fail;
20419 }
20420 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20421 return resultobj;
20422 fail:
20423 return NULL;
20424 }
20425
20426
20427 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20428 PyObject *obj;
20429 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20430 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20431 return SWIG_Py_Void();
20432 }
20433
20434 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20435 PyObject *resultobj = 0;
20436 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20437 int arg2 = (int) 0 ;
20438 int arg3 = (int) -1 ;
20439 int arg4 = (int) -1 ;
20440 wxBookCtrlBaseEvent *result = 0 ;
20441 int val1 ;
20442 int ecode1 = 0 ;
20443 int val2 ;
20444 int ecode2 = 0 ;
20445 int val3 ;
20446 int ecode3 = 0 ;
20447 int val4 ;
20448 int ecode4 = 0 ;
20449 PyObject * obj0 = 0 ;
20450 PyObject * obj1 = 0 ;
20451 PyObject * obj2 = 0 ;
20452 PyObject * obj3 = 0 ;
20453 char * kwnames[] = {
20454 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20455 };
20456
20457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20458 if (obj0) {
20459 ecode1 = SWIG_AsVal_int(obj0, &val1);
20460 if (!SWIG_IsOK(ecode1)) {
20461 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20462 }
20463 arg1 = static_cast< wxEventType >(val1);
20464 }
20465 if (obj1) {
20466 ecode2 = SWIG_AsVal_int(obj1, &val2);
20467 if (!SWIG_IsOK(ecode2)) {
20468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20469 }
20470 arg2 = static_cast< int >(val2);
20471 }
20472 if (obj2) {
20473 ecode3 = SWIG_AsVal_int(obj2, &val3);
20474 if (!SWIG_IsOK(ecode3)) {
20475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20476 }
20477 arg3 = static_cast< int >(val3);
20478 }
20479 if (obj3) {
20480 ecode4 = SWIG_AsVal_int(obj3, &val4);
20481 if (!SWIG_IsOK(ecode4)) {
20482 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20483 }
20484 arg4 = static_cast< int >(val4);
20485 }
20486 {
20487 PyThreadState* __tstate = wxPyBeginAllowThreads();
20488 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20489 wxPyEndAllowThreads(__tstate);
20490 if (PyErr_Occurred()) SWIG_fail;
20491 }
20492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20493 return resultobj;
20494 fail:
20495 return NULL;
20496 }
20497
20498
20499 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20500 PyObject *resultobj = 0;
20501 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20502 int result;
20503 void *argp1 = 0 ;
20504 int res1 = 0 ;
20505 PyObject *swig_obj[1] ;
20506
20507 if (!args) SWIG_fail;
20508 swig_obj[0] = args;
20509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20510 if (!SWIG_IsOK(res1)) {
20511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20512 }
20513 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20514 {
20515 PyThreadState* __tstate = wxPyBeginAllowThreads();
20516 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20517 wxPyEndAllowThreads(__tstate);
20518 if (PyErr_Occurred()) SWIG_fail;
20519 }
20520 resultobj = SWIG_From_int(static_cast< int >(result));
20521 return resultobj;
20522 fail:
20523 return NULL;
20524 }
20525
20526
20527 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20528 PyObject *resultobj = 0;
20529 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20530 int arg2 ;
20531 void *argp1 = 0 ;
20532 int res1 = 0 ;
20533 int val2 ;
20534 int ecode2 = 0 ;
20535 PyObject * obj0 = 0 ;
20536 PyObject * obj1 = 0 ;
20537 char * kwnames[] = {
20538 (char *) "self",(char *) "nSel", NULL
20539 };
20540
20541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20543 if (!SWIG_IsOK(res1)) {
20544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20545 }
20546 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20547 ecode2 = SWIG_AsVal_int(obj1, &val2);
20548 if (!SWIG_IsOK(ecode2)) {
20549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20550 }
20551 arg2 = static_cast< int >(val2);
20552 {
20553 PyThreadState* __tstate = wxPyBeginAllowThreads();
20554 (arg1)->SetSelection(arg2);
20555 wxPyEndAllowThreads(__tstate);
20556 if (PyErr_Occurred()) SWIG_fail;
20557 }
20558 resultobj = SWIG_Py_Void();
20559 return resultobj;
20560 fail:
20561 return NULL;
20562 }
20563
20564
20565 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20566 PyObject *resultobj = 0;
20567 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20568 int result;
20569 void *argp1 = 0 ;
20570 int res1 = 0 ;
20571 PyObject *swig_obj[1] ;
20572
20573 if (!args) SWIG_fail;
20574 swig_obj[0] = args;
20575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20576 if (!SWIG_IsOK(res1)) {
20577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20578 }
20579 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20580 {
20581 PyThreadState* __tstate = wxPyBeginAllowThreads();
20582 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20583 wxPyEndAllowThreads(__tstate);
20584 if (PyErr_Occurred()) SWIG_fail;
20585 }
20586 resultobj = SWIG_From_int(static_cast< int >(result));
20587 return resultobj;
20588 fail:
20589 return NULL;
20590 }
20591
20592
20593 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20594 PyObject *resultobj = 0;
20595 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20596 int arg2 ;
20597 void *argp1 = 0 ;
20598 int res1 = 0 ;
20599 int val2 ;
20600 int ecode2 = 0 ;
20601 PyObject * obj0 = 0 ;
20602 PyObject * obj1 = 0 ;
20603 char * kwnames[] = {
20604 (char *) "self",(char *) "nOldSel", NULL
20605 };
20606
20607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20609 if (!SWIG_IsOK(res1)) {
20610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20611 }
20612 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20613 ecode2 = SWIG_AsVal_int(obj1, &val2);
20614 if (!SWIG_IsOK(ecode2)) {
20615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20616 }
20617 arg2 = static_cast< int >(val2);
20618 {
20619 PyThreadState* __tstate = wxPyBeginAllowThreads();
20620 (arg1)->SetOldSelection(arg2);
20621 wxPyEndAllowThreads(__tstate);
20622 if (PyErr_Occurred()) SWIG_fail;
20623 }
20624 resultobj = SWIG_Py_Void();
20625 return resultobj;
20626 fail:
20627 return NULL;
20628 }
20629
20630
20631 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20632 PyObject *obj;
20633 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20634 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20635 return SWIG_Py_Void();
20636 }
20637
20638 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20639 return SWIG_Python_InitShadowInstance(args);
20640 }
20641
20642 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20643 PyObject *resultobj = 0;
20644 wxWindow *arg1 = (wxWindow *) 0 ;
20645 int arg2 = (int) -1 ;
20646 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20647 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20648 wxSize const &arg4_defvalue = wxDefaultSize ;
20649 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20650 long arg5 = (long) 0 ;
20651 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20652 wxString *arg6 = (wxString *) &arg6_defvalue ;
20653 wxNotebook *result = 0 ;
20654 void *argp1 = 0 ;
20655 int res1 = 0 ;
20656 int val2 ;
20657 int ecode2 = 0 ;
20658 wxPoint temp3 ;
20659 wxSize temp4 ;
20660 long val5 ;
20661 int ecode5 = 0 ;
20662 bool temp6 = false ;
20663 PyObject * obj0 = 0 ;
20664 PyObject * obj1 = 0 ;
20665 PyObject * obj2 = 0 ;
20666 PyObject * obj3 = 0 ;
20667 PyObject * obj4 = 0 ;
20668 PyObject * obj5 = 0 ;
20669 char * kwnames[] = {
20670 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20671 };
20672
20673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20675 if (!SWIG_IsOK(res1)) {
20676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20677 }
20678 arg1 = reinterpret_cast< wxWindow * >(argp1);
20679 if (obj1) {
20680 ecode2 = SWIG_AsVal_int(obj1, &val2);
20681 if (!SWIG_IsOK(ecode2)) {
20682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20683 }
20684 arg2 = static_cast< int >(val2);
20685 }
20686 if (obj2) {
20687 {
20688 arg3 = &temp3;
20689 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20690 }
20691 }
20692 if (obj3) {
20693 {
20694 arg4 = &temp4;
20695 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20696 }
20697 }
20698 if (obj4) {
20699 ecode5 = SWIG_AsVal_long(obj4, &val5);
20700 if (!SWIG_IsOK(ecode5)) {
20701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20702 }
20703 arg5 = static_cast< long >(val5);
20704 }
20705 if (obj5) {
20706 {
20707 arg6 = wxString_in_helper(obj5);
20708 if (arg6 == NULL) SWIG_fail;
20709 temp6 = true;
20710 }
20711 }
20712 {
20713 if (!wxPyCheckForApp()) SWIG_fail;
20714 PyThreadState* __tstate = wxPyBeginAllowThreads();
20715 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20716 wxPyEndAllowThreads(__tstate);
20717 if (PyErr_Occurred()) SWIG_fail;
20718 }
20719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20720 {
20721 if (temp6)
20722 delete arg6;
20723 }
20724 return resultobj;
20725 fail:
20726 {
20727 if (temp6)
20728 delete arg6;
20729 }
20730 return NULL;
20731 }
20732
20733
20734 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20735 PyObject *resultobj = 0;
20736 wxNotebook *result = 0 ;
20737
20738 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20739 {
20740 if (!wxPyCheckForApp()) SWIG_fail;
20741 PyThreadState* __tstate = wxPyBeginAllowThreads();
20742 result = (wxNotebook *)new wxNotebook();
20743 wxPyEndAllowThreads(__tstate);
20744 if (PyErr_Occurred()) SWIG_fail;
20745 }
20746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20747 return resultobj;
20748 fail:
20749 return NULL;
20750 }
20751
20752
20753 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20754 PyObject *resultobj = 0;
20755 wxNotebook *arg1 = (wxNotebook *) 0 ;
20756 wxWindow *arg2 = (wxWindow *) 0 ;
20757 int arg3 = (int) -1 ;
20758 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20759 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20760 wxSize const &arg5_defvalue = wxDefaultSize ;
20761 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20762 long arg6 = (long) 0 ;
20763 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20764 wxString *arg7 = (wxString *) &arg7_defvalue ;
20765 bool result;
20766 void *argp1 = 0 ;
20767 int res1 = 0 ;
20768 void *argp2 = 0 ;
20769 int res2 = 0 ;
20770 int val3 ;
20771 int ecode3 = 0 ;
20772 wxPoint temp4 ;
20773 wxSize temp5 ;
20774 long val6 ;
20775 int ecode6 = 0 ;
20776 bool temp7 = false ;
20777 PyObject * obj0 = 0 ;
20778 PyObject * obj1 = 0 ;
20779 PyObject * obj2 = 0 ;
20780 PyObject * obj3 = 0 ;
20781 PyObject * obj4 = 0 ;
20782 PyObject * obj5 = 0 ;
20783 PyObject * obj6 = 0 ;
20784 char * kwnames[] = {
20785 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20786 };
20787
20788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20790 if (!SWIG_IsOK(res1)) {
20791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20792 }
20793 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20794 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20795 if (!SWIG_IsOK(res2)) {
20796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20797 }
20798 arg2 = reinterpret_cast< wxWindow * >(argp2);
20799 if (obj2) {
20800 ecode3 = SWIG_AsVal_int(obj2, &val3);
20801 if (!SWIG_IsOK(ecode3)) {
20802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20803 }
20804 arg3 = static_cast< int >(val3);
20805 }
20806 if (obj3) {
20807 {
20808 arg4 = &temp4;
20809 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20810 }
20811 }
20812 if (obj4) {
20813 {
20814 arg5 = &temp5;
20815 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20816 }
20817 }
20818 if (obj5) {
20819 ecode6 = SWIG_AsVal_long(obj5, &val6);
20820 if (!SWIG_IsOK(ecode6)) {
20821 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20822 }
20823 arg6 = static_cast< long >(val6);
20824 }
20825 if (obj6) {
20826 {
20827 arg7 = wxString_in_helper(obj6);
20828 if (arg7 == NULL) SWIG_fail;
20829 temp7 = true;
20830 }
20831 }
20832 {
20833 PyThreadState* __tstate = wxPyBeginAllowThreads();
20834 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20835 wxPyEndAllowThreads(__tstate);
20836 if (PyErr_Occurred()) SWIG_fail;
20837 }
20838 {
20839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20840 }
20841 {
20842 if (temp7)
20843 delete arg7;
20844 }
20845 return resultobj;
20846 fail:
20847 {
20848 if (temp7)
20849 delete arg7;
20850 }
20851 return NULL;
20852 }
20853
20854
20855 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20856 PyObject *resultobj = 0;
20857 wxNotebook *arg1 = (wxNotebook *) 0 ;
20858 int result;
20859 void *argp1 = 0 ;
20860 int res1 = 0 ;
20861 PyObject *swig_obj[1] ;
20862
20863 if (!args) SWIG_fail;
20864 swig_obj[0] = args;
20865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20866 if (!SWIG_IsOK(res1)) {
20867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20868 }
20869 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20870 {
20871 PyThreadState* __tstate = wxPyBeginAllowThreads();
20872 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20873 wxPyEndAllowThreads(__tstate);
20874 if (PyErr_Occurred()) SWIG_fail;
20875 }
20876 resultobj = SWIG_From_int(static_cast< int >(result));
20877 return resultobj;
20878 fail:
20879 return NULL;
20880 }
20881
20882
20883 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20884 PyObject *resultobj = 0;
20885 wxNotebook *arg1 = (wxNotebook *) 0 ;
20886 wxSize *arg2 = 0 ;
20887 void *argp1 = 0 ;
20888 int res1 = 0 ;
20889 wxSize temp2 ;
20890 PyObject * obj0 = 0 ;
20891 PyObject * obj1 = 0 ;
20892 char * kwnames[] = {
20893 (char *) "self",(char *) "padding", NULL
20894 };
20895
20896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20898 if (!SWIG_IsOK(res1)) {
20899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20900 }
20901 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20902 {
20903 arg2 = &temp2;
20904 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20905 }
20906 {
20907 PyThreadState* __tstate = wxPyBeginAllowThreads();
20908 (arg1)->SetPadding((wxSize const &)*arg2);
20909 wxPyEndAllowThreads(__tstate);
20910 if (PyErr_Occurred()) SWIG_fail;
20911 }
20912 resultobj = SWIG_Py_Void();
20913 return resultobj;
20914 fail:
20915 return NULL;
20916 }
20917
20918
20919 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20920 PyObject *resultobj = 0;
20921 wxNotebook *arg1 = (wxNotebook *) 0 ;
20922 wxSize *arg2 = 0 ;
20923 void *argp1 = 0 ;
20924 int res1 = 0 ;
20925 wxSize temp2 ;
20926 PyObject * obj0 = 0 ;
20927 PyObject * obj1 = 0 ;
20928 char * kwnames[] = {
20929 (char *) "self",(char *) "sz", NULL
20930 };
20931
20932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20934 if (!SWIG_IsOK(res1)) {
20935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20936 }
20937 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20938 {
20939 arg2 = &temp2;
20940 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20941 }
20942 {
20943 PyThreadState* __tstate = wxPyBeginAllowThreads();
20944 (arg1)->SetTabSize((wxSize const &)*arg2);
20945 wxPyEndAllowThreads(__tstate);
20946 if (PyErr_Occurred()) SWIG_fail;
20947 }
20948 resultobj = SWIG_Py_Void();
20949 return resultobj;
20950 fail:
20951 return NULL;
20952 }
20953
20954
20955 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20956 PyObject *resultobj = 0;
20957 wxNotebook *arg1 = (wxNotebook *) 0 ;
20958 wxColour result;
20959 void *argp1 = 0 ;
20960 int res1 = 0 ;
20961 PyObject *swig_obj[1] ;
20962
20963 if (!args) SWIG_fail;
20964 swig_obj[0] = args;
20965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20966 if (!SWIG_IsOK(res1)) {
20967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20968 }
20969 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20970 {
20971 PyThreadState* __tstate = wxPyBeginAllowThreads();
20972 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20973 wxPyEndAllowThreads(__tstate);
20974 if (PyErr_Occurred()) SWIG_fail;
20975 }
20976 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20977 return resultobj;
20978 fail:
20979 return NULL;
20980 }
20981
20982
20983 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20984 PyObject *resultobj = 0;
20985 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20986 SwigValueWrapper<wxVisualAttributes > result;
20987 int val1 ;
20988 int ecode1 = 0 ;
20989 PyObject * obj0 = 0 ;
20990 char * kwnames[] = {
20991 (char *) "variant", NULL
20992 };
20993
20994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20995 if (obj0) {
20996 ecode1 = SWIG_AsVal_int(obj0, &val1);
20997 if (!SWIG_IsOK(ecode1)) {
20998 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20999 }
21000 arg1 = static_cast< wxWindowVariant >(val1);
21001 }
21002 {
21003 if (!wxPyCheckForApp()) SWIG_fail;
21004 PyThreadState* __tstate = wxPyBeginAllowThreads();
21005 result = wxNotebook::GetClassDefaultAttributes(arg1);
21006 wxPyEndAllowThreads(__tstate);
21007 if (PyErr_Occurred()) SWIG_fail;
21008 }
21009 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21010 return resultobj;
21011 fail:
21012 return NULL;
21013 }
21014
21015
21016 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21017 PyObject *resultobj = 0;
21018 wxNotebook *arg1 = (wxNotebook *) 0 ;
21019 int arg2 ;
21020 bool result;
21021 void *argp1 = 0 ;
21022 int res1 = 0 ;
21023 int val2 ;
21024 int ecode2 = 0 ;
21025 PyObject * obj0 = 0 ;
21026 PyObject * obj1 = 0 ;
21027 char * kwnames[] = {
21028 (char *) "self",(char *) "nPage", NULL
21029 };
21030
21031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21033 if (!SWIG_IsOK(res1)) {
21034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21035 }
21036 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21037 ecode2 = SWIG_AsVal_int(obj1, &val2);
21038 if (!SWIG_IsOK(ecode2)) {
21039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21040 }
21041 arg2 = static_cast< int >(val2);
21042 {
21043 PyThreadState* __tstate = wxPyBeginAllowThreads();
21044 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21045 wxPyEndAllowThreads(__tstate);
21046 if (PyErr_Occurred()) SWIG_fail;
21047 }
21048 {
21049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21050 }
21051 return resultobj;
21052 fail:
21053 return NULL;
21054 }
21055
21056
21057 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21058 PyObject *resultobj = 0;
21059 wxNotebook *arg1 = (wxNotebook *) 0 ;
21060 int arg2 ;
21061 int arg3 = (int) -1 ;
21062 void *argp1 = 0 ;
21063 int res1 = 0 ;
21064 int val2 ;
21065 int ecode2 = 0 ;
21066 int val3 ;
21067 int ecode3 = 0 ;
21068 PyObject * obj0 = 0 ;
21069 PyObject * obj1 = 0 ;
21070 PyObject * obj2 = 0 ;
21071 char * kwnames[] = {
21072 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21073 };
21074
21075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21077 if (!SWIG_IsOK(res1)) {
21078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21079 }
21080 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21081 ecode2 = SWIG_AsVal_int(obj1, &val2);
21082 if (!SWIG_IsOK(ecode2)) {
21083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21084 }
21085 arg2 = static_cast< int >(val2);
21086 if (obj2) {
21087 ecode3 = SWIG_AsVal_int(obj2, &val3);
21088 if (!SWIG_IsOK(ecode3)) {
21089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21090 }
21091 arg3 = static_cast< int >(val3);
21092 }
21093 {
21094 PyThreadState* __tstate = wxPyBeginAllowThreads();
21095 (arg1)->SendPageChangedEvent(arg2,arg3);
21096 wxPyEndAllowThreads(__tstate);
21097 if (PyErr_Occurred()) SWIG_fail;
21098 }
21099 resultobj = SWIG_Py_Void();
21100 return resultobj;
21101 fail:
21102 return NULL;
21103 }
21104
21105
21106 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21107 PyObject *obj;
21108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21109 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21110 return SWIG_Py_Void();
21111 }
21112
21113 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21114 return SWIG_Python_InitShadowInstance(args);
21115 }
21116
21117 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21118 PyObject *resultobj = 0;
21119 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21120 int arg2 = (int) 0 ;
21121 int arg3 = (int) -1 ;
21122 int arg4 = (int) -1 ;
21123 wxNotebookEvent *result = 0 ;
21124 int val1 ;
21125 int ecode1 = 0 ;
21126 int val2 ;
21127 int ecode2 = 0 ;
21128 int val3 ;
21129 int ecode3 = 0 ;
21130 int val4 ;
21131 int ecode4 = 0 ;
21132 PyObject * obj0 = 0 ;
21133 PyObject * obj1 = 0 ;
21134 PyObject * obj2 = 0 ;
21135 PyObject * obj3 = 0 ;
21136 char * kwnames[] = {
21137 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21138 };
21139
21140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21141 if (obj0) {
21142 ecode1 = SWIG_AsVal_int(obj0, &val1);
21143 if (!SWIG_IsOK(ecode1)) {
21144 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21145 }
21146 arg1 = static_cast< wxEventType >(val1);
21147 }
21148 if (obj1) {
21149 ecode2 = SWIG_AsVal_int(obj1, &val2);
21150 if (!SWIG_IsOK(ecode2)) {
21151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21152 }
21153 arg2 = static_cast< int >(val2);
21154 }
21155 if (obj2) {
21156 ecode3 = SWIG_AsVal_int(obj2, &val3);
21157 if (!SWIG_IsOK(ecode3)) {
21158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21159 }
21160 arg3 = static_cast< int >(val3);
21161 }
21162 if (obj3) {
21163 ecode4 = SWIG_AsVal_int(obj3, &val4);
21164 if (!SWIG_IsOK(ecode4)) {
21165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21166 }
21167 arg4 = static_cast< int >(val4);
21168 }
21169 {
21170 PyThreadState* __tstate = wxPyBeginAllowThreads();
21171 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21172 wxPyEndAllowThreads(__tstate);
21173 if (PyErr_Occurred()) SWIG_fail;
21174 }
21175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21176 return resultobj;
21177 fail:
21178 return NULL;
21179 }
21180
21181
21182 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21183 PyObject *obj;
21184 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21185 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21186 return SWIG_Py_Void();
21187 }
21188
21189 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21190 return SWIG_Python_InitShadowInstance(args);
21191 }
21192
21193 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21194 PyObject *resultobj = 0;
21195 wxWindow *arg1 = (wxWindow *) 0 ;
21196 int arg2 = (int) -1 ;
21197 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21198 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21199 wxSize const &arg4_defvalue = wxDefaultSize ;
21200 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21201 long arg5 = (long) 0 ;
21202 wxString const &arg6_defvalue = wxPyEmptyString ;
21203 wxString *arg6 = (wxString *) &arg6_defvalue ;
21204 wxListbook *result = 0 ;
21205 void *argp1 = 0 ;
21206 int res1 = 0 ;
21207 int val2 ;
21208 int ecode2 = 0 ;
21209 wxPoint temp3 ;
21210 wxSize temp4 ;
21211 long val5 ;
21212 int ecode5 = 0 ;
21213 bool temp6 = false ;
21214 PyObject * obj0 = 0 ;
21215 PyObject * obj1 = 0 ;
21216 PyObject * obj2 = 0 ;
21217 PyObject * obj3 = 0 ;
21218 PyObject * obj4 = 0 ;
21219 PyObject * obj5 = 0 ;
21220 char * kwnames[] = {
21221 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21222 };
21223
21224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21226 if (!SWIG_IsOK(res1)) {
21227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21228 }
21229 arg1 = reinterpret_cast< wxWindow * >(argp1);
21230 if (obj1) {
21231 ecode2 = SWIG_AsVal_int(obj1, &val2);
21232 if (!SWIG_IsOK(ecode2)) {
21233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21234 }
21235 arg2 = static_cast< int >(val2);
21236 }
21237 if (obj2) {
21238 {
21239 arg3 = &temp3;
21240 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21241 }
21242 }
21243 if (obj3) {
21244 {
21245 arg4 = &temp4;
21246 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21247 }
21248 }
21249 if (obj4) {
21250 ecode5 = SWIG_AsVal_long(obj4, &val5);
21251 if (!SWIG_IsOK(ecode5)) {
21252 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21253 }
21254 arg5 = static_cast< long >(val5);
21255 }
21256 if (obj5) {
21257 {
21258 arg6 = wxString_in_helper(obj5);
21259 if (arg6 == NULL) SWIG_fail;
21260 temp6 = true;
21261 }
21262 }
21263 {
21264 if (!wxPyCheckForApp()) SWIG_fail;
21265 PyThreadState* __tstate = wxPyBeginAllowThreads();
21266 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21267 wxPyEndAllowThreads(__tstate);
21268 if (PyErr_Occurred()) SWIG_fail;
21269 }
21270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21271 {
21272 if (temp6)
21273 delete arg6;
21274 }
21275 return resultobj;
21276 fail:
21277 {
21278 if (temp6)
21279 delete arg6;
21280 }
21281 return NULL;
21282 }
21283
21284
21285 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21286 PyObject *resultobj = 0;
21287 wxListbook *result = 0 ;
21288
21289 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21290 {
21291 if (!wxPyCheckForApp()) SWIG_fail;
21292 PyThreadState* __tstate = wxPyBeginAllowThreads();
21293 result = (wxListbook *)new wxListbook();
21294 wxPyEndAllowThreads(__tstate);
21295 if (PyErr_Occurred()) SWIG_fail;
21296 }
21297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21298 return resultobj;
21299 fail:
21300 return NULL;
21301 }
21302
21303
21304 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21305 PyObject *resultobj = 0;
21306 wxListbook *arg1 = (wxListbook *) 0 ;
21307 wxWindow *arg2 = (wxWindow *) 0 ;
21308 int arg3 = (int) -1 ;
21309 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21310 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21311 wxSize const &arg5_defvalue = wxDefaultSize ;
21312 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21313 long arg6 = (long) 0 ;
21314 wxString const &arg7_defvalue = wxPyEmptyString ;
21315 wxString *arg7 = (wxString *) &arg7_defvalue ;
21316 bool result;
21317 void *argp1 = 0 ;
21318 int res1 = 0 ;
21319 void *argp2 = 0 ;
21320 int res2 = 0 ;
21321 int val3 ;
21322 int ecode3 = 0 ;
21323 wxPoint temp4 ;
21324 wxSize temp5 ;
21325 long val6 ;
21326 int ecode6 = 0 ;
21327 bool temp7 = false ;
21328 PyObject * obj0 = 0 ;
21329 PyObject * obj1 = 0 ;
21330 PyObject * obj2 = 0 ;
21331 PyObject * obj3 = 0 ;
21332 PyObject * obj4 = 0 ;
21333 PyObject * obj5 = 0 ;
21334 PyObject * obj6 = 0 ;
21335 char * kwnames[] = {
21336 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21337 };
21338
21339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21341 if (!SWIG_IsOK(res1)) {
21342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21343 }
21344 arg1 = reinterpret_cast< wxListbook * >(argp1);
21345 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21346 if (!SWIG_IsOK(res2)) {
21347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21348 }
21349 arg2 = reinterpret_cast< wxWindow * >(argp2);
21350 if (obj2) {
21351 ecode3 = SWIG_AsVal_int(obj2, &val3);
21352 if (!SWIG_IsOK(ecode3)) {
21353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21354 }
21355 arg3 = static_cast< int >(val3);
21356 }
21357 if (obj3) {
21358 {
21359 arg4 = &temp4;
21360 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21361 }
21362 }
21363 if (obj4) {
21364 {
21365 arg5 = &temp5;
21366 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21367 }
21368 }
21369 if (obj5) {
21370 ecode6 = SWIG_AsVal_long(obj5, &val6);
21371 if (!SWIG_IsOK(ecode6)) {
21372 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21373 }
21374 arg6 = static_cast< long >(val6);
21375 }
21376 if (obj6) {
21377 {
21378 arg7 = wxString_in_helper(obj6);
21379 if (arg7 == NULL) SWIG_fail;
21380 temp7 = true;
21381 }
21382 }
21383 {
21384 PyThreadState* __tstate = wxPyBeginAllowThreads();
21385 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21386 wxPyEndAllowThreads(__tstate);
21387 if (PyErr_Occurred()) SWIG_fail;
21388 }
21389 {
21390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21391 }
21392 {
21393 if (temp7)
21394 delete arg7;
21395 }
21396 return resultobj;
21397 fail:
21398 {
21399 if (temp7)
21400 delete arg7;
21401 }
21402 return NULL;
21403 }
21404
21405
21406 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21407 PyObject *resultobj = 0;
21408 wxListbook *arg1 = (wxListbook *) 0 ;
21409 wxListView *result = 0 ;
21410 void *argp1 = 0 ;
21411 int res1 = 0 ;
21412 PyObject *swig_obj[1] ;
21413
21414 if (!args) SWIG_fail;
21415 swig_obj[0] = args;
21416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21417 if (!SWIG_IsOK(res1)) {
21418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21419 }
21420 arg1 = reinterpret_cast< wxListbook * >(argp1);
21421 {
21422 PyThreadState* __tstate = wxPyBeginAllowThreads();
21423 result = (wxListView *)(arg1)->GetListView();
21424 wxPyEndAllowThreads(__tstate);
21425 if (PyErr_Occurred()) SWIG_fail;
21426 }
21427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21428 return resultobj;
21429 fail:
21430 return NULL;
21431 }
21432
21433
21434 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21435 PyObject *obj;
21436 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21437 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21438 return SWIG_Py_Void();
21439 }
21440
21441 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21442 return SWIG_Python_InitShadowInstance(args);
21443 }
21444
21445 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21446 PyObject *resultobj = 0;
21447 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21448 int arg2 = (int) 0 ;
21449 int arg3 = (int) -1 ;
21450 int arg4 = (int) -1 ;
21451 wxListbookEvent *result = 0 ;
21452 int val1 ;
21453 int ecode1 = 0 ;
21454 int val2 ;
21455 int ecode2 = 0 ;
21456 int val3 ;
21457 int ecode3 = 0 ;
21458 int val4 ;
21459 int ecode4 = 0 ;
21460 PyObject * obj0 = 0 ;
21461 PyObject * obj1 = 0 ;
21462 PyObject * obj2 = 0 ;
21463 PyObject * obj3 = 0 ;
21464 char * kwnames[] = {
21465 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21466 };
21467
21468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21469 if (obj0) {
21470 ecode1 = SWIG_AsVal_int(obj0, &val1);
21471 if (!SWIG_IsOK(ecode1)) {
21472 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21473 }
21474 arg1 = static_cast< wxEventType >(val1);
21475 }
21476 if (obj1) {
21477 ecode2 = SWIG_AsVal_int(obj1, &val2);
21478 if (!SWIG_IsOK(ecode2)) {
21479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21480 }
21481 arg2 = static_cast< int >(val2);
21482 }
21483 if (obj2) {
21484 ecode3 = SWIG_AsVal_int(obj2, &val3);
21485 if (!SWIG_IsOK(ecode3)) {
21486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21487 }
21488 arg3 = static_cast< int >(val3);
21489 }
21490 if (obj3) {
21491 ecode4 = SWIG_AsVal_int(obj3, &val4);
21492 if (!SWIG_IsOK(ecode4)) {
21493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21494 }
21495 arg4 = static_cast< int >(val4);
21496 }
21497 {
21498 PyThreadState* __tstate = wxPyBeginAllowThreads();
21499 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21500 wxPyEndAllowThreads(__tstate);
21501 if (PyErr_Occurred()) SWIG_fail;
21502 }
21503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21504 return resultobj;
21505 fail:
21506 return NULL;
21507 }
21508
21509
21510 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21511 PyObject *obj;
21512 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21513 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21514 return SWIG_Py_Void();
21515 }
21516
21517 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21518 return SWIG_Python_InitShadowInstance(args);
21519 }
21520
21521 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21522 PyObject *resultobj = 0;
21523 wxWindow *arg1 = (wxWindow *) 0 ;
21524 int arg2 ;
21525 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21526 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21527 wxSize const &arg4_defvalue = wxDefaultSize ;
21528 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21529 long arg5 = (long) 0 ;
21530 wxString const &arg6_defvalue = wxPyEmptyString ;
21531 wxString *arg6 = (wxString *) &arg6_defvalue ;
21532 wxChoicebook *result = 0 ;
21533 void *argp1 = 0 ;
21534 int res1 = 0 ;
21535 int val2 ;
21536 int ecode2 = 0 ;
21537 wxPoint temp3 ;
21538 wxSize temp4 ;
21539 long val5 ;
21540 int ecode5 = 0 ;
21541 bool temp6 = false ;
21542 PyObject * obj0 = 0 ;
21543 PyObject * obj1 = 0 ;
21544 PyObject * obj2 = 0 ;
21545 PyObject * obj3 = 0 ;
21546 PyObject * obj4 = 0 ;
21547 PyObject * obj5 = 0 ;
21548 char * kwnames[] = {
21549 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21550 };
21551
21552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21554 if (!SWIG_IsOK(res1)) {
21555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21556 }
21557 arg1 = reinterpret_cast< wxWindow * >(argp1);
21558 ecode2 = SWIG_AsVal_int(obj1, &val2);
21559 if (!SWIG_IsOK(ecode2)) {
21560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21561 }
21562 arg2 = static_cast< int >(val2);
21563 if (obj2) {
21564 {
21565 arg3 = &temp3;
21566 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21567 }
21568 }
21569 if (obj3) {
21570 {
21571 arg4 = &temp4;
21572 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21573 }
21574 }
21575 if (obj4) {
21576 ecode5 = SWIG_AsVal_long(obj4, &val5);
21577 if (!SWIG_IsOK(ecode5)) {
21578 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21579 }
21580 arg5 = static_cast< long >(val5);
21581 }
21582 if (obj5) {
21583 {
21584 arg6 = wxString_in_helper(obj5);
21585 if (arg6 == NULL) SWIG_fail;
21586 temp6 = true;
21587 }
21588 }
21589 {
21590 if (!wxPyCheckForApp()) SWIG_fail;
21591 PyThreadState* __tstate = wxPyBeginAllowThreads();
21592 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21593 wxPyEndAllowThreads(__tstate);
21594 if (PyErr_Occurred()) SWIG_fail;
21595 }
21596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21597 {
21598 if (temp6)
21599 delete arg6;
21600 }
21601 return resultobj;
21602 fail:
21603 {
21604 if (temp6)
21605 delete arg6;
21606 }
21607 return NULL;
21608 }
21609
21610
21611 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21612 PyObject *resultobj = 0;
21613 wxChoicebook *result = 0 ;
21614
21615 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21616 {
21617 if (!wxPyCheckForApp()) SWIG_fail;
21618 PyThreadState* __tstate = wxPyBeginAllowThreads();
21619 result = (wxChoicebook *)new wxChoicebook();
21620 wxPyEndAllowThreads(__tstate);
21621 if (PyErr_Occurred()) SWIG_fail;
21622 }
21623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21624 return resultobj;
21625 fail:
21626 return NULL;
21627 }
21628
21629
21630 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21631 PyObject *resultobj = 0;
21632 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21633 wxWindow *arg2 = (wxWindow *) 0 ;
21634 int arg3 ;
21635 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21636 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21637 wxSize const &arg5_defvalue = wxDefaultSize ;
21638 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21639 long arg6 = (long) 0 ;
21640 wxString const &arg7_defvalue = wxPyEmptyString ;
21641 wxString *arg7 = (wxString *) &arg7_defvalue ;
21642 bool result;
21643 void *argp1 = 0 ;
21644 int res1 = 0 ;
21645 void *argp2 = 0 ;
21646 int res2 = 0 ;
21647 int val3 ;
21648 int ecode3 = 0 ;
21649 wxPoint temp4 ;
21650 wxSize temp5 ;
21651 long val6 ;
21652 int ecode6 = 0 ;
21653 bool temp7 = false ;
21654 PyObject * obj0 = 0 ;
21655 PyObject * obj1 = 0 ;
21656 PyObject * obj2 = 0 ;
21657 PyObject * obj3 = 0 ;
21658 PyObject * obj4 = 0 ;
21659 PyObject * obj5 = 0 ;
21660 PyObject * obj6 = 0 ;
21661 char * kwnames[] = {
21662 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21663 };
21664
21665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21667 if (!SWIG_IsOK(res1)) {
21668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21669 }
21670 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21671 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21672 if (!SWIG_IsOK(res2)) {
21673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21674 }
21675 arg2 = reinterpret_cast< wxWindow * >(argp2);
21676 ecode3 = SWIG_AsVal_int(obj2, &val3);
21677 if (!SWIG_IsOK(ecode3)) {
21678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21679 }
21680 arg3 = static_cast< int >(val3);
21681 if (obj3) {
21682 {
21683 arg4 = &temp4;
21684 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21685 }
21686 }
21687 if (obj4) {
21688 {
21689 arg5 = &temp5;
21690 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21691 }
21692 }
21693 if (obj5) {
21694 ecode6 = SWIG_AsVal_long(obj5, &val6);
21695 if (!SWIG_IsOK(ecode6)) {
21696 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21697 }
21698 arg6 = static_cast< long >(val6);
21699 }
21700 if (obj6) {
21701 {
21702 arg7 = wxString_in_helper(obj6);
21703 if (arg7 == NULL) SWIG_fail;
21704 temp7 = true;
21705 }
21706 }
21707 {
21708 PyThreadState* __tstate = wxPyBeginAllowThreads();
21709 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21710 wxPyEndAllowThreads(__tstate);
21711 if (PyErr_Occurred()) SWIG_fail;
21712 }
21713 {
21714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21715 }
21716 {
21717 if (temp7)
21718 delete arg7;
21719 }
21720 return resultobj;
21721 fail:
21722 {
21723 if (temp7)
21724 delete arg7;
21725 }
21726 return NULL;
21727 }
21728
21729
21730 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21731 PyObject *resultobj = 0;
21732 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21733 wxChoice *result = 0 ;
21734 void *argp1 = 0 ;
21735 int res1 = 0 ;
21736 PyObject *swig_obj[1] ;
21737
21738 if (!args) SWIG_fail;
21739 swig_obj[0] = args;
21740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21741 if (!SWIG_IsOK(res1)) {
21742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21743 }
21744 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21745 {
21746 PyThreadState* __tstate = wxPyBeginAllowThreads();
21747 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21748 wxPyEndAllowThreads(__tstate);
21749 if (PyErr_Occurred()) SWIG_fail;
21750 }
21751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21752 return resultobj;
21753 fail:
21754 return NULL;
21755 }
21756
21757
21758 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21759 PyObject *obj;
21760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21761 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21762 return SWIG_Py_Void();
21763 }
21764
21765 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21766 return SWIG_Python_InitShadowInstance(args);
21767 }
21768
21769 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21770 PyObject *resultobj = 0;
21771 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21772 int arg2 = (int) 0 ;
21773 int arg3 = (int) -1 ;
21774 int arg4 = (int) -1 ;
21775 wxChoicebookEvent *result = 0 ;
21776 int val1 ;
21777 int ecode1 = 0 ;
21778 int val2 ;
21779 int ecode2 = 0 ;
21780 int val3 ;
21781 int ecode3 = 0 ;
21782 int val4 ;
21783 int ecode4 = 0 ;
21784 PyObject * obj0 = 0 ;
21785 PyObject * obj1 = 0 ;
21786 PyObject * obj2 = 0 ;
21787 PyObject * obj3 = 0 ;
21788 char * kwnames[] = {
21789 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21790 };
21791
21792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21793 if (obj0) {
21794 ecode1 = SWIG_AsVal_int(obj0, &val1);
21795 if (!SWIG_IsOK(ecode1)) {
21796 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21797 }
21798 arg1 = static_cast< wxEventType >(val1);
21799 }
21800 if (obj1) {
21801 ecode2 = SWIG_AsVal_int(obj1, &val2);
21802 if (!SWIG_IsOK(ecode2)) {
21803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21804 }
21805 arg2 = static_cast< int >(val2);
21806 }
21807 if (obj2) {
21808 ecode3 = SWIG_AsVal_int(obj2, &val3);
21809 if (!SWIG_IsOK(ecode3)) {
21810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21811 }
21812 arg3 = static_cast< int >(val3);
21813 }
21814 if (obj3) {
21815 ecode4 = SWIG_AsVal_int(obj3, &val4);
21816 if (!SWIG_IsOK(ecode4)) {
21817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21818 }
21819 arg4 = static_cast< int >(val4);
21820 }
21821 {
21822 PyThreadState* __tstate = wxPyBeginAllowThreads();
21823 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21824 wxPyEndAllowThreads(__tstate);
21825 if (PyErr_Occurred()) SWIG_fail;
21826 }
21827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21828 return resultobj;
21829 fail:
21830 return NULL;
21831 }
21832
21833
21834 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21835 PyObject *obj;
21836 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21837 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21838 return SWIG_Py_Void();
21839 }
21840
21841 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21842 return SWIG_Python_InitShadowInstance(args);
21843 }
21844
21845 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21846 PyObject *resultobj = 0;
21847 wxWindow *arg1 = (wxWindow *) 0 ;
21848 int arg2 ;
21849 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21850 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21851 wxSize const &arg4_defvalue = wxDefaultSize ;
21852 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21853 long arg5 = (long) wxBK_DEFAULT ;
21854 wxString const &arg6_defvalue = wxPyEmptyString ;
21855 wxString *arg6 = (wxString *) &arg6_defvalue ;
21856 wxTreebook *result = 0 ;
21857 void *argp1 = 0 ;
21858 int res1 = 0 ;
21859 int val2 ;
21860 int ecode2 = 0 ;
21861 wxPoint temp3 ;
21862 wxSize temp4 ;
21863 long val5 ;
21864 int ecode5 = 0 ;
21865 bool temp6 = false ;
21866 PyObject * obj0 = 0 ;
21867 PyObject * obj1 = 0 ;
21868 PyObject * obj2 = 0 ;
21869 PyObject * obj3 = 0 ;
21870 PyObject * obj4 = 0 ;
21871 PyObject * obj5 = 0 ;
21872 char * kwnames[] = {
21873 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21874 };
21875
21876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21880 }
21881 arg1 = reinterpret_cast< wxWindow * >(argp1);
21882 ecode2 = SWIG_AsVal_int(obj1, &val2);
21883 if (!SWIG_IsOK(ecode2)) {
21884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21885 }
21886 arg2 = static_cast< int >(val2);
21887 if (obj2) {
21888 {
21889 arg3 = &temp3;
21890 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21891 }
21892 }
21893 if (obj3) {
21894 {
21895 arg4 = &temp4;
21896 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21897 }
21898 }
21899 if (obj4) {
21900 ecode5 = SWIG_AsVal_long(obj4, &val5);
21901 if (!SWIG_IsOK(ecode5)) {
21902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21903 }
21904 arg5 = static_cast< long >(val5);
21905 }
21906 if (obj5) {
21907 {
21908 arg6 = wxString_in_helper(obj5);
21909 if (arg6 == NULL) SWIG_fail;
21910 temp6 = true;
21911 }
21912 }
21913 {
21914 if (!wxPyCheckForApp()) SWIG_fail;
21915 PyThreadState* __tstate = wxPyBeginAllowThreads();
21916 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21917 wxPyEndAllowThreads(__tstate);
21918 if (PyErr_Occurred()) SWIG_fail;
21919 }
21920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21921 {
21922 if (temp6)
21923 delete arg6;
21924 }
21925 return resultobj;
21926 fail:
21927 {
21928 if (temp6)
21929 delete arg6;
21930 }
21931 return NULL;
21932 }
21933
21934
21935 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21936 PyObject *resultobj = 0;
21937 wxTreebook *result = 0 ;
21938
21939 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21940 {
21941 if (!wxPyCheckForApp()) SWIG_fail;
21942 PyThreadState* __tstate = wxPyBeginAllowThreads();
21943 result = (wxTreebook *)new wxTreebook();
21944 wxPyEndAllowThreads(__tstate);
21945 if (PyErr_Occurred()) SWIG_fail;
21946 }
21947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21948 return resultobj;
21949 fail:
21950 return NULL;
21951 }
21952
21953
21954 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21955 PyObject *resultobj = 0;
21956 wxTreebook *arg1 = (wxTreebook *) 0 ;
21957 wxWindow *arg2 = (wxWindow *) 0 ;
21958 int arg3 ;
21959 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21960 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21961 wxSize const &arg5_defvalue = wxDefaultSize ;
21962 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21963 long arg6 = (long) wxBK_DEFAULT ;
21964 wxString const &arg7_defvalue = wxPyEmptyString ;
21965 wxString *arg7 = (wxString *) &arg7_defvalue ;
21966 bool result;
21967 void *argp1 = 0 ;
21968 int res1 = 0 ;
21969 void *argp2 = 0 ;
21970 int res2 = 0 ;
21971 int val3 ;
21972 int ecode3 = 0 ;
21973 wxPoint temp4 ;
21974 wxSize temp5 ;
21975 long val6 ;
21976 int ecode6 = 0 ;
21977 bool temp7 = false ;
21978 PyObject * obj0 = 0 ;
21979 PyObject * obj1 = 0 ;
21980 PyObject * obj2 = 0 ;
21981 PyObject * obj3 = 0 ;
21982 PyObject * obj4 = 0 ;
21983 PyObject * obj5 = 0 ;
21984 PyObject * obj6 = 0 ;
21985 char * kwnames[] = {
21986 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21987 };
21988
21989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21991 if (!SWIG_IsOK(res1)) {
21992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21993 }
21994 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21995 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21996 if (!SWIG_IsOK(res2)) {
21997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21998 }
21999 arg2 = reinterpret_cast< wxWindow * >(argp2);
22000 ecode3 = SWIG_AsVal_int(obj2, &val3);
22001 if (!SWIG_IsOK(ecode3)) {
22002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22003 }
22004 arg3 = static_cast< int >(val3);
22005 if (obj3) {
22006 {
22007 arg4 = &temp4;
22008 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22009 }
22010 }
22011 if (obj4) {
22012 {
22013 arg5 = &temp5;
22014 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22015 }
22016 }
22017 if (obj5) {
22018 ecode6 = SWIG_AsVal_long(obj5, &val6);
22019 if (!SWIG_IsOK(ecode6)) {
22020 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22021 }
22022 arg6 = static_cast< long >(val6);
22023 }
22024 if (obj6) {
22025 {
22026 arg7 = wxString_in_helper(obj6);
22027 if (arg7 == NULL) SWIG_fail;
22028 temp7 = true;
22029 }
22030 }
22031 {
22032 PyThreadState* __tstate = wxPyBeginAllowThreads();
22033 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22034 wxPyEndAllowThreads(__tstate);
22035 if (PyErr_Occurred()) SWIG_fail;
22036 }
22037 {
22038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22039 }
22040 {
22041 if (temp7)
22042 delete arg7;
22043 }
22044 return resultobj;
22045 fail:
22046 {
22047 if (temp7)
22048 delete arg7;
22049 }
22050 return NULL;
22051 }
22052
22053
22054 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22055 PyObject *resultobj = 0;
22056 wxTreebook *arg1 = (wxTreebook *) 0 ;
22057 size_t arg2 ;
22058 wxWindow *arg3 = (wxWindow *) 0 ;
22059 wxString *arg4 = 0 ;
22060 bool arg5 = (bool) false ;
22061 int arg6 = (int) wxNOT_FOUND ;
22062 bool result;
22063 void *argp1 = 0 ;
22064 int res1 = 0 ;
22065 size_t val2 ;
22066 int ecode2 = 0 ;
22067 void *argp3 = 0 ;
22068 int res3 = 0 ;
22069 bool temp4 = false ;
22070 bool val5 ;
22071 int ecode5 = 0 ;
22072 int val6 ;
22073 int ecode6 = 0 ;
22074 PyObject * obj0 = 0 ;
22075 PyObject * obj1 = 0 ;
22076 PyObject * obj2 = 0 ;
22077 PyObject * obj3 = 0 ;
22078 PyObject * obj4 = 0 ;
22079 PyObject * obj5 = 0 ;
22080 char * kwnames[] = {
22081 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22082 };
22083
22084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22086 if (!SWIG_IsOK(res1)) {
22087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22088 }
22089 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22090 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22091 if (!SWIG_IsOK(ecode2)) {
22092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22093 }
22094 arg2 = static_cast< size_t >(val2);
22095 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22096 if (!SWIG_IsOK(res3)) {
22097 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22098 }
22099 arg3 = reinterpret_cast< wxWindow * >(argp3);
22100 {
22101 arg4 = wxString_in_helper(obj3);
22102 if (arg4 == NULL) SWIG_fail;
22103 temp4 = true;
22104 }
22105 if (obj4) {
22106 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22107 if (!SWIG_IsOK(ecode5)) {
22108 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22109 }
22110 arg5 = static_cast< bool >(val5);
22111 }
22112 if (obj5) {
22113 ecode6 = SWIG_AsVal_int(obj5, &val6);
22114 if (!SWIG_IsOK(ecode6)) {
22115 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22116 }
22117 arg6 = static_cast< int >(val6);
22118 }
22119 {
22120 PyThreadState* __tstate = wxPyBeginAllowThreads();
22121 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22122 wxPyEndAllowThreads(__tstate);
22123 if (PyErr_Occurred()) SWIG_fail;
22124 }
22125 {
22126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22127 }
22128 {
22129 if (temp4)
22130 delete arg4;
22131 }
22132 return resultobj;
22133 fail:
22134 {
22135 if (temp4)
22136 delete arg4;
22137 }
22138 return NULL;
22139 }
22140
22141
22142 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22143 PyObject *resultobj = 0;
22144 wxTreebook *arg1 = (wxTreebook *) 0 ;
22145 wxWindow *arg2 = (wxWindow *) 0 ;
22146 wxString *arg3 = 0 ;
22147 bool arg4 = (bool) false ;
22148 int arg5 = (int) wxNOT_FOUND ;
22149 bool result;
22150 void *argp1 = 0 ;
22151 int res1 = 0 ;
22152 void *argp2 = 0 ;
22153 int res2 = 0 ;
22154 bool temp3 = false ;
22155 bool val4 ;
22156 int ecode4 = 0 ;
22157 int val5 ;
22158 int ecode5 = 0 ;
22159 PyObject * obj0 = 0 ;
22160 PyObject * obj1 = 0 ;
22161 PyObject * obj2 = 0 ;
22162 PyObject * obj3 = 0 ;
22163 PyObject * obj4 = 0 ;
22164 char * kwnames[] = {
22165 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22166 };
22167
22168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22170 if (!SWIG_IsOK(res1)) {
22171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22172 }
22173 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22174 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22175 if (!SWIG_IsOK(res2)) {
22176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22177 }
22178 arg2 = reinterpret_cast< wxWindow * >(argp2);
22179 {
22180 arg3 = wxString_in_helper(obj2);
22181 if (arg3 == NULL) SWIG_fail;
22182 temp3 = true;
22183 }
22184 if (obj3) {
22185 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22186 if (!SWIG_IsOK(ecode4)) {
22187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22188 }
22189 arg4 = static_cast< bool >(val4);
22190 }
22191 if (obj4) {
22192 ecode5 = SWIG_AsVal_int(obj4, &val5);
22193 if (!SWIG_IsOK(ecode5)) {
22194 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22195 }
22196 arg5 = static_cast< int >(val5);
22197 }
22198 {
22199 PyThreadState* __tstate = wxPyBeginAllowThreads();
22200 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22201 wxPyEndAllowThreads(__tstate);
22202 if (PyErr_Occurred()) SWIG_fail;
22203 }
22204 {
22205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22206 }
22207 {
22208 if (temp3)
22209 delete arg3;
22210 }
22211 return resultobj;
22212 fail:
22213 {
22214 if (temp3)
22215 delete arg3;
22216 }
22217 return NULL;
22218 }
22219
22220
22221 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22222 PyObject *resultobj = 0;
22223 wxTreebook *arg1 = (wxTreebook *) 0 ;
22224 size_t arg2 ;
22225 bool result;
22226 void *argp1 = 0 ;
22227 int res1 = 0 ;
22228 size_t val2 ;
22229 int ecode2 = 0 ;
22230 PyObject * obj0 = 0 ;
22231 PyObject * obj1 = 0 ;
22232 char * kwnames[] = {
22233 (char *) "self",(char *) "pos", NULL
22234 };
22235
22236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22238 if (!SWIG_IsOK(res1)) {
22239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22240 }
22241 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22242 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22243 if (!SWIG_IsOK(ecode2)) {
22244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22245 }
22246 arg2 = static_cast< size_t >(val2);
22247 {
22248 PyThreadState* __tstate = wxPyBeginAllowThreads();
22249 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22250 wxPyEndAllowThreads(__tstate);
22251 if (PyErr_Occurred()) SWIG_fail;
22252 }
22253 {
22254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22255 }
22256 return resultobj;
22257 fail:
22258 return NULL;
22259 }
22260
22261
22262 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22263 PyObject *resultobj = 0;
22264 wxTreebook *arg1 = (wxTreebook *) 0 ;
22265 size_t arg2 ;
22266 bool arg3 = (bool) true ;
22267 bool result;
22268 void *argp1 = 0 ;
22269 int res1 = 0 ;
22270 size_t val2 ;
22271 int ecode2 = 0 ;
22272 bool val3 ;
22273 int ecode3 = 0 ;
22274 PyObject * obj0 = 0 ;
22275 PyObject * obj1 = 0 ;
22276 PyObject * obj2 = 0 ;
22277 char * kwnames[] = {
22278 (char *) "self",(char *) "pos",(char *) "expand", NULL
22279 };
22280
22281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22283 if (!SWIG_IsOK(res1)) {
22284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22285 }
22286 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22287 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22288 if (!SWIG_IsOK(ecode2)) {
22289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22290 }
22291 arg2 = static_cast< size_t >(val2);
22292 if (obj2) {
22293 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22294 if (!SWIG_IsOK(ecode3)) {
22295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22296 }
22297 arg3 = static_cast< bool >(val3);
22298 }
22299 {
22300 PyThreadState* __tstate = wxPyBeginAllowThreads();
22301 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22302 wxPyEndAllowThreads(__tstate);
22303 if (PyErr_Occurred()) SWIG_fail;
22304 }
22305 {
22306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22307 }
22308 return resultobj;
22309 fail:
22310 return NULL;
22311 }
22312
22313
22314 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22315 PyObject *resultobj = 0;
22316 wxTreebook *arg1 = (wxTreebook *) 0 ;
22317 size_t arg2 ;
22318 bool result;
22319 void *argp1 = 0 ;
22320 int res1 = 0 ;
22321 size_t val2 ;
22322 int ecode2 = 0 ;
22323 PyObject * obj0 = 0 ;
22324 PyObject * obj1 = 0 ;
22325 char * kwnames[] = {
22326 (char *) "self",(char *) "pos", NULL
22327 };
22328
22329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22331 if (!SWIG_IsOK(res1)) {
22332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22333 }
22334 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22335 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22336 if (!SWIG_IsOK(ecode2)) {
22337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22338 }
22339 arg2 = static_cast< size_t >(val2);
22340 {
22341 PyThreadState* __tstate = wxPyBeginAllowThreads();
22342 result = (bool)(arg1)->CollapseNode(arg2);
22343 wxPyEndAllowThreads(__tstate);
22344 if (PyErr_Occurred()) SWIG_fail;
22345 }
22346 {
22347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22348 }
22349 return resultobj;
22350 fail:
22351 return NULL;
22352 }
22353
22354
22355 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22356 PyObject *resultobj = 0;
22357 wxTreebook *arg1 = (wxTreebook *) 0 ;
22358 size_t arg2 ;
22359 int result;
22360 void *argp1 = 0 ;
22361 int res1 = 0 ;
22362 size_t val2 ;
22363 int ecode2 = 0 ;
22364 PyObject * obj0 = 0 ;
22365 PyObject * obj1 = 0 ;
22366 char * kwnames[] = {
22367 (char *) "self",(char *) "pos", NULL
22368 };
22369
22370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22372 if (!SWIG_IsOK(res1)) {
22373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22374 }
22375 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22376 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22377 if (!SWIG_IsOK(ecode2)) {
22378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22379 }
22380 arg2 = static_cast< size_t >(val2);
22381 {
22382 PyThreadState* __tstate = wxPyBeginAllowThreads();
22383 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22384 wxPyEndAllowThreads(__tstate);
22385 if (PyErr_Occurred()) SWIG_fail;
22386 }
22387 resultobj = SWIG_From_int(static_cast< int >(result));
22388 return resultobj;
22389 fail:
22390 return NULL;
22391 }
22392
22393
22394 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22395 PyObject *resultobj = 0;
22396 wxTreebook *arg1 = (wxTreebook *) 0 ;
22397 wxPyTreeCtrl *result = 0 ;
22398 void *argp1 = 0 ;
22399 int res1 = 0 ;
22400 PyObject *swig_obj[1] ;
22401
22402 if (!args) SWIG_fail;
22403 swig_obj[0] = args;
22404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22405 if (!SWIG_IsOK(res1)) {
22406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22407 }
22408 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
22411 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22412 wxPyEndAllowThreads(__tstate);
22413 if (PyErr_Occurred()) SWIG_fail;
22414 }
22415 {
22416 resultobj = wxPyMake_wxObject(result, (bool)0);
22417 }
22418 return resultobj;
22419 fail:
22420 return NULL;
22421 }
22422
22423
22424 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22425 PyObject *obj;
22426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22427 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22428 return SWIG_Py_Void();
22429 }
22430
22431 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22432 return SWIG_Python_InitShadowInstance(args);
22433 }
22434
22435 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22436 PyObject *resultobj = 0;
22437 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22438 int arg2 = (int) 0 ;
22439 int arg3 = (int) wxNOT_FOUND ;
22440 int arg4 = (int) wxNOT_FOUND ;
22441 wxTreebookEvent *result = 0 ;
22442 int val1 ;
22443 int ecode1 = 0 ;
22444 int val2 ;
22445 int ecode2 = 0 ;
22446 int val3 ;
22447 int ecode3 = 0 ;
22448 int val4 ;
22449 int ecode4 = 0 ;
22450 PyObject * obj0 = 0 ;
22451 PyObject * obj1 = 0 ;
22452 PyObject * obj2 = 0 ;
22453 PyObject * obj3 = 0 ;
22454 char * kwnames[] = {
22455 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22456 };
22457
22458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22459 if (obj0) {
22460 ecode1 = SWIG_AsVal_int(obj0, &val1);
22461 if (!SWIG_IsOK(ecode1)) {
22462 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22463 }
22464 arg1 = static_cast< wxEventType >(val1);
22465 }
22466 if (obj1) {
22467 ecode2 = SWIG_AsVal_int(obj1, &val2);
22468 if (!SWIG_IsOK(ecode2)) {
22469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22470 }
22471 arg2 = static_cast< int >(val2);
22472 }
22473 if (obj2) {
22474 ecode3 = SWIG_AsVal_int(obj2, &val3);
22475 if (!SWIG_IsOK(ecode3)) {
22476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22477 }
22478 arg3 = static_cast< int >(val3);
22479 }
22480 if (obj3) {
22481 ecode4 = SWIG_AsVal_int(obj3, &val4);
22482 if (!SWIG_IsOK(ecode4)) {
22483 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22484 }
22485 arg4 = static_cast< int >(val4);
22486 }
22487 {
22488 PyThreadState* __tstate = wxPyBeginAllowThreads();
22489 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22490 wxPyEndAllowThreads(__tstate);
22491 if (PyErr_Occurred()) SWIG_fail;
22492 }
22493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22494 return resultobj;
22495 fail:
22496 return NULL;
22497 }
22498
22499
22500 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22501 PyObject *obj;
22502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22503 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22504 return SWIG_Py_Void();
22505 }
22506
22507 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22508 return SWIG_Python_InitShadowInstance(args);
22509 }
22510
22511 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22512 PyObject *resultobj = 0;
22513 wxWindow *arg1 = (wxWindow *) 0 ;
22514 int arg2 ;
22515 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22516 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22517 wxSize const &arg4_defvalue = wxDefaultSize ;
22518 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22519 long arg5 = (long) wxBK_DEFAULT ;
22520 wxString const &arg6_defvalue = wxPyEmptyString ;
22521 wxString *arg6 = (wxString *) &arg6_defvalue ;
22522 wxToolbook *result = 0 ;
22523 void *argp1 = 0 ;
22524 int res1 = 0 ;
22525 int val2 ;
22526 int ecode2 = 0 ;
22527 wxPoint temp3 ;
22528 wxSize temp4 ;
22529 long val5 ;
22530 int ecode5 = 0 ;
22531 bool temp6 = false ;
22532 PyObject * obj0 = 0 ;
22533 PyObject * obj1 = 0 ;
22534 PyObject * obj2 = 0 ;
22535 PyObject * obj3 = 0 ;
22536 PyObject * obj4 = 0 ;
22537 PyObject * obj5 = 0 ;
22538 char * kwnames[] = {
22539 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22540 };
22541
22542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22544 if (!SWIG_IsOK(res1)) {
22545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22546 }
22547 arg1 = reinterpret_cast< wxWindow * >(argp1);
22548 ecode2 = SWIG_AsVal_int(obj1, &val2);
22549 if (!SWIG_IsOK(ecode2)) {
22550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22551 }
22552 arg2 = static_cast< int >(val2);
22553 if (obj2) {
22554 {
22555 arg3 = &temp3;
22556 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22557 }
22558 }
22559 if (obj3) {
22560 {
22561 arg4 = &temp4;
22562 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22563 }
22564 }
22565 if (obj4) {
22566 ecode5 = SWIG_AsVal_long(obj4, &val5);
22567 if (!SWIG_IsOK(ecode5)) {
22568 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22569 }
22570 arg5 = static_cast< long >(val5);
22571 }
22572 if (obj5) {
22573 {
22574 arg6 = wxString_in_helper(obj5);
22575 if (arg6 == NULL) SWIG_fail;
22576 temp6 = true;
22577 }
22578 }
22579 {
22580 PyThreadState* __tstate = wxPyBeginAllowThreads();
22581 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22582 wxPyEndAllowThreads(__tstate);
22583 if (PyErr_Occurred()) SWIG_fail;
22584 }
22585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22586 {
22587 if (temp6)
22588 delete arg6;
22589 }
22590 return resultobj;
22591 fail:
22592 {
22593 if (temp6)
22594 delete arg6;
22595 }
22596 return NULL;
22597 }
22598
22599
22600 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22601 PyObject *resultobj = 0;
22602 wxToolbook *result = 0 ;
22603
22604 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22605 {
22606 PyThreadState* __tstate = wxPyBeginAllowThreads();
22607 result = (wxToolbook *)new wxToolbook();
22608 wxPyEndAllowThreads(__tstate);
22609 if (PyErr_Occurred()) SWIG_fail;
22610 }
22611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22612 return resultobj;
22613 fail:
22614 return NULL;
22615 }
22616
22617
22618 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22619 PyObject *resultobj = 0;
22620 wxToolbook *arg1 = (wxToolbook *) 0 ;
22621 wxWindow *arg2 = (wxWindow *) 0 ;
22622 int arg3 ;
22623 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22624 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22625 wxSize const &arg5_defvalue = wxDefaultSize ;
22626 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22627 long arg6 = (long) 0 ;
22628 wxString const &arg7_defvalue = wxEmptyString ;
22629 wxString *arg7 = (wxString *) &arg7_defvalue ;
22630 bool result;
22631 void *argp1 = 0 ;
22632 int res1 = 0 ;
22633 void *argp2 = 0 ;
22634 int res2 = 0 ;
22635 int val3 ;
22636 int ecode3 = 0 ;
22637 wxPoint temp4 ;
22638 wxSize temp5 ;
22639 long val6 ;
22640 int ecode6 = 0 ;
22641 bool temp7 = false ;
22642 PyObject * obj0 = 0 ;
22643 PyObject * obj1 = 0 ;
22644 PyObject * obj2 = 0 ;
22645 PyObject * obj3 = 0 ;
22646 PyObject * obj4 = 0 ;
22647 PyObject * obj5 = 0 ;
22648 PyObject * obj6 = 0 ;
22649 char * kwnames[] = {
22650 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22651 };
22652
22653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22655 if (!SWIG_IsOK(res1)) {
22656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22657 }
22658 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22659 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22660 if (!SWIG_IsOK(res2)) {
22661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22662 }
22663 arg2 = reinterpret_cast< wxWindow * >(argp2);
22664 ecode3 = SWIG_AsVal_int(obj2, &val3);
22665 if (!SWIG_IsOK(ecode3)) {
22666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22667 }
22668 arg3 = static_cast< int >(val3);
22669 if (obj3) {
22670 {
22671 arg4 = &temp4;
22672 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22673 }
22674 }
22675 if (obj4) {
22676 {
22677 arg5 = &temp5;
22678 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22679 }
22680 }
22681 if (obj5) {
22682 ecode6 = SWIG_AsVal_long(obj5, &val6);
22683 if (!SWIG_IsOK(ecode6)) {
22684 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22685 }
22686 arg6 = static_cast< long >(val6);
22687 }
22688 if (obj6) {
22689 {
22690 arg7 = wxString_in_helper(obj6);
22691 if (arg7 == NULL) SWIG_fail;
22692 temp7 = true;
22693 }
22694 }
22695 {
22696 PyThreadState* __tstate = wxPyBeginAllowThreads();
22697 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22698 wxPyEndAllowThreads(__tstate);
22699 if (PyErr_Occurred()) SWIG_fail;
22700 }
22701 {
22702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22703 }
22704 {
22705 if (temp7)
22706 delete arg7;
22707 }
22708 return resultobj;
22709 fail:
22710 {
22711 if (temp7)
22712 delete arg7;
22713 }
22714 return NULL;
22715 }
22716
22717
22718 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22719 PyObject *resultobj = 0;
22720 wxToolbook *arg1 = (wxToolbook *) 0 ;
22721 wxToolBarBase *result = 0 ;
22722 void *argp1 = 0 ;
22723 int res1 = 0 ;
22724 PyObject *swig_obj[1] ;
22725
22726 if (!args) SWIG_fail;
22727 swig_obj[0] = args;
22728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22729 if (!SWIG_IsOK(res1)) {
22730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22731 }
22732 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22733 {
22734 PyThreadState* __tstate = wxPyBeginAllowThreads();
22735 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22736 wxPyEndAllowThreads(__tstate);
22737 if (PyErr_Occurred()) SWIG_fail;
22738 }
22739 {
22740 resultobj = wxPyMake_wxObject(result, (bool)0);
22741 }
22742 return resultobj;
22743 fail:
22744 return NULL;
22745 }
22746
22747
22748 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22749 PyObject *resultobj = 0;
22750 wxToolbook *arg1 = (wxToolbook *) 0 ;
22751 void *argp1 = 0 ;
22752 int res1 = 0 ;
22753 PyObject *swig_obj[1] ;
22754
22755 if (!args) SWIG_fail;
22756 swig_obj[0] = args;
22757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22758 if (!SWIG_IsOK(res1)) {
22759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22760 }
22761 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22762 {
22763 PyThreadState* __tstate = wxPyBeginAllowThreads();
22764 (arg1)->Realize();
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 resultobj = SWIG_Py_Void();
22769 return resultobj;
22770 fail:
22771 return NULL;
22772 }
22773
22774
22775 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22776 PyObject *obj;
22777 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22778 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22779 return SWIG_Py_Void();
22780 }
22781
22782 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22783 return SWIG_Python_InitShadowInstance(args);
22784 }
22785
22786 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22787 PyObject *resultobj = 0;
22788 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22789 int arg2 = (int) 0 ;
22790 int arg3 = (int) wxNOT_FOUND ;
22791 int arg4 = (int) wxNOT_FOUND ;
22792 wxToolbookEvent *result = 0 ;
22793 int val1 ;
22794 int ecode1 = 0 ;
22795 int val2 ;
22796 int ecode2 = 0 ;
22797 int val3 ;
22798 int ecode3 = 0 ;
22799 int val4 ;
22800 int ecode4 = 0 ;
22801 PyObject * obj0 = 0 ;
22802 PyObject * obj1 = 0 ;
22803 PyObject * obj2 = 0 ;
22804 PyObject * obj3 = 0 ;
22805 char * kwnames[] = {
22806 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22807 };
22808
22809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22810 if (obj0) {
22811 ecode1 = SWIG_AsVal_int(obj0, &val1);
22812 if (!SWIG_IsOK(ecode1)) {
22813 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22814 }
22815 arg1 = static_cast< wxEventType >(val1);
22816 }
22817 if (obj1) {
22818 ecode2 = SWIG_AsVal_int(obj1, &val2);
22819 if (!SWIG_IsOK(ecode2)) {
22820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22821 }
22822 arg2 = static_cast< int >(val2);
22823 }
22824 if (obj2) {
22825 ecode3 = SWIG_AsVal_int(obj2, &val3);
22826 if (!SWIG_IsOK(ecode3)) {
22827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22828 }
22829 arg3 = static_cast< int >(val3);
22830 }
22831 if (obj3) {
22832 ecode4 = SWIG_AsVal_int(obj3, &val4);
22833 if (!SWIG_IsOK(ecode4)) {
22834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22835 }
22836 arg4 = static_cast< int >(val4);
22837 }
22838 {
22839 PyThreadState* __tstate = wxPyBeginAllowThreads();
22840 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22841 wxPyEndAllowThreads(__tstate);
22842 if (PyErr_Occurred()) SWIG_fail;
22843 }
22844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22845 return resultobj;
22846 fail:
22847 return NULL;
22848 }
22849
22850
22851 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22852 PyObject *obj;
22853 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22854 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22855 return SWIG_Py_Void();
22856 }
22857
22858 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22859 return SWIG_Python_InitShadowInstance(args);
22860 }
22861
22862 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22863 PyObject *resultobj = 0;
22864 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22865 int result;
22866 void *argp1 = 0 ;
22867 int res1 = 0 ;
22868 PyObject *swig_obj[1] ;
22869
22870 if (!args) SWIG_fail;
22871 swig_obj[0] = args;
22872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22873 if (!SWIG_IsOK(res1)) {
22874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22875 }
22876 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22877 {
22878 PyThreadState* __tstate = wxPyBeginAllowThreads();
22879 result = (int)(arg1)->GetId();
22880 wxPyEndAllowThreads(__tstate);
22881 if (PyErr_Occurred()) SWIG_fail;
22882 }
22883 resultobj = SWIG_From_int(static_cast< int >(result));
22884 return resultobj;
22885 fail:
22886 return NULL;
22887 }
22888
22889
22890 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22891 PyObject *resultobj = 0;
22892 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22893 wxControl *result = 0 ;
22894 void *argp1 = 0 ;
22895 int res1 = 0 ;
22896 PyObject *swig_obj[1] ;
22897
22898 if (!args) SWIG_fail;
22899 swig_obj[0] = args;
22900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22901 if (!SWIG_IsOK(res1)) {
22902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22903 }
22904 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22905 {
22906 PyThreadState* __tstate = wxPyBeginAllowThreads();
22907 result = (wxControl *)(arg1)->GetControl();
22908 wxPyEndAllowThreads(__tstate);
22909 if (PyErr_Occurred()) SWIG_fail;
22910 }
22911 {
22912 resultobj = wxPyMake_wxObject(result, 0);
22913 }
22914 return resultobj;
22915 fail:
22916 return NULL;
22917 }
22918
22919
22920 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22921 PyObject *resultobj = 0;
22922 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22923 wxToolBarBase *result = 0 ;
22924 void *argp1 = 0 ;
22925 int res1 = 0 ;
22926 PyObject *swig_obj[1] ;
22927
22928 if (!args) SWIG_fail;
22929 swig_obj[0] = args;
22930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22931 if (!SWIG_IsOK(res1)) {
22932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22933 }
22934 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22935 {
22936 PyThreadState* __tstate = wxPyBeginAllowThreads();
22937 result = (wxToolBarBase *)(arg1)->GetToolBar();
22938 wxPyEndAllowThreads(__tstate);
22939 if (PyErr_Occurred()) SWIG_fail;
22940 }
22941 {
22942 resultobj = wxPyMake_wxObject(result, (bool)0);
22943 }
22944 return resultobj;
22945 fail:
22946 return NULL;
22947 }
22948
22949
22950 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22951 PyObject *resultobj = 0;
22952 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22953 int result;
22954 void *argp1 = 0 ;
22955 int res1 = 0 ;
22956 PyObject *swig_obj[1] ;
22957
22958 if (!args) SWIG_fail;
22959 swig_obj[0] = args;
22960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22961 if (!SWIG_IsOK(res1)) {
22962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22963 }
22964 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22965 {
22966 PyThreadState* __tstate = wxPyBeginAllowThreads();
22967 result = (int)(arg1)->IsButton();
22968 wxPyEndAllowThreads(__tstate);
22969 if (PyErr_Occurred()) SWIG_fail;
22970 }
22971 resultobj = SWIG_From_int(static_cast< int >(result));
22972 return resultobj;
22973 fail:
22974 return NULL;
22975 }
22976
22977
22978 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22979 PyObject *resultobj = 0;
22980 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22981 int result;
22982 void *argp1 = 0 ;
22983 int res1 = 0 ;
22984 PyObject *swig_obj[1] ;
22985
22986 if (!args) SWIG_fail;
22987 swig_obj[0] = args;
22988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22989 if (!SWIG_IsOK(res1)) {
22990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22991 }
22992 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22993 {
22994 PyThreadState* __tstate = wxPyBeginAllowThreads();
22995 result = (int)(arg1)->IsControl();
22996 wxPyEndAllowThreads(__tstate);
22997 if (PyErr_Occurred()) SWIG_fail;
22998 }
22999 resultobj = SWIG_From_int(static_cast< int >(result));
23000 return resultobj;
23001 fail:
23002 return NULL;
23003 }
23004
23005
23006 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23007 PyObject *resultobj = 0;
23008 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23009 int result;
23010 void *argp1 = 0 ;
23011 int res1 = 0 ;
23012 PyObject *swig_obj[1] ;
23013
23014 if (!args) SWIG_fail;
23015 swig_obj[0] = args;
23016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23017 if (!SWIG_IsOK(res1)) {
23018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23019 }
23020 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23021 {
23022 PyThreadState* __tstate = wxPyBeginAllowThreads();
23023 result = (int)(arg1)->IsSeparator();
23024 wxPyEndAllowThreads(__tstate);
23025 if (PyErr_Occurred()) SWIG_fail;
23026 }
23027 resultobj = SWIG_From_int(static_cast< int >(result));
23028 return resultobj;
23029 fail:
23030 return NULL;
23031 }
23032
23033
23034 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23035 PyObject *resultobj = 0;
23036 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23037 int result;
23038 void *argp1 = 0 ;
23039 int res1 = 0 ;
23040 PyObject *swig_obj[1] ;
23041
23042 if (!args) SWIG_fail;
23043 swig_obj[0] = args;
23044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23045 if (!SWIG_IsOK(res1)) {
23046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23047 }
23048 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23049 {
23050 PyThreadState* __tstate = wxPyBeginAllowThreads();
23051 result = (int)(arg1)->GetStyle();
23052 wxPyEndAllowThreads(__tstate);
23053 if (PyErr_Occurred()) SWIG_fail;
23054 }
23055 resultobj = SWIG_From_int(static_cast< int >(result));
23056 return resultobj;
23057 fail:
23058 return NULL;
23059 }
23060
23061
23062 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23063 PyObject *resultobj = 0;
23064 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23065 wxItemKind result;
23066 void *argp1 = 0 ;
23067 int res1 = 0 ;
23068 PyObject *swig_obj[1] ;
23069
23070 if (!args) SWIG_fail;
23071 swig_obj[0] = args;
23072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23073 if (!SWIG_IsOK(res1)) {
23074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23075 }
23076 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23077 {
23078 PyThreadState* __tstate = wxPyBeginAllowThreads();
23079 result = (wxItemKind)(arg1)->GetKind();
23080 wxPyEndAllowThreads(__tstate);
23081 if (PyErr_Occurred()) SWIG_fail;
23082 }
23083 resultobj = SWIG_From_int(static_cast< int >(result));
23084 return resultobj;
23085 fail:
23086 return NULL;
23087 }
23088
23089
23090 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23091 PyObject *resultobj = 0;
23092 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23093 bool result;
23094 void *argp1 = 0 ;
23095 int res1 = 0 ;
23096 PyObject *swig_obj[1] ;
23097
23098 if (!args) SWIG_fail;
23099 swig_obj[0] = args;
23100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23101 if (!SWIG_IsOK(res1)) {
23102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23103 }
23104 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23105 {
23106 PyThreadState* __tstate = wxPyBeginAllowThreads();
23107 result = (bool)(arg1)->IsEnabled();
23108 wxPyEndAllowThreads(__tstate);
23109 if (PyErr_Occurred()) SWIG_fail;
23110 }
23111 {
23112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23113 }
23114 return resultobj;
23115 fail:
23116 return NULL;
23117 }
23118
23119
23120 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23121 PyObject *resultobj = 0;
23122 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23123 bool result;
23124 void *argp1 = 0 ;
23125 int res1 = 0 ;
23126 PyObject *swig_obj[1] ;
23127
23128 if (!args) SWIG_fail;
23129 swig_obj[0] = args;
23130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23131 if (!SWIG_IsOK(res1)) {
23132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23133 }
23134 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23135 {
23136 PyThreadState* __tstate = wxPyBeginAllowThreads();
23137 result = (bool)(arg1)->IsToggled();
23138 wxPyEndAllowThreads(__tstate);
23139 if (PyErr_Occurred()) SWIG_fail;
23140 }
23141 {
23142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23143 }
23144 return resultobj;
23145 fail:
23146 return NULL;
23147 }
23148
23149
23150 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23151 PyObject *resultobj = 0;
23152 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23153 bool result;
23154 void *argp1 = 0 ;
23155 int res1 = 0 ;
23156 PyObject *swig_obj[1] ;
23157
23158 if (!args) SWIG_fail;
23159 swig_obj[0] = args;
23160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23161 if (!SWIG_IsOK(res1)) {
23162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23163 }
23164 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23165 {
23166 PyThreadState* __tstate = wxPyBeginAllowThreads();
23167 result = (bool)(arg1)->CanBeToggled();
23168 wxPyEndAllowThreads(__tstate);
23169 if (PyErr_Occurred()) SWIG_fail;
23170 }
23171 {
23172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23173 }
23174 return resultobj;
23175 fail:
23176 return NULL;
23177 }
23178
23179
23180 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23181 PyObject *resultobj = 0;
23182 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23183 wxBitmap *result = 0 ;
23184 void *argp1 = 0 ;
23185 int res1 = 0 ;
23186 PyObject *swig_obj[1] ;
23187
23188 if (!args) SWIG_fail;
23189 swig_obj[0] = args;
23190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23191 if (!SWIG_IsOK(res1)) {
23192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23193 }
23194 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23195 {
23196 PyThreadState* __tstate = wxPyBeginAllowThreads();
23197 {
23198 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23199 result = (wxBitmap *) &_result_ref;
23200 }
23201 wxPyEndAllowThreads(__tstate);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 }
23204 {
23205 wxBitmap* resultptr = new wxBitmap(*result);
23206 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23207 }
23208 return resultobj;
23209 fail:
23210 return NULL;
23211 }
23212
23213
23214 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23215 PyObject *resultobj = 0;
23216 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23217 wxBitmap *result = 0 ;
23218 void *argp1 = 0 ;
23219 int res1 = 0 ;
23220 PyObject *swig_obj[1] ;
23221
23222 if (!args) SWIG_fail;
23223 swig_obj[0] = args;
23224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23225 if (!SWIG_IsOK(res1)) {
23226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23227 }
23228 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23229 {
23230 PyThreadState* __tstate = wxPyBeginAllowThreads();
23231 {
23232 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23233 result = (wxBitmap *) &_result_ref;
23234 }
23235 wxPyEndAllowThreads(__tstate);
23236 if (PyErr_Occurred()) SWIG_fail;
23237 }
23238 {
23239 wxBitmap* resultptr = new wxBitmap(*result);
23240 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23241 }
23242 return resultobj;
23243 fail:
23244 return NULL;
23245 }
23246
23247
23248 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23249 PyObject *resultobj = 0;
23250 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23251 wxBitmap result;
23252 void *argp1 = 0 ;
23253 int res1 = 0 ;
23254 PyObject *swig_obj[1] ;
23255
23256 if (!args) SWIG_fail;
23257 swig_obj[0] = args;
23258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23259 if (!SWIG_IsOK(res1)) {
23260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23261 }
23262 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23263 {
23264 PyThreadState* __tstate = wxPyBeginAllowThreads();
23265 result = (arg1)->GetBitmap();
23266 wxPyEndAllowThreads(__tstate);
23267 if (PyErr_Occurred()) SWIG_fail;
23268 }
23269 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23270 return resultobj;
23271 fail:
23272 return NULL;
23273 }
23274
23275
23276 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23277 PyObject *resultobj = 0;
23278 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23279 wxString result;
23280 void *argp1 = 0 ;
23281 int res1 = 0 ;
23282 PyObject *swig_obj[1] ;
23283
23284 if (!args) SWIG_fail;
23285 swig_obj[0] = args;
23286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23287 if (!SWIG_IsOK(res1)) {
23288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23289 }
23290 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23291 {
23292 PyThreadState* __tstate = wxPyBeginAllowThreads();
23293 result = (arg1)->GetLabel();
23294 wxPyEndAllowThreads(__tstate);
23295 if (PyErr_Occurred()) SWIG_fail;
23296 }
23297 {
23298 #if wxUSE_UNICODE
23299 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23300 #else
23301 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23302 #endif
23303 }
23304 return resultobj;
23305 fail:
23306 return NULL;
23307 }
23308
23309
23310 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23311 PyObject *resultobj = 0;
23312 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23313 wxString result;
23314 void *argp1 = 0 ;
23315 int res1 = 0 ;
23316 PyObject *swig_obj[1] ;
23317
23318 if (!args) SWIG_fail;
23319 swig_obj[0] = args;
23320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23321 if (!SWIG_IsOK(res1)) {
23322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23323 }
23324 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23325 {
23326 PyThreadState* __tstate = wxPyBeginAllowThreads();
23327 result = (arg1)->GetShortHelp();
23328 wxPyEndAllowThreads(__tstate);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 }
23331 {
23332 #if wxUSE_UNICODE
23333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23334 #else
23335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23336 #endif
23337 }
23338 return resultobj;
23339 fail:
23340 return NULL;
23341 }
23342
23343
23344 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23345 PyObject *resultobj = 0;
23346 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23347 wxString result;
23348 void *argp1 = 0 ;
23349 int res1 = 0 ;
23350 PyObject *swig_obj[1] ;
23351
23352 if (!args) SWIG_fail;
23353 swig_obj[0] = args;
23354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23355 if (!SWIG_IsOK(res1)) {
23356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23357 }
23358 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23359 {
23360 PyThreadState* __tstate = wxPyBeginAllowThreads();
23361 result = (arg1)->GetLongHelp();
23362 wxPyEndAllowThreads(__tstate);
23363 if (PyErr_Occurred()) SWIG_fail;
23364 }
23365 {
23366 #if wxUSE_UNICODE
23367 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23368 #else
23369 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23370 #endif
23371 }
23372 return resultobj;
23373 fail:
23374 return NULL;
23375 }
23376
23377
23378 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23379 PyObject *resultobj = 0;
23380 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23381 bool arg2 ;
23382 bool result;
23383 void *argp1 = 0 ;
23384 int res1 = 0 ;
23385 bool val2 ;
23386 int ecode2 = 0 ;
23387 PyObject * obj0 = 0 ;
23388 PyObject * obj1 = 0 ;
23389 char * kwnames[] = {
23390 (char *) "self",(char *) "enable", NULL
23391 };
23392
23393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23395 if (!SWIG_IsOK(res1)) {
23396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23397 }
23398 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23399 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23400 if (!SWIG_IsOK(ecode2)) {
23401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23402 }
23403 arg2 = static_cast< bool >(val2);
23404 {
23405 PyThreadState* __tstate = wxPyBeginAllowThreads();
23406 result = (bool)(arg1)->Enable(arg2);
23407 wxPyEndAllowThreads(__tstate);
23408 if (PyErr_Occurred()) SWIG_fail;
23409 }
23410 {
23411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23412 }
23413 return resultobj;
23414 fail:
23415 return NULL;
23416 }
23417
23418
23419 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23420 PyObject *resultobj = 0;
23421 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23422 void *argp1 = 0 ;
23423 int res1 = 0 ;
23424 PyObject *swig_obj[1] ;
23425
23426 if (!args) SWIG_fail;
23427 swig_obj[0] = args;
23428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23429 if (!SWIG_IsOK(res1)) {
23430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23431 }
23432 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23433 {
23434 PyThreadState* __tstate = wxPyBeginAllowThreads();
23435 (arg1)->Toggle();
23436 wxPyEndAllowThreads(__tstate);
23437 if (PyErr_Occurred()) SWIG_fail;
23438 }
23439 resultobj = SWIG_Py_Void();
23440 return resultobj;
23441 fail:
23442 return NULL;
23443 }
23444
23445
23446 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23447 PyObject *resultobj = 0;
23448 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23449 bool arg2 ;
23450 bool result;
23451 void *argp1 = 0 ;
23452 int res1 = 0 ;
23453 bool val2 ;
23454 int ecode2 = 0 ;
23455 PyObject * obj0 = 0 ;
23456 PyObject * obj1 = 0 ;
23457 char * kwnames[] = {
23458 (char *) "self",(char *) "toggle", NULL
23459 };
23460
23461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23463 if (!SWIG_IsOK(res1)) {
23464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23465 }
23466 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23467 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23468 if (!SWIG_IsOK(ecode2)) {
23469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23470 }
23471 arg2 = static_cast< bool >(val2);
23472 {
23473 PyThreadState* __tstate = wxPyBeginAllowThreads();
23474 result = (bool)(arg1)->SetToggle(arg2);
23475 wxPyEndAllowThreads(__tstate);
23476 if (PyErr_Occurred()) SWIG_fail;
23477 }
23478 {
23479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23480 }
23481 return resultobj;
23482 fail:
23483 return NULL;
23484 }
23485
23486
23487 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23488 PyObject *resultobj = 0;
23489 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23490 wxString *arg2 = 0 ;
23491 bool result;
23492 void *argp1 = 0 ;
23493 int res1 = 0 ;
23494 bool temp2 = false ;
23495 PyObject * obj0 = 0 ;
23496 PyObject * obj1 = 0 ;
23497 char * kwnames[] = {
23498 (char *) "self",(char *) "help", NULL
23499 };
23500
23501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23503 if (!SWIG_IsOK(res1)) {
23504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23505 }
23506 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23507 {
23508 arg2 = wxString_in_helper(obj1);
23509 if (arg2 == NULL) SWIG_fail;
23510 temp2 = true;
23511 }
23512 {
23513 PyThreadState* __tstate = wxPyBeginAllowThreads();
23514 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23515 wxPyEndAllowThreads(__tstate);
23516 if (PyErr_Occurred()) SWIG_fail;
23517 }
23518 {
23519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23520 }
23521 {
23522 if (temp2)
23523 delete arg2;
23524 }
23525 return resultobj;
23526 fail:
23527 {
23528 if (temp2)
23529 delete arg2;
23530 }
23531 return NULL;
23532 }
23533
23534
23535 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23536 PyObject *resultobj = 0;
23537 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23538 wxString *arg2 = 0 ;
23539 bool result;
23540 void *argp1 = 0 ;
23541 int res1 = 0 ;
23542 bool temp2 = false ;
23543 PyObject * obj0 = 0 ;
23544 PyObject * obj1 = 0 ;
23545 char * kwnames[] = {
23546 (char *) "self",(char *) "help", NULL
23547 };
23548
23549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23551 if (!SWIG_IsOK(res1)) {
23552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23553 }
23554 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23555 {
23556 arg2 = wxString_in_helper(obj1);
23557 if (arg2 == NULL) SWIG_fail;
23558 temp2 = true;
23559 }
23560 {
23561 PyThreadState* __tstate = wxPyBeginAllowThreads();
23562 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23563 wxPyEndAllowThreads(__tstate);
23564 if (PyErr_Occurred()) SWIG_fail;
23565 }
23566 {
23567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23568 }
23569 {
23570 if (temp2)
23571 delete arg2;
23572 }
23573 return resultobj;
23574 fail:
23575 {
23576 if (temp2)
23577 delete arg2;
23578 }
23579 return NULL;
23580 }
23581
23582
23583 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23584 PyObject *resultobj = 0;
23585 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23586 wxBitmap *arg2 = 0 ;
23587 void *argp1 = 0 ;
23588 int res1 = 0 ;
23589 void *argp2 = 0 ;
23590 int res2 = 0 ;
23591 PyObject * obj0 = 0 ;
23592 PyObject * obj1 = 0 ;
23593 char * kwnames[] = {
23594 (char *) "self",(char *) "bmp", NULL
23595 };
23596
23597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23599 if (!SWIG_IsOK(res1)) {
23600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23601 }
23602 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23603 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23604 if (!SWIG_IsOK(res2)) {
23605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23606 }
23607 if (!argp2) {
23608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23609 }
23610 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23611 {
23612 PyThreadState* __tstate = wxPyBeginAllowThreads();
23613 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23614 wxPyEndAllowThreads(__tstate);
23615 if (PyErr_Occurred()) SWIG_fail;
23616 }
23617 resultobj = SWIG_Py_Void();
23618 return resultobj;
23619 fail:
23620 return NULL;
23621 }
23622
23623
23624 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23625 PyObject *resultobj = 0;
23626 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23627 wxBitmap *arg2 = 0 ;
23628 void *argp1 = 0 ;
23629 int res1 = 0 ;
23630 void *argp2 = 0 ;
23631 int res2 = 0 ;
23632 PyObject * obj0 = 0 ;
23633 PyObject * obj1 = 0 ;
23634 char * kwnames[] = {
23635 (char *) "self",(char *) "bmp", NULL
23636 };
23637
23638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23640 if (!SWIG_IsOK(res1)) {
23641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23642 }
23643 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23645 if (!SWIG_IsOK(res2)) {
23646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23647 }
23648 if (!argp2) {
23649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23650 }
23651 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23652 {
23653 PyThreadState* __tstate = wxPyBeginAllowThreads();
23654 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23655 wxPyEndAllowThreads(__tstate);
23656 if (PyErr_Occurred()) SWIG_fail;
23657 }
23658 resultobj = SWIG_Py_Void();
23659 return resultobj;
23660 fail:
23661 return NULL;
23662 }
23663
23664
23665 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23666 PyObject *resultobj = 0;
23667 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23668 wxString *arg2 = 0 ;
23669 void *argp1 = 0 ;
23670 int res1 = 0 ;
23671 bool temp2 = false ;
23672 PyObject * obj0 = 0 ;
23673 PyObject * obj1 = 0 ;
23674 char * kwnames[] = {
23675 (char *) "self",(char *) "label", NULL
23676 };
23677
23678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",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_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23682 }
23683 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23684 {
23685 arg2 = wxString_in_helper(obj1);
23686 if (arg2 == NULL) SWIG_fail;
23687 temp2 = true;
23688 }
23689 {
23690 PyThreadState* __tstate = wxPyBeginAllowThreads();
23691 (arg1)->SetLabel((wxString const &)*arg2);
23692 wxPyEndAllowThreads(__tstate);
23693 if (PyErr_Occurred()) SWIG_fail;
23694 }
23695 resultobj = SWIG_Py_Void();
23696 {
23697 if (temp2)
23698 delete arg2;
23699 }
23700 return resultobj;
23701 fail:
23702 {
23703 if (temp2)
23704 delete arg2;
23705 }
23706 return NULL;
23707 }
23708
23709
23710 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23711 PyObject *resultobj = 0;
23712 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23713 void *argp1 = 0 ;
23714 int res1 = 0 ;
23715 PyObject *swig_obj[1] ;
23716
23717 if (!args) SWIG_fail;
23718 swig_obj[0] = args;
23719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23720 if (!SWIG_IsOK(res1)) {
23721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23722 }
23723 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23724 {
23725 PyThreadState* __tstate = wxPyBeginAllowThreads();
23726 (arg1)->Detach();
23727 wxPyEndAllowThreads(__tstate);
23728 if (PyErr_Occurred()) SWIG_fail;
23729 }
23730 resultobj = SWIG_Py_Void();
23731 return resultobj;
23732 fail:
23733 return NULL;
23734 }
23735
23736
23737 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23738 PyObject *resultobj = 0;
23739 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23740 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23741 void *argp1 = 0 ;
23742 int res1 = 0 ;
23743 void *argp2 = 0 ;
23744 int res2 = 0 ;
23745 PyObject * obj0 = 0 ;
23746 PyObject * obj1 = 0 ;
23747 char * kwnames[] = {
23748 (char *) "self",(char *) "tbar", NULL
23749 };
23750
23751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23753 if (!SWIG_IsOK(res1)) {
23754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23755 }
23756 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23757 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23758 if (!SWIG_IsOK(res2)) {
23759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23760 }
23761 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23762 {
23763 PyThreadState* __tstate = wxPyBeginAllowThreads();
23764 (arg1)->Attach(arg2);
23765 wxPyEndAllowThreads(__tstate);
23766 if (PyErr_Occurred()) SWIG_fail;
23767 }
23768 resultobj = SWIG_Py_Void();
23769 return resultobj;
23770 fail:
23771 return NULL;
23772 }
23773
23774
23775 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23776 PyObject *resultobj = 0;
23777 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23778 PyObject *result = 0 ;
23779 void *argp1 = 0 ;
23780 int res1 = 0 ;
23781 PyObject *swig_obj[1] ;
23782
23783 if (!args) SWIG_fail;
23784 swig_obj[0] = args;
23785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23786 if (!SWIG_IsOK(res1)) {
23787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23788 }
23789 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23790 {
23791 PyThreadState* __tstate = wxPyBeginAllowThreads();
23792 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23793 wxPyEndAllowThreads(__tstate);
23794 if (PyErr_Occurred()) SWIG_fail;
23795 }
23796 resultobj = result;
23797 return resultobj;
23798 fail:
23799 return NULL;
23800 }
23801
23802
23803 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23804 PyObject *resultobj = 0;
23805 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23806 PyObject *arg2 = (PyObject *) 0 ;
23807 void *argp1 = 0 ;
23808 int res1 = 0 ;
23809 PyObject * obj0 = 0 ;
23810 PyObject * obj1 = 0 ;
23811 char * kwnames[] = {
23812 (char *) "self",(char *) "clientData", NULL
23813 };
23814
23815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23817 if (!SWIG_IsOK(res1)) {
23818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23819 }
23820 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23821 arg2 = obj1;
23822 {
23823 PyThreadState* __tstate = wxPyBeginAllowThreads();
23824 wxToolBarToolBase_SetClientData(arg1,arg2);
23825 wxPyEndAllowThreads(__tstate);
23826 if (PyErr_Occurred()) SWIG_fail;
23827 }
23828 resultobj = SWIG_Py_Void();
23829 return resultobj;
23830 fail:
23831 return NULL;
23832 }
23833
23834
23835 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23836 PyObject *obj;
23837 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23838 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23839 return SWIG_Py_Void();
23840 }
23841
23842 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23843 PyObject *resultobj = 0;
23844 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23845 int arg2 ;
23846 wxString *arg3 = 0 ;
23847 wxBitmap *arg4 = 0 ;
23848 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23849 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23850 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23851 wxString const &arg7_defvalue = wxPyEmptyString ;
23852 wxString *arg7 = (wxString *) &arg7_defvalue ;
23853 wxString const &arg8_defvalue = wxPyEmptyString ;
23854 wxString *arg8 = (wxString *) &arg8_defvalue ;
23855 PyObject *arg9 = (PyObject *) NULL ;
23856 wxToolBarToolBase *result = 0 ;
23857 void *argp1 = 0 ;
23858 int res1 = 0 ;
23859 int val2 ;
23860 int ecode2 = 0 ;
23861 bool temp3 = false ;
23862 void *argp4 = 0 ;
23863 int res4 = 0 ;
23864 void *argp5 = 0 ;
23865 int res5 = 0 ;
23866 int val6 ;
23867 int ecode6 = 0 ;
23868 bool temp7 = false ;
23869 bool temp8 = false ;
23870 PyObject * obj0 = 0 ;
23871 PyObject * obj1 = 0 ;
23872 PyObject * obj2 = 0 ;
23873 PyObject * obj3 = 0 ;
23874 PyObject * obj4 = 0 ;
23875 PyObject * obj5 = 0 ;
23876 PyObject * obj6 = 0 ;
23877 PyObject * obj7 = 0 ;
23878 PyObject * obj8 = 0 ;
23879 char * kwnames[] = {
23880 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23881 };
23882
23883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23885 if (!SWIG_IsOK(res1)) {
23886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23887 }
23888 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23889 ecode2 = SWIG_AsVal_int(obj1, &val2);
23890 if (!SWIG_IsOK(ecode2)) {
23891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23892 }
23893 arg2 = static_cast< int >(val2);
23894 {
23895 arg3 = wxString_in_helper(obj2);
23896 if (arg3 == NULL) SWIG_fail;
23897 temp3 = true;
23898 }
23899 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23900 if (!SWIG_IsOK(res4)) {
23901 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23902 }
23903 if (!argp4) {
23904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23905 }
23906 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23907 if (obj4) {
23908 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23909 if (!SWIG_IsOK(res5)) {
23910 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23911 }
23912 if (!argp5) {
23913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23914 }
23915 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23916 }
23917 if (obj5) {
23918 ecode6 = SWIG_AsVal_int(obj5, &val6);
23919 if (!SWIG_IsOK(ecode6)) {
23920 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23921 }
23922 arg6 = static_cast< wxItemKind >(val6);
23923 }
23924 if (obj6) {
23925 {
23926 arg7 = wxString_in_helper(obj6);
23927 if (arg7 == NULL) SWIG_fail;
23928 temp7 = true;
23929 }
23930 }
23931 if (obj7) {
23932 {
23933 arg8 = wxString_in_helper(obj7);
23934 if (arg8 == NULL) SWIG_fail;
23935 temp8 = true;
23936 }
23937 }
23938 if (obj8) {
23939 arg9 = obj8;
23940 }
23941 {
23942 PyThreadState* __tstate = wxPyBeginAllowThreads();
23943 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23944 wxPyEndAllowThreads(__tstate);
23945 if (PyErr_Occurred()) SWIG_fail;
23946 }
23947 {
23948 resultobj = wxPyMake_wxObject(result, (bool)0);
23949 }
23950 {
23951 if (temp3)
23952 delete arg3;
23953 }
23954 {
23955 if (temp7)
23956 delete arg7;
23957 }
23958 {
23959 if (temp8)
23960 delete arg8;
23961 }
23962 return resultobj;
23963 fail:
23964 {
23965 if (temp3)
23966 delete arg3;
23967 }
23968 {
23969 if (temp7)
23970 delete arg7;
23971 }
23972 {
23973 if (temp8)
23974 delete arg8;
23975 }
23976 return NULL;
23977 }
23978
23979
23980 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23981 PyObject *resultobj = 0;
23982 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23983 size_t arg2 ;
23984 int arg3 ;
23985 wxString *arg4 = 0 ;
23986 wxBitmap *arg5 = 0 ;
23987 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23988 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23989 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23990 wxString const &arg8_defvalue = wxPyEmptyString ;
23991 wxString *arg8 = (wxString *) &arg8_defvalue ;
23992 wxString const &arg9_defvalue = wxPyEmptyString ;
23993 wxString *arg9 = (wxString *) &arg9_defvalue ;
23994 PyObject *arg10 = (PyObject *) NULL ;
23995 wxToolBarToolBase *result = 0 ;
23996 void *argp1 = 0 ;
23997 int res1 = 0 ;
23998 size_t val2 ;
23999 int ecode2 = 0 ;
24000 int val3 ;
24001 int ecode3 = 0 ;
24002 bool temp4 = false ;
24003 void *argp5 = 0 ;
24004 int res5 = 0 ;
24005 void *argp6 = 0 ;
24006 int res6 = 0 ;
24007 int val7 ;
24008 int ecode7 = 0 ;
24009 bool temp8 = false ;
24010 bool temp9 = false ;
24011 PyObject * obj0 = 0 ;
24012 PyObject * obj1 = 0 ;
24013 PyObject * obj2 = 0 ;
24014 PyObject * obj3 = 0 ;
24015 PyObject * obj4 = 0 ;
24016 PyObject * obj5 = 0 ;
24017 PyObject * obj6 = 0 ;
24018 PyObject * obj7 = 0 ;
24019 PyObject * obj8 = 0 ;
24020 PyObject * obj9 = 0 ;
24021 char * kwnames[] = {
24022 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24023 };
24024
24025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24027 if (!SWIG_IsOK(res1)) {
24028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24029 }
24030 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24031 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24032 if (!SWIG_IsOK(ecode2)) {
24033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24034 }
24035 arg2 = static_cast< size_t >(val2);
24036 ecode3 = SWIG_AsVal_int(obj2, &val3);
24037 if (!SWIG_IsOK(ecode3)) {
24038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24039 }
24040 arg3 = static_cast< int >(val3);
24041 {
24042 arg4 = wxString_in_helper(obj3);
24043 if (arg4 == NULL) SWIG_fail;
24044 temp4 = true;
24045 }
24046 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24047 if (!SWIG_IsOK(res5)) {
24048 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24049 }
24050 if (!argp5) {
24051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24052 }
24053 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24054 if (obj5) {
24055 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24056 if (!SWIG_IsOK(res6)) {
24057 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24058 }
24059 if (!argp6) {
24060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24061 }
24062 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24063 }
24064 if (obj6) {
24065 ecode7 = SWIG_AsVal_int(obj6, &val7);
24066 if (!SWIG_IsOK(ecode7)) {
24067 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24068 }
24069 arg7 = static_cast< wxItemKind >(val7);
24070 }
24071 if (obj7) {
24072 {
24073 arg8 = wxString_in_helper(obj7);
24074 if (arg8 == NULL) SWIG_fail;
24075 temp8 = true;
24076 }
24077 }
24078 if (obj8) {
24079 {
24080 arg9 = wxString_in_helper(obj8);
24081 if (arg9 == NULL) SWIG_fail;
24082 temp9 = true;
24083 }
24084 }
24085 if (obj9) {
24086 arg10 = obj9;
24087 }
24088 {
24089 PyThreadState* __tstate = wxPyBeginAllowThreads();
24090 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24091 wxPyEndAllowThreads(__tstate);
24092 if (PyErr_Occurred()) SWIG_fail;
24093 }
24094 {
24095 resultobj = wxPyMake_wxObject(result, (bool)0);
24096 }
24097 {
24098 if (temp4)
24099 delete arg4;
24100 }
24101 {
24102 if (temp8)
24103 delete arg8;
24104 }
24105 {
24106 if (temp9)
24107 delete arg9;
24108 }
24109 return resultobj;
24110 fail:
24111 {
24112 if (temp4)
24113 delete arg4;
24114 }
24115 {
24116 if (temp8)
24117 delete arg8;
24118 }
24119 {
24120 if (temp9)
24121 delete arg9;
24122 }
24123 return NULL;
24124 }
24125
24126
24127 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24128 PyObject *resultobj = 0;
24129 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24130 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24131 wxToolBarToolBase *result = 0 ;
24132 void *argp1 = 0 ;
24133 int res1 = 0 ;
24134 void *argp2 = 0 ;
24135 int res2 = 0 ;
24136 PyObject * obj0 = 0 ;
24137 PyObject * obj1 = 0 ;
24138 char * kwnames[] = {
24139 (char *) "self",(char *) "tool", NULL
24140 };
24141
24142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24144 if (!SWIG_IsOK(res1)) {
24145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24146 }
24147 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24149 if (!SWIG_IsOK(res2)) {
24150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24151 }
24152 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24153 {
24154 PyThreadState* __tstate = wxPyBeginAllowThreads();
24155 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24156 wxPyEndAllowThreads(__tstate);
24157 if (PyErr_Occurred()) SWIG_fail;
24158 }
24159 {
24160 resultobj = wxPyMake_wxObject(result, (bool)0);
24161 }
24162 return resultobj;
24163 fail:
24164 return NULL;
24165 }
24166
24167
24168 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24169 PyObject *resultobj = 0;
24170 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24171 size_t arg2 ;
24172 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24173 wxToolBarToolBase *result = 0 ;
24174 void *argp1 = 0 ;
24175 int res1 = 0 ;
24176 size_t val2 ;
24177 int ecode2 = 0 ;
24178 void *argp3 = 0 ;
24179 int res3 = 0 ;
24180 PyObject * obj0 = 0 ;
24181 PyObject * obj1 = 0 ;
24182 PyObject * obj2 = 0 ;
24183 char * kwnames[] = {
24184 (char *) "self",(char *) "pos",(char *) "tool", NULL
24185 };
24186
24187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24189 if (!SWIG_IsOK(res1)) {
24190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24191 }
24192 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24193 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24194 if (!SWIG_IsOK(ecode2)) {
24195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24196 }
24197 arg2 = static_cast< size_t >(val2);
24198 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24199 if (!SWIG_IsOK(res3)) {
24200 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24201 }
24202 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24203 {
24204 PyThreadState* __tstate = wxPyBeginAllowThreads();
24205 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24206 wxPyEndAllowThreads(__tstate);
24207 if (PyErr_Occurred()) SWIG_fail;
24208 }
24209 {
24210 resultobj = wxPyMake_wxObject(result, (bool)0);
24211 }
24212 return resultobj;
24213 fail:
24214 return NULL;
24215 }
24216
24217
24218 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24219 PyObject *resultobj = 0;
24220 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24221 wxControl *arg2 = (wxControl *) 0 ;
24222 wxToolBarToolBase *result = 0 ;
24223 void *argp1 = 0 ;
24224 int res1 = 0 ;
24225 void *argp2 = 0 ;
24226 int res2 = 0 ;
24227 PyObject * obj0 = 0 ;
24228 PyObject * obj1 = 0 ;
24229 char * kwnames[] = {
24230 (char *) "self",(char *) "control", NULL
24231 };
24232
24233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24235 if (!SWIG_IsOK(res1)) {
24236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24237 }
24238 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24239 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24240 if (!SWIG_IsOK(res2)) {
24241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24242 }
24243 arg2 = reinterpret_cast< wxControl * >(argp2);
24244 {
24245 PyThreadState* __tstate = wxPyBeginAllowThreads();
24246 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24247 wxPyEndAllowThreads(__tstate);
24248 if (PyErr_Occurred()) SWIG_fail;
24249 }
24250 {
24251 resultobj = wxPyMake_wxObject(result, (bool)0);
24252 }
24253 return resultobj;
24254 fail:
24255 return NULL;
24256 }
24257
24258
24259 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24260 PyObject *resultobj = 0;
24261 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24262 size_t arg2 ;
24263 wxControl *arg3 = (wxControl *) 0 ;
24264 wxToolBarToolBase *result = 0 ;
24265 void *argp1 = 0 ;
24266 int res1 = 0 ;
24267 size_t val2 ;
24268 int ecode2 = 0 ;
24269 void *argp3 = 0 ;
24270 int res3 = 0 ;
24271 PyObject * obj0 = 0 ;
24272 PyObject * obj1 = 0 ;
24273 PyObject * obj2 = 0 ;
24274 char * kwnames[] = {
24275 (char *) "self",(char *) "pos",(char *) "control", NULL
24276 };
24277
24278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24280 if (!SWIG_IsOK(res1)) {
24281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24282 }
24283 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24284 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24285 if (!SWIG_IsOK(ecode2)) {
24286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24287 }
24288 arg2 = static_cast< size_t >(val2);
24289 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24290 if (!SWIG_IsOK(res3)) {
24291 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24292 }
24293 arg3 = reinterpret_cast< wxControl * >(argp3);
24294 {
24295 PyThreadState* __tstate = wxPyBeginAllowThreads();
24296 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24297 wxPyEndAllowThreads(__tstate);
24298 if (PyErr_Occurred()) SWIG_fail;
24299 }
24300 {
24301 resultobj = wxPyMake_wxObject(result, (bool)0);
24302 }
24303 return resultobj;
24304 fail:
24305 return NULL;
24306 }
24307
24308
24309 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24310 PyObject *resultobj = 0;
24311 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24312 int arg2 ;
24313 wxControl *result = 0 ;
24314 void *argp1 = 0 ;
24315 int res1 = 0 ;
24316 int val2 ;
24317 int ecode2 = 0 ;
24318 PyObject * obj0 = 0 ;
24319 PyObject * obj1 = 0 ;
24320 char * kwnames[] = {
24321 (char *) "self",(char *) "id", NULL
24322 };
24323
24324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24326 if (!SWIG_IsOK(res1)) {
24327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24328 }
24329 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24330 ecode2 = SWIG_AsVal_int(obj1, &val2);
24331 if (!SWIG_IsOK(ecode2)) {
24332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24333 }
24334 arg2 = static_cast< int >(val2);
24335 {
24336 PyThreadState* __tstate = wxPyBeginAllowThreads();
24337 result = (wxControl *)(arg1)->FindControl(arg2);
24338 wxPyEndAllowThreads(__tstate);
24339 if (PyErr_Occurred()) SWIG_fail;
24340 }
24341 {
24342 resultobj = wxPyMake_wxObject(result, 0);
24343 }
24344 return resultobj;
24345 fail:
24346 return NULL;
24347 }
24348
24349
24350 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24351 PyObject *resultobj = 0;
24352 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24353 wxToolBarToolBase *result = 0 ;
24354 void *argp1 = 0 ;
24355 int res1 = 0 ;
24356 PyObject *swig_obj[1] ;
24357
24358 if (!args) SWIG_fail;
24359 swig_obj[0] = args;
24360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24361 if (!SWIG_IsOK(res1)) {
24362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24363 }
24364 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24365 {
24366 PyThreadState* __tstate = wxPyBeginAllowThreads();
24367 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24368 wxPyEndAllowThreads(__tstate);
24369 if (PyErr_Occurred()) SWIG_fail;
24370 }
24371 {
24372 resultobj = wxPyMake_wxObject(result, (bool)0);
24373 }
24374 return resultobj;
24375 fail:
24376 return NULL;
24377 }
24378
24379
24380 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24381 PyObject *resultobj = 0;
24382 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24383 size_t arg2 ;
24384 wxToolBarToolBase *result = 0 ;
24385 void *argp1 = 0 ;
24386 int res1 = 0 ;
24387 size_t val2 ;
24388 int ecode2 = 0 ;
24389 PyObject * obj0 = 0 ;
24390 PyObject * obj1 = 0 ;
24391 char * kwnames[] = {
24392 (char *) "self",(char *) "pos", NULL
24393 };
24394
24395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24397 if (!SWIG_IsOK(res1)) {
24398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24399 }
24400 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24401 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24402 if (!SWIG_IsOK(ecode2)) {
24403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24404 }
24405 arg2 = static_cast< size_t >(val2);
24406 {
24407 PyThreadState* __tstate = wxPyBeginAllowThreads();
24408 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24409 wxPyEndAllowThreads(__tstate);
24410 if (PyErr_Occurred()) SWIG_fail;
24411 }
24412 {
24413 resultobj = wxPyMake_wxObject(result, (bool)0);
24414 }
24415 return resultobj;
24416 fail:
24417 return NULL;
24418 }
24419
24420
24421 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24422 PyObject *resultobj = 0;
24423 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24424 int arg2 ;
24425 wxToolBarToolBase *result = 0 ;
24426 void *argp1 = 0 ;
24427 int res1 = 0 ;
24428 int val2 ;
24429 int ecode2 = 0 ;
24430 PyObject * obj0 = 0 ;
24431 PyObject * obj1 = 0 ;
24432 char * kwnames[] = {
24433 (char *) "self",(char *) "id", NULL
24434 };
24435
24436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24438 if (!SWIG_IsOK(res1)) {
24439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24440 }
24441 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24442 ecode2 = SWIG_AsVal_int(obj1, &val2);
24443 if (!SWIG_IsOK(ecode2)) {
24444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24445 }
24446 arg2 = static_cast< int >(val2);
24447 {
24448 PyThreadState* __tstate = wxPyBeginAllowThreads();
24449 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24450 wxPyEndAllowThreads(__tstate);
24451 if (PyErr_Occurred()) SWIG_fail;
24452 }
24453 {
24454 resultobj = wxPyMake_wxObject(result, (bool)0);
24455 }
24456 return resultobj;
24457 fail:
24458 return NULL;
24459 }
24460
24461
24462 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24463 PyObject *resultobj = 0;
24464 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24465 size_t arg2 ;
24466 bool result;
24467 void *argp1 = 0 ;
24468 int res1 = 0 ;
24469 size_t val2 ;
24470 int ecode2 = 0 ;
24471 PyObject * obj0 = 0 ;
24472 PyObject * obj1 = 0 ;
24473 char * kwnames[] = {
24474 (char *) "self",(char *) "pos", NULL
24475 };
24476
24477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24479 if (!SWIG_IsOK(res1)) {
24480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24481 }
24482 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24483 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24484 if (!SWIG_IsOK(ecode2)) {
24485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24486 }
24487 arg2 = static_cast< size_t >(val2);
24488 {
24489 PyThreadState* __tstate = wxPyBeginAllowThreads();
24490 result = (bool)(arg1)->DeleteToolByPos(arg2);
24491 wxPyEndAllowThreads(__tstate);
24492 if (PyErr_Occurred()) SWIG_fail;
24493 }
24494 {
24495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24496 }
24497 return resultobj;
24498 fail:
24499 return NULL;
24500 }
24501
24502
24503 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24504 PyObject *resultobj = 0;
24505 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24506 int arg2 ;
24507 bool result;
24508 void *argp1 = 0 ;
24509 int res1 = 0 ;
24510 int val2 ;
24511 int ecode2 = 0 ;
24512 PyObject * obj0 = 0 ;
24513 PyObject * obj1 = 0 ;
24514 char * kwnames[] = {
24515 (char *) "self",(char *) "id", NULL
24516 };
24517
24518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24520 if (!SWIG_IsOK(res1)) {
24521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24522 }
24523 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24524 ecode2 = SWIG_AsVal_int(obj1, &val2);
24525 if (!SWIG_IsOK(ecode2)) {
24526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24527 }
24528 arg2 = static_cast< int >(val2);
24529 {
24530 PyThreadState* __tstate = wxPyBeginAllowThreads();
24531 result = (bool)(arg1)->DeleteTool(arg2);
24532 wxPyEndAllowThreads(__tstate);
24533 if (PyErr_Occurred()) SWIG_fail;
24534 }
24535 {
24536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24537 }
24538 return resultobj;
24539 fail:
24540 return NULL;
24541 }
24542
24543
24544 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24545 PyObject *resultobj = 0;
24546 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24547 void *argp1 = 0 ;
24548 int res1 = 0 ;
24549 PyObject *swig_obj[1] ;
24550
24551 if (!args) SWIG_fail;
24552 swig_obj[0] = args;
24553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24554 if (!SWIG_IsOK(res1)) {
24555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24556 }
24557 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24558 {
24559 PyThreadState* __tstate = wxPyBeginAllowThreads();
24560 (arg1)->ClearTools();
24561 wxPyEndAllowThreads(__tstate);
24562 if (PyErr_Occurred()) SWIG_fail;
24563 }
24564 resultobj = SWIG_Py_Void();
24565 return resultobj;
24566 fail:
24567 return NULL;
24568 }
24569
24570
24571 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24572 PyObject *resultobj = 0;
24573 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24574 bool result;
24575 void *argp1 = 0 ;
24576 int res1 = 0 ;
24577 PyObject *swig_obj[1] ;
24578
24579 if (!args) SWIG_fail;
24580 swig_obj[0] = args;
24581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24582 if (!SWIG_IsOK(res1)) {
24583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24584 }
24585 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24586 {
24587 PyThreadState* __tstate = wxPyBeginAllowThreads();
24588 result = (bool)(arg1)->Realize();
24589 wxPyEndAllowThreads(__tstate);
24590 if (PyErr_Occurred()) SWIG_fail;
24591 }
24592 {
24593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24594 }
24595 return resultobj;
24596 fail:
24597 return NULL;
24598 }
24599
24600
24601 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24602 PyObject *resultobj = 0;
24603 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24604 int arg2 ;
24605 bool arg3 ;
24606 void *argp1 = 0 ;
24607 int res1 = 0 ;
24608 int val2 ;
24609 int ecode2 = 0 ;
24610 bool val3 ;
24611 int ecode3 = 0 ;
24612 PyObject * obj0 = 0 ;
24613 PyObject * obj1 = 0 ;
24614 PyObject * obj2 = 0 ;
24615 char * kwnames[] = {
24616 (char *) "self",(char *) "id",(char *) "enable", NULL
24617 };
24618
24619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24621 if (!SWIG_IsOK(res1)) {
24622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24623 }
24624 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24625 ecode2 = SWIG_AsVal_int(obj1, &val2);
24626 if (!SWIG_IsOK(ecode2)) {
24627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24628 }
24629 arg2 = static_cast< int >(val2);
24630 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24631 if (!SWIG_IsOK(ecode3)) {
24632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24633 }
24634 arg3 = static_cast< bool >(val3);
24635 {
24636 PyThreadState* __tstate = wxPyBeginAllowThreads();
24637 (arg1)->EnableTool(arg2,arg3);
24638 wxPyEndAllowThreads(__tstate);
24639 if (PyErr_Occurred()) SWIG_fail;
24640 }
24641 resultobj = SWIG_Py_Void();
24642 return resultobj;
24643 fail:
24644 return NULL;
24645 }
24646
24647
24648 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24649 PyObject *resultobj = 0;
24650 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24651 int arg2 ;
24652 bool arg3 ;
24653 void *argp1 = 0 ;
24654 int res1 = 0 ;
24655 int val2 ;
24656 int ecode2 = 0 ;
24657 bool val3 ;
24658 int ecode3 = 0 ;
24659 PyObject * obj0 = 0 ;
24660 PyObject * obj1 = 0 ;
24661 PyObject * obj2 = 0 ;
24662 char * kwnames[] = {
24663 (char *) "self",(char *) "id",(char *) "toggle", NULL
24664 };
24665
24666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24668 if (!SWIG_IsOK(res1)) {
24669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24670 }
24671 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24672 ecode2 = SWIG_AsVal_int(obj1, &val2);
24673 if (!SWIG_IsOK(ecode2)) {
24674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24675 }
24676 arg2 = static_cast< int >(val2);
24677 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24678 if (!SWIG_IsOK(ecode3)) {
24679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24680 }
24681 arg3 = static_cast< bool >(val3);
24682 {
24683 PyThreadState* __tstate = wxPyBeginAllowThreads();
24684 (arg1)->ToggleTool(arg2,arg3);
24685 wxPyEndAllowThreads(__tstate);
24686 if (PyErr_Occurred()) SWIG_fail;
24687 }
24688 resultobj = SWIG_Py_Void();
24689 return resultobj;
24690 fail:
24691 return NULL;
24692 }
24693
24694
24695 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24696 PyObject *resultobj = 0;
24697 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24698 int arg2 ;
24699 bool arg3 ;
24700 void *argp1 = 0 ;
24701 int res1 = 0 ;
24702 int val2 ;
24703 int ecode2 = 0 ;
24704 bool val3 ;
24705 int ecode3 = 0 ;
24706 PyObject * obj0 = 0 ;
24707 PyObject * obj1 = 0 ;
24708 PyObject * obj2 = 0 ;
24709 char * kwnames[] = {
24710 (char *) "self",(char *) "id",(char *) "toggle", NULL
24711 };
24712
24713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24715 if (!SWIG_IsOK(res1)) {
24716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24717 }
24718 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24719 ecode2 = SWIG_AsVal_int(obj1, &val2);
24720 if (!SWIG_IsOK(ecode2)) {
24721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24722 }
24723 arg2 = static_cast< int >(val2);
24724 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24725 if (!SWIG_IsOK(ecode3)) {
24726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24727 }
24728 arg3 = static_cast< bool >(val3);
24729 {
24730 PyThreadState* __tstate = wxPyBeginAllowThreads();
24731 (arg1)->SetToggle(arg2,arg3);
24732 wxPyEndAllowThreads(__tstate);
24733 if (PyErr_Occurred()) SWIG_fail;
24734 }
24735 resultobj = SWIG_Py_Void();
24736 return resultobj;
24737 fail:
24738 return NULL;
24739 }
24740
24741
24742 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24743 PyObject *resultobj = 0;
24744 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24745 int arg2 ;
24746 PyObject *result = 0 ;
24747 void *argp1 = 0 ;
24748 int res1 = 0 ;
24749 int val2 ;
24750 int ecode2 = 0 ;
24751 PyObject * obj0 = 0 ;
24752 PyObject * obj1 = 0 ;
24753 char * kwnames[] = {
24754 (char *) "self",(char *) "id", NULL
24755 };
24756
24757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24759 if (!SWIG_IsOK(res1)) {
24760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24761 }
24762 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24763 ecode2 = SWIG_AsVal_int(obj1, &val2);
24764 if (!SWIG_IsOK(ecode2)) {
24765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24766 }
24767 arg2 = static_cast< int >(val2);
24768 {
24769 PyThreadState* __tstate = wxPyBeginAllowThreads();
24770 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24771 wxPyEndAllowThreads(__tstate);
24772 if (PyErr_Occurred()) SWIG_fail;
24773 }
24774 resultobj = result;
24775 return resultobj;
24776 fail:
24777 return NULL;
24778 }
24779
24780
24781 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24782 PyObject *resultobj = 0;
24783 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24784 int arg2 ;
24785 PyObject *arg3 = (PyObject *) 0 ;
24786 void *argp1 = 0 ;
24787 int res1 = 0 ;
24788 int val2 ;
24789 int ecode2 = 0 ;
24790 PyObject * obj0 = 0 ;
24791 PyObject * obj1 = 0 ;
24792 PyObject * obj2 = 0 ;
24793 char * kwnames[] = {
24794 (char *) "self",(char *) "id",(char *) "clientData", NULL
24795 };
24796
24797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24799 if (!SWIG_IsOK(res1)) {
24800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24801 }
24802 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24803 ecode2 = SWIG_AsVal_int(obj1, &val2);
24804 if (!SWIG_IsOK(ecode2)) {
24805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24806 }
24807 arg2 = static_cast< int >(val2);
24808 arg3 = obj2;
24809 {
24810 PyThreadState* __tstate = wxPyBeginAllowThreads();
24811 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24812 wxPyEndAllowThreads(__tstate);
24813 if (PyErr_Occurred()) SWIG_fail;
24814 }
24815 resultobj = SWIG_Py_Void();
24816 return resultobj;
24817 fail:
24818 return NULL;
24819 }
24820
24821
24822 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24823 PyObject *resultobj = 0;
24824 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24825 int arg2 ;
24826 int result;
24827 void *argp1 = 0 ;
24828 int res1 = 0 ;
24829 int val2 ;
24830 int ecode2 = 0 ;
24831 PyObject * obj0 = 0 ;
24832 PyObject * obj1 = 0 ;
24833 char * kwnames[] = {
24834 (char *) "self",(char *) "id", NULL
24835 };
24836
24837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24839 if (!SWIG_IsOK(res1)) {
24840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24841 }
24842 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24843 ecode2 = SWIG_AsVal_int(obj1, &val2);
24844 if (!SWIG_IsOK(ecode2)) {
24845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24846 }
24847 arg2 = static_cast< int >(val2);
24848 {
24849 PyThreadState* __tstate = wxPyBeginAllowThreads();
24850 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24851 wxPyEndAllowThreads(__tstate);
24852 if (PyErr_Occurred()) SWIG_fail;
24853 }
24854 resultobj = SWIG_From_int(static_cast< int >(result));
24855 return resultobj;
24856 fail:
24857 return NULL;
24858 }
24859
24860
24861 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24862 PyObject *resultobj = 0;
24863 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24864 int arg2 ;
24865 bool result;
24866 void *argp1 = 0 ;
24867 int res1 = 0 ;
24868 int val2 ;
24869 int ecode2 = 0 ;
24870 PyObject * obj0 = 0 ;
24871 PyObject * obj1 = 0 ;
24872 char * kwnames[] = {
24873 (char *) "self",(char *) "id", NULL
24874 };
24875
24876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24878 if (!SWIG_IsOK(res1)) {
24879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24880 }
24881 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24882 ecode2 = SWIG_AsVal_int(obj1, &val2);
24883 if (!SWIG_IsOK(ecode2)) {
24884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24885 }
24886 arg2 = static_cast< int >(val2);
24887 {
24888 PyThreadState* __tstate = wxPyBeginAllowThreads();
24889 result = (bool)(arg1)->GetToolState(arg2);
24890 wxPyEndAllowThreads(__tstate);
24891 if (PyErr_Occurred()) SWIG_fail;
24892 }
24893 {
24894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24895 }
24896 return resultobj;
24897 fail:
24898 return NULL;
24899 }
24900
24901
24902 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24903 PyObject *resultobj = 0;
24904 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24905 int arg2 ;
24906 bool result;
24907 void *argp1 = 0 ;
24908 int res1 = 0 ;
24909 int val2 ;
24910 int ecode2 = 0 ;
24911 PyObject * obj0 = 0 ;
24912 PyObject * obj1 = 0 ;
24913 char * kwnames[] = {
24914 (char *) "self",(char *) "id", NULL
24915 };
24916
24917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24919 if (!SWIG_IsOK(res1)) {
24920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24921 }
24922 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24923 ecode2 = SWIG_AsVal_int(obj1, &val2);
24924 if (!SWIG_IsOK(ecode2)) {
24925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24926 }
24927 arg2 = static_cast< int >(val2);
24928 {
24929 PyThreadState* __tstate = wxPyBeginAllowThreads();
24930 result = (bool)(arg1)->GetToolEnabled(arg2);
24931 wxPyEndAllowThreads(__tstate);
24932 if (PyErr_Occurred()) SWIG_fail;
24933 }
24934 {
24935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24936 }
24937 return resultobj;
24938 fail:
24939 return NULL;
24940 }
24941
24942
24943 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24944 PyObject *resultobj = 0;
24945 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24946 int arg2 ;
24947 wxString *arg3 = 0 ;
24948 void *argp1 = 0 ;
24949 int res1 = 0 ;
24950 int val2 ;
24951 int ecode2 = 0 ;
24952 bool temp3 = false ;
24953 PyObject * obj0 = 0 ;
24954 PyObject * obj1 = 0 ;
24955 PyObject * obj2 = 0 ;
24956 char * kwnames[] = {
24957 (char *) "self",(char *) "id",(char *) "helpString", NULL
24958 };
24959
24960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24962 if (!SWIG_IsOK(res1)) {
24963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24964 }
24965 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24966 ecode2 = SWIG_AsVal_int(obj1, &val2);
24967 if (!SWIG_IsOK(ecode2)) {
24968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24969 }
24970 arg2 = static_cast< int >(val2);
24971 {
24972 arg3 = wxString_in_helper(obj2);
24973 if (arg3 == NULL) SWIG_fail;
24974 temp3 = true;
24975 }
24976 {
24977 PyThreadState* __tstate = wxPyBeginAllowThreads();
24978 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24979 wxPyEndAllowThreads(__tstate);
24980 if (PyErr_Occurred()) SWIG_fail;
24981 }
24982 resultobj = SWIG_Py_Void();
24983 {
24984 if (temp3)
24985 delete arg3;
24986 }
24987 return resultobj;
24988 fail:
24989 {
24990 if (temp3)
24991 delete arg3;
24992 }
24993 return NULL;
24994 }
24995
24996
24997 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24998 PyObject *resultobj = 0;
24999 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25000 int arg2 ;
25001 wxString result;
25002 void *argp1 = 0 ;
25003 int res1 = 0 ;
25004 int val2 ;
25005 int ecode2 = 0 ;
25006 PyObject * obj0 = 0 ;
25007 PyObject * obj1 = 0 ;
25008 char * kwnames[] = {
25009 (char *) "self",(char *) "id", NULL
25010 };
25011
25012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25014 if (!SWIG_IsOK(res1)) {
25015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25016 }
25017 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25018 ecode2 = SWIG_AsVal_int(obj1, &val2);
25019 if (!SWIG_IsOK(ecode2)) {
25020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25021 }
25022 arg2 = static_cast< int >(val2);
25023 {
25024 PyThreadState* __tstate = wxPyBeginAllowThreads();
25025 result = (arg1)->GetToolShortHelp(arg2);
25026 wxPyEndAllowThreads(__tstate);
25027 if (PyErr_Occurred()) SWIG_fail;
25028 }
25029 {
25030 #if wxUSE_UNICODE
25031 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25032 #else
25033 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25034 #endif
25035 }
25036 return resultobj;
25037 fail:
25038 return NULL;
25039 }
25040
25041
25042 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25043 PyObject *resultobj = 0;
25044 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25045 int arg2 ;
25046 wxString *arg3 = 0 ;
25047 void *argp1 = 0 ;
25048 int res1 = 0 ;
25049 int val2 ;
25050 int ecode2 = 0 ;
25051 bool temp3 = false ;
25052 PyObject * obj0 = 0 ;
25053 PyObject * obj1 = 0 ;
25054 PyObject * obj2 = 0 ;
25055 char * kwnames[] = {
25056 (char *) "self",(char *) "id",(char *) "helpString", NULL
25057 };
25058
25059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25061 if (!SWIG_IsOK(res1)) {
25062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25063 }
25064 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25065 ecode2 = SWIG_AsVal_int(obj1, &val2);
25066 if (!SWIG_IsOK(ecode2)) {
25067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25068 }
25069 arg2 = static_cast< int >(val2);
25070 {
25071 arg3 = wxString_in_helper(obj2);
25072 if (arg3 == NULL) SWIG_fail;
25073 temp3 = true;
25074 }
25075 {
25076 PyThreadState* __tstate = wxPyBeginAllowThreads();
25077 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25078 wxPyEndAllowThreads(__tstate);
25079 if (PyErr_Occurred()) SWIG_fail;
25080 }
25081 resultobj = SWIG_Py_Void();
25082 {
25083 if (temp3)
25084 delete arg3;
25085 }
25086 return resultobj;
25087 fail:
25088 {
25089 if (temp3)
25090 delete arg3;
25091 }
25092 return NULL;
25093 }
25094
25095
25096 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25097 PyObject *resultobj = 0;
25098 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25099 int arg2 ;
25100 wxString result;
25101 void *argp1 = 0 ;
25102 int res1 = 0 ;
25103 int val2 ;
25104 int ecode2 = 0 ;
25105 PyObject * obj0 = 0 ;
25106 PyObject * obj1 = 0 ;
25107 char * kwnames[] = {
25108 (char *) "self",(char *) "id", NULL
25109 };
25110
25111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25113 if (!SWIG_IsOK(res1)) {
25114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25115 }
25116 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25117 ecode2 = SWIG_AsVal_int(obj1, &val2);
25118 if (!SWIG_IsOK(ecode2)) {
25119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25120 }
25121 arg2 = static_cast< int >(val2);
25122 {
25123 PyThreadState* __tstate = wxPyBeginAllowThreads();
25124 result = (arg1)->GetToolLongHelp(arg2);
25125 wxPyEndAllowThreads(__tstate);
25126 if (PyErr_Occurred()) SWIG_fail;
25127 }
25128 {
25129 #if wxUSE_UNICODE
25130 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25131 #else
25132 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25133 #endif
25134 }
25135 return resultobj;
25136 fail:
25137 return NULL;
25138 }
25139
25140
25141 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25142 PyObject *resultobj = 0;
25143 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25144 int arg2 ;
25145 int arg3 ;
25146 void *argp1 = 0 ;
25147 int res1 = 0 ;
25148 int val2 ;
25149 int ecode2 = 0 ;
25150 int val3 ;
25151 int ecode3 = 0 ;
25152 PyObject * obj0 = 0 ;
25153 PyObject * obj1 = 0 ;
25154 PyObject * obj2 = 0 ;
25155 char * kwnames[] = {
25156 (char *) "self",(char *) "x",(char *) "y", NULL
25157 };
25158
25159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25161 if (!SWIG_IsOK(res1)) {
25162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25163 }
25164 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25165 ecode2 = SWIG_AsVal_int(obj1, &val2);
25166 if (!SWIG_IsOK(ecode2)) {
25167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25168 }
25169 arg2 = static_cast< int >(val2);
25170 ecode3 = SWIG_AsVal_int(obj2, &val3);
25171 if (!SWIG_IsOK(ecode3)) {
25172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25173 }
25174 arg3 = static_cast< int >(val3);
25175 {
25176 PyThreadState* __tstate = wxPyBeginAllowThreads();
25177 (arg1)->SetMargins(arg2,arg3);
25178 wxPyEndAllowThreads(__tstate);
25179 if (PyErr_Occurred()) SWIG_fail;
25180 }
25181 resultobj = SWIG_Py_Void();
25182 return resultobj;
25183 fail:
25184 return NULL;
25185 }
25186
25187
25188 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25189 PyObject *resultobj = 0;
25190 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25191 wxSize *arg2 = 0 ;
25192 void *argp1 = 0 ;
25193 int res1 = 0 ;
25194 wxSize temp2 ;
25195 PyObject * obj0 = 0 ;
25196 PyObject * obj1 = 0 ;
25197 char * kwnames[] = {
25198 (char *) "self",(char *) "size", NULL
25199 };
25200
25201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25203 if (!SWIG_IsOK(res1)) {
25204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25205 }
25206 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25207 {
25208 arg2 = &temp2;
25209 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25210 }
25211 {
25212 PyThreadState* __tstate = wxPyBeginAllowThreads();
25213 (arg1)->SetMargins((wxSize const &)*arg2);
25214 wxPyEndAllowThreads(__tstate);
25215 if (PyErr_Occurred()) SWIG_fail;
25216 }
25217 resultobj = SWIG_Py_Void();
25218 return resultobj;
25219 fail:
25220 return NULL;
25221 }
25222
25223
25224 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25225 PyObject *resultobj = 0;
25226 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25227 int arg2 ;
25228 void *argp1 = 0 ;
25229 int res1 = 0 ;
25230 int val2 ;
25231 int ecode2 = 0 ;
25232 PyObject * obj0 = 0 ;
25233 PyObject * obj1 = 0 ;
25234 char * kwnames[] = {
25235 (char *) "self",(char *) "packing", NULL
25236 };
25237
25238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25240 if (!SWIG_IsOK(res1)) {
25241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25242 }
25243 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25244 ecode2 = SWIG_AsVal_int(obj1, &val2);
25245 if (!SWIG_IsOK(ecode2)) {
25246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25247 }
25248 arg2 = static_cast< int >(val2);
25249 {
25250 PyThreadState* __tstate = wxPyBeginAllowThreads();
25251 (arg1)->SetToolPacking(arg2);
25252 wxPyEndAllowThreads(__tstate);
25253 if (PyErr_Occurred()) SWIG_fail;
25254 }
25255 resultobj = SWIG_Py_Void();
25256 return resultobj;
25257 fail:
25258 return NULL;
25259 }
25260
25261
25262 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25263 PyObject *resultobj = 0;
25264 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25265 int arg2 ;
25266 void *argp1 = 0 ;
25267 int res1 = 0 ;
25268 int val2 ;
25269 int ecode2 = 0 ;
25270 PyObject * obj0 = 0 ;
25271 PyObject * obj1 = 0 ;
25272 char * kwnames[] = {
25273 (char *) "self",(char *) "separation", NULL
25274 };
25275
25276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25278 if (!SWIG_IsOK(res1)) {
25279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25280 }
25281 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25282 ecode2 = SWIG_AsVal_int(obj1, &val2);
25283 if (!SWIG_IsOK(ecode2)) {
25284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25285 }
25286 arg2 = static_cast< int >(val2);
25287 {
25288 PyThreadState* __tstate = wxPyBeginAllowThreads();
25289 (arg1)->SetToolSeparation(arg2);
25290 wxPyEndAllowThreads(__tstate);
25291 if (PyErr_Occurred()) SWIG_fail;
25292 }
25293 resultobj = SWIG_Py_Void();
25294 return resultobj;
25295 fail:
25296 return NULL;
25297 }
25298
25299
25300 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25301 PyObject *resultobj = 0;
25302 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25303 wxSize result;
25304 void *argp1 = 0 ;
25305 int res1 = 0 ;
25306 PyObject *swig_obj[1] ;
25307
25308 if (!args) SWIG_fail;
25309 swig_obj[0] = args;
25310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25311 if (!SWIG_IsOK(res1)) {
25312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25313 }
25314 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25315 {
25316 PyThreadState* __tstate = wxPyBeginAllowThreads();
25317 result = (arg1)->GetToolMargins();
25318 wxPyEndAllowThreads(__tstate);
25319 if (PyErr_Occurred()) SWIG_fail;
25320 }
25321 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25322 return resultobj;
25323 fail:
25324 return NULL;
25325 }
25326
25327
25328 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25329 PyObject *resultobj = 0;
25330 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25331 wxSize result;
25332 void *argp1 = 0 ;
25333 int res1 = 0 ;
25334 PyObject *swig_obj[1] ;
25335
25336 if (!args) SWIG_fail;
25337 swig_obj[0] = args;
25338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25339 if (!SWIG_IsOK(res1)) {
25340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25341 }
25342 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25343 {
25344 PyThreadState* __tstate = wxPyBeginAllowThreads();
25345 result = (arg1)->GetMargins();
25346 wxPyEndAllowThreads(__tstate);
25347 if (PyErr_Occurred()) SWIG_fail;
25348 }
25349 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25350 return resultobj;
25351 fail:
25352 return NULL;
25353 }
25354
25355
25356 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25357 PyObject *resultobj = 0;
25358 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25359 int result;
25360 void *argp1 = 0 ;
25361 int res1 = 0 ;
25362 PyObject *swig_obj[1] ;
25363
25364 if (!args) SWIG_fail;
25365 swig_obj[0] = args;
25366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25367 if (!SWIG_IsOK(res1)) {
25368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25369 }
25370 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25371 {
25372 PyThreadState* __tstate = wxPyBeginAllowThreads();
25373 result = (int)(arg1)->GetToolPacking();
25374 wxPyEndAllowThreads(__tstate);
25375 if (PyErr_Occurred()) SWIG_fail;
25376 }
25377 resultobj = SWIG_From_int(static_cast< int >(result));
25378 return resultobj;
25379 fail:
25380 return NULL;
25381 }
25382
25383
25384 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25385 PyObject *resultobj = 0;
25386 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25387 int result;
25388 void *argp1 = 0 ;
25389 int res1 = 0 ;
25390 PyObject *swig_obj[1] ;
25391
25392 if (!args) SWIG_fail;
25393 swig_obj[0] = args;
25394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25395 if (!SWIG_IsOK(res1)) {
25396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25397 }
25398 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25399 {
25400 PyThreadState* __tstate = wxPyBeginAllowThreads();
25401 result = (int)(arg1)->GetToolSeparation();
25402 wxPyEndAllowThreads(__tstate);
25403 if (PyErr_Occurred()) SWIG_fail;
25404 }
25405 resultobj = SWIG_From_int(static_cast< int >(result));
25406 return resultobj;
25407 fail:
25408 return NULL;
25409 }
25410
25411
25412 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25413 PyObject *resultobj = 0;
25414 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25415 int arg2 ;
25416 void *argp1 = 0 ;
25417 int res1 = 0 ;
25418 int val2 ;
25419 int ecode2 = 0 ;
25420 PyObject * obj0 = 0 ;
25421 PyObject * obj1 = 0 ;
25422 char * kwnames[] = {
25423 (char *) "self",(char *) "nRows", NULL
25424 };
25425
25426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25428 if (!SWIG_IsOK(res1)) {
25429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25430 }
25431 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25432 ecode2 = SWIG_AsVal_int(obj1, &val2);
25433 if (!SWIG_IsOK(ecode2)) {
25434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25435 }
25436 arg2 = static_cast< int >(val2);
25437 {
25438 PyThreadState* __tstate = wxPyBeginAllowThreads();
25439 (arg1)->SetRows(arg2);
25440 wxPyEndAllowThreads(__tstate);
25441 if (PyErr_Occurred()) SWIG_fail;
25442 }
25443 resultobj = SWIG_Py_Void();
25444 return resultobj;
25445 fail:
25446 return NULL;
25447 }
25448
25449
25450 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25451 PyObject *resultobj = 0;
25452 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25453 int arg2 ;
25454 int arg3 ;
25455 void *argp1 = 0 ;
25456 int res1 = 0 ;
25457 int val2 ;
25458 int ecode2 = 0 ;
25459 int val3 ;
25460 int ecode3 = 0 ;
25461 PyObject * obj0 = 0 ;
25462 PyObject * obj1 = 0 ;
25463 PyObject * obj2 = 0 ;
25464 char * kwnames[] = {
25465 (char *) "self",(char *) "rows",(char *) "cols", NULL
25466 };
25467
25468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25470 if (!SWIG_IsOK(res1)) {
25471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25472 }
25473 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25474 ecode2 = SWIG_AsVal_int(obj1, &val2);
25475 if (!SWIG_IsOK(ecode2)) {
25476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25477 }
25478 arg2 = static_cast< int >(val2);
25479 ecode3 = SWIG_AsVal_int(obj2, &val3);
25480 if (!SWIG_IsOK(ecode3)) {
25481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25482 }
25483 arg3 = static_cast< int >(val3);
25484 {
25485 PyThreadState* __tstate = wxPyBeginAllowThreads();
25486 (arg1)->SetMaxRowsCols(arg2,arg3);
25487 wxPyEndAllowThreads(__tstate);
25488 if (PyErr_Occurred()) SWIG_fail;
25489 }
25490 resultobj = SWIG_Py_Void();
25491 return resultobj;
25492 fail:
25493 return NULL;
25494 }
25495
25496
25497 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25498 PyObject *resultobj = 0;
25499 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25500 int result;
25501 void *argp1 = 0 ;
25502 int res1 = 0 ;
25503 PyObject *swig_obj[1] ;
25504
25505 if (!args) SWIG_fail;
25506 swig_obj[0] = args;
25507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25508 if (!SWIG_IsOK(res1)) {
25509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25510 }
25511 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25512 {
25513 PyThreadState* __tstate = wxPyBeginAllowThreads();
25514 result = (int)(arg1)->GetMaxRows();
25515 wxPyEndAllowThreads(__tstate);
25516 if (PyErr_Occurred()) SWIG_fail;
25517 }
25518 resultobj = SWIG_From_int(static_cast< int >(result));
25519 return resultobj;
25520 fail:
25521 return NULL;
25522 }
25523
25524
25525 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25526 PyObject *resultobj = 0;
25527 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25528 int result;
25529 void *argp1 = 0 ;
25530 int res1 = 0 ;
25531 PyObject *swig_obj[1] ;
25532
25533 if (!args) SWIG_fail;
25534 swig_obj[0] = args;
25535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25536 if (!SWIG_IsOK(res1)) {
25537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25538 }
25539 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25540 {
25541 PyThreadState* __tstate = wxPyBeginAllowThreads();
25542 result = (int)(arg1)->GetMaxCols();
25543 wxPyEndAllowThreads(__tstate);
25544 if (PyErr_Occurred()) SWIG_fail;
25545 }
25546 resultobj = SWIG_From_int(static_cast< int >(result));
25547 return resultobj;
25548 fail:
25549 return NULL;
25550 }
25551
25552
25553 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25554 PyObject *resultobj = 0;
25555 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25556 wxSize *arg2 = 0 ;
25557 void *argp1 = 0 ;
25558 int res1 = 0 ;
25559 wxSize temp2 ;
25560 PyObject * obj0 = 0 ;
25561 PyObject * obj1 = 0 ;
25562 char * kwnames[] = {
25563 (char *) "self",(char *) "size", NULL
25564 };
25565
25566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25568 if (!SWIG_IsOK(res1)) {
25569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25570 }
25571 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25572 {
25573 arg2 = &temp2;
25574 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25575 }
25576 {
25577 PyThreadState* __tstate = wxPyBeginAllowThreads();
25578 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25579 wxPyEndAllowThreads(__tstate);
25580 if (PyErr_Occurred()) SWIG_fail;
25581 }
25582 resultobj = SWIG_Py_Void();
25583 return resultobj;
25584 fail:
25585 return NULL;
25586 }
25587
25588
25589 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25590 PyObject *resultobj = 0;
25591 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25592 wxSize result;
25593 void *argp1 = 0 ;
25594 int res1 = 0 ;
25595 PyObject *swig_obj[1] ;
25596
25597 if (!args) SWIG_fail;
25598 swig_obj[0] = args;
25599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25600 if (!SWIG_IsOK(res1)) {
25601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25602 }
25603 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25604 {
25605 PyThreadState* __tstate = wxPyBeginAllowThreads();
25606 result = (arg1)->GetToolBitmapSize();
25607 wxPyEndAllowThreads(__tstate);
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
25610 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25611 return resultobj;
25612 fail:
25613 return NULL;
25614 }
25615
25616
25617 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25618 PyObject *resultobj = 0;
25619 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25620 wxSize result;
25621 void *argp1 = 0 ;
25622 int res1 = 0 ;
25623 PyObject *swig_obj[1] ;
25624
25625 if (!args) SWIG_fail;
25626 swig_obj[0] = args;
25627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25628 if (!SWIG_IsOK(res1)) {
25629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25630 }
25631 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25632 {
25633 PyThreadState* __tstate = wxPyBeginAllowThreads();
25634 result = (arg1)->GetToolSize();
25635 wxPyEndAllowThreads(__tstate);
25636 if (PyErr_Occurred()) SWIG_fail;
25637 }
25638 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25639 return resultobj;
25640 fail:
25641 return NULL;
25642 }
25643
25644
25645 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25646 PyObject *resultobj = 0;
25647 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25648 int arg2 ;
25649 int arg3 ;
25650 wxToolBarToolBase *result = 0 ;
25651 void *argp1 = 0 ;
25652 int res1 = 0 ;
25653 int val2 ;
25654 int ecode2 = 0 ;
25655 int val3 ;
25656 int ecode3 = 0 ;
25657 PyObject * obj0 = 0 ;
25658 PyObject * obj1 = 0 ;
25659 PyObject * obj2 = 0 ;
25660 char * kwnames[] = {
25661 (char *) "self",(char *) "x",(char *) "y", NULL
25662 };
25663
25664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25666 if (!SWIG_IsOK(res1)) {
25667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25668 }
25669 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25670 ecode2 = SWIG_AsVal_int(obj1, &val2);
25671 if (!SWIG_IsOK(ecode2)) {
25672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25673 }
25674 arg2 = static_cast< int >(val2);
25675 ecode3 = SWIG_AsVal_int(obj2, &val3);
25676 if (!SWIG_IsOK(ecode3)) {
25677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25678 }
25679 arg3 = static_cast< int >(val3);
25680 {
25681 PyThreadState* __tstate = wxPyBeginAllowThreads();
25682 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25683 wxPyEndAllowThreads(__tstate);
25684 if (PyErr_Occurred()) SWIG_fail;
25685 }
25686 {
25687 resultobj = wxPyMake_wxObject(result, (bool)0);
25688 }
25689 return resultobj;
25690 fail:
25691 return NULL;
25692 }
25693
25694
25695 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25696 PyObject *resultobj = 0;
25697 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25698 int arg2 ;
25699 wxToolBarToolBase *result = 0 ;
25700 void *argp1 = 0 ;
25701 int res1 = 0 ;
25702 int val2 ;
25703 int ecode2 = 0 ;
25704 PyObject * obj0 = 0 ;
25705 PyObject * obj1 = 0 ;
25706 char * kwnames[] = {
25707 (char *) "self",(char *) "toolid", NULL
25708 };
25709
25710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25712 if (!SWIG_IsOK(res1)) {
25713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25714 }
25715 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25716 ecode2 = SWIG_AsVal_int(obj1, &val2);
25717 if (!SWIG_IsOK(ecode2)) {
25718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25719 }
25720 arg2 = static_cast< int >(val2);
25721 {
25722 PyThreadState* __tstate = wxPyBeginAllowThreads();
25723 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25724 wxPyEndAllowThreads(__tstate);
25725 if (PyErr_Occurred()) SWIG_fail;
25726 }
25727 {
25728 resultobj = wxPyMake_wxObject(result, (bool)0);
25729 }
25730 return resultobj;
25731 fail:
25732 return NULL;
25733 }
25734
25735
25736 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25737 PyObject *resultobj = 0;
25738 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25739 bool result;
25740 void *argp1 = 0 ;
25741 int res1 = 0 ;
25742 PyObject *swig_obj[1] ;
25743
25744 if (!args) SWIG_fail;
25745 swig_obj[0] = args;
25746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25747 if (!SWIG_IsOK(res1)) {
25748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25749 }
25750 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25751 {
25752 PyThreadState* __tstate = wxPyBeginAllowThreads();
25753 result = (bool)(arg1)->IsVertical();
25754 wxPyEndAllowThreads(__tstate);
25755 if (PyErr_Occurred()) SWIG_fail;
25756 }
25757 {
25758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25759 }
25760 return resultobj;
25761 fail:
25762 return NULL;
25763 }
25764
25765
25766 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25767 PyObject *resultobj = 0;
25768 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25769 size_t result;
25770 void *argp1 = 0 ;
25771 int res1 = 0 ;
25772 PyObject *swig_obj[1] ;
25773
25774 if (!args) SWIG_fail;
25775 swig_obj[0] = args;
25776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25777 if (!SWIG_IsOK(res1)) {
25778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25779 }
25780 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25781 {
25782 PyThreadState* __tstate = wxPyBeginAllowThreads();
25783 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25784 wxPyEndAllowThreads(__tstate);
25785 if (PyErr_Occurred()) SWIG_fail;
25786 }
25787 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25788 return resultobj;
25789 fail:
25790 return NULL;
25791 }
25792
25793
25794 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25795 PyObject *obj;
25796 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25797 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25798 return SWIG_Py_Void();
25799 }
25800
25801 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25802 PyObject *resultobj = 0;
25803 wxWindow *arg1 = (wxWindow *) 0 ;
25804 int arg2 = (int) -1 ;
25805 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25806 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25807 wxSize const &arg4_defvalue = wxDefaultSize ;
25808 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25809 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25810 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25811 wxString *arg6 = (wxString *) &arg6_defvalue ;
25812 wxToolBar *result = 0 ;
25813 void *argp1 = 0 ;
25814 int res1 = 0 ;
25815 int val2 ;
25816 int ecode2 = 0 ;
25817 wxPoint temp3 ;
25818 wxSize temp4 ;
25819 long val5 ;
25820 int ecode5 = 0 ;
25821 bool temp6 = false ;
25822 PyObject * obj0 = 0 ;
25823 PyObject * obj1 = 0 ;
25824 PyObject * obj2 = 0 ;
25825 PyObject * obj3 = 0 ;
25826 PyObject * obj4 = 0 ;
25827 PyObject * obj5 = 0 ;
25828 char * kwnames[] = {
25829 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25830 };
25831
25832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25834 if (!SWIG_IsOK(res1)) {
25835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25836 }
25837 arg1 = reinterpret_cast< wxWindow * >(argp1);
25838 if (obj1) {
25839 ecode2 = SWIG_AsVal_int(obj1, &val2);
25840 if (!SWIG_IsOK(ecode2)) {
25841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25842 }
25843 arg2 = static_cast< int >(val2);
25844 }
25845 if (obj2) {
25846 {
25847 arg3 = &temp3;
25848 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25849 }
25850 }
25851 if (obj3) {
25852 {
25853 arg4 = &temp4;
25854 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25855 }
25856 }
25857 if (obj4) {
25858 ecode5 = SWIG_AsVal_long(obj4, &val5);
25859 if (!SWIG_IsOK(ecode5)) {
25860 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25861 }
25862 arg5 = static_cast< long >(val5);
25863 }
25864 if (obj5) {
25865 {
25866 arg6 = wxString_in_helper(obj5);
25867 if (arg6 == NULL) SWIG_fail;
25868 temp6 = true;
25869 }
25870 }
25871 {
25872 if (!wxPyCheckForApp()) SWIG_fail;
25873 PyThreadState* __tstate = wxPyBeginAllowThreads();
25874 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25875 wxPyEndAllowThreads(__tstate);
25876 if (PyErr_Occurred()) SWIG_fail;
25877 }
25878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25879 {
25880 if (temp6)
25881 delete arg6;
25882 }
25883 return resultobj;
25884 fail:
25885 {
25886 if (temp6)
25887 delete arg6;
25888 }
25889 return NULL;
25890 }
25891
25892
25893 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25894 PyObject *resultobj = 0;
25895 wxToolBar *result = 0 ;
25896
25897 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25898 {
25899 if (!wxPyCheckForApp()) SWIG_fail;
25900 PyThreadState* __tstate = wxPyBeginAllowThreads();
25901 result = (wxToolBar *)new wxToolBar();
25902 wxPyEndAllowThreads(__tstate);
25903 if (PyErr_Occurred()) SWIG_fail;
25904 }
25905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25906 return resultobj;
25907 fail:
25908 return NULL;
25909 }
25910
25911
25912 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25913 PyObject *resultobj = 0;
25914 wxToolBar *arg1 = (wxToolBar *) 0 ;
25915 wxWindow *arg2 = (wxWindow *) 0 ;
25916 int arg3 = (int) -1 ;
25917 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25918 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25919 wxSize const &arg5_defvalue = wxDefaultSize ;
25920 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25921 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25922 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25923 wxString *arg7 = (wxString *) &arg7_defvalue ;
25924 bool result;
25925 void *argp1 = 0 ;
25926 int res1 = 0 ;
25927 void *argp2 = 0 ;
25928 int res2 = 0 ;
25929 int val3 ;
25930 int ecode3 = 0 ;
25931 wxPoint temp4 ;
25932 wxSize temp5 ;
25933 long val6 ;
25934 int ecode6 = 0 ;
25935 bool temp7 = false ;
25936 PyObject * obj0 = 0 ;
25937 PyObject * obj1 = 0 ;
25938 PyObject * obj2 = 0 ;
25939 PyObject * obj3 = 0 ;
25940 PyObject * obj4 = 0 ;
25941 PyObject * obj5 = 0 ;
25942 PyObject * obj6 = 0 ;
25943 char * kwnames[] = {
25944 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25945 };
25946
25947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25949 if (!SWIG_IsOK(res1)) {
25950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25951 }
25952 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25953 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25954 if (!SWIG_IsOK(res2)) {
25955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25956 }
25957 arg2 = reinterpret_cast< wxWindow * >(argp2);
25958 if (obj2) {
25959 ecode3 = SWIG_AsVal_int(obj2, &val3);
25960 if (!SWIG_IsOK(ecode3)) {
25961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25962 }
25963 arg3 = static_cast< int >(val3);
25964 }
25965 if (obj3) {
25966 {
25967 arg4 = &temp4;
25968 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25969 }
25970 }
25971 if (obj4) {
25972 {
25973 arg5 = &temp5;
25974 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25975 }
25976 }
25977 if (obj5) {
25978 ecode6 = SWIG_AsVal_long(obj5, &val6);
25979 if (!SWIG_IsOK(ecode6)) {
25980 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25981 }
25982 arg6 = static_cast< long >(val6);
25983 }
25984 if (obj6) {
25985 {
25986 arg7 = wxString_in_helper(obj6);
25987 if (arg7 == NULL) SWIG_fail;
25988 temp7 = true;
25989 }
25990 }
25991 {
25992 PyThreadState* __tstate = wxPyBeginAllowThreads();
25993 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25994 wxPyEndAllowThreads(__tstate);
25995 if (PyErr_Occurred()) SWIG_fail;
25996 }
25997 {
25998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25999 }
26000 {
26001 if (temp7)
26002 delete arg7;
26003 }
26004 return resultobj;
26005 fail:
26006 {
26007 if (temp7)
26008 delete arg7;
26009 }
26010 return NULL;
26011 }
26012
26013
26014 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26015 PyObject *resultobj = 0;
26016 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26017 SwigValueWrapper<wxVisualAttributes > result;
26018 int val1 ;
26019 int ecode1 = 0 ;
26020 PyObject * obj0 = 0 ;
26021 char * kwnames[] = {
26022 (char *) "variant", NULL
26023 };
26024
26025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26026 if (obj0) {
26027 ecode1 = SWIG_AsVal_int(obj0, &val1);
26028 if (!SWIG_IsOK(ecode1)) {
26029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26030 }
26031 arg1 = static_cast< wxWindowVariant >(val1);
26032 }
26033 {
26034 if (!wxPyCheckForApp()) SWIG_fail;
26035 PyThreadState* __tstate = wxPyBeginAllowThreads();
26036 result = wxToolBar::GetClassDefaultAttributes(arg1);
26037 wxPyEndAllowThreads(__tstate);
26038 if (PyErr_Occurred()) SWIG_fail;
26039 }
26040 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26041 return resultobj;
26042 fail:
26043 return NULL;
26044 }
26045
26046
26047 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26048 PyObject *obj;
26049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26050 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26051 return SWIG_Py_Void();
26052 }
26053
26054 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26055 return SWIG_Python_InitShadowInstance(args);
26056 }
26057
26058 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26059 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26060 return 1;
26061 }
26062
26063
26064 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26065 PyObject *pyobj = 0;
26066
26067 {
26068 #if wxUSE_UNICODE
26069 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26070 #else
26071 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26072 #endif
26073 }
26074 return pyobj;
26075 }
26076
26077
26078 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26079 PyObject *resultobj = 0;
26080 wxColour const &arg1_defvalue = wxNullColour ;
26081 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26082 wxColour const &arg2_defvalue = wxNullColour ;
26083 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26084 wxFont const &arg3_defvalue = wxNullFont ;
26085 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26086 wxListItemAttr *result = 0 ;
26087 wxColour temp1 ;
26088 wxColour temp2 ;
26089 void *argp3 = 0 ;
26090 int res3 = 0 ;
26091 PyObject * obj0 = 0 ;
26092 PyObject * obj1 = 0 ;
26093 PyObject * obj2 = 0 ;
26094 char * kwnames[] = {
26095 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26096 };
26097
26098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26099 if (obj0) {
26100 {
26101 arg1 = &temp1;
26102 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26103 }
26104 }
26105 if (obj1) {
26106 {
26107 arg2 = &temp2;
26108 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26109 }
26110 }
26111 if (obj2) {
26112 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26113 if (!SWIG_IsOK(res3)) {
26114 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26115 }
26116 if (!argp3) {
26117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26118 }
26119 arg3 = reinterpret_cast< wxFont * >(argp3);
26120 }
26121 {
26122 PyThreadState* __tstate = wxPyBeginAllowThreads();
26123 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26124 wxPyEndAllowThreads(__tstate);
26125 if (PyErr_Occurred()) SWIG_fail;
26126 }
26127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26128 return resultobj;
26129 fail:
26130 return NULL;
26131 }
26132
26133
26134 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26135 PyObject *resultobj = 0;
26136 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26137 void *argp1 = 0 ;
26138 int res1 = 0 ;
26139 PyObject *swig_obj[1] ;
26140
26141 if (!args) SWIG_fail;
26142 swig_obj[0] = args;
26143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26144 if (!SWIG_IsOK(res1)) {
26145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26146 }
26147 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26148 {
26149 PyThreadState* __tstate = wxPyBeginAllowThreads();
26150 delete arg1;
26151
26152 wxPyEndAllowThreads(__tstate);
26153 if (PyErr_Occurred()) SWIG_fail;
26154 }
26155 resultobj = SWIG_Py_Void();
26156 return resultobj;
26157 fail:
26158 return NULL;
26159 }
26160
26161
26162 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26163 PyObject *resultobj = 0;
26164 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26165 wxColour *arg2 = 0 ;
26166 void *argp1 = 0 ;
26167 int res1 = 0 ;
26168 wxColour temp2 ;
26169 PyObject * obj0 = 0 ;
26170 PyObject * obj1 = 0 ;
26171 char * kwnames[] = {
26172 (char *) "self",(char *) "colText", NULL
26173 };
26174
26175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",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_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26179 }
26180 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26181 {
26182 arg2 = &temp2;
26183 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26184 }
26185 {
26186 PyThreadState* __tstate = wxPyBeginAllowThreads();
26187 (arg1)->SetTextColour((wxColour const &)*arg2);
26188 wxPyEndAllowThreads(__tstate);
26189 if (PyErr_Occurred()) SWIG_fail;
26190 }
26191 resultobj = SWIG_Py_Void();
26192 return resultobj;
26193 fail:
26194 return NULL;
26195 }
26196
26197
26198 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26199 PyObject *resultobj = 0;
26200 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26201 wxColour *arg2 = 0 ;
26202 void *argp1 = 0 ;
26203 int res1 = 0 ;
26204 wxColour temp2 ;
26205 PyObject * obj0 = 0 ;
26206 PyObject * obj1 = 0 ;
26207 char * kwnames[] = {
26208 (char *) "self",(char *) "colBack", NULL
26209 };
26210
26211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26213 if (!SWIG_IsOK(res1)) {
26214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26215 }
26216 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26217 {
26218 arg2 = &temp2;
26219 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26220 }
26221 {
26222 PyThreadState* __tstate = wxPyBeginAllowThreads();
26223 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26224 wxPyEndAllowThreads(__tstate);
26225 if (PyErr_Occurred()) SWIG_fail;
26226 }
26227 resultobj = SWIG_Py_Void();
26228 return resultobj;
26229 fail:
26230 return NULL;
26231 }
26232
26233
26234 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26235 PyObject *resultobj = 0;
26236 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26237 wxFont *arg2 = 0 ;
26238 void *argp1 = 0 ;
26239 int res1 = 0 ;
26240 void *argp2 = 0 ;
26241 int res2 = 0 ;
26242 PyObject * obj0 = 0 ;
26243 PyObject * obj1 = 0 ;
26244 char * kwnames[] = {
26245 (char *) "self",(char *) "font", NULL
26246 };
26247
26248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26250 if (!SWIG_IsOK(res1)) {
26251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26252 }
26253 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26255 if (!SWIG_IsOK(res2)) {
26256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26257 }
26258 if (!argp2) {
26259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26260 }
26261 arg2 = reinterpret_cast< wxFont * >(argp2);
26262 {
26263 PyThreadState* __tstate = wxPyBeginAllowThreads();
26264 (arg1)->SetFont((wxFont const &)*arg2);
26265 wxPyEndAllowThreads(__tstate);
26266 if (PyErr_Occurred()) SWIG_fail;
26267 }
26268 resultobj = SWIG_Py_Void();
26269 return resultobj;
26270 fail:
26271 return NULL;
26272 }
26273
26274
26275 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26276 PyObject *resultobj = 0;
26277 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26278 bool result;
26279 void *argp1 = 0 ;
26280 int res1 = 0 ;
26281 PyObject *swig_obj[1] ;
26282
26283 if (!args) SWIG_fail;
26284 swig_obj[0] = args;
26285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26286 if (!SWIG_IsOK(res1)) {
26287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26288 }
26289 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26290 {
26291 PyThreadState* __tstate = wxPyBeginAllowThreads();
26292 result = (bool)(arg1)->HasTextColour();
26293 wxPyEndAllowThreads(__tstate);
26294 if (PyErr_Occurred()) SWIG_fail;
26295 }
26296 {
26297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26298 }
26299 return resultobj;
26300 fail:
26301 return NULL;
26302 }
26303
26304
26305 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26306 PyObject *resultobj = 0;
26307 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26308 bool result;
26309 void *argp1 = 0 ;
26310 int res1 = 0 ;
26311 PyObject *swig_obj[1] ;
26312
26313 if (!args) SWIG_fail;
26314 swig_obj[0] = args;
26315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26316 if (!SWIG_IsOK(res1)) {
26317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26318 }
26319 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26320 {
26321 PyThreadState* __tstate = wxPyBeginAllowThreads();
26322 result = (bool)(arg1)->HasBackgroundColour();
26323 wxPyEndAllowThreads(__tstate);
26324 if (PyErr_Occurred()) SWIG_fail;
26325 }
26326 {
26327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26328 }
26329 return resultobj;
26330 fail:
26331 return NULL;
26332 }
26333
26334
26335 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26336 PyObject *resultobj = 0;
26337 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26338 bool result;
26339 void *argp1 = 0 ;
26340 int res1 = 0 ;
26341 PyObject *swig_obj[1] ;
26342
26343 if (!args) SWIG_fail;
26344 swig_obj[0] = args;
26345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26346 if (!SWIG_IsOK(res1)) {
26347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26348 }
26349 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26350 {
26351 PyThreadState* __tstate = wxPyBeginAllowThreads();
26352 result = (bool)(arg1)->HasFont();
26353 wxPyEndAllowThreads(__tstate);
26354 if (PyErr_Occurred()) SWIG_fail;
26355 }
26356 {
26357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26358 }
26359 return resultobj;
26360 fail:
26361 return NULL;
26362 }
26363
26364
26365 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26366 PyObject *resultobj = 0;
26367 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26368 wxColour result;
26369 void *argp1 = 0 ;
26370 int res1 = 0 ;
26371 PyObject *swig_obj[1] ;
26372
26373 if (!args) SWIG_fail;
26374 swig_obj[0] = args;
26375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26376 if (!SWIG_IsOK(res1)) {
26377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26378 }
26379 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26380 {
26381 PyThreadState* __tstate = wxPyBeginAllowThreads();
26382 result = (arg1)->GetTextColour();
26383 wxPyEndAllowThreads(__tstate);
26384 if (PyErr_Occurred()) SWIG_fail;
26385 }
26386 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26387 return resultobj;
26388 fail:
26389 return NULL;
26390 }
26391
26392
26393 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26394 PyObject *resultobj = 0;
26395 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26396 wxColour result;
26397 void *argp1 = 0 ;
26398 int res1 = 0 ;
26399 PyObject *swig_obj[1] ;
26400
26401 if (!args) SWIG_fail;
26402 swig_obj[0] = args;
26403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26404 if (!SWIG_IsOK(res1)) {
26405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26406 }
26407 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26408 {
26409 PyThreadState* __tstate = wxPyBeginAllowThreads();
26410 result = (arg1)->GetBackgroundColour();
26411 wxPyEndAllowThreads(__tstate);
26412 if (PyErr_Occurred()) SWIG_fail;
26413 }
26414 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26415 return resultobj;
26416 fail:
26417 return NULL;
26418 }
26419
26420
26421 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26422 PyObject *resultobj = 0;
26423 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26424 wxFont result;
26425 void *argp1 = 0 ;
26426 int res1 = 0 ;
26427 PyObject *swig_obj[1] ;
26428
26429 if (!args) SWIG_fail;
26430 swig_obj[0] = args;
26431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26432 if (!SWIG_IsOK(res1)) {
26433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26434 }
26435 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26436 {
26437 PyThreadState* __tstate = wxPyBeginAllowThreads();
26438 result = (arg1)->GetFont();
26439 wxPyEndAllowThreads(__tstate);
26440 if (PyErr_Occurred()) SWIG_fail;
26441 }
26442 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26443 return resultobj;
26444 fail:
26445 return NULL;
26446 }
26447
26448
26449 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26450 PyObject *resultobj = 0;
26451 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26452 wxListItemAttr *arg2 = 0 ;
26453 void *argp1 = 0 ;
26454 int res1 = 0 ;
26455 void *argp2 = 0 ;
26456 int res2 = 0 ;
26457 PyObject * obj0 = 0 ;
26458 PyObject * obj1 = 0 ;
26459 char * kwnames[] = {
26460 (char *) "self",(char *) "source", NULL
26461 };
26462
26463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26465 if (!SWIG_IsOK(res1)) {
26466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26467 }
26468 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26469 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26470 if (!SWIG_IsOK(res2)) {
26471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26472 }
26473 if (!argp2) {
26474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26475 }
26476 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26477 {
26478 PyThreadState* __tstate = wxPyBeginAllowThreads();
26479 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26480 wxPyEndAllowThreads(__tstate);
26481 if (PyErr_Occurred()) SWIG_fail;
26482 }
26483 resultobj = SWIG_Py_Void();
26484 return resultobj;
26485 fail:
26486 return NULL;
26487 }
26488
26489
26490 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26491 PyObject *resultobj = 0;
26492 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26493 void *argp1 = 0 ;
26494 int res1 = 0 ;
26495 PyObject *swig_obj[1] ;
26496
26497 if (!args) SWIG_fail;
26498 swig_obj[0] = args;
26499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26500 if (!SWIG_IsOK(res1)) {
26501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26502 }
26503 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26504 {
26505 PyThreadState* __tstate = wxPyBeginAllowThreads();
26506 wxListItemAttr_Destroy(arg1);
26507 wxPyEndAllowThreads(__tstate);
26508 if (PyErr_Occurred()) SWIG_fail;
26509 }
26510 resultobj = SWIG_Py_Void();
26511 return resultobj;
26512 fail:
26513 return NULL;
26514 }
26515
26516
26517 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26518 PyObject *obj;
26519 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26520 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26521 return SWIG_Py_Void();
26522 }
26523
26524 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26525 return SWIG_Python_InitShadowInstance(args);
26526 }
26527
26528 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26529 PyObject *resultobj = 0;
26530 wxListItem *result = 0 ;
26531
26532 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26533 {
26534 PyThreadState* __tstate = wxPyBeginAllowThreads();
26535 result = (wxListItem *)new wxListItem();
26536 wxPyEndAllowThreads(__tstate);
26537 if (PyErr_Occurred()) SWIG_fail;
26538 }
26539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26540 return resultobj;
26541 fail:
26542 return NULL;
26543 }
26544
26545
26546 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26547 PyObject *resultobj = 0;
26548 wxListItem *arg1 = (wxListItem *) 0 ;
26549 void *argp1 = 0 ;
26550 int res1 = 0 ;
26551 PyObject *swig_obj[1] ;
26552
26553 if (!args) SWIG_fail;
26554 swig_obj[0] = args;
26555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26556 if (!SWIG_IsOK(res1)) {
26557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26558 }
26559 arg1 = reinterpret_cast< wxListItem * >(argp1);
26560 {
26561 PyThreadState* __tstate = wxPyBeginAllowThreads();
26562 delete arg1;
26563
26564 wxPyEndAllowThreads(__tstate);
26565 if (PyErr_Occurred()) SWIG_fail;
26566 }
26567 resultobj = SWIG_Py_Void();
26568 return resultobj;
26569 fail:
26570 return NULL;
26571 }
26572
26573
26574 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26575 PyObject *resultobj = 0;
26576 wxListItem *arg1 = (wxListItem *) 0 ;
26577 void *argp1 = 0 ;
26578 int res1 = 0 ;
26579 PyObject *swig_obj[1] ;
26580
26581 if (!args) SWIG_fail;
26582 swig_obj[0] = args;
26583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26584 if (!SWIG_IsOK(res1)) {
26585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26586 }
26587 arg1 = reinterpret_cast< wxListItem * >(argp1);
26588 {
26589 PyThreadState* __tstate = wxPyBeginAllowThreads();
26590 (arg1)->Clear();
26591 wxPyEndAllowThreads(__tstate);
26592 if (PyErr_Occurred()) SWIG_fail;
26593 }
26594 resultobj = SWIG_Py_Void();
26595 return resultobj;
26596 fail:
26597 return NULL;
26598 }
26599
26600
26601 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26602 PyObject *resultobj = 0;
26603 wxListItem *arg1 = (wxListItem *) 0 ;
26604 void *argp1 = 0 ;
26605 int res1 = 0 ;
26606 PyObject *swig_obj[1] ;
26607
26608 if (!args) SWIG_fail;
26609 swig_obj[0] = args;
26610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26611 if (!SWIG_IsOK(res1)) {
26612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26613 }
26614 arg1 = reinterpret_cast< wxListItem * >(argp1);
26615 {
26616 PyThreadState* __tstate = wxPyBeginAllowThreads();
26617 (arg1)->ClearAttributes();
26618 wxPyEndAllowThreads(__tstate);
26619 if (PyErr_Occurred()) SWIG_fail;
26620 }
26621 resultobj = SWIG_Py_Void();
26622 return resultobj;
26623 fail:
26624 return NULL;
26625 }
26626
26627
26628 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26629 PyObject *resultobj = 0;
26630 wxListItem *arg1 = (wxListItem *) 0 ;
26631 long arg2 ;
26632 void *argp1 = 0 ;
26633 int res1 = 0 ;
26634 long val2 ;
26635 int ecode2 = 0 ;
26636 PyObject * obj0 = 0 ;
26637 PyObject * obj1 = 0 ;
26638 char * kwnames[] = {
26639 (char *) "self",(char *) "mask", NULL
26640 };
26641
26642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26644 if (!SWIG_IsOK(res1)) {
26645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26646 }
26647 arg1 = reinterpret_cast< wxListItem * >(argp1);
26648 ecode2 = SWIG_AsVal_long(obj1, &val2);
26649 if (!SWIG_IsOK(ecode2)) {
26650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26651 }
26652 arg2 = static_cast< long >(val2);
26653 {
26654 PyThreadState* __tstate = wxPyBeginAllowThreads();
26655 (arg1)->SetMask(arg2);
26656 wxPyEndAllowThreads(__tstate);
26657 if (PyErr_Occurred()) SWIG_fail;
26658 }
26659 resultobj = SWIG_Py_Void();
26660 return resultobj;
26661 fail:
26662 return NULL;
26663 }
26664
26665
26666 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26667 PyObject *resultobj = 0;
26668 wxListItem *arg1 = (wxListItem *) 0 ;
26669 long arg2 ;
26670 void *argp1 = 0 ;
26671 int res1 = 0 ;
26672 long val2 ;
26673 int ecode2 = 0 ;
26674 PyObject * obj0 = 0 ;
26675 PyObject * obj1 = 0 ;
26676 char * kwnames[] = {
26677 (char *) "self",(char *) "id", NULL
26678 };
26679
26680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26682 if (!SWIG_IsOK(res1)) {
26683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26684 }
26685 arg1 = reinterpret_cast< wxListItem * >(argp1);
26686 ecode2 = SWIG_AsVal_long(obj1, &val2);
26687 if (!SWIG_IsOK(ecode2)) {
26688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26689 }
26690 arg2 = static_cast< long >(val2);
26691 {
26692 PyThreadState* __tstate = wxPyBeginAllowThreads();
26693 (arg1)->SetId(arg2);
26694 wxPyEndAllowThreads(__tstate);
26695 if (PyErr_Occurred()) SWIG_fail;
26696 }
26697 resultobj = SWIG_Py_Void();
26698 return resultobj;
26699 fail:
26700 return NULL;
26701 }
26702
26703
26704 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26705 PyObject *resultobj = 0;
26706 wxListItem *arg1 = (wxListItem *) 0 ;
26707 int arg2 ;
26708 void *argp1 = 0 ;
26709 int res1 = 0 ;
26710 int val2 ;
26711 int ecode2 = 0 ;
26712 PyObject * obj0 = 0 ;
26713 PyObject * obj1 = 0 ;
26714 char * kwnames[] = {
26715 (char *) "self",(char *) "col", NULL
26716 };
26717
26718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26720 if (!SWIG_IsOK(res1)) {
26721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26722 }
26723 arg1 = reinterpret_cast< wxListItem * >(argp1);
26724 ecode2 = SWIG_AsVal_int(obj1, &val2);
26725 if (!SWIG_IsOK(ecode2)) {
26726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26727 }
26728 arg2 = static_cast< int >(val2);
26729 {
26730 PyThreadState* __tstate = wxPyBeginAllowThreads();
26731 (arg1)->SetColumn(arg2);
26732 wxPyEndAllowThreads(__tstate);
26733 if (PyErr_Occurred()) SWIG_fail;
26734 }
26735 resultobj = SWIG_Py_Void();
26736 return resultobj;
26737 fail:
26738 return NULL;
26739 }
26740
26741
26742 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26743 PyObject *resultobj = 0;
26744 wxListItem *arg1 = (wxListItem *) 0 ;
26745 long arg2 ;
26746 void *argp1 = 0 ;
26747 int res1 = 0 ;
26748 long val2 ;
26749 int ecode2 = 0 ;
26750 PyObject * obj0 = 0 ;
26751 PyObject * obj1 = 0 ;
26752 char * kwnames[] = {
26753 (char *) "self",(char *) "state", NULL
26754 };
26755
26756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26758 if (!SWIG_IsOK(res1)) {
26759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26760 }
26761 arg1 = reinterpret_cast< wxListItem * >(argp1);
26762 ecode2 = SWIG_AsVal_long(obj1, &val2);
26763 if (!SWIG_IsOK(ecode2)) {
26764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26765 }
26766 arg2 = static_cast< long >(val2);
26767 {
26768 PyThreadState* __tstate = wxPyBeginAllowThreads();
26769 (arg1)->SetState(arg2);
26770 wxPyEndAllowThreads(__tstate);
26771 if (PyErr_Occurred()) SWIG_fail;
26772 }
26773 resultobj = SWIG_Py_Void();
26774 return resultobj;
26775 fail:
26776 return NULL;
26777 }
26778
26779
26780 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26781 PyObject *resultobj = 0;
26782 wxListItem *arg1 = (wxListItem *) 0 ;
26783 long arg2 ;
26784 void *argp1 = 0 ;
26785 int res1 = 0 ;
26786 long val2 ;
26787 int ecode2 = 0 ;
26788 PyObject * obj0 = 0 ;
26789 PyObject * obj1 = 0 ;
26790 char * kwnames[] = {
26791 (char *) "self",(char *) "stateMask", NULL
26792 };
26793
26794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26796 if (!SWIG_IsOK(res1)) {
26797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26798 }
26799 arg1 = reinterpret_cast< wxListItem * >(argp1);
26800 ecode2 = SWIG_AsVal_long(obj1, &val2);
26801 if (!SWIG_IsOK(ecode2)) {
26802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26803 }
26804 arg2 = static_cast< long >(val2);
26805 {
26806 PyThreadState* __tstate = wxPyBeginAllowThreads();
26807 (arg1)->SetStateMask(arg2);
26808 wxPyEndAllowThreads(__tstate);
26809 if (PyErr_Occurred()) SWIG_fail;
26810 }
26811 resultobj = SWIG_Py_Void();
26812 return resultobj;
26813 fail:
26814 return NULL;
26815 }
26816
26817
26818 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26819 PyObject *resultobj = 0;
26820 wxListItem *arg1 = (wxListItem *) 0 ;
26821 wxString *arg2 = 0 ;
26822 void *argp1 = 0 ;
26823 int res1 = 0 ;
26824 bool temp2 = false ;
26825 PyObject * obj0 = 0 ;
26826 PyObject * obj1 = 0 ;
26827 char * kwnames[] = {
26828 (char *) "self",(char *) "text", NULL
26829 };
26830
26831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26833 if (!SWIG_IsOK(res1)) {
26834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26835 }
26836 arg1 = reinterpret_cast< wxListItem * >(argp1);
26837 {
26838 arg2 = wxString_in_helper(obj1);
26839 if (arg2 == NULL) SWIG_fail;
26840 temp2 = true;
26841 }
26842 {
26843 PyThreadState* __tstate = wxPyBeginAllowThreads();
26844 (arg1)->SetText((wxString const &)*arg2);
26845 wxPyEndAllowThreads(__tstate);
26846 if (PyErr_Occurred()) SWIG_fail;
26847 }
26848 resultobj = SWIG_Py_Void();
26849 {
26850 if (temp2)
26851 delete arg2;
26852 }
26853 return resultobj;
26854 fail:
26855 {
26856 if (temp2)
26857 delete arg2;
26858 }
26859 return NULL;
26860 }
26861
26862
26863 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26864 PyObject *resultobj = 0;
26865 wxListItem *arg1 = (wxListItem *) 0 ;
26866 int arg2 ;
26867 void *argp1 = 0 ;
26868 int res1 = 0 ;
26869 int val2 ;
26870 int ecode2 = 0 ;
26871 PyObject * obj0 = 0 ;
26872 PyObject * obj1 = 0 ;
26873 char * kwnames[] = {
26874 (char *) "self",(char *) "image", NULL
26875 };
26876
26877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26879 if (!SWIG_IsOK(res1)) {
26880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26881 }
26882 arg1 = reinterpret_cast< wxListItem * >(argp1);
26883 ecode2 = SWIG_AsVal_int(obj1, &val2);
26884 if (!SWIG_IsOK(ecode2)) {
26885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26886 }
26887 arg2 = static_cast< int >(val2);
26888 {
26889 PyThreadState* __tstate = wxPyBeginAllowThreads();
26890 (arg1)->SetImage(arg2);
26891 wxPyEndAllowThreads(__tstate);
26892 if (PyErr_Occurred()) SWIG_fail;
26893 }
26894 resultobj = SWIG_Py_Void();
26895 return resultobj;
26896 fail:
26897 return NULL;
26898 }
26899
26900
26901 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26902 PyObject *resultobj = 0;
26903 wxListItem *arg1 = (wxListItem *) 0 ;
26904 long arg2 ;
26905 void *argp1 = 0 ;
26906 int res1 = 0 ;
26907 long val2 ;
26908 int ecode2 = 0 ;
26909 PyObject * obj0 = 0 ;
26910 PyObject * obj1 = 0 ;
26911 char * kwnames[] = {
26912 (char *) "self",(char *) "data", NULL
26913 };
26914
26915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26917 if (!SWIG_IsOK(res1)) {
26918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26919 }
26920 arg1 = reinterpret_cast< wxListItem * >(argp1);
26921 ecode2 = SWIG_AsVal_long(obj1, &val2);
26922 if (!SWIG_IsOK(ecode2)) {
26923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26924 }
26925 arg2 = static_cast< long >(val2);
26926 {
26927 PyThreadState* __tstate = wxPyBeginAllowThreads();
26928 (arg1)->SetData(arg2);
26929 wxPyEndAllowThreads(__tstate);
26930 if (PyErr_Occurred()) SWIG_fail;
26931 }
26932 resultobj = SWIG_Py_Void();
26933 return resultobj;
26934 fail:
26935 return NULL;
26936 }
26937
26938
26939 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26940 PyObject *resultobj = 0;
26941 wxListItem *arg1 = (wxListItem *) 0 ;
26942 int arg2 ;
26943 void *argp1 = 0 ;
26944 int res1 = 0 ;
26945 int val2 ;
26946 int ecode2 = 0 ;
26947 PyObject * obj0 = 0 ;
26948 PyObject * obj1 = 0 ;
26949 char * kwnames[] = {
26950 (char *) "self",(char *) "width", NULL
26951 };
26952
26953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26955 if (!SWIG_IsOK(res1)) {
26956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26957 }
26958 arg1 = reinterpret_cast< wxListItem * >(argp1);
26959 ecode2 = SWIG_AsVal_int(obj1, &val2);
26960 if (!SWIG_IsOK(ecode2)) {
26961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26962 }
26963 arg2 = static_cast< int >(val2);
26964 {
26965 PyThreadState* __tstate = wxPyBeginAllowThreads();
26966 (arg1)->SetWidth(arg2);
26967 wxPyEndAllowThreads(__tstate);
26968 if (PyErr_Occurred()) SWIG_fail;
26969 }
26970 resultobj = SWIG_Py_Void();
26971 return resultobj;
26972 fail:
26973 return NULL;
26974 }
26975
26976
26977 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26978 PyObject *resultobj = 0;
26979 wxListItem *arg1 = (wxListItem *) 0 ;
26980 wxListColumnFormat arg2 ;
26981 void *argp1 = 0 ;
26982 int res1 = 0 ;
26983 int val2 ;
26984 int ecode2 = 0 ;
26985 PyObject * obj0 = 0 ;
26986 PyObject * obj1 = 0 ;
26987 char * kwnames[] = {
26988 (char *) "self",(char *) "align", NULL
26989 };
26990
26991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",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_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26995 }
26996 arg1 = reinterpret_cast< wxListItem * >(argp1);
26997 ecode2 = SWIG_AsVal_int(obj1, &val2);
26998 if (!SWIG_IsOK(ecode2)) {
26999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27000 }
27001 arg2 = static_cast< wxListColumnFormat >(val2);
27002 {
27003 PyThreadState* __tstate = wxPyBeginAllowThreads();
27004 (arg1)->SetAlign(arg2);
27005 wxPyEndAllowThreads(__tstate);
27006 if (PyErr_Occurred()) SWIG_fail;
27007 }
27008 resultobj = SWIG_Py_Void();
27009 return resultobj;
27010 fail:
27011 return NULL;
27012 }
27013
27014
27015 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27016 PyObject *resultobj = 0;
27017 wxListItem *arg1 = (wxListItem *) 0 ;
27018 wxColour *arg2 = 0 ;
27019 void *argp1 = 0 ;
27020 int res1 = 0 ;
27021 wxColour temp2 ;
27022 PyObject * obj0 = 0 ;
27023 PyObject * obj1 = 0 ;
27024 char * kwnames[] = {
27025 (char *) "self",(char *) "colText", NULL
27026 };
27027
27028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",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_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27032 }
27033 arg1 = reinterpret_cast< wxListItem * >(argp1);
27034 {
27035 arg2 = &temp2;
27036 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27037 }
27038 {
27039 PyThreadState* __tstate = wxPyBeginAllowThreads();
27040 (arg1)->SetTextColour((wxColour const &)*arg2);
27041 wxPyEndAllowThreads(__tstate);
27042 if (PyErr_Occurred()) SWIG_fail;
27043 }
27044 resultobj = SWIG_Py_Void();
27045 return resultobj;
27046 fail:
27047 return NULL;
27048 }
27049
27050
27051 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27052 PyObject *resultobj = 0;
27053 wxListItem *arg1 = (wxListItem *) 0 ;
27054 wxColour *arg2 = 0 ;
27055 void *argp1 = 0 ;
27056 int res1 = 0 ;
27057 wxColour temp2 ;
27058 PyObject * obj0 = 0 ;
27059 PyObject * obj1 = 0 ;
27060 char * kwnames[] = {
27061 (char *) "self",(char *) "colBack", NULL
27062 };
27063
27064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27066 if (!SWIG_IsOK(res1)) {
27067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27068 }
27069 arg1 = reinterpret_cast< wxListItem * >(argp1);
27070 {
27071 arg2 = &temp2;
27072 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27073 }
27074 {
27075 PyThreadState* __tstate = wxPyBeginAllowThreads();
27076 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27077 wxPyEndAllowThreads(__tstate);
27078 if (PyErr_Occurred()) SWIG_fail;
27079 }
27080 resultobj = SWIG_Py_Void();
27081 return resultobj;
27082 fail:
27083 return NULL;
27084 }
27085
27086
27087 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27088 PyObject *resultobj = 0;
27089 wxListItem *arg1 = (wxListItem *) 0 ;
27090 wxFont *arg2 = 0 ;
27091 void *argp1 = 0 ;
27092 int res1 = 0 ;
27093 void *argp2 = 0 ;
27094 int res2 = 0 ;
27095 PyObject * obj0 = 0 ;
27096 PyObject * obj1 = 0 ;
27097 char * kwnames[] = {
27098 (char *) "self",(char *) "font", NULL
27099 };
27100
27101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27103 if (!SWIG_IsOK(res1)) {
27104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27105 }
27106 arg1 = reinterpret_cast< wxListItem * >(argp1);
27107 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27108 if (!SWIG_IsOK(res2)) {
27109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27110 }
27111 if (!argp2) {
27112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27113 }
27114 arg2 = reinterpret_cast< wxFont * >(argp2);
27115 {
27116 PyThreadState* __tstate = wxPyBeginAllowThreads();
27117 (arg1)->SetFont((wxFont const &)*arg2);
27118 wxPyEndAllowThreads(__tstate);
27119 if (PyErr_Occurred()) SWIG_fail;
27120 }
27121 resultobj = SWIG_Py_Void();
27122 return resultobj;
27123 fail:
27124 return NULL;
27125 }
27126
27127
27128 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27129 PyObject *resultobj = 0;
27130 wxListItem *arg1 = (wxListItem *) 0 ;
27131 long result;
27132 void *argp1 = 0 ;
27133 int res1 = 0 ;
27134 PyObject *swig_obj[1] ;
27135
27136 if (!args) SWIG_fail;
27137 swig_obj[0] = args;
27138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27139 if (!SWIG_IsOK(res1)) {
27140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27141 }
27142 arg1 = reinterpret_cast< wxListItem * >(argp1);
27143 {
27144 PyThreadState* __tstate = wxPyBeginAllowThreads();
27145 result = (long)(arg1)->GetMask();
27146 wxPyEndAllowThreads(__tstate);
27147 if (PyErr_Occurred()) SWIG_fail;
27148 }
27149 resultobj = SWIG_From_long(static_cast< long >(result));
27150 return resultobj;
27151 fail:
27152 return NULL;
27153 }
27154
27155
27156 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27157 PyObject *resultobj = 0;
27158 wxListItem *arg1 = (wxListItem *) 0 ;
27159 long result;
27160 void *argp1 = 0 ;
27161 int res1 = 0 ;
27162 PyObject *swig_obj[1] ;
27163
27164 if (!args) SWIG_fail;
27165 swig_obj[0] = args;
27166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27167 if (!SWIG_IsOK(res1)) {
27168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27169 }
27170 arg1 = reinterpret_cast< wxListItem * >(argp1);
27171 {
27172 PyThreadState* __tstate = wxPyBeginAllowThreads();
27173 result = (long)(arg1)->GetId();
27174 wxPyEndAllowThreads(__tstate);
27175 if (PyErr_Occurred()) SWIG_fail;
27176 }
27177 resultobj = SWIG_From_long(static_cast< long >(result));
27178 return resultobj;
27179 fail:
27180 return NULL;
27181 }
27182
27183
27184 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27185 PyObject *resultobj = 0;
27186 wxListItem *arg1 = (wxListItem *) 0 ;
27187 int result;
27188 void *argp1 = 0 ;
27189 int res1 = 0 ;
27190 PyObject *swig_obj[1] ;
27191
27192 if (!args) SWIG_fail;
27193 swig_obj[0] = args;
27194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27195 if (!SWIG_IsOK(res1)) {
27196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27197 }
27198 arg1 = reinterpret_cast< wxListItem * >(argp1);
27199 {
27200 PyThreadState* __tstate = wxPyBeginAllowThreads();
27201 result = (int)(arg1)->GetColumn();
27202 wxPyEndAllowThreads(__tstate);
27203 if (PyErr_Occurred()) SWIG_fail;
27204 }
27205 resultobj = SWIG_From_int(static_cast< int >(result));
27206 return resultobj;
27207 fail:
27208 return NULL;
27209 }
27210
27211
27212 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27213 PyObject *resultobj = 0;
27214 wxListItem *arg1 = (wxListItem *) 0 ;
27215 long result;
27216 void *argp1 = 0 ;
27217 int res1 = 0 ;
27218 PyObject *swig_obj[1] ;
27219
27220 if (!args) SWIG_fail;
27221 swig_obj[0] = args;
27222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27223 if (!SWIG_IsOK(res1)) {
27224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27225 }
27226 arg1 = reinterpret_cast< wxListItem * >(argp1);
27227 {
27228 PyThreadState* __tstate = wxPyBeginAllowThreads();
27229 result = (long)(arg1)->GetState();
27230 wxPyEndAllowThreads(__tstate);
27231 if (PyErr_Occurred()) SWIG_fail;
27232 }
27233 resultobj = SWIG_From_long(static_cast< long >(result));
27234 return resultobj;
27235 fail:
27236 return NULL;
27237 }
27238
27239
27240 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27241 PyObject *resultobj = 0;
27242 wxListItem *arg1 = (wxListItem *) 0 ;
27243 wxString *result = 0 ;
27244 void *argp1 = 0 ;
27245 int res1 = 0 ;
27246 PyObject *swig_obj[1] ;
27247
27248 if (!args) SWIG_fail;
27249 swig_obj[0] = args;
27250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27251 if (!SWIG_IsOK(res1)) {
27252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27253 }
27254 arg1 = reinterpret_cast< wxListItem * >(argp1);
27255 {
27256 PyThreadState* __tstate = wxPyBeginAllowThreads();
27257 {
27258 wxString const &_result_ref = (arg1)->GetText();
27259 result = (wxString *) &_result_ref;
27260 }
27261 wxPyEndAllowThreads(__tstate);
27262 if (PyErr_Occurred()) SWIG_fail;
27263 }
27264 {
27265 #if wxUSE_UNICODE
27266 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27267 #else
27268 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27269 #endif
27270 }
27271 return resultobj;
27272 fail:
27273 return NULL;
27274 }
27275
27276
27277 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27278 PyObject *resultobj = 0;
27279 wxListItem *arg1 = (wxListItem *) 0 ;
27280 int result;
27281 void *argp1 = 0 ;
27282 int res1 = 0 ;
27283 PyObject *swig_obj[1] ;
27284
27285 if (!args) SWIG_fail;
27286 swig_obj[0] = args;
27287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27288 if (!SWIG_IsOK(res1)) {
27289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27290 }
27291 arg1 = reinterpret_cast< wxListItem * >(argp1);
27292 {
27293 PyThreadState* __tstate = wxPyBeginAllowThreads();
27294 result = (int)(arg1)->GetImage();
27295 wxPyEndAllowThreads(__tstate);
27296 if (PyErr_Occurred()) SWIG_fail;
27297 }
27298 resultobj = SWIG_From_int(static_cast< int >(result));
27299 return resultobj;
27300 fail:
27301 return NULL;
27302 }
27303
27304
27305 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27306 PyObject *resultobj = 0;
27307 wxListItem *arg1 = (wxListItem *) 0 ;
27308 long result;
27309 void *argp1 = 0 ;
27310 int res1 = 0 ;
27311 PyObject *swig_obj[1] ;
27312
27313 if (!args) SWIG_fail;
27314 swig_obj[0] = args;
27315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27316 if (!SWIG_IsOK(res1)) {
27317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27318 }
27319 arg1 = reinterpret_cast< wxListItem * >(argp1);
27320 {
27321 PyThreadState* __tstate = wxPyBeginAllowThreads();
27322 result = (long)(arg1)->GetData();
27323 wxPyEndAllowThreads(__tstate);
27324 if (PyErr_Occurred()) SWIG_fail;
27325 }
27326 resultobj = SWIG_From_long(static_cast< long >(result));
27327 return resultobj;
27328 fail:
27329 return NULL;
27330 }
27331
27332
27333 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27334 PyObject *resultobj = 0;
27335 wxListItem *arg1 = (wxListItem *) 0 ;
27336 int result;
27337 void *argp1 = 0 ;
27338 int res1 = 0 ;
27339 PyObject *swig_obj[1] ;
27340
27341 if (!args) SWIG_fail;
27342 swig_obj[0] = args;
27343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27344 if (!SWIG_IsOK(res1)) {
27345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27346 }
27347 arg1 = reinterpret_cast< wxListItem * >(argp1);
27348 {
27349 PyThreadState* __tstate = wxPyBeginAllowThreads();
27350 result = (int)(arg1)->GetWidth();
27351 wxPyEndAllowThreads(__tstate);
27352 if (PyErr_Occurred()) SWIG_fail;
27353 }
27354 resultobj = SWIG_From_int(static_cast< int >(result));
27355 return resultobj;
27356 fail:
27357 return NULL;
27358 }
27359
27360
27361 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27362 PyObject *resultobj = 0;
27363 wxListItem *arg1 = (wxListItem *) 0 ;
27364 wxListColumnFormat result;
27365 void *argp1 = 0 ;
27366 int res1 = 0 ;
27367 PyObject *swig_obj[1] ;
27368
27369 if (!args) SWIG_fail;
27370 swig_obj[0] = args;
27371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27372 if (!SWIG_IsOK(res1)) {
27373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27374 }
27375 arg1 = reinterpret_cast< wxListItem * >(argp1);
27376 {
27377 PyThreadState* __tstate = wxPyBeginAllowThreads();
27378 result = (wxListColumnFormat)(arg1)->GetAlign();
27379 wxPyEndAllowThreads(__tstate);
27380 if (PyErr_Occurred()) SWIG_fail;
27381 }
27382 resultobj = SWIG_From_int(static_cast< int >(result));
27383 return resultobj;
27384 fail:
27385 return NULL;
27386 }
27387
27388
27389 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27390 PyObject *resultobj = 0;
27391 wxListItem *arg1 = (wxListItem *) 0 ;
27392 wxListItemAttr *result = 0 ;
27393 void *argp1 = 0 ;
27394 int res1 = 0 ;
27395 PyObject *swig_obj[1] ;
27396
27397 if (!args) SWIG_fail;
27398 swig_obj[0] = args;
27399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27400 if (!SWIG_IsOK(res1)) {
27401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27402 }
27403 arg1 = reinterpret_cast< wxListItem * >(argp1);
27404 {
27405 PyThreadState* __tstate = wxPyBeginAllowThreads();
27406 result = (wxListItemAttr *)(arg1)->GetAttributes();
27407 wxPyEndAllowThreads(__tstate);
27408 if (PyErr_Occurred()) SWIG_fail;
27409 }
27410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27411 return resultobj;
27412 fail:
27413 return NULL;
27414 }
27415
27416
27417 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27418 PyObject *resultobj = 0;
27419 wxListItem *arg1 = (wxListItem *) 0 ;
27420 bool result;
27421 void *argp1 = 0 ;
27422 int res1 = 0 ;
27423 PyObject *swig_obj[1] ;
27424
27425 if (!args) SWIG_fail;
27426 swig_obj[0] = args;
27427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27428 if (!SWIG_IsOK(res1)) {
27429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27430 }
27431 arg1 = reinterpret_cast< wxListItem * >(argp1);
27432 {
27433 PyThreadState* __tstate = wxPyBeginAllowThreads();
27434 result = (bool)(arg1)->HasAttributes();
27435 wxPyEndAllowThreads(__tstate);
27436 if (PyErr_Occurred()) SWIG_fail;
27437 }
27438 {
27439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27440 }
27441 return resultobj;
27442 fail:
27443 return NULL;
27444 }
27445
27446
27447 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27448 PyObject *resultobj = 0;
27449 wxListItem *arg1 = (wxListItem *) 0 ;
27450 wxColour result;
27451 void *argp1 = 0 ;
27452 int res1 = 0 ;
27453 PyObject *swig_obj[1] ;
27454
27455 if (!args) SWIG_fail;
27456 swig_obj[0] = args;
27457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27458 if (!SWIG_IsOK(res1)) {
27459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27460 }
27461 arg1 = reinterpret_cast< wxListItem * >(argp1);
27462 {
27463 PyThreadState* __tstate = wxPyBeginAllowThreads();
27464 result = ((wxListItem const *)arg1)->GetTextColour();
27465 wxPyEndAllowThreads(__tstate);
27466 if (PyErr_Occurred()) SWIG_fail;
27467 }
27468 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27469 return resultobj;
27470 fail:
27471 return NULL;
27472 }
27473
27474
27475 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27476 PyObject *resultobj = 0;
27477 wxListItem *arg1 = (wxListItem *) 0 ;
27478 wxColour result;
27479 void *argp1 = 0 ;
27480 int res1 = 0 ;
27481 PyObject *swig_obj[1] ;
27482
27483 if (!args) SWIG_fail;
27484 swig_obj[0] = args;
27485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27486 if (!SWIG_IsOK(res1)) {
27487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27488 }
27489 arg1 = reinterpret_cast< wxListItem * >(argp1);
27490 {
27491 PyThreadState* __tstate = wxPyBeginAllowThreads();
27492 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27493 wxPyEndAllowThreads(__tstate);
27494 if (PyErr_Occurred()) SWIG_fail;
27495 }
27496 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27497 return resultobj;
27498 fail:
27499 return NULL;
27500 }
27501
27502
27503 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27504 PyObject *resultobj = 0;
27505 wxListItem *arg1 = (wxListItem *) 0 ;
27506 wxFont result;
27507 void *argp1 = 0 ;
27508 int res1 = 0 ;
27509 PyObject *swig_obj[1] ;
27510
27511 if (!args) SWIG_fail;
27512 swig_obj[0] = args;
27513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27514 if (!SWIG_IsOK(res1)) {
27515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27516 }
27517 arg1 = reinterpret_cast< wxListItem * >(argp1);
27518 {
27519 PyThreadState* __tstate = wxPyBeginAllowThreads();
27520 result = ((wxListItem const *)arg1)->GetFont();
27521 wxPyEndAllowThreads(__tstate);
27522 if (PyErr_Occurred()) SWIG_fail;
27523 }
27524 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27525 return resultobj;
27526 fail:
27527 return NULL;
27528 }
27529
27530
27531 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27532 PyObject *resultobj = 0;
27533 wxListItem *arg1 = (wxListItem *) 0 ;
27534 long arg2 ;
27535 void *argp1 = 0 ;
27536 int res1 = 0 ;
27537 long val2 ;
27538 int ecode2 = 0 ;
27539 PyObject *swig_obj[2] ;
27540
27541 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27543 if (!SWIG_IsOK(res1)) {
27544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27545 }
27546 arg1 = reinterpret_cast< wxListItem * >(argp1);
27547 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27548 if (!SWIG_IsOK(ecode2)) {
27549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27550 }
27551 arg2 = static_cast< long >(val2);
27552 if (arg1) (arg1)->m_mask = arg2;
27553
27554 resultobj = SWIG_Py_Void();
27555 return resultobj;
27556 fail:
27557 return NULL;
27558 }
27559
27560
27561 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27562 PyObject *resultobj = 0;
27563 wxListItem *arg1 = (wxListItem *) 0 ;
27564 long result;
27565 void *argp1 = 0 ;
27566 int res1 = 0 ;
27567 PyObject *swig_obj[1] ;
27568
27569 if (!args) SWIG_fail;
27570 swig_obj[0] = args;
27571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27572 if (!SWIG_IsOK(res1)) {
27573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27574 }
27575 arg1 = reinterpret_cast< wxListItem * >(argp1);
27576 result = (long) ((arg1)->m_mask);
27577 resultobj = SWIG_From_long(static_cast< long >(result));
27578 return resultobj;
27579 fail:
27580 return NULL;
27581 }
27582
27583
27584 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27585 PyObject *resultobj = 0;
27586 wxListItem *arg1 = (wxListItem *) 0 ;
27587 long arg2 ;
27588 void *argp1 = 0 ;
27589 int res1 = 0 ;
27590 long val2 ;
27591 int ecode2 = 0 ;
27592 PyObject *swig_obj[2] ;
27593
27594 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27596 if (!SWIG_IsOK(res1)) {
27597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27598 }
27599 arg1 = reinterpret_cast< wxListItem * >(argp1);
27600 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27601 if (!SWIG_IsOK(ecode2)) {
27602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27603 }
27604 arg2 = static_cast< long >(val2);
27605 if (arg1) (arg1)->m_itemId = arg2;
27606
27607 resultobj = SWIG_Py_Void();
27608 return resultobj;
27609 fail:
27610 return NULL;
27611 }
27612
27613
27614 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27615 PyObject *resultobj = 0;
27616 wxListItem *arg1 = (wxListItem *) 0 ;
27617 long result;
27618 void *argp1 = 0 ;
27619 int res1 = 0 ;
27620 PyObject *swig_obj[1] ;
27621
27622 if (!args) SWIG_fail;
27623 swig_obj[0] = args;
27624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27625 if (!SWIG_IsOK(res1)) {
27626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27627 }
27628 arg1 = reinterpret_cast< wxListItem * >(argp1);
27629 result = (long) ((arg1)->m_itemId);
27630 resultobj = SWIG_From_long(static_cast< long >(result));
27631 return resultobj;
27632 fail:
27633 return NULL;
27634 }
27635
27636
27637 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27638 PyObject *resultobj = 0;
27639 wxListItem *arg1 = (wxListItem *) 0 ;
27640 int arg2 ;
27641 void *argp1 = 0 ;
27642 int res1 = 0 ;
27643 int val2 ;
27644 int ecode2 = 0 ;
27645 PyObject *swig_obj[2] ;
27646
27647 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27649 if (!SWIG_IsOK(res1)) {
27650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27651 }
27652 arg1 = reinterpret_cast< wxListItem * >(argp1);
27653 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27654 if (!SWIG_IsOK(ecode2)) {
27655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27656 }
27657 arg2 = static_cast< int >(val2);
27658 if (arg1) (arg1)->m_col = arg2;
27659
27660 resultobj = SWIG_Py_Void();
27661 return resultobj;
27662 fail:
27663 return NULL;
27664 }
27665
27666
27667 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27668 PyObject *resultobj = 0;
27669 wxListItem *arg1 = (wxListItem *) 0 ;
27670 int result;
27671 void *argp1 = 0 ;
27672 int res1 = 0 ;
27673 PyObject *swig_obj[1] ;
27674
27675 if (!args) SWIG_fail;
27676 swig_obj[0] = args;
27677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27678 if (!SWIG_IsOK(res1)) {
27679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27680 }
27681 arg1 = reinterpret_cast< wxListItem * >(argp1);
27682 result = (int) ((arg1)->m_col);
27683 resultobj = SWIG_From_int(static_cast< int >(result));
27684 return resultobj;
27685 fail:
27686 return NULL;
27687 }
27688
27689
27690 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27691 PyObject *resultobj = 0;
27692 wxListItem *arg1 = (wxListItem *) 0 ;
27693 long arg2 ;
27694 void *argp1 = 0 ;
27695 int res1 = 0 ;
27696 long val2 ;
27697 int ecode2 = 0 ;
27698 PyObject *swig_obj[2] ;
27699
27700 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27702 if (!SWIG_IsOK(res1)) {
27703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27704 }
27705 arg1 = reinterpret_cast< wxListItem * >(argp1);
27706 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27707 if (!SWIG_IsOK(ecode2)) {
27708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27709 }
27710 arg2 = static_cast< long >(val2);
27711 if (arg1) (arg1)->m_state = arg2;
27712
27713 resultobj = SWIG_Py_Void();
27714 return resultobj;
27715 fail:
27716 return NULL;
27717 }
27718
27719
27720 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27721 PyObject *resultobj = 0;
27722 wxListItem *arg1 = (wxListItem *) 0 ;
27723 long result;
27724 void *argp1 = 0 ;
27725 int res1 = 0 ;
27726 PyObject *swig_obj[1] ;
27727
27728 if (!args) SWIG_fail;
27729 swig_obj[0] = args;
27730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27731 if (!SWIG_IsOK(res1)) {
27732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27733 }
27734 arg1 = reinterpret_cast< wxListItem * >(argp1);
27735 result = (long) ((arg1)->m_state);
27736 resultobj = SWIG_From_long(static_cast< long >(result));
27737 return resultobj;
27738 fail:
27739 return NULL;
27740 }
27741
27742
27743 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27744 PyObject *resultobj = 0;
27745 wxListItem *arg1 = (wxListItem *) 0 ;
27746 long arg2 ;
27747 void *argp1 = 0 ;
27748 int res1 = 0 ;
27749 long val2 ;
27750 int ecode2 = 0 ;
27751 PyObject *swig_obj[2] ;
27752
27753 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27755 if (!SWIG_IsOK(res1)) {
27756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27757 }
27758 arg1 = reinterpret_cast< wxListItem * >(argp1);
27759 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27760 if (!SWIG_IsOK(ecode2)) {
27761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27762 }
27763 arg2 = static_cast< long >(val2);
27764 if (arg1) (arg1)->m_stateMask = arg2;
27765
27766 resultobj = SWIG_Py_Void();
27767 return resultobj;
27768 fail:
27769 return NULL;
27770 }
27771
27772
27773 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27774 PyObject *resultobj = 0;
27775 wxListItem *arg1 = (wxListItem *) 0 ;
27776 long result;
27777 void *argp1 = 0 ;
27778 int res1 = 0 ;
27779 PyObject *swig_obj[1] ;
27780
27781 if (!args) SWIG_fail;
27782 swig_obj[0] = args;
27783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27784 if (!SWIG_IsOK(res1)) {
27785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27786 }
27787 arg1 = reinterpret_cast< wxListItem * >(argp1);
27788 result = (long) ((arg1)->m_stateMask);
27789 resultobj = SWIG_From_long(static_cast< long >(result));
27790 return resultobj;
27791 fail:
27792 return NULL;
27793 }
27794
27795
27796 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27797 PyObject *resultobj = 0;
27798 wxListItem *arg1 = (wxListItem *) 0 ;
27799 wxString *arg2 = (wxString *) 0 ;
27800 void *argp1 = 0 ;
27801 int res1 = 0 ;
27802 bool temp2 = false ;
27803 PyObject *swig_obj[2] ;
27804
27805 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27807 if (!SWIG_IsOK(res1)) {
27808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27809 }
27810 arg1 = reinterpret_cast< wxListItem * >(argp1);
27811 {
27812 arg2 = wxString_in_helper(swig_obj[1]);
27813 if (arg2 == NULL) SWIG_fail;
27814 temp2 = true;
27815 }
27816 if (arg1) (arg1)->m_text = *arg2;
27817
27818 resultobj = SWIG_Py_Void();
27819 {
27820 if (temp2)
27821 delete arg2;
27822 }
27823 return resultobj;
27824 fail:
27825 {
27826 if (temp2)
27827 delete arg2;
27828 }
27829 return NULL;
27830 }
27831
27832
27833 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27834 PyObject *resultobj = 0;
27835 wxListItem *arg1 = (wxListItem *) 0 ;
27836 wxString *result = 0 ;
27837 void *argp1 = 0 ;
27838 int res1 = 0 ;
27839 PyObject *swig_obj[1] ;
27840
27841 if (!args) SWIG_fail;
27842 swig_obj[0] = args;
27843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27844 if (!SWIG_IsOK(res1)) {
27845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27846 }
27847 arg1 = reinterpret_cast< wxListItem * >(argp1);
27848 result = (wxString *)& ((arg1)->m_text);
27849 {
27850 #if wxUSE_UNICODE
27851 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27852 #else
27853 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27854 #endif
27855 }
27856 return resultobj;
27857 fail:
27858 return NULL;
27859 }
27860
27861
27862 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27863 PyObject *resultobj = 0;
27864 wxListItem *arg1 = (wxListItem *) 0 ;
27865 int arg2 ;
27866 void *argp1 = 0 ;
27867 int res1 = 0 ;
27868 int val2 ;
27869 int ecode2 = 0 ;
27870 PyObject *swig_obj[2] ;
27871
27872 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27874 if (!SWIG_IsOK(res1)) {
27875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27876 }
27877 arg1 = reinterpret_cast< wxListItem * >(argp1);
27878 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27879 if (!SWIG_IsOK(ecode2)) {
27880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27881 }
27882 arg2 = static_cast< int >(val2);
27883 if (arg1) (arg1)->m_image = arg2;
27884
27885 resultobj = SWIG_Py_Void();
27886 return resultobj;
27887 fail:
27888 return NULL;
27889 }
27890
27891
27892 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27893 PyObject *resultobj = 0;
27894 wxListItem *arg1 = (wxListItem *) 0 ;
27895 int result;
27896 void *argp1 = 0 ;
27897 int res1 = 0 ;
27898 PyObject *swig_obj[1] ;
27899
27900 if (!args) SWIG_fail;
27901 swig_obj[0] = args;
27902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27903 if (!SWIG_IsOK(res1)) {
27904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27905 }
27906 arg1 = reinterpret_cast< wxListItem * >(argp1);
27907 result = (int) ((arg1)->m_image);
27908 resultobj = SWIG_From_int(static_cast< int >(result));
27909 return resultobj;
27910 fail:
27911 return NULL;
27912 }
27913
27914
27915 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27916 PyObject *resultobj = 0;
27917 wxListItem *arg1 = (wxListItem *) 0 ;
27918 long arg2 ;
27919 void *argp1 = 0 ;
27920 int res1 = 0 ;
27921 long val2 ;
27922 int ecode2 = 0 ;
27923 PyObject *swig_obj[2] ;
27924
27925 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27927 if (!SWIG_IsOK(res1)) {
27928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27929 }
27930 arg1 = reinterpret_cast< wxListItem * >(argp1);
27931 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27932 if (!SWIG_IsOK(ecode2)) {
27933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27934 }
27935 arg2 = static_cast< long >(val2);
27936 if (arg1) (arg1)->m_data = arg2;
27937
27938 resultobj = SWIG_Py_Void();
27939 return resultobj;
27940 fail:
27941 return NULL;
27942 }
27943
27944
27945 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27946 PyObject *resultobj = 0;
27947 wxListItem *arg1 = (wxListItem *) 0 ;
27948 long result;
27949 void *argp1 = 0 ;
27950 int res1 = 0 ;
27951 PyObject *swig_obj[1] ;
27952
27953 if (!args) SWIG_fail;
27954 swig_obj[0] = args;
27955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27956 if (!SWIG_IsOK(res1)) {
27957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27958 }
27959 arg1 = reinterpret_cast< wxListItem * >(argp1);
27960 result = (long) ((arg1)->m_data);
27961 resultobj = SWIG_From_long(static_cast< long >(result));
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27969 PyObject *resultobj = 0;
27970 wxListItem *arg1 = (wxListItem *) 0 ;
27971 int arg2 ;
27972 void *argp1 = 0 ;
27973 int res1 = 0 ;
27974 int val2 ;
27975 int ecode2 = 0 ;
27976 PyObject *swig_obj[2] ;
27977
27978 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27980 if (!SWIG_IsOK(res1)) {
27981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27982 }
27983 arg1 = reinterpret_cast< wxListItem * >(argp1);
27984 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27985 if (!SWIG_IsOK(ecode2)) {
27986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27987 }
27988 arg2 = static_cast< int >(val2);
27989 if (arg1) (arg1)->m_format = arg2;
27990
27991 resultobj = SWIG_Py_Void();
27992 return resultobj;
27993 fail:
27994 return NULL;
27995 }
27996
27997
27998 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27999 PyObject *resultobj = 0;
28000 wxListItem *arg1 = (wxListItem *) 0 ;
28001 int result;
28002 void *argp1 = 0 ;
28003 int res1 = 0 ;
28004 PyObject *swig_obj[1] ;
28005
28006 if (!args) SWIG_fail;
28007 swig_obj[0] = args;
28008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28009 if (!SWIG_IsOK(res1)) {
28010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28011 }
28012 arg1 = reinterpret_cast< wxListItem * >(argp1);
28013 result = (int) ((arg1)->m_format);
28014 resultobj = SWIG_From_int(static_cast< int >(result));
28015 return resultobj;
28016 fail:
28017 return NULL;
28018 }
28019
28020
28021 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28022 PyObject *resultobj = 0;
28023 wxListItem *arg1 = (wxListItem *) 0 ;
28024 int arg2 ;
28025 void *argp1 = 0 ;
28026 int res1 = 0 ;
28027 int val2 ;
28028 int ecode2 = 0 ;
28029 PyObject *swig_obj[2] ;
28030
28031 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28033 if (!SWIG_IsOK(res1)) {
28034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28035 }
28036 arg1 = reinterpret_cast< wxListItem * >(argp1);
28037 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28038 if (!SWIG_IsOK(ecode2)) {
28039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28040 }
28041 arg2 = static_cast< int >(val2);
28042 if (arg1) (arg1)->m_width = arg2;
28043
28044 resultobj = SWIG_Py_Void();
28045 return resultobj;
28046 fail:
28047 return NULL;
28048 }
28049
28050
28051 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28052 PyObject *resultobj = 0;
28053 wxListItem *arg1 = (wxListItem *) 0 ;
28054 int result;
28055 void *argp1 = 0 ;
28056 int res1 = 0 ;
28057 PyObject *swig_obj[1] ;
28058
28059 if (!args) SWIG_fail;
28060 swig_obj[0] = args;
28061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28062 if (!SWIG_IsOK(res1)) {
28063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28064 }
28065 arg1 = reinterpret_cast< wxListItem * >(argp1);
28066 result = (int) ((arg1)->m_width);
28067 resultobj = SWIG_From_int(static_cast< int >(result));
28068 return resultobj;
28069 fail:
28070 return NULL;
28071 }
28072
28073
28074 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28075 PyObject *obj;
28076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28077 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28078 return SWIG_Py_Void();
28079 }
28080
28081 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28082 return SWIG_Python_InitShadowInstance(args);
28083 }
28084
28085 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28086 PyObject *resultobj = 0;
28087 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28088 int arg2 = (int) 0 ;
28089 wxListEvent *result = 0 ;
28090 int val1 ;
28091 int ecode1 = 0 ;
28092 int val2 ;
28093 int ecode2 = 0 ;
28094 PyObject * obj0 = 0 ;
28095 PyObject * obj1 = 0 ;
28096 char * kwnames[] = {
28097 (char *) "commandType",(char *) "id", NULL
28098 };
28099
28100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28101 if (obj0) {
28102 ecode1 = SWIG_AsVal_int(obj0, &val1);
28103 if (!SWIG_IsOK(ecode1)) {
28104 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28105 }
28106 arg1 = static_cast< wxEventType >(val1);
28107 }
28108 if (obj1) {
28109 ecode2 = SWIG_AsVal_int(obj1, &val2);
28110 if (!SWIG_IsOK(ecode2)) {
28111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28112 }
28113 arg2 = static_cast< int >(val2);
28114 }
28115 {
28116 PyThreadState* __tstate = wxPyBeginAllowThreads();
28117 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28118 wxPyEndAllowThreads(__tstate);
28119 if (PyErr_Occurred()) SWIG_fail;
28120 }
28121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28122 return resultobj;
28123 fail:
28124 return NULL;
28125 }
28126
28127
28128 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28129 PyObject *resultobj = 0;
28130 wxListEvent *arg1 = (wxListEvent *) 0 ;
28131 int arg2 ;
28132 void *argp1 = 0 ;
28133 int res1 = 0 ;
28134 int val2 ;
28135 int ecode2 = 0 ;
28136 PyObject *swig_obj[2] ;
28137
28138 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28140 if (!SWIG_IsOK(res1)) {
28141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28142 }
28143 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28144 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28145 if (!SWIG_IsOK(ecode2)) {
28146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28147 }
28148 arg2 = static_cast< int >(val2);
28149 if (arg1) (arg1)->m_code = arg2;
28150
28151 resultobj = SWIG_Py_Void();
28152 return resultobj;
28153 fail:
28154 return NULL;
28155 }
28156
28157
28158 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28159 PyObject *resultobj = 0;
28160 wxListEvent *arg1 = (wxListEvent *) 0 ;
28161 int result;
28162 void *argp1 = 0 ;
28163 int res1 = 0 ;
28164 PyObject *swig_obj[1] ;
28165
28166 if (!args) SWIG_fail;
28167 swig_obj[0] = args;
28168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28169 if (!SWIG_IsOK(res1)) {
28170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28171 }
28172 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28173 result = (int) ((arg1)->m_code);
28174 resultobj = SWIG_From_int(static_cast< int >(result));
28175 return resultobj;
28176 fail:
28177 return NULL;
28178 }
28179
28180
28181 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28182 PyObject *resultobj = 0;
28183 wxListEvent *arg1 = (wxListEvent *) 0 ;
28184 long arg2 ;
28185 void *argp1 = 0 ;
28186 int res1 = 0 ;
28187 long val2 ;
28188 int ecode2 = 0 ;
28189 PyObject *swig_obj[2] ;
28190
28191 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28193 if (!SWIG_IsOK(res1)) {
28194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28195 }
28196 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28197 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28198 if (!SWIG_IsOK(ecode2)) {
28199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28200 }
28201 arg2 = static_cast< long >(val2);
28202 if (arg1) (arg1)->m_oldItemIndex = arg2;
28203
28204 resultobj = SWIG_Py_Void();
28205 return resultobj;
28206 fail:
28207 return NULL;
28208 }
28209
28210
28211 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28212 PyObject *resultobj = 0;
28213 wxListEvent *arg1 = (wxListEvent *) 0 ;
28214 long result;
28215 void *argp1 = 0 ;
28216 int res1 = 0 ;
28217 PyObject *swig_obj[1] ;
28218
28219 if (!args) SWIG_fail;
28220 swig_obj[0] = args;
28221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28222 if (!SWIG_IsOK(res1)) {
28223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28224 }
28225 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28226 result = (long) ((arg1)->m_oldItemIndex);
28227 resultobj = SWIG_From_long(static_cast< long >(result));
28228 return resultobj;
28229 fail:
28230 return NULL;
28231 }
28232
28233
28234 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28235 PyObject *resultobj = 0;
28236 wxListEvent *arg1 = (wxListEvent *) 0 ;
28237 long arg2 ;
28238 void *argp1 = 0 ;
28239 int res1 = 0 ;
28240 long val2 ;
28241 int ecode2 = 0 ;
28242 PyObject *swig_obj[2] ;
28243
28244 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28246 if (!SWIG_IsOK(res1)) {
28247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28248 }
28249 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28250 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28251 if (!SWIG_IsOK(ecode2)) {
28252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28253 }
28254 arg2 = static_cast< long >(val2);
28255 if (arg1) (arg1)->m_itemIndex = arg2;
28256
28257 resultobj = SWIG_Py_Void();
28258 return resultobj;
28259 fail:
28260 return NULL;
28261 }
28262
28263
28264 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28265 PyObject *resultobj = 0;
28266 wxListEvent *arg1 = (wxListEvent *) 0 ;
28267 long result;
28268 void *argp1 = 0 ;
28269 int res1 = 0 ;
28270 PyObject *swig_obj[1] ;
28271
28272 if (!args) SWIG_fail;
28273 swig_obj[0] = args;
28274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28275 if (!SWIG_IsOK(res1)) {
28276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28277 }
28278 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28279 result = (long) ((arg1)->m_itemIndex);
28280 resultobj = SWIG_From_long(static_cast< long >(result));
28281 return resultobj;
28282 fail:
28283 return NULL;
28284 }
28285
28286
28287 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28288 PyObject *resultobj = 0;
28289 wxListEvent *arg1 = (wxListEvent *) 0 ;
28290 int arg2 ;
28291 void *argp1 = 0 ;
28292 int res1 = 0 ;
28293 int val2 ;
28294 int ecode2 = 0 ;
28295 PyObject *swig_obj[2] ;
28296
28297 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28299 if (!SWIG_IsOK(res1)) {
28300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28301 }
28302 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28303 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28304 if (!SWIG_IsOK(ecode2)) {
28305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28306 }
28307 arg2 = static_cast< int >(val2);
28308 if (arg1) (arg1)->m_col = arg2;
28309
28310 resultobj = SWIG_Py_Void();
28311 return resultobj;
28312 fail:
28313 return NULL;
28314 }
28315
28316
28317 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28318 PyObject *resultobj = 0;
28319 wxListEvent *arg1 = (wxListEvent *) 0 ;
28320 int result;
28321 void *argp1 = 0 ;
28322 int res1 = 0 ;
28323 PyObject *swig_obj[1] ;
28324
28325 if (!args) SWIG_fail;
28326 swig_obj[0] = args;
28327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28328 if (!SWIG_IsOK(res1)) {
28329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28330 }
28331 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28332 result = (int) ((arg1)->m_col);
28333 resultobj = SWIG_From_int(static_cast< int >(result));
28334 return resultobj;
28335 fail:
28336 return NULL;
28337 }
28338
28339
28340 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28341 PyObject *resultobj = 0;
28342 wxListEvent *arg1 = (wxListEvent *) 0 ;
28343 wxPoint *arg2 = (wxPoint *) 0 ;
28344 void *argp1 = 0 ;
28345 int res1 = 0 ;
28346 void *argp2 = 0 ;
28347 int res2 = 0 ;
28348 PyObject *swig_obj[2] ;
28349
28350 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28352 if (!SWIG_IsOK(res1)) {
28353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28354 }
28355 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28356 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28357 if (!SWIG_IsOK(res2)) {
28358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28359 }
28360 arg2 = reinterpret_cast< wxPoint * >(argp2);
28361 if (arg1) (arg1)->m_pointDrag = *arg2;
28362
28363 resultobj = SWIG_Py_Void();
28364 return resultobj;
28365 fail:
28366 return NULL;
28367 }
28368
28369
28370 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28371 PyObject *resultobj = 0;
28372 wxListEvent *arg1 = (wxListEvent *) 0 ;
28373 wxPoint *result = 0 ;
28374 void *argp1 = 0 ;
28375 int res1 = 0 ;
28376 PyObject *swig_obj[1] ;
28377
28378 if (!args) SWIG_fail;
28379 swig_obj[0] = args;
28380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28381 if (!SWIG_IsOK(res1)) {
28382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28383 }
28384 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28385 result = (wxPoint *)& ((arg1)->m_pointDrag);
28386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28387 return resultobj;
28388 fail:
28389 return NULL;
28390 }
28391
28392
28393 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28394 PyObject *resultobj = 0;
28395 wxListEvent *arg1 = (wxListEvent *) 0 ;
28396 wxListItem *result = 0 ;
28397 void *argp1 = 0 ;
28398 int res1 = 0 ;
28399 PyObject *swig_obj[1] ;
28400
28401 if (!args) SWIG_fail;
28402 swig_obj[0] = args;
28403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28404 if (!SWIG_IsOK(res1)) {
28405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28406 }
28407 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28408 result = (wxListItem *)& ((arg1)->m_item);
28409 {
28410 resultobj = wxPyMake_wxObject(result, 0);
28411 }
28412 return resultobj;
28413 fail:
28414 return NULL;
28415 }
28416
28417
28418 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28419 PyObject *resultobj = 0;
28420 wxListEvent *arg1 = (wxListEvent *) 0 ;
28421 int result;
28422 void *argp1 = 0 ;
28423 int res1 = 0 ;
28424 PyObject *swig_obj[1] ;
28425
28426 if (!args) SWIG_fail;
28427 swig_obj[0] = args;
28428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28429 if (!SWIG_IsOK(res1)) {
28430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28431 }
28432 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28433 {
28434 PyThreadState* __tstate = wxPyBeginAllowThreads();
28435 result = (int)(arg1)->GetKeyCode();
28436 wxPyEndAllowThreads(__tstate);
28437 if (PyErr_Occurred()) SWIG_fail;
28438 }
28439 resultobj = SWIG_From_int(static_cast< int >(result));
28440 return resultobj;
28441 fail:
28442 return NULL;
28443 }
28444
28445
28446 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28447 PyObject *resultobj = 0;
28448 wxListEvent *arg1 = (wxListEvent *) 0 ;
28449 long result;
28450 void *argp1 = 0 ;
28451 int res1 = 0 ;
28452 PyObject *swig_obj[1] ;
28453
28454 if (!args) SWIG_fail;
28455 swig_obj[0] = args;
28456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28457 if (!SWIG_IsOK(res1)) {
28458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28459 }
28460 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28461 {
28462 PyThreadState* __tstate = wxPyBeginAllowThreads();
28463 result = (long)(arg1)->GetIndex();
28464 wxPyEndAllowThreads(__tstate);
28465 if (PyErr_Occurred()) SWIG_fail;
28466 }
28467 resultobj = SWIG_From_long(static_cast< long >(result));
28468 return resultobj;
28469 fail:
28470 return NULL;
28471 }
28472
28473
28474 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28475 PyObject *resultobj = 0;
28476 wxListEvent *arg1 = (wxListEvent *) 0 ;
28477 int result;
28478 void *argp1 = 0 ;
28479 int res1 = 0 ;
28480 PyObject *swig_obj[1] ;
28481
28482 if (!args) SWIG_fail;
28483 swig_obj[0] = args;
28484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28485 if (!SWIG_IsOK(res1)) {
28486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28487 }
28488 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28489 {
28490 PyThreadState* __tstate = wxPyBeginAllowThreads();
28491 result = (int)(arg1)->GetColumn();
28492 wxPyEndAllowThreads(__tstate);
28493 if (PyErr_Occurred()) SWIG_fail;
28494 }
28495 resultobj = SWIG_From_int(static_cast< int >(result));
28496 return resultobj;
28497 fail:
28498 return NULL;
28499 }
28500
28501
28502 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28503 PyObject *resultobj = 0;
28504 wxListEvent *arg1 = (wxListEvent *) 0 ;
28505 wxPoint result;
28506 void *argp1 = 0 ;
28507 int res1 = 0 ;
28508 PyObject *swig_obj[1] ;
28509
28510 if (!args) SWIG_fail;
28511 swig_obj[0] = args;
28512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28513 if (!SWIG_IsOK(res1)) {
28514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28515 }
28516 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28517 {
28518 PyThreadState* __tstate = wxPyBeginAllowThreads();
28519 result = (arg1)->GetPoint();
28520 wxPyEndAllowThreads(__tstate);
28521 if (PyErr_Occurred()) SWIG_fail;
28522 }
28523 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28524 return resultobj;
28525 fail:
28526 return NULL;
28527 }
28528
28529
28530 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28531 PyObject *resultobj = 0;
28532 wxListEvent *arg1 = (wxListEvent *) 0 ;
28533 wxString *result = 0 ;
28534 void *argp1 = 0 ;
28535 int res1 = 0 ;
28536 PyObject *swig_obj[1] ;
28537
28538 if (!args) SWIG_fail;
28539 swig_obj[0] = args;
28540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28541 if (!SWIG_IsOK(res1)) {
28542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28543 }
28544 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28545 {
28546 PyThreadState* __tstate = wxPyBeginAllowThreads();
28547 {
28548 wxString const &_result_ref = (arg1)->GetLabel();
28549 result = (wxString *) &_result_ref;
28550 }
28551 wxPyEndAllowThreads(__tstate);
28552 if (PyErr_Occurred()) SWIG_fail;
28553 }
28554 {
28555 #if wxUSE_UNICODE
28556 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28557 #else
28558 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28559 #endif
28560 }
28561 return resultobj;
28562 fail:
28563 return NULL;
28564 }
28565
28566
28567 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28568 PyObject *resultobj = 0;
28569 wxListEvent *arg1 = (wxListEvent *) 0 ;
28570 wxString *result = 0 ;
28571 void *argp1 = 0 ;
28572 int res1 = 0 ;
28573 PyObject *swig_obj[1] ;
28574
28575 if (!args) SWIG_fail;
28576 swig_obj[0] = args;
28577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28578 if (!SWIG_IsOK(res1)) {
28579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28580 }
28581 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28582 {
28583 PyThreadState* __tstate = wxPyBeginAllowThreads();
28584 {
28585 wxString const &_result_ref = (arg1)->GetText();
28586 result = (wxString *) &_result_ref;
28587 }
28588 wxPyEndAllowThreads(__tstate);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 {
28592 #if wxUSE_UNICODE
28593 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28594 #else
28595 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28596 #endif
28597 }
28598 return resultobj;
28599 fail:
28600 return NULL;
28601 }
28602
28603
28604 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28605 PyObject *resultobj = 0;
28606 wxListEvent *arg1 = (wxListEvent *) 0 ;
28607 int result;
28608 void *argp1 = 0 ;
28609 int res1 = 0 ;
28610 PyObject *swig_obj[1] ;
28611
28612 if (!args) SWIG_fail;
28613 swig_obj[0] = args;
28614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28615 if (!SWIG_IsOK(res1)) {
28616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28617 }
28618 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28619 {
28620 PyThreadState* __tstate = wxPyBeginAllowThreads();
28621 result = (int)(arg1)->GetImage();
28622 wxPyEndAllowThreads(__tstate);
28623 if (PyErr_Occurred()) SWIG_fail;
28624 }
28625 resultobj = SWIG_From_int(static_cast< int >(result));
28626 return resultobj;
28627 fail:
28628 return NULL;
28629 }
28630
28631
28632 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28633 PyObject *resultobj = 0;
28634 wxListEvent *arg1 = (wxListEvent *) 0 ;
28635 long result;
28636 void *argp1 = 0 ;
28637 int res1 = 0 ;
28638 PyObject *swig_obj[1] ;
28639
28640 if (!args) SWIG_fail;
28641 swig_obj[0] = args;
28642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28643 if (!SWIG_IsOK(res1)) {
28644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28645 }
28646 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28647 {
28648 PyThreadState* __tstate = wxPyBeginAllowThreads();
28649 result = (long)(arg1)->GetData();
28650 wxPyEndAllowThreads(__tstate);
28651 if (PyErr_Occurred()) SWIG_fail;
28652 }
28653 resultobj = SWIG_From_long(static_cast< long >(result));
28654 return resultobj;
28655 fail:
28656 return NULL;
28657 }
28658
28659
28660 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28661 PyObject *resultobj = 0;
28662 wxListEvent *arg1 = (wxListEvent *) 0 ;
28663 long result;
28664 void *argp1 = 0 ;
28665 int res1 = 0 ;
28666 PyObject *swig_obj[1] ;
28667
28668 if (!args) SWIG_fail;
28669 swig_obj[0] = args;
28670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28671 if (!SWIG_IsOK(res1)) {
28672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28673 }
28674 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28675 {
28676 PyThreadState* __tstate = wxPyBeginAllowThreads();
28677 result = (long)(arg1)->GetMask();
28678 wxPyEndAllowThreads(__tstate);
28679 if (PyErr_Occurred()) SWIG_fail;
28680 }
28681 resultobj = SWIG_From_long(static_cast< long >(result));
28682 return resultobj;
28683 fail:
28684 return NULL;
28685 }
28686
28687
28688 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28689 PyObject *resultobj = 0;
28690 wxListEvent *arg1 = (wxListEvent *) 0 ;
28691 wxListItem *result = 0 ;
28692 void *argp1 = 0 ;
28693 int res1 = 0 ;
28694 PyObject *swig_obj[1] ;
28695
28696 if (!args) SWIG_fail;
28697 swig_obj[0] = args;
28698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28699 if (!SWIG_IsOK(res1)) {
28700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28701 }
28702 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28703 {
28704 PyThreadState* __tstate = wxPyBeginAllowThreads();
28705 {
28706 wxListItem const &_result_ref = (arg1)->GetItem();
28707 result = (wxListItem *) &_result_ref;
28708 }
28709 wxPyEndAllowThreads(__tstate);
28710 if (PyErr_Occurred()) SWIG_fail;
28711 }
28712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28713 return resultobj;
28714 fail:
28715 return NULL;
28716 }
28717
28718
28719 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28720 PyObject *resultobj = 0;
28721 wxListEvent *arg1 = (wxListEvent *) 0 ;
28722 long result;
28723 void *argp1 = 0 ;
28724 int res1 = 0 ;
28725 PyObject *swig_obj[1] ;
28726
28727 if (!args) SWIG_fail;
28728 swig_obj[0] = args;
28729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28730 if (!SWIG_IsOK(res1)) {
28731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28732 }
28733 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28734 {
28735 PyThreadState* __tstate = wxPyBeginAllowThreads();
28736 result = (long)(arg1)->GetCacheFrom();
28737 wxPyEndAllowThreads(__tstate);
28738 if (PyErr_Occurred()) SWIG_fail;
28739 }
28740 resultobj = SWIG_From_long(static_cast< long >(result));
28741 return resultobj;
28742 fail:
28743 return NULL;
28744 }
28745
28746
28747 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28748 PyObject *resultobj = 0;
28749 wxListEvent *arg1 = (wxListEvent *) 0 ;
28750 long result;
28751 void *argp1 = 0 ;
28752 int res1 = 0 ;
28753 PyObject *swig_obj[1] ;
28754
28755 if (!args) SWIG_fail;
28756 swig_obj[0] = args;
28757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28758 if (!SWIG_IsOK(res1)) {
28759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28760 }
28761 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28762 {
28763 PyThreadState* __tstate = wxPyBeginAllowThreads();
28764 result = (long)(arg1)->GetCacheTo();
28765 wxPyEndAllowThreads(__tstate);
28766 if (PyErr_Occurred()) SWIG_fail;
28767 }
28768 resultobj = SWIG_From_long(static_cast< long >(result));
28769 return resultobj;
28770 fail:
28771 return NULL;
28772 }
28773
28774
28775 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28776 PyObject *resultobj = 0;
28777 wxListEvent *arg1 = (wxListEvent *) 0 ;
28778 bool result;
28779 void *argp1 = 0 ;
28780 int res1 = 0 ;
28781 PyObject *swig_obj[1] ;
28782
28783 if (!args) SWIG_fail;
28784 swig_obj[0] = args;
28785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28786 if (!SWIG_IsOK(res1)) {
28787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28788 }
28789 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28790 {
28791 PyThreadState* __tstate = wxPyBeginAllowThreads();
28792 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28793 wxPyEndAllowThreads(__tstate);
28794 if (PyErr_Occurred()) SWIG_fail;
28795 }
28796 {
28797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28798 }
28799 return resultobj;
28800 fail:
28801 return NULL;
28802 }
28803
28804
28805 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28806 PyObject *resultobj = 0;
28807 wxListEvent *arg1 = (wxListEvent *) 0 ;
28808 bool arg2 ;
28809 void *argp1 = 0 ;
28810 int res1 = 0 ;
28811 bool val2 ;
28812 int ecode2 = 0 ;
28813 PyObject * obj0 = 0 ;
28814 PyObject * obj1 = 0 ;
28815 char * kwnames[] = {
28816 (char *) "self",(char *) "editCancelled", NULL
28817 };
28818
28819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28821 if (!SWIG_IsOK(res1)) {
28822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28823 }
28824 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28825 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28826 if (!SWIG_IsOK(ecode2)) {
28827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28828 }
28829 arg2 = static_cast< bool >(val2);
28830 {
28831 PyThreadState* __tstate = wxPyBeginAllowThreads();
28832 (arg1)->SetEditCanceled(arg2);
28833 wxPyEndAllowThreads(__tstate);
28834 if (PyErr_Occurred()) SWIG_fail;
28835 }
28836 resultobj = SWIG_Py_Void();
28837 return resultobj;
28838 fail:
28839 return NULL;
28840 }
28841
28842
28843 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28844 PyObject *obj;
28845 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28846 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28847 return SWIG_Py_Void();
28848 }
28849
28850 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28851 return SWIG_Python_InitShadowInstance(args);
28852 }
28853
28854 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28855 PyObject *resultobj = 0;
28856 wxWindow *arg1 = (wxWindow *) 0 ;
28857 int arg2 = (int) -1 ;
28858 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28859 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28860 wxSize const &arg4_defvalue = wxDefaultSize ;
28861 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28862 long arg5 = (long) wxLC_ICON ;
28863 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28864 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28865 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28866 wxString *arg7 = (wxString *) &arg7_defvalue ;
28867 wxPyListCtrl *result = 0 ;
28868 void *argp1 = 0 ;
28869 int res1 = 0 ;
28870 int val2 ;
28871 int ecode2 = 0 ;
28872 wxPoint temp3 ;
28873 wxSize temp4 ;
28874 long val5 ;
28875 int ecode5 = 0 ;
28876 void *argp6 = 0 ;
28877 int res6 = 0 ;
28878 bool temp7 = false ;
28879 PyObject * obj0 = 0 ;
28880 PyObject * obj1 = 0 ;
28881 PyObject * obj2 = 0 ;
28882 PyObject * obj3 = 0 ;
28883 PyObject * obj4 = 0 ;
28884 PyObject * obj5 = 0 ;
28885 PyObject * obj6 = 0 ;
28886 char * kwnames[] = {
28887 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28888 };
28889
28890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28892 if (!SWIG_IsOK(res1)) {
28893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28894 }
28895 arg1 = reinterpret_cast< wxWindow * >(argp1);
28896 if (obj1) {
28897 ecode2 = SWIG_AsVal_int(obj1, &val2);
28898 if (!SWIG_IsOK(ecode2)) {
28899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28900 }
28901 arg2 = static_cast< int >(val2);
28902 }
28903 if (obj2) {
28904 {
28905 arg3 = &temp3;
28906 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28907 }
28908 }
28909 if (obj3) {
28910 {
28911 arg4 = &temp4;
28912 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28913 }
28914 }
28915 if (obj4) {
28916 ecode5 = SWIG_AsVal_long(obj4, &val5);
28917 if (!SWIG_IsOK(ecode5)) {
28918 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28919 }
28920 arg5 = static_cast< long >(val5);
28921 }
28922 if (obj5) {
28923 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28924 if (!SWIG_IsOK(res6)) {
28925 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28926 }
28927 if (!argp6) {
28928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28929 }
28930 arg6 = reinterpret_cast< wxValidator * >(argp6);
28931 }
28932 if (obj6) {
28933 {
28934 arg7 = wxString_in_helper(obj6);
28935 if (arg7 == NULL) SWIG_fail;
28936 temp7 = true;
28937 }
28938 }
28939 {
28940 if (!wxPyCheckForApp()) SWIG_fail;
28941 PyThreadState* __tstate = wxPyBeginAllowThreads();
28942 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28943 wxPyEndAllowThreads(__tstate);
28944 if (PyErr_Occurred()) SWIG_fail;
28945 }
28946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28947 {
28948 if (temp7)
28949 delete arg7;
28950 }
28951 return resultobj;
28952 fail:
28953 {
28954 if (temp7)
28955 delete arg7;
28956 }
28957 return NULL;
28958 }
28959
28960
28961 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28962 PyObject *resultobj = 0;
28963 wxPyListCtrl *result = 0 ;
28964
28965 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28966 {
28967 if (!wxPyCheckForApp()) SWIG_fail;
28968 PyThreadState* __tstate = wxPyBeginAllowThreads();
28969 result = (wxPyListCtrl *)new wxPyListCtrl();
28970 wxPyEndAllowThreads(__tstate);
28971 if (PyErr_Occurred()) SWIG_fail;
28972 }
28973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28974 return resultobj;
28975 fail:
28976 return NULL;
28977 }
28978
28979
28980 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28981 PyObject *resultobj = 0;
28982 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28983 wxWindow *arg2 = (wxWindow *) 0 ;
28984 int arg3 = (int) -1 ;
28985 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28986 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28987 wxSize const &arg5_defvalue = wxDefaultSize ;
28988 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28989 long arg6 = (long) wxLC_ICON ;
28990 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28991 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28992 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28993 wxString *arg8 = (wxString *) &arg8_defvalue ;
28994 bool result;
28995 void *argp1 = 0 ;
28996 int res1 = 0 ;
28997 void *argp2 = 0 ;
28998 int res2 = 0 ;
28999 int val3 ;
29000 int ecode3 = 0 ;
29001 wxPoint temp4 ;
29002 wxSize temp5 ;
29003 long val6 ;
29004 int ecode6 = 0 ;
29005 void *argp7 = 0 ;
29006 int res7 = 0 ;
29007 bool temp8 = false ;
29008 PyObject * obj0 = 0 ;
29009 PyObject * obj1 = 0 ;
29010 PyObject * obj2 = 0 ;
29011 PyObject * obj3 = 0 ;
29012 PyObject * obj4 = 0 ;
29013 PyObject * obj5 = 0 ;
29014 PyObject * obj6 = 0 ;
29015 PyObject * obj7 = 0 ;
29016 char * kwnames[] = {
29017 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29018 };
29019
29020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29022 if (!SWIG_IsOK(res1)) {
29023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29024 }
29025 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29026 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29027 if (!SWIG_IsOK(res2)) {
29028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29029 }
29030 arg2 = reinterpret_cast< wxWindow * >(argp2);
29031 if (obj2) {
29032 ecode3 = SWIG_AsVal_int(obj2, &val3);
29033 if (!SWIG_IsOK(ecode3)) {
29034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29035 }
29036 arg3 = static_cast< int >(val3);
29037 }
29038 if (obj3) {
29039 {
29040 arg4 = &temp4;
29041 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29042 }
29043 }
29044 if (obj4) {
29045 {
29046 arg5 = &temp5;
29047 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29048 }
29049 }
29050 if (obj5) {
29051 ecode6 = SWIG_AsVal_long(obj5, &val6);
29052 if (!SWIG_IsOK(ecode6)) {
29053 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29054 }
29055 arg6 = static_cast< long >(val6);
29056 }
29057 if (obj6) {
29058 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29059 if (!SWIG_IsOK(res7)) {
29060 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29061 }
29062 if (!argp7) {
29063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29064 }
29065 arg7 = reinterpret_cast< wxValidator * >(argp7);
29066 }
29067 if (obj7) {
29068 {
29069 arg8 = wxString_in_helper(obj7);
29070 if (arg8 == NULL) SWIG_fail;
29071 temp8 = true;
29072 }
29073 }
29074 {
29075 PyThreadState* __tstate = wxPyBeginAllowThreads();
29076 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29077 wxPyEndAllowThreads(__tstate);
29078 if (PyErr_Occurred()) SWIG_fail;
29079 }
29080 {
29081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29082 }
29083 {
29084 if (temp8)
29085 delete arg8;
29086 }
29087 return resultobj;
29088 fail:
29089 {
29090 if (temp8)
29091 delete arg8;
29092 }
29093 return NULL;
29094 }
29095
29096
29097 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29098 PyObject *resultobj = 0;
29099 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29100 PyObject *arg2 = (PyObject *) 0 ;
29101 PyObject *arg3 = (PyObject *) 0 ;
29102 void *argp1 = 0 ;
29103 int res1 = 0 ;
29104 PyObject * obj0 = 0 ;
29105 PyObject * obj1 = 0 ;
29106 PyObject * obj2 = 0 ;
29107 char * kwnames[] = {
29108 (char *) "self",(char *) "self",(char *) "_class", NULL
29109 };
29110
29111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29113 if (!SWIG_IsOK(res1)) {
29114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29115 }
29116 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29117 arg2 = obj1;
29118 arg3 = obj2;
29119 {
29120 PyThreadState* __tstate = wxPyBeginAllowThreads();
29121 (arg1)->_setCallbackInfo(arg2,arg3);
29122 wxPyEndAllowThreads(__tstate);
29123 if (PyErr_Occurred()) SWIG_fail;
29124 }
29125 resultobj = SWIG_Py_Void();
29126 return resultobj;
29127 fail:
29128 return NULL;
29129 }
29130
29131
29132 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29133 PyObject *resultobj = 0;
29134 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29135 int arg2 ;
29136 wxListItem *result = 0 ;
29137 void *argp1 = 0 ;
29138 int res1 = 0 ;
29139 int val2 ;
29140 int ecode2 = 0 ;
29141 PyObject * obj0 = 0 ;
29142 PyObject * obj1 = 0 ;
29143 char * kwnames[] = {
29144 (char *) "self",(char *) "col", NULL
29145 };
29146
29147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29149 if (!SWIG_IsOK(res1)) {
29150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29151 }
29152 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29153 ecode2 = SWIG_AsVal_int(obj1, &val2);
29154 if (!SWIG_IsOK(ecode2)) {
29155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29156 }
29157 arg2 = static_cast< int >(val2);
29158 {
29159 PyThreadState* __tstate = wxPyBeginAllowThreads();
29160 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29161 wxPyEndAllowThreads(__tstate);
29162 if (PyErr_Occurred()) SWIG_fail;
29163 }
29164 {
29165 resultobj = wxPyMake_wxObject(result, 0);
29166 }
29167 return resultobj;
29168 fail:
29169 return NULL;
29170 }
29171
29172
29173 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29174 PyObject *resultobj = 0;
29175 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29176 int arg2 ;
29177 wxListItem *arg3 = 0 ;
29178 bool result;
29179 void *argp1 = 0 ;
29180 int res1 = 0 ;
29181 int val2 ;
29182 int ecode2 = 0 ;
29183 void *argp3 = 0 ;
29184 int res3 = 0 ;
29185 PyObject * obj0 = 0 ;
29186 PyObject * obj1 = 0 ;
29187 PyObject * obj2 = 0 ;
29188 char * kwnames[] = {
29189 (char *) "self",(char *) "col",(char *) "item", NULL
29190 };
29191
29192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29194 if (!SWIG_IsOK(res1)) {
29195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29196 }
29197 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29198 ecode2 = SWIG_AsVal_int(obj1, &val2);
29199 if (!SWIG_IsOK(ecode2)) {
29200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29201 }
29202 arg2 = static_cast< int >(val2);
29203 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29204 if (!SWIG_IsOK(res3)) {
29205 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29206 }
29207 if (!argp3) {
29208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29209 }
29210 arg3 = reinterpret_cast< wxListItem * >(argp3);
29211 {
29212 PyThreadState* __tstate = wxPyBeginAllowThreads();
29213 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29214 wxPyEndAllowThreads(__tstate);
29215 if (PyErr_Occurred()) SWIG_fail;
29216 }
29217 {
29218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29219 }
29220 return resultobj;
29221 fail:
29222 return NULL;
29223 }
29224
29225
29226 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29227 PyObject *resultobj = 0;
29228 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29229 int arg2 ;
29230 int result;
29231 void *argp1 = 0 ;
29232 int res1 = 0 ;
29233 int val2 ;
29234 int ecode2 = 0 ;
29235 PyObject * obj0 = 0 ;
29236 PyObject * obj1 = 0 ;
29237 char * kwnames[] = {
29238 (char *) "self",(char *) "col", NULL
29239 };
29240
29241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29243 if (!SWIG_IsOK(res1)) {
29244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29245 }
29246 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29247 ecode2 = SWIG_AsVal_int(obj1, &val2);
29248 if (!SWIG_IsOK(ecode2)) {
29249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29250 }
29251 arg2 = static_cast< int >(val2);
29252 {
29253 PyThreadState* __tstate = wxPyBeginAllowThreads();
29254 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29255 wxPyEndAllowThreads(__tstate);
29256 if (PyErr_Occurred()) SWIG_fail;
29257 }
29258 resultobj = SWIG_From_int(static_cast< int >(result));
29259 return resultobj;
29260 fail:
29261 return NULL;
29262 }
29263
29264
29265 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29266 PyObject *resultobj = 0;
29267 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29268 int arg2 ;
29269 int arg3 ;
29270 bool result;
29271 void *argp1 = 0 ;
29272 int res1 = 0 ;
29273 int val2 ;
29274 int ecode2 = 0 ;
29275 int val3 ;
29276 int ecode3 = 0 ;
29277 PyObject * obj0 = 0 ;
29278 PyObject * obj1 = 0 ;
29279 PyObject * obj2 = 0 ;
29280 char * kwnames[] = {
29281 (char *) "self",(char *) "col",(char *) "width", NULL
29282 };
29283
29284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29286 if (!SWIG_IsOK(res1)) {
29287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29288 }
29289 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29290 ecode2 = SWIG_AsVal_int(obj1, &val2);
29291 if (!SWIG_IsOK(ecode2)) {
29292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29293 }
29294 arg2 = static_cast< int >(val2);
29295 ecode3 = SWIG_AsVal_int(obj2, &val3);
29296 if (!SWIG_IsOK(ecode3)) {
29297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29298 }
29299 arg3 = static_cast< int >(val3);
29300 {
29301 PyThreadState* __tstate = wxPyBeginAllowThreads();
29302 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29303 wxPyEndAllowThreads(__tstate);
29304 if (PyErr_Occurred()) SWIG_fail;
29305 }
29306 {
29307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29308 }
29309 return resultobj;
29310 fail:
29311 return NULL;
29312 }
29313
29314
29315 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29316 PyObject *resultobj = 0;
29317 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29318 int result;
29319 void *argp1 = 0 ;
29320 int res1 = 0 ;
29321 PyObject *swig_obj[1] ;
29322
29323 if (!args) SWIG_fail;
29324 swig_obj[0] = args;
29325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29326 if (!SWIG_IsOK(res1)) {
29327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29328 }
29329 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29330 {
29331 PyThreadState* __tstate = wxPyBeginAllowThreads();
29332 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29333 wxPyEndAllowThreads(__tstate);
29334 if (PyErr_Occurred()) SWIG_fail;
29335 }
29336 resultobj = SWIG_From_int(static_cast< int >(result));
29337 return resultobj;
29338 fail:
29339 return NULL;
29340 }
29341
29342
29343 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29344 PyObject *resultobj = 0;
29345 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29346 wxRect result;
29347 void *argp1 = 0 ;
29348 int res1 = 0 ;
29349 PyObject *swig_obj[1] ;
29350
29351 if (!args) SWIG_fail;
29352 swig_obj[0] = args;
29353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29354 if (!SWIG_IsOK(res1)) {
29355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29356 }
29357 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29358 {
29359 PyThreadState* __tstate = wxPyBeginAllowThreads();
29360 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29361 wxPyEndAllowThreads(__tstate);
29362 if (PyErr_Occurred()) SWIG_fail;
29363 }
29364 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29365 return resultobj;
29366 fail:
29367 return NULL;
29368 }
29369
29370
29371 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29372 PyObject *resultobj = 0;
29373 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29374 wxTextCtrl *result = 0 ;
29375 void *argp1 = 0 ;
29376 int res1 = 0 ;
29377 PyObject *swig_obj[1] ;
29378
29379 if (!args) SWIG_fail;
29380 swig_obj[0] = args;
29381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29382 if (!SWIG_IsOK(res1)) {
29383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29384 }
29385 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29386 {
29387 PyThreadState* __tstate = wxPyBeginAllowThreads();
29388 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29389 wxPyEndAllowThreads(__tstate);
29390 if (PyErr_Occurred()) SWIG_fail;
29391 }
29392 {
29393 resultobj = wxPyMake_wxObject(result, 0);
29394 }
29395 return resultobj;
29396 fail:
29397 return NULL;
29398 }
29399
29400
29401 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29402 PyObject *resultobj = 0;
29403 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29404 long arg2 ;
29405 int arg3 = (int) 0 ;
29406 wxListItem *result = 0 ;
29407 void *argp1 = 0 ;
29408 int res1 = 0 ;
29409 long val2 ;
29410 int ecode2 = 0 ;
29411 int val3 ;
29412 int ecode3 = 0 ;
29413 PyObject * obj0 = 0 ;
29414 PyObject * obj1 = 0 ;
29415 PyObject * obj2 = 0 ;
29416 char * kwnames[] = {
29417 (char *) "self",(char *) "itemId",(char *) "col", NULL
29418 };
29419
29420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29422 if (!SWIG_IsOK(res1)) {
29423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29424 }
29425 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29426 ecode2 = SWIG_AsVal_long(obj1, &val2);
29427 if (!SWIG_IsOK(ecode2)) {
29428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29429 }
29430 arg2 = static_cast< long >(val2);
29431 if (obj2) {
29432 ecode3 = SWIG_AsVal_int(obj2, &val3);
29433 if (!SWIG_IsOK(ecode3)) {
29434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29435 }
29436 arg3 = static_cast< int >(val3);
29437 }
29438 {
29439 PyThreadState* __tstate = wxPyBeginAllowThreads();
29440 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29441 wxPyEndAllowThreads(__tstate);
29442 if (PyErr_Occurred()) SWIG_fail;
29443 }
29444 {
29445 resultobj = wxPyMake_wxObject(result, 0);
29446 }
29447 return resultobj;
29448 fail:
29449 return NULL;
29450 }
29451
29452
29453 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29454 PyObject *resultobj = 0;
29455 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29456 wxListItem *arg2 = 0 ;
29457 bool result;
29458 void *argp1 = 0 ;
29459 int res1 = 0 ;
29460 void *argp2 = 0 ;
29461 int res2 = 0 ;
29462 PyObject * obj0 = 0 ;
29463 PyObject * obj1 = 0 ;
29464 char * kwnames[] = {
29465 (char *) "self",(char *) "info", NULL
29466 };
29467
29468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29470 if (!SWIG_IsOK(res1)) {
29471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29472 }
29473 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29474 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29475 if (!SWIG_IsOK(res2)) {
29476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29477 }
29478 if (!argp2) {
29479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29480 }
29481 arg2 = reinterpret_cast< wxListItem * >(argp2);
29482 {
29483 PyThreadState* __tstate = wxPyBeginAllowThreads();
29484 result = (bool)(arg1)->SetItem(*arg2);
29485 wxPyEndAllowThreads(__tstate);
29486 if (PyErr_Occurred()) SWIG_fail;
29487 }
29488 {
29489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29490 }
29491 return resultobj;
29492 fail:
29493 return NULL;
29494 }
29495
29496
29497 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29498 PyObject *resultobj = 0;
29499 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29500 long arg2 ;
29501 int arg3 ;
29502 wxString *arg4 = 0 ;
29503 int arg5 = (int) -1 ;
29504 long result;
29505 void *argp1 = 0 ;
29506 int res1 = 0 ;
29507 long val2 ;
29508 int ecode2 = 0 ;
29509 int val3 ;
29510 int ecode3 = 0 ;
29511 bool temp4 = false ;
29512 int val5 ;
29513 int ecode5 = 0 ;
29514 PyObject * obj0 = 0 ;
29515 PyObject * obj1 = 0 ;
29516 PyObject * obj2 = 0 ;
29517 PyObject * obj3 = 0 ;
29518 PyObject * obj4 = 0 ;
29519 char * kwnames[] = {
29520 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29521 };
29522
29523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29525 if (!SWIG_IsOK(res1)) {
29526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29527 }
29528 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29529 ecode2 = SWIG_AsVal_long(obj1, &val2);
29530 if (!SWIG_IsOK(ecode2)) {
29531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29532 }
29533 arg2 = static_cast< long >(val2);
29534 ecode3 = SWIG_AsVal_int(obj2, &val3);
29535 if (!SWIG_IsOK(ecode3)) {
29536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29537 }
29538 arg3 = static_cast< int >(val3);
29539 {
29540 arg4 = wxString_in_helper(obj3);
29541 if (arg4 == NULL) SWIG_fail;
29542 temp4 = true;
29543 }
29544 if (obj4) {
29545 ecode5 = SWIG_AsVal_int(obj4, &val5);
29546 if (!SWIG_IsOK(ecode5)) {
29547 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29548 }
29549 arg5 = static_cast< int >(val5);
29550 }
29551 {
29552 PyThreadState* __tstate = wxPyBeginAllowThreads();
29553 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29554 wxPyEndAllowThreads(__tstate);
29555 if (PyErr_Occurred()) SWIG_fail;
29556 }
29557 resultobj = SWIG_From_long(static_cast< long >(result));
29558 {
29559 if (temp4)
29560 delete arg4;
29561 }
29562 return resultobj;
29563 fail:
29564 {
29565 if (temp4)
29566 delete arg4;
29567 }
29568 return NULL;
29569 }
29570
29571
29572 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29573 PyObject *resultobj = 0;
29574 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29575 long arg2 ;
29576 long arg3 ;
29577 int result;
29578 void *argp1 = 0 ;
29579 int res1 = 0 ;
29580 long val2 ;
29581 int ecode2 = 0 ;
29582 long val3 ;
29583 int ecode3 = 0 ;
29584 PyObject * obj0 = 0 ;
29585 PyObject * obj1 = 0 ;
29586 PyObject * obj2 = 0 ;
29587 char * kwnames[] = {
29588 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29589 };
29590
29591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29593 if (!SWIG_IsOK(res1)) {
29594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29595 }
29596 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29597 ecode2 = SWIG_AsVal_long(obj1, &val2);
29598 if (!SWIG_IsOK(ecode2)) {
29599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29600 }
29601 arg2 = static_cast< long >(val2);
29602 ecode3 = SWIG_AsVal_long(obj2, &val3);
29603 if (!SWIG_IsOK(ecode3)) {
29604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29605 }
29606 arg3 = static_cast< long >(val3);
29607 {
29608 PyThreadState* __tstate = wxPyBeginAllowThreads();
29609 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29610 wxPyEndAllowThreads(__tstate);
29611 if (PyErr_Occurred()) SWIG_fail;
29612 }
29613 resultobj = SWIG_From_int(static_cast< int >(result));
29614 return resultobj;
29615 fail:
29616 return NULL;
29617 }
29618
29619
29620 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29621 PyObject *resultobj = 0;
29622 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29623 long arg2 ;
29624 long arg3 ;
29625 long arg4 ;
29626 bool result;
29627 void *argp1 = 0 ;
29628 int res1 = 0 ;
29629 long val2 ;
29630 int ecode2 = 0 ;
29631 long val3 ;
29632 int ecode3 = 0 ;
29633 long val4 ;
29634 int ecode4 = 0 ;
29635 PyObject * obj0 = 0 ;
29636 PyObject * obj1 = 0 ;
29637 PyObject * obj2 = 0 ;
29638 PyObject * obj3 = 0 ;
29639 char * kwnames[] = {
29640 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29641 };
29642
29643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29645 if (!SWIG_IsOK(res1)) {
29646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29647 }
29648 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29649 ecode2 = SWIG_AsVal_long(obj1, &val2);
29650 if (!SWIG_IsOK(ecode2)) {
29651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29652 }
29653 arg2 = static_cast< long >(val2);
29654 ecode3 = SWIG_AsVal_long(obj2, &val3);
29655 if (!SWIG_IsOK(ecode3)) {
29656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29657 }
29658 arg3 = static_cast< long >(val3);
29659 ecode4 = SWIG_AsVal_long(obj3, &val4);
29660 if (!SWIG_IsOK(ecode4)) {
29661 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29662 }
29663 arg4 = static_cast< long >(val4);
29664 {
29665 PyThreadState* __tstate = wxPyBeginAllowThreads();
29666 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29667 wxPyEndAllowThreads(__tstate);
29668 if (PyErr_Occurred()) SWIG_fail;
29669 }
29670 {
29671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29672 }
29673 return resultobj;
29674 fail:
29675 return NULL;
29676 }
29677
29678
29679 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29680 PyObject *resultobj = 0;
29681 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29682 long arg2 ;
29683 int arg3 ;
29684 int arg4 = (int) -1 ;
29685 bool result;
29686 void *argp1 = 0 ;
29687 int res1 = 0 ;
29688 long val2 ;
29689 int ecode2 = 0 ;
29690 int val3 ;
29691 int ecode3 = 0 ;
29692 int val4 ;
29693 int ecode4 = 0 ;
29694 PyObject * obj0 = 0 ;
29695 PyObject * obj1 = 0 ;
29696 PyObject * obj2 = 0 ;
29697 PyObject * obj3 = 0 ;
29698 char * kwnames[] = {
29699 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29700 };
29701
29702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29704 if (!SWIG_IsOK(res1)) {
29705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29706 }
29707 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29708 ecode2 = SWIG_AsVal_long(obj1, &val2);
29709 if (!SWIG_IsOK(ecode2)) {
29710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29711 }
29712 arg2 = static_cast< long >(val2);
29713 ecode3 = SWIG_AsVal_int(obj2, &val3);
29714 if (!SWIG_IsOK(ecode3)) {
29715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29716 }
29717 arg3 = static_cast< int >(val3);
29718 if (obj3) {
29719 ecode4 = SWIG_AsVal_int(obj3, &val4);
29720 if (!SWIG_IsOK(ecode4)) {
29721 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29722 }
29723 arg4 = static_cast< int >(val4);
29724 }
29725 {
29726 PyThreadState* __tstate = wxPyBeginAllowThreads();
29727 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29728 wxPyEndAllowThreads(__tstate);
29729 if (PyErr_Occurred()) SWIG_fail;
29730 }
29731 {
29732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29733 }
29734 return resultobj;
29735 fail:
29736 return NULL;
29737 }
29738
29739
29740 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29741 PyObject *resultobj = 0;
29742 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29743 long arg2 ;
29744 long arg3 ;
29745 int arg4 ;
29746 bool result;
29747 void *argp1 = 0 ;
29748 int res1 = 0 ;
29749 long val2 ;
29750 int ecode2 = 0 ;
29751 long val3 ;
29752 int ecode3 = 0 ;
29753 int val4 ;
29754 int ecode4 = 0 ;
29755 PyObject * obj0 = 0 ;
29756 PyObject * obj1 = 0 ;
29757 PyObject * obj2 = 0 ;
29758 PyObject * obj3 = 0 ;
29759 char * kwnames[] = {
29760 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29761 };
29762
29763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29765 if (!SWIG_IsOK(res1)) {
29766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29767 }
29768 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29769 ecode2 = SWIG_AsVal_long(obj1, &val2);
29770 if (!SWIG_IsOK(ecode2)) {
29771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29772 }
29773 arg2 = static_cast< long >(val2);
29774 ecode3 = SWIG_AsVal_long(obj2, &val3);
29775 if (!SWIG_IsOK(ecode3)) {
29776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29777 }
29778 arg3 = static_cast< long >(val3);
29779 ecode4 = SWIG_AsVal_int(obj3, &val4);
29780 if (!SWIG_IsOK(ecode4)) {
29781 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29782 }
29783 arg4 = static_cast< int >(val4);
29784 {
29785 PyThreadState* __tstate = wxPyBeginAllowThreads();
29786 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29787 wxPyEndAllowThreads(__tstate);
29788 if (PyErr_Occurred()) SWIG_fail;
29789 }
29790 {
29791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29792 }
29793 return resultobj;
29794 fail:
29795 return NULL;
29796 }
29797
29798
29799 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29800 PyObject *resultobj = 0;
29801 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29802 long arg2 ;
29803 wxString result;
29804 void *argp1 = 0 ;
29805 int res1 = 0 ;
29806 long val2 ;
29807 int ecode2 = 0 ;
29808 PyObject * obj0 = 0 ;
29809 PyObject * obj1 = 0 ;
29810 char * kwnames[] = {
29811 (char *) "self",(char *) "item", NULL
29812 };
29813
29814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29816 if (!SWIG_IsOK(res1)) {
29817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29818 }
29819 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29820 ecode2 = SWIG_AsVal_long(obj1, &val2);
29821 if (!SWIG_IsOK(ecode2)) {
29822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29823 }
29824 arg2 = static_cast< long >(val2);
29825 {
29826 PyThreadState* __tstate = wxPyBeginAllowThreads();
29827 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29828 wxPyEndAllowThreads(__tstate);
29829 if (PyErr_Occurred()) SWIG_fail;
29830 }
29831 {
29832 #if wxUSE_UNICODE
29833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29834 #else
29835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29836 #endif
29837 }
29838 return resultobj;
29839 fail:
29840 return NULL;
29841 }
29842
29843
29844 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29845 PyObject *resultobj = 0;
29846 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29847 long arg2 ;
29848 wxString *arg3 = 0 ;
29849 void *argp1 = 0 ;
29850 int res1 = 0 ;
29851 long val2 ;
29852 int ecode2 = 0 ;
29853 bool temp3 = false ;
29854 PyObject * obj0 = 0 ;
29855 PyObject * obj1 = 0 ;
29856 PyObject * obj2 = 0 ;
29857 char * kwnames[] = {
29858 (char *) "self",(char *) "item",(char *) "str", NULL
29859 };
29860
29861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29863 if (!SWIG_IsOK(res1)) {
29864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29865 }
29866 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29867 ecode2 = SWIG_AsVal_long(obj1, &val2);
29868 if (!SWIG_IsOK(ecode2)) {
29869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29870 }
29871 arg2 = static_cast< long >(val2);
29872 {
29873 arg3 = wxString_in_helper(obj2);
29874 if (arg3 == NULL) SWIG_fail;
29875 temp3 = true;
29876 }
29877 {
29878 PyThreadState* __tstate = wxPyBeginAllowThreads();
29879 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29880 wxPyEndAllowThreads(__tstate);
29881 if (PyErr_Occurred()) SWIG_fail;
29882 }
29883 resultobj = SWIG_Py_Void();
29884 {
29885 if (temp3)
29886 delete arg3;
29887 }
29888 return resultobj;
29889 fail:
29890 {
29891 if (temp3)
29892 delete arg3;
29893 }
29894 return NULL;
29895 }
29896
29897
29898 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29899 PyObject *resultobj = 0;
29900 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29901 long arg2 ;
29902 long result;
29903 void *argp1 = 0 ;
29904 int res1 = 0 ;
29905 long val2 ;
29906 int ecode2 = 0 ;
29907 PyObject * obj0 = 0 ;
29908 PyObject * obj1 = 0 ;
29909 char * kwnames[] = {
29910 (char *) "self",(char *) "item", NULL
29911 };
29912
29913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29915 if (!SWIG_IsOK(res1)) {
29916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29917 }
29918 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29919 ecode2 = SWIG_AsVal_long(obj1, &val2);
29920 if (!SWIG_IsOK(ecode2)) {
29921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29922 }
29923 arg2 = static_cast< long >(val2);
29924 {
29925 PyThreadState* __tstate = wxPyBeginAllowThreads();
29926 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29927 wxPyEndAllowThreads(__tstate);
29928 if (PyErr_Occurred()) SWIG_fail;
29929 }
29930 resultobj = SWIG_From_long(static_cast< long >(result));
29931 return resultobj;
29932 fail:
29933 return NULL;
29934 }
29935
29936
29937 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29938 PyObject *resultobj = 0;
29939 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29940 long arg2 ;
29941 long arg3 ;
29942 bool result;
29943 void *argp1 = 0 ;
29944 int res1 = 0 ;
29945 long val2 ;
29946 int ecode2 = 0 ;
29947 long val3 ;
29948 int ecode3 = 0 ;
29949 PyObject * obj0 = 0 ;
29950 PyObject * obj1 = 0 ;
29951 PyObject * obj2 = 0 ;
29952 char * kwnames[] = {
29953 (char *) "self",(char *) "item",(char *) "data", NULL
29954 };
29955
29956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29958 if (!SWIG_IsOK(res1)) {
29959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29960 }
29961 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29962 ecode2 = SWIG_AsVal_long(obj1, &val2);
29963 if (!SWIG_IsOK(ecode2)) {
29964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29965 }
29966 arg2 = static_cast< long >(val2);
29967 ecode3 = SWIG_AsVal_long(obj2, &val3);
29968 if (!SWIG_IsOK(ecode3)) {
29969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29970 }
29971 arg3 = static_cast< long >(val3);
29972 {
29973 PyThreadState* __tstate = wxPyBeginAllowThreads();
29974 result = (bool)(arg1)->SetItemData(arg2,arg3);
29975 wxPyEndAllowThreads(__tstate);
29976 if (PyErr_Occurred()) SWIG_fail;
29977 }
29978 {
29979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29980 }
29981 return resultobj;
29982 fail:
29983 return NULL;
29984 }
29985
29986
29987 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29988 PyObject *resultobj = 0;
29989 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29990 long arg2 ;
29991 wxPoint result;
29992 void *argp1 = 0 ;
29993 int res1 = 0 ;
29994 long val2 ;
29995 int ecode2 = 0 ;
29996 PyObject * obj0 = 0 ;
29997 PyObject * obj1 = 0 ;
29998 char * kwnames[] = {
29999 (char *) "self",(char *) "item", NULL
30000 };
30001
30002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30004 if (!SWIG_IsOK(res1)) {
30005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30006 }
30007 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30008 ecode2 = SWIG_AsVal_long(obj1, &val2);
30009 if (!SWIG_IsOK(ecode2)) {
30010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30011 }
30012 arg2 = static_cast< long >(val2);
30013 {
30014 PyThreadState* __tstate = wxPyBeginAllowThreads();
30015 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30016 wxPyEndAllowThreads(__tstate);
30017 if (PyErr_Occurred()) SWIG_fail;
30018 }
30019 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30020 return resultobj;
30021 fail:
30022 return NULL;
30023 }
30024
30025
30026 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30027 PyObject *resultobj = 0;
30028 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30029 long arg2 ;
30030 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30031 wxRect result;
30032 void *argp1 = 0 ;
30033 int res1 = 0 ;
30034 long val2 ;
30035 int ecode2 = 0 ;
30036 int val3 ;
30037 int ecode3 = 0 ;
30038 PyObject * obj0 = 0 ;
30039 PyObject * obj1 = 0 ;
30040 PyObject * obj2 = 0 ;
30041 char * kwnames[] = {
30042 (char *) "self",(char *) "item",(char *) "code", NULL
30043 };
30044
30045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30047 if (!SWIG_IsOK(res1)) {
30048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30049 }
30050 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30051 ecode2 = SWIG_AsVal_long(obj1, &val2);
30052 if (!SWIG_IsOK(ecode2)) {
30053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30054 }
30055 arg2 = static_cast< long >(val2);
30056 if (obj2) {
30057 ecode3 = SWIG_AsVal_int(obj2, &val3);
30058 if (!SWIG_IsOK(ecode3)) {
30059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30060 }
30061 arg3 = static_cast< int >(val3);
30062 }
30063 {
30064 PyThreadState* __tstate = wxPyBeginAllowThreads();
30065 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30066 wxPyEndAllowThreads(__tstate);
30067 if (PyErr_Occurred()) SWIG_fail;
30068 }
30069 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30070 return resultobj;
30071 fail:
30072 return NULL;
30073 }
30074
30075
30076 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30077 PyObject *resultobj = 0;
30078 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30079 long arg2 ;
30080 wxPoint *arg3 = 0 ;
30081 bool result;
30082 void *argp1 = 0 ;
30083 int res1 = 0 ;
30084 long val2 ;
30085 int ecode2 = 0 ;
30086 wxPoint temp3 ;
30087 PyObject * obj0 = 0 ;
30088 PyObject * obj1 = 0 ;
30089 PyObject * obj2 = 0 ;
30090 char * kwnames[] = {
30091 (char *) "self",(char *) "item",(char *) "pos", NULL
30092 };
30093
30094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30096 if (!SWIG_IsOK(res1)) {
30097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30098 }
30099 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30100 ecode2 = SWIG_AsVal_long(obj1, &val2);
30101 if (!SWIG_IsOK(ecode2)) {
30102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30103 }
30104 arg2 = static_cast< long >(val2);
30105 {
30106 arg3 = &temp3;
30107 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30108 }
30109 {
30110 PyThreadState* __tstate = wxPyBeginAllowThreads();
30111 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30112 wxPyEndAllowThreads(__tstate);
30113 if (PyErr_Occurred()) SWIG_fail;
30114 }
30115 {
30116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30117 }
30118 return resultobj;
30119 fail:
30120 return NULL;
30121 }
30122
30123
30124 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30125 PyObject *resultobj = 0;
30126 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30127 int result;
30128 void *argp1 = 0 ;
30129 int res1 = 0 ;
30130 PyObject *swig_obj[1] ;
30131
30132 if (!args) SWIG_fail;
30133 swig_obj[0] = args;
30134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30135 if (!SWIG_IsOK(res1)) {
30136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30137 }
30138 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30139 {
30140 PyThreadState* __tstate = wxPyBeginAllowThreads();
30141 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30142 wxPyEndAllowThreads(__tstate);
30143 if (PyErr_Occurred()) SWIG_fail;
30144 }
30145 resultobj = SWIG_From_int(static_cast< int >(result));
30146 return resultobj;
30147 fail:
30148 return NULL;
30149 }
30150
30151
30152 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30153 PyObject *resultobj = 0;
30154 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30155 int result;
30156 void *argp1 = 0 ;
30157 int res1 = 0 ;
30158 PyObject *swig_obj[1] ;
30159
30160 if (!args) SWIG_fail;
30161 swig_obj[0] = args;
30162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30163 if (!SWIG_IsOK(res1)) {
30164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30165 }
30166 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30167 {
30168 PyThreadState* __tstate = wxPyBeginAllowThreads();
30169 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30170 wxPyEndAllowThreads(__tstate);
30171 if (PyErr_Occurred()) SWIG_fail;
30172 }
30173 resultobj = SWIG_From_int(static_cast< int >(result));
30174 return resultobj;
30175 fail:
30176 return NULL;
30177 }
30178
30179
30180 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30181 PyObject *resultobj = 0;
30182 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30183 wxSize result;
30184 void *argp1 = 0 ;
30185 int res1 = 0 ;
30186 PyObject *swig_obj[1] ;
30187
30188 if (!args) SWIG_fail;
30189 swig_obj[0] = args;
30190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30191 if (!SWIG_IsOK(res1)) {
30192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30193 }
30194 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30195 {
30196 PyThreadState* __tstate = wxPyBeginAllowThreads();
30197 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30198 wxPyEndAllowThreads(__tstate);
30199 if (PyErr_Occurred()) SWIG_fail;
30200 }
30201 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30202 return resultobj;
30203 fail:
30204 return NULL;
30205 }
30206
30207
30208 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30209 PyObject *resultobj = 0;
30210 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30211 int arg2 ;
30212 bool arg3 = (bool) false ;
30213 void *argp1 = 0 ;
30214 int res1 = 0 ;
30215 int val2 ;
30216 int ecode2 = 0 ;
30217 bool val3 ;
30218 int ecode3 = 0 ;
30219 PyObject * obj0 = 0 ;
30220 PyObject * obj1 = 0 ;
30221 PyObject * obj2 = 0 ;
30222 char * kwnames[] = {
30223 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30224 };
30225
30226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30228 if (!SWIG_IsOK(res1)) {
30229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30230 }
30231 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30232 ecode2 = SWIG_AsVal_int(obj1, &val2);
30233 if (!SWIG_IsOK(ecode2)) {
30234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30235 }
30236 arg2 = static_cast< int >(val2);
30237 if (obj2) {
30238 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30239 if (!SWIG_IsOK(ecode3)) {
30240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30241 }
30242 arg3 = static_cast< bool >(val3);
30243 }
30244 {
30245 PyThreadState* __tstate = wxPyBeginAllowThreads();
30246 (arg1)->SetItemSpacing(arg2,arg3);
30247 wxPyEndAllowThreads(__tstate);
30248 if (PyErr_Occurred()) SWIG_fail;
30249 }
30250 resultobj = SWIG_Py_Void();
30251 return resultobj;
30252 fail:
30253 return NULL;
30254 }
30255
30256
30257 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30258 PyObject *resultobj = 0;
30259 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30260 int result;
30261 void *argp1 = 0 ;
30262 int res1 = 0 ;
30263 PyObject *swig_obj[1] ;
30264
30265 if (!args) SWIG_fail;
30266 swig_obj[0] = args;
30267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30268 if (!SWIG_IsOK(res1)) {
30269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30270 }
30271 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30272 {
30273 PyThreadState* __tstate = wxPyBeginAllowThreads();
30274 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30275 wxPyEndAllowThreads(__tstate);
30276 if (PyErr_Occurred()) SWIG_fail;
30277 }
30278 resultobj = SWIG_From_int(static_cast< int >(result));
30279 return resultobj;
30280 fail:
30281 return NULL;
30282 }
30283
30284
30285 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30286 PyObject *resultobj = 0;
30287 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30288 wxColour result;
30289 void *argp1 = 0 ;
30290 int res1 = 0 ;
30291 PyObject *swig_obj[1] ;
30292
30293 if (!args) SWIG_fail;
30294 swig_obj[0] = args;
30295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30296 if (!SWIG_IsOK(res1)) {
30297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30298 }
30299 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30300 {
30301 PyThreadState* __tstate = wxPyBeginAllowThreads();
30302 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30303 wxPyEndAllowThreads(__tstate);
30304 if (PyErr_Occurred()) SWIG_fail;
30305 }
30306 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30307 return resultobj;
30308 fail:
30309 return NULL;
30310 }
30311
30312
30313 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30314 PyObject *resultobj = 0;
30315 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30316 wxColour *arg2 = 0 ;
30317 void *argp1 = 0 ;
30318 int res1 = 0 ;
30319 wxColour temp2 ;
30320 PyObject * obj0 = 0 ;
30321 PyObject * obj1 = 0 ;
30322 char * kwnames[] = {
30323 (char *) "self",(char *) "col", NULL
30324 };
30325
30326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30328 if (!SWIG_IsOK(res1)) {
30329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30330 }
30331 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30332 {
30333 arg2 = &temp2;
30334 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30335 }
30336 {
30337 PyThreadState* __tstate = wxPyBeginAllowThreads();
30338 (arg1)->SetTextColour((wxColour const &)*arg2);
30339 wxPyEndAllowThreads(__tstate);
30340 if (PyErr_Occurred()) SWIG_fail;
30341 }
30342 resultobj = SWIG_Py_Void();
30343 return resultobj;
30344 fail:
30345 return NULL;
30346 }
30347
30348
30349 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30350 PyObject *resultobj = 0;
30351 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30352 long result;
30353 void *argp1 = 0 ;
30354 int res1 = 0 ;
30355 PyObject *swig_obj[1] ;
30356
30357 if (!args) SWIG_fail;
30358 swig_obj[0] = args;
30359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30360 if (!SWIG_IsOK(res1)) {
30361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30362 }
30363 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30364 {
30365 PyThreadState* __tstate = wxPyBeginAllowThreads();
30366 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30367 wxPyEndAllowThreads(__tstate);
30368 if (PyErr_Occurred()) SWIG_fail;
30369 }
30370 resultobj = SWIG_From_long(static_cast< long >(result));
30371 return resultobj;
30372 fail:
30373 return NULL;
30374 }
30375
30376
30377 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30378 PyObject *resultobj = 0;
30379 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30380 long arg2 ;
30381 bool arg3 = (bool) true ;
30382 void *argp1 = 0 ;
30383 int res1 = 0 ;
30384 long val2 ;
30385 int ecode2 = 0 ;
30386 bool val3 ;
30387 int ecode3 = 0 ;
30388 PyObject * obj0 = 0 ;
30389 PyObject * obj1 = 0 ;
30390 PyObject * obj2 = 0 ;
30391 char * kwnames[] = {
30392 (char *) "self",(char *) "style",(char *) "add", NULL
30393 };
30394
30395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30397 if (!SWIG_IsOK(res1)) {
30398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30399 }
30400 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30401 ecode2 = SWIG_AsVal_long(obj1, &val2);
30402 if (!SWIG_IsOK(ecode2)) {
30403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30404 }
30405 arg2 = static_cast< long >(val2);
30406 if (obj2) {
30407 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30408 if (!SWIG_IsOK(ecode3)) {
30409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30410 }
30411 arg3 = static_cast< bool >(val3);
30412 }
30413 {
30414 PyThreadState* __tstate = wxPyBeginAllowThreads();
30415 (arg1)->SetSingleStyle(arg2,arg3);
30416 wxPyEndAllowThreads(__tstate);
30417 if (PyErr_Occurred()) SWIG_fail;
30418 }
30419 resultobj = SWIG_Py_Void();
30420 return resultobj;
30421 fail:
30422 return NULL;
30423 }
30424
30425
30426 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30427 PyObject *resultobj = 0;
30428 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30429 long arg2 ;
30430 int arg3 = (int) wxLIST_NEXT_ALL ;
30431 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30432 long result;
30433 void *argp1 = 0 ;
30434 int res1 = 0 ;
30435 long val2 ;
30436 int ecode2 = 0 ;
30437 int val3 ;
30438 int ecode3 = 0 ;
30439 int val4 ;
30440 int ecode4 = 0 ;
30441 PyObject * obj0 = 0 ;
30442 PyObject * obj1 = 0 ;
30443 PyObject * obj2 = 0 ;
30444 PyObject * obj3 = 0 ;
30445 char * kwnames[] = {
30446 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30447 };
30448
30449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30451 if (!SWIG_IsOK(res1)) {
30452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30453 }
30454 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30455 ecode2 = SWIG_AsVal_long(obj1, &val2);
30456 if (!SWIG_IsOK(ecode2)) {
30457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30458 }
30459 arg2 = static_cast< long >(val2);
30460 if (obj2) {
30461 ecode3 = SWIG_AsVal_int(obj2, &val3);
30462 if (!SWIG_IsOK(ecode3)) {
30463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30464 }
30465 arg3 = static_cast< int >(val3);
30466 }
30467 if (obj3) {
30468 ecode4 = SWIG_AsVal_int(obj3, &val4);
30469 if (!SWIG_IsOK(ecode4)) {
30470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30471 }
30472 arg4 = static_cast< int >(val4);
30473 }
30474 {
30475 PyThreadState* __tstate = wxPyBeginAllowThreads();
30476 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30477 wxPyEndAllowThreads(__tstate);
30478 if (PyErr_Occurred()) SWIG_fail;
30479 }
30480 resultobj = SWIG_From_long(static_cast< long >(result));
30481 return resultobj;
30482 fail:
30483 return NULL;
30484 }
30485
30486
30487 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30488 PyObject *resultobj = 0;
30489 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30490 int arg2 ;
30491 wxImageList *result = 0 ;
30492 void *argp1 = 0 ;
30493 int res1 = 0 ;
30494 int val2 ;
30495 int ecode2 = 0 ;
30496 PyObject * obj0 = 0 ;
30497 PyObject * obj1 = 0 ;
30498 char * kwnames[] = {
30499 (char *) "self",(char *) "which", NULL
30500 };
30501
30502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30504 if (!SWIG_IsOK(res1)) {
30505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30506 }
30507 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30508 ecode2 = SWIG_AsVal_int(obj1, &val2);
30509 if (!SWIG_IsOK(ecode2)) {
30510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30511 }
30512 arg2 = static_cast< int >(val2);
30513 {
30514 PyThreadState* __tstate = wxPyBeginAllowThreads();
30515 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30516 wxPyEndAllowThreads(__tstate);
30517 if (PyErr_Occurred()) SWIG_fail;
30518 }
30519 {
30520 resultobj = wxPyMake_wxObject(result, (bool)0);
30521 }
30522 return resultobj;
30523 fail:
30524 return NULL;
30525 }
30526
30527
30528 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30529 PyObject *resultobj = 0;
30530 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30531 wxImageList *arg2 = (wxImageList *) 0 ;
30532 int arg3 ;
30533 void *argp1 = 0 ;
30534 int res1 = 0 ;
30535 void *argp2 = 0 ;
30536 int res2 = 0 ;
30537 int val3 ;
30538 int ecode3 = 0 ;
30539 PyObject * obj0 = 0 ;
30540 PyObject * obj1 = 0 ;
30541 PyObject * obj2 = 0 ;
30542 char * kwnames[] = {
30543 (char *) "self",(char *) "imageList",(char *) "which", NULL
30544 };
30545
30546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30548 if (!SWIG_IsOK(res1)) {
30549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30550 }
30551 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30552 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30553 if (!SWIG_IsOK(res2)) {
30554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30555 }
30556 arg2 = reinterpret_cast< wxImageList * >(argp2);
30557 ecode3 = SWIG_AsVal_int(obj2, &val3);
30558 if (!SWIG_IsOK(ecode3)) {
30559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30560 }
30561 arg3 = static_cast< int >(val3);
30562 {
30563 PyThreadState* __tstate = wxPyBeginAllowThreads();
30564 (arg1)->SetImageList(arg2,arg3);
30565 wxPyEndAllowThreads(__tstate);
30566 if (PyErr_Occurred()) SWIG_fail;
30567 }
30568 resultobj = SWIG_Py_Void();
30569 return resultobj;
30570 fail:
30571 return NULL;
30572 }
30573
30574
30575 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30576 PyObject *resultobj = 0;
30577 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30578 wxImageList *arg2 = (wxImageList *) 0 ;
30579 int arg3 ;
30580 void *argp1 = 0 ;
30581 int res1 = 0 ;
30582 int res2 = 0 ;
30583 int val3 ;
30584 int ecode3 = 0 ;
30585 PyObject * obj0 = 0 ;
30586 PyObject * obj1 = 0 ;
30587 PyObject * obj2 = 0 ;
30588 char * kwnames[] = {
30589 (char *) "self",(char *) "imageList",(char *) "which", NULL
30590 };
30591
30592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30594 if (!SWIG_IsOK(res1)) {
30595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30596 }
30597 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30598 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30599 if (!SWIG_IsOK(res2)) {
30600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30601 }
30602 ecode3 = SWIG_AsVal_int(obj2, &val3);
30603 if (!SWIG_IsOK(ecode3)) {
30604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30605 }
30606 arg3 = static_cast< int >(val3);
30607 {
30608 PyThreadState* __tstate = wxPyBeginAllowThreads();
30609 (arg1)->AssignImageList(arg2,arg3);
30610 wxPyEndAllowThreads(__tstate);
30611 if (PyErr_Occurred()) SWIG_fail;
30612 }
30613 resultobj = SWIG_Py_Void();
30614 return resultobj;
30615 fail:
30616 return NULL;
30617 }
30618
30619
30620 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30621 PyObject *resultobj = 0;
30622 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30623 bool result;
30624 void *argp1 = 0 ;
30625 int res1 = 0 ;
30626 PyObject *swig_obj[1] ;
30627
30628 if (!args) SWIG_fail;
30629 swig_obj[0] = args;
30630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30631 if (!SWIG_IsOK(res1)) {
30632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30633 }
30634 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30635 {
30636 PyThreadState* __tstate = wxPyBeginAllowThreads();
30637 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30638 wxPyEndAllowThreads(__tstate);
30639 if (PyErr_Occurred()) SWIG_fail;
30640 }
30641 {
30642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30643 }
30644 return resultobj;
30645 fail:
30646 return NULL;
30647 }
30648
30649
30650 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30651 PyObject *resultobj = 0;
30652 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30653 bool result;
30654 void *argp1 = 0 ;
30655 int res1 = 0 ;
30656 PyObject *swig_obj[1] ;
30657
30658 if (!args) SWIG_fail;
30659 swig_obj[0] = args;
30660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30661 if (!SWIG_IsOK(res1)) {
30662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30663 }
30664 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30665 {
30666 PyThreadState* __tstate = wxPyBeginAllowThreads();
30667 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30668 wxPyEndAllowThreads(__tstate);
30669 if (PyErr_Occurred()) SWIG_fail;
30670 }
30671 {
30672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30673 }
30674 return resultobj;
30675 fail:
30676 return NULL;
30677 }
30678
30679
30680 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30681 PyObject *resultobj = 0;
30682 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30683 long arg2 ;
30684 void *argp1 = 0 ;
30685 int res1 = 0 ;
30686 long val2 ;
30687 int ecode2 = 0 ;
30688 PyObject * obj0 = 0 ;
30689 PyObject * obj1 = 0 ;
30690 char * kwnames[] = {
30691 (char *) "self",(char *) "item", NULL
30692 };
30693
30694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30696 if (!SWIG_IsOK(res1)) {
30697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30698 }
30699 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30700 ecode2 = SWIG_AsVal_long(obj1, &val2);
30701 if (!SWIG_IsOK(ecode2)) {
30702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30703 }
30704 arg2 = static_cast< long >(val2);
30705 {
30706 PyThreadState* __tstate = wxPyBeginAllowThreads();
30707 (arg1)->RefreshItem(arg2);
30708 wxPyEndAllowThreads(__tstate);
30709 if (PyErr_Occurred()) SWIG_fail;
30710 }
30711 resultobj = SWIG_Py_Void();
30712 return resultobj;
30713 fail:
30714 return NULL;
30715 }
30716
30717
30718 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30719 PyObject *resultobj = 0;
30720 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30721 long arg2 ;
30722 long arg3 ;
30723 void *argp1 = 0 ;
30724 int res1 = 0 ;
30725 long val2 ;
30726 int ecode2 = 0 ;
30727 long val3 ;
30728 int ecode3 = 0 ;
30729 PyObject * obj0 = 0 ;
30730 PyObject * obj1 = 0 ;
30731 PyObject * obj2 = 0 ;
30732 char * kwnames[] = {
30733 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30734 };
30735
30736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30738 if (!SWIG_IsOK(res1)) {
30739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30740 }
30741 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30742 ecode2 = SWIG_AsVal_long(obj1, &val2);
30743 if (!SWIG_IsOK(ecode2)) {
30744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30745 }
30746 arg2 = static_cast< long >(val2);
30747 ecode3 = SWIG_AsVal_long(obj2, &val3);
30748 if (!SWIG_IsOK(ecode3)) {
30749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30750 }
30751 arg3 = static_cast< long >(val3);
30752 {
30753 PyThreadState* __tstate = wxPyBeginAllowThreads();
30754 (arg1)->RefreshItems(arg2,arg3);
30755 wxPyEndAllowThreads(__tstate);
30756 if (PyErr_Occurred()) SWIG_fail;
30757 }
30758 resultobj = SWIG_Py_Void();
30759 return resultobj;
30760 fail:
30761 return NULL;
30762 }
30763
30764
30765 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30766 PyObject *resultobj = 0;
30767 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30768 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30769 bool result;
30770 void *argp1 = 0 ;
30771 int res1 = 0 ;
30772 int val2 ;
30773 int ecode2 = 0 ;
30774 PyObject * obj0 = 0 ;
30775 PyObject * obj1 = 0 ;
30776 char * kwnames[] = {
30777 (char *) "self",(char *) "flag", NULL
30778 };
30779
30780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30782 if (!SWIG_IsOK(res1)) {
30783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30784 }
30785 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30786 if (obj1) {
30787 ecode2 = SWIG_AsVal_int(obj1, &val2);
30788 if (!SWIG_IsOK(ecode2)) {
30789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30790 }
30791 arg2 = static_cast< int >(val2);
30792 }
30793 {
30794 PyThreadState* __tstate = wxPyBeginAllowThreads();
30795 result = (bool)(arg1)->Arrange(arg2);
30796 wxPyEndAllowThreads(__tstate);
30797 if (PyErr_Occurred()) SWIG_fail;
30798 }
30799 {
30800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30801 }
30802 return resultobj;
30803 fail:
30804 return NULL;
30805 }
30806
30807
30808 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30809 PyObject *resultobj = 0;
30810 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30811 long arg2 ;
30812 bool result;
30813 void *argp1 = 0 ;
30814 int res1 = 0 ;
30815 long val2 ;
30816 int ecode2 = 0 ;
30817 PyObject * obj0 = 0 ;
30818 PyObject * obj1 = 0 ;
30819 char * kwnames[] = {
30820 (char *) "self",(char *) "item", NULL
30821 };
30822
30823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30825 if (!SWIG_IsOK(res1)) {
30826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30827 }
30828 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30829 ecode2 = SWIG_AsVal_long(obj1, &val2);
30830 if (!SWIG_IsOK(ecode2)) {
30831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30832 }
30833 arg2 = static_cast< long >(val2);
30834 {
30835 PyThreadState* __tstate = wxPyBeginAllowThreads();
30836 result = (bool)(arg1)->DeleteItem(arg2);
30837 wxPyEndAllowThreads(__tstate);
30838 if (PyErr_Occurred()) SWIG_fail;
30839 }
30840 {
30841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30842 }
30843 return resultobj;
30844 fail:
30845 return NULL;
30846 }
30847
30848
30849 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30850 PyObject *resultobj = 0;
30851 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30852 bool result;
30853 void *argp1 = 0 ;
30854 int res1 = 0 ;
30855 PyObject *swig_obj[1] ;
30856
30857 if (!args) SWIG_fail;
30858 swig_obj[0] = args;
30859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30860 if (!SWIG_IsOK(res1)) {
30861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30862 }
30863 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30864 {
30865 PyThreadState* __tstate = wxPyBeginAllowThreads();
30866 result = (bool)(arg1)->DeleteAllItems();
30867 wxPyEndAllowThreads(__tstate);
30868 if (PyErr_Occurred()) SWIG_fail;
30869 }
30870 {
30871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30872 }
30873 return resultobj;
30874 fail:
30875 return NULL;
30876 }
30877
30878
30879 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30880 PyObject *resultobj = 0;
30881 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30882 int arg2 ;
30883 bool result;
30884 void *argp1 = 0 ;
30885 int res1 = 0 ;
30886 int val2 ;
30887 int ecode2 = 0 ;
30888 PyObject * obj0 = 0 ;
30889 PyObject * obj1 = 0 ;
30890 char * kwnames[] = {
30891 (char *) "self",(char *) "col", NULL
30892 };
30893
30894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30896 if (!SWIG_IsOK(res1)) {
30897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30898 }
30899 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30900 ecode2 = SWIG_AsVal_int(obj1, &val2);
30901 if (!SWIG_IsOK(ecode2)) {
30902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30903 }
30904 arg2 = static_cast< int >(val2);
30905 {
30906 PyThreadState* __tstate = wxPyBeginAllowThreads();
30907 result = (bool)(arg1)->DeleteColumn(arg2);
30908 wxPyEndAllowThreads(__tstate);
30909 if (PyErr_Occurred()) SWIG_fail;
30910 }
30911 {
30912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30913 }
30914 return resultobj;
30915 fail:
30916 return NULL;
30917 }
30918
30919
30920 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30921 PyObject *resultobj = 0;
30922 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30923 bool result;
30924 void *argp1 = 0 ;
30925 int res1 = 0 ;
30926 PyObject *swig_obj[1] ;
30927
30928 if (!args) SWIG_fail;
30929 swig_obj[0] = args;
30930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30931 if (!SWIG_IsOK(res1)) {
30932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30933 }
30934 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30935 {
30936 PyThreadState* __tstate = wxPyBeginAllowThreads();
30937 result = (bool)(arg1)->DeleteAllColumns();
30938 wxPyEndAllowThreads(__tstate);
30939 if (PyErr_Occurred()) SWIG_fail;
30940 }
30941 {
30942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30943 }
30944 return resultobj;
30945 fail:
30946 return NULL;
30947 }
30948
30949
30950 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30951 PyObject *resultobj = 0;
30952 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30953 void *argp1 = 0 ;
30954 int res1 = 0 ;
30955 PyObject *swig_obj[1] ;
30956
30957 if (!args) SWIG_fail;
30958 swig_obj[0] = args;
30959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30960 if (!SWIG_IsOK(res1)) {
30961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30962 }
30963 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30964 {
30965 PyThreadState* __tstate = wxPyBeginAllowThreads();
30966 (arg1)->ClearAll();
30967 wxPyEndAllowThreads(__tstate);
30968 if (PyErr_Occurred()) SWIG_fail;
30969 }
30970 resultobj = SWIG_Py_Void();
30971 return resultobj;
30972 fail:
30973 return NULL;
30974 }
30975
30976
30977 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30978 PyObject *resultobj = 0;
30979 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30980 long arg2 ;
30981 void *argp1 = 0 ;
30982 int res1 = 0 ;
30983 long val2 ;
30984 int ecode2 = 0 ;
30985 PyObject * obj0 = 0 ;
30986 PyObject * obj1 = 0 ;
30987 char * kwnames[] = {
30988 (char *) "self",(char *) "item", NULL
30989 };
30990
30991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30993 if (!SWIG_IsOK(res1)) {
30994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30995 }
30996 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30997 ecode2 = SWIG_AsVal_long(obj1, &val2);
30998 if (!SWIG_IsOK(ecode2)) {
30999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31000 }
31001 arg2 = static_cast< long >(val2);
31002 {
31003 PyThreadState* __tstate = wxPyBeginAllowThreads();
31004 (arg1)->EditLabel(arg2);
31005 wxPyEndAllowThreads(__tstate);
31006 if (PyErr_Occurred()) SWIG_fail;
31007 }
31008 resultobj = SWIG_Py_Void();
31009 return resultobj;
31010 fail:
31011 return NULL;
31012 }
31013
31014
31015 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31016 PyObject *resultobj = 0;
31017 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31018 long arg2 ;
31019 bool result;
31020 void *argp1 = 0 ;
31021 int res1 = 0 ;
31022 long val2 ;
31023 int ecode2 = 0 ;
31024 PyObject * obj0 = 0 ;
31025 PyObject * obj1 = 0 ;
31026 char * kwnames[] = {
31027 (char *) "self",(char *) "item", NULL
31028 };
31029
31030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31032 if (!SWIG_IsOK(res1)) {
31033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31034 }
31035 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31036 ecode2 = SWIG_AsVal_long(obj1, &val2);
31037 if (!SWIG_IsOK(ecode2)) {
31038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31039 }
31040 arg2 = static_cast< long >(val2);
31041 {
31042 PyThreadState* __tstate = wxPyBeginAllowThreads();
31043 result = (bool)(arg1)->EnsureVisible(arg2);
31044 wxPyEndAllowThreads(__tstate);
31045 if (PyErr_Occurred()) SWIG_fail;
31046 }
31047 {
31048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31049 }
31050 return resultobj;
31051 fail:
31052 return NULL;
31053 }
31054
31055
31056 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31057 PyObject *resultobj = 0;
31058 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31059 long arg2 ;
31060 wxString *arg3 = 0 ;
31061 bool arg4 = (bool) false ;
31062 long result;
31063 void *argp1 = 0 ;
31064 int res1 = 0 ;
31065 long val2 ;
31066 int ecode2 = 0 ;
31067 bool temp3 = false ;
31068 bool val4 ;
31069 int ecode4 = 0 ;
31070 PyObject * obj0 = 0 ;
31071 PyObject * obj1 = 0 ;
31072 PyObject * obj2 = 0 ;
31073 PyObject * obj3 = 0 ;
31074 char * kwnames[] = {
31075 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31076 };
31077
31078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31080 if (!SWIG_IsOK(res1)) {
31081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31082 }
31083 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31084 ecode2 = SWIG_AsVal_long(obj1, &val2);
31085 if (!SWIG_IsOK(ecode2)) {
31086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31087 }
31088 arg2 = static_cast< long >(val2);
31089 {
31090 arg3 = wxString_in_helper(obj2);
31091 if (arg3 == NULL) SWIG_fail;
31092 temp3 = true;
31093 }
31094 if (obj3) {
31095 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31096 if (!SWIG_IsOK(ecode4)) {
31097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31098 }
31099 arg4 = static_cast< bool >(val4);
31100 }
31101 {
31102 PyThreadState* __tstate = wxPyBeginAllowThreads();
31103 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31104 wxPyEndAllowThreads(__tstate);
31105 if (PyErr_Occurred()) SWIG_fail;
31106 }
31107 resultobj = SWIG_From_long(static_cast< long >(result));
31108 {
31109 if (temp3)
31110 delete arg3;
31111 }
31112 return resultobj;
31113 fail:
31114 {
31115 if (temp3)
31116 delete arg3;
31117 }
31118 return NULL;
31119 }
31120
31121
31122 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31123 PyObject *resultobj = 0;
31124 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31125 long arg2 ;
31126 long arg3 ;
31127 long result;
31128 void *argp1 = 0 ;
31129 int res1 = 0 ;
31130 long val2 ;
31131 int ecode2 = 0 ;
31132 long val3 ;
31133 int ecode3 = 0 ;
31134 PyObject * obj0 = 0 ;
31135 PyObject * obj1 = 0 ;
31136 PyObject * obj2 = 0 ;
31137 char * kwnames[] = {
31138 (char *) "self",(char *) "start",(char *) "data", NULL
31139 };
31140
31141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31143 if (!SWIG_IsOK(res1)) {
31144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31145 }
31146 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31147 ecode2 = SWIG_AsVal_long(obj1, &val2);
31148 if (!SWIG_IsOK(ecode2)) {
31149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31150 }
31151 arg2 = static_cast< long >(val2);
31152 ecode3 = SWIG_AsVal_long(obj2, &val3);
31153 if (!SWIG_IsOK(ecode3)) {
31154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31155 }
31156 arg3 = static_cast< long >(val3);
31157 {
31158 PyThreadState* __tstate = wxPyBeginAllowThreads();
31159 result = (long)(arg1)->FindItem(arg2,arg3);
31160 wxPyEndAllowThreads(__tstate);
31161 if (PyErr_Occurred()) SWIG_fail;
31162 }
31163 resultobj = SWIG_From_long(static_cast< long >(result));
31164 return resultobj;
31165 fail:
31166 return NULL;
31167 }
31168
31169
31170 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31171 PyObject *resultobj = 0;
31172 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31173 long arg2 ;
31174 wxPoint *arg3 = 0 ;
31175 int arg4 ;
31176 long result;
31177 void *argp1 = 0 ;
31178 int res1 = 0 ;
31179 long val2 ;
31180 int ecode2 = 0 ;
31181 wxPoint temp3 ;
31182 int val4 ;
31183 int ecode4 = 0 ;
31184 PyObject * obj0 = 0 ;
31185 PyObject * obj1 = 0 ;
31186 PyObject * obj2 = 0 ;
31187 PyObject * obj3 = 0 ;
31188 char * kwnames[] = {
31189 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31190 };
31191
31192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31194 if (!SWIG_IsOK(res1)) {
31195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31196 }
31197 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31198 ecode2 = SWIG_AsVal_long(obj1, &val2);
31199 if (!SWIG_IsOK(ecode2)) {
31200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31201 }
31202 arg2 = static_cast< long >(val2);
31203 {
31204 arg3 = &temp3;
31205 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31206 }
31207 ecode4 = SWIG_AsVal_int(obj3, &val4);
31208 if (!SWIG_IsOK(ecode4)) {
31209 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31210 }
31211 arg4 = static_cast< int >(val4);
31212 {
31213 PyThreadState* __tstate = wxPyBeginAllowThreads();
31214 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31215 wxPyEndAllowThreads(__tstate);
31216 if (PyErr_Occurred()) SWIG_fail;
31217 }
31218 resultobj = SWIG_From_long(static_cast< long >(result));
31219 return resultobj;
31220 fail:
31221 return NULL;
31222 }
31223
31224
31225 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31226 PyObject *resultobj = 0;
31227 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31228 wxPoint *arg2 = 0 ;
31229 int *arg3 = 0 ;
31230 long result;
31231 void *argp1 = 0 ;
31232 int res1 = 0 ;
31233 wxPoint temp2 ;
31234 int temp3 ;
31235 int res3 = SWIG_TMPOBJ ;
31236 PyObject * obj0 = 0 ;
31237 PyObject * obj1 = 0 ;
31238 char * kwnames[] = {
31239 (char *) "self",(char *) "point", NULL
31240 };
31241
31242 arg3 = &temp3;
31243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31245 if (!SWIG_IsOK(res1)) {
31246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31247 }
31248 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31249 {
31250 arg2 = &temp2;
31251 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31252 }
31253 {
31254 PyThreadState* __tstate = wxPyBeginAllowThreads();
31255 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31256 wxPyEndAllowThreads(__tstate);
31257 if (PyErr_Occurred()) SWIG_fail;
31258 }
31259 resultobj = SWIG_From_long(static_cast< long >(result));
31260 if (SWIG_IsTmpObj(res3)) {
31261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31262 } else {
31263 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31265 }
31266 return resultobj;
31267 fail:
31268 return NULL;
31269 }
31270
31271
31272 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31273 PyObject *resultobj = 0;
31274 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31275 wxPoint *arg2 = 0 ;
31276 int *arg3 = 0 ;
31277 long *arg4 = (long *) 0 ;
31278 long result;
31279 void *argp1 = 0 ;
31280 int res1 = 0 ;
31281 wxPoint temp2 ;
31282 int temp3 ;
31283 int res3 = SWIG_TMPOBJ ;
31284 long temp4 ;
31285 int res4 = SWIG_TMPOBJ ;
31286 PyObject * obj0 = 0 ;
31287 PyObject * obj1 = 0 ;
31288 char * kwnames[] = {
31289 (char *) "self",(char *) "point", NULL
31290 };
31291
31292 arg3 = &temp3;
31293 arg4 = &temp4;
31294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31296 if (!SWIG_IsOK(res1)) {
31297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31298 }
31299 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31300 {
31301 arg2 = &temp2;
31302 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31303 }
31304 {
31305 PyThreadState* __tstate = wxPyBeginAllowThreads();
31306 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31307 wxPyEndAllowThreads(__tstate);
31308 if (PyErr_Occurred()) SWIG_fail;
31309 }
31310 resultobj = SWIG_From_long(static_cast< long >(result));
31311 if (SWIG_IsTmpObj(res3)) {
31312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31313 } else {
31314 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31315 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31316 }
31317 if (SWIG_IsTmpObj(res4)) {
31318 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31319 } else {
31320 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31321 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31322 }
31323 return resultobj;
31324 fail:
31325 return NULL;
31326 }
31327
31328
31329 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31330 PyObject *resultobj = 0;
31331 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31332 wxListItem *arg2 = 0 ;
31333 long result;
31334 void *argp1 = 0 ;
31335 int res1 = 0 ;
31336 void *argp2 = 0 ;
31337 int res2 = 0 ;
31338 PyObject * obj0 = 0 ;
31339 PyObject * obj1 = 0 ;
31340 char * kwnames[] = {
31341 (char *) "self",(char *) "info", NULL
31342 };
31343
31344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31346 if (!SWIG_IsOK(res1)) {
31347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31348 }
31349 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31351 if (!SWIG_IsOK(res2)) {
31352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31353 }
31354 if (!argp2) {
31355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31356 }
31357 arg2 = reinterpret_cast< wxListItem * >(argp2);
31358 {
31359 PyThreadState* __tstate = wxPyBeginAllowThreads();
31360 result = (long)(arg1)->InsertItem(*arg2);
31361 wxPyEndAllowThreads(__tstate);
31362 if (PyErr_Occurred()) SWIG_fail;
31363 }
31364 resultobj = SWIG_From_long(static_cast< long >(result));
31365 return resultobj;
31366 fail:
31367 return NULL;
31368 }
31369
31370
31371 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31372 PyObject *resultobj = 0;
31373 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31374 long arg2 ;
31375 wxString *arg3 = 0 ;
31376 int arg4 = (int) -1 ;
31377 long result;
31378 void *argp1 = 0 ;
31379 int res1 = 0 ;
31380 long val2 ;
31381 int ecode2 = 0 ;
31382 bool temp3 = false ;
31383 int val4 ;
31384 int ecode4 = 0 ;
31385 PyObject * obj0 = 0 ;
31386 PyObject * obj1 = 0 ;
31387 PyObject * obj2 = 0 ;
31388 PyObject * obj3 = 0 ;
31389 char * kwnames[] = {
31390 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31391 };
31392
31393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31395 if (!SWIG_IsOK(res1)) {
31396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31397 }
31398 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31399 ecode2 = SWIG_AsVal_long(obj1, &val2);
31400 if (!SWIG_IsOK(ecode2)) {
31401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31402 }
31403 arg2 = static_cast< long >(val2);
31404 {
31405 arg3 = wxString_in_helper(obj2);
31406 if (arg3 == NULL) SWIG_fail;
31407 temp3 = true;
31408 }
31409 if (obj3) {
31410 ecode4 = SWIG_AsVal_int(obj3, &val4);
31411 if (!SWIG_IsOK(ecode4)) {
31412 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31413 }
31414 arg4 = static_cast< int >(val4);
31415 }
31416 {
31417 PyThreadState* __tstate = wxPyBeginAllowThreads();
31418 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31419 wxPyEndAllowThreads(__tstate);
31420 if (PyErr_Occurred()) SWIG_fail;
31421 }
31422 resultobj = SWIG_From_long(static_cast< long >(result));
31423 {
31424 if (temp3)
31425 delete arg3;
31426 }
31427 return resultobj;
31428 fail:
31429 {
31430 if (temp3)
31431 delete arg3;
31432 }
31433 return NULL;
31434 }
31435
31436
31437 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31438 PyObject *resultobj = 0;
31439 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31440 long arg2 ;
31441 int arg3 ;
31442 long result;
31443 void *argp1 = 0 ;
31444 int res1 = 0 ;
31445 long val2 ;
31446 int ecode2 = 0 ;
31447 int val3 ;
31448 int ecode3 = 0 ;
31449 PyObject * obj0 = 0 ;
31450 PyObject * obj1 = 0 ;
31451 PyObject * obj2 = 0 ;
31452 char * kwnames[] = {
31453 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31454 };
31455
31456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31458 if (!SWIG_IsOK(res1)) {
31459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31460 }
31461 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31462 ecode2 = SWIG_AsVal_long(obj1, &val2);
31463 if (!SWIG_IsOK(ecode2)) {
31464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31465 }
31466 arg2 = static_cast< long >(val2);
31467 ecode3 = SWIG_AsVal_int(obj2, &val3);
31468 if (!SWIG_IsOK(ecode3)) {
31469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31470 }
31471 arg3 = static_cast< int >(val3);
31472 {
31473 PyThreadState* __tstate = wxPyBeginAllowThreads();
31474 result = (long)(arg1)->InsertItem(arg2,arg3);
31475 wxPyEndAllowThreads(__tstate);
31476 if (PyErr_Occurred()) SWIG_fail;
31477 }
31478 resultobj = SWIG_From_long(static_cast< long >(result));
31479 return resultobj;
31480 fail:
31481 return NULL;
31482 }
31483
31484
31485 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31486 PyObject *resultobj = 0;
31487 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31488 long arg2 ;
31489 wxString *arg3 = 0 ;
31490 int arg4 ;
31491 long result;
31492 void *argp1 = 0 ;
31493 int res1 = 0 ;
31494 long val2 ;
31495 int ecode2 = 0 ;
31496 bool temp3 = false ;
31497 int val4 ;
31498 int ecode4 = 0 ;
31499 PyObject * obj0 = 0 ;
31500 PyObject * obj1 = 0 ;
31501 PyObject * obj2 = 0 ;
31502 PyObject * obj3 = 0 ;
31503 char * kwnames[] = {
31504 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31505 };
31506
31507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31509 if (!SWIG_IsOK(res1)) {
31510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31511 }
31512 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31513 ecode2 = SWIG_AsVal_long(obj1, &val2);
31514 if (!SWIG_IsOK(ecode2)) {
31515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31516 }
31517 arg2 = static_cast< long >(val2);
31518 {
31519 arg3 = wxString_in_helper(obj2);
31520 if (arg3 == NULL) SWIG_fail;
31521 temp3 = true;
31522 }
31523 ecode4 = SWIG_AsVal_int(obj3, &val4);
31524 if (!SWIG_IsOK(ecode4)) {
31525 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31526 }
31527 arg4 = static_cast< int >(val4);
31528 {
31529 PyThreadState* __tstate = wxPyBeginAllowThreads();
31530 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31531 wxPyEndAllowThreads(__tstate);
31532 if (PyErr_Occurred()) SWIG_fail;
31533 }
31534 resultobj = SWIG_From_long(static_cast< long >(result));
31535 {
31536 if (temp3)
31537 delete arg3;
31538 }
31539 return resultobj;
31540 fail:
31541 {
31542 if (temp3)
31543 delete arg3;
31544 }
31545 return NULL;
31546 }
31547
31548
31549 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31550 PyObject *resultobj = 0;
31551 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31552 long arg2 ;
31553 wxListItem *arg3 = 0 ;
31554 long result;
31555 void *argp1 = 0 ;
31556 int res1 = 0 ;
31557 long val2 ;
31558 int ecode2 = 0 ;
31559 void *argp3 = 0 ;
31560 int res3 = 0 ;
31561 PyObject * obj0 = 0 ;
31562 PyObject * obj1 = 0 ;
31563 PyObject * obj2 = 0 ;
31564 char * kwnames[] = {
31565 (char *) "self",(char *) "col",(char *) "info", NULL
31566 };
31567
31568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31570 if (!SWIG_IsOK(res1)) {
31571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31572 }
31573 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31574 ecode2 = SWIG_AsVal_long(obj1, &val2);
31575 if (!SWIG_IsOK(ecode2)) {
31576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31577 }
31578 arg2 = static_cast< long >(val2);
31579 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31580 if (!SWIG_IsOK(res3)) {
31581 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31582 }
31583 if (!argp3) {
31584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31585 }
31586 arg3 = reinterpret_cast< wxListItem * >(argp3);
31587 {
31588 PyThreadState* __tstate = wxPyBeginAllowThreads();
31589 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31590 wxPyEndAllowThreads(__tstate);
31591 if (PyErr_Occurred()) SWIG_fail;
31592 }
31593 resultobj = SWIG_From_long(static_cast< long >(result));
31594 return resultobj;
31595 fail:
31596 return NULL;
31597 }
31598
31599
31600 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31601 PyObject *resultobj = 0;
31602 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31603 long arg2 ;
31604 wxString *arg3 = 0 ;
31605 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31606 int arg5 = (int) -1 ;
31607 long result;
31608 void *argp1 = 0 ;
31609 int res1 = 0 ;
31610 long val2 ;
31611 int ecode2 = 0 ;
31612 bool temp3 = false ;
31613 int val4 ;
31614 int ecode4 = 0 ;
31615 int val5 ;
31616 int ecode5 = 0 ;
31617 PyObject * obj0 = 0 ;
31618 PyObject * obj1 = 0 ;
31619 PyObject * obj2 = 0 ;
31620 PyObject * obj3 = 0 ;
31621 PyObject * obj4 = 0 ;
31622 char * kwnames[] = {
31623 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31624 };
31625
31626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31628 if (!SWIG_IsOK(res1)) {
31629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31630 }
31631 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31632 ecode2 = SWIG_AsVal_long(obj1, &val2);
31633 if (!SWIG_IsOK(ecode2)) {
31634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31635 }
31636 arg2 = static_cast< long >(val2);
31637 {
31638 arg3 = wxString_in_helper(obj2);
31639 if (arg3 == NULL) SWIG_fail;
31640 temp3 = true;
31641 }
31642 if (obj3) {
31643 ecode4 = SWIG_AsVal_int(obj3, &val4);
31644 if (!SWIG_IsOK(ecode4)) {
31645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31646 }
31647 arg4 = static_cast< int >(val4);
31648 }
31649 if (obj4) {
31650 ecode5 = SWIG_AsVal_int(obj4, &val5);
31651 if (!SWIG_IsOK(ecode5)) {
31652 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31653 }
31654 arg5 = static_cast< int >(val5);
31655 }
31656 {
31657 PyThreadState* __tstate = wxPyBeginAllowThreads();
31658 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31659 wxPyEndAllowThreads(__tstate);
31660 if (PyErr_Occurred()) SWIG_fail;
31661 }
31662 resultobj = SWIG_From_long(static_cast< long >(result));
31663 {
31664 if (temp3)
31665 delete arg3;
31666 }
31667 return resultobj;
31668 fail:
31669 {
31670 if (temp3)
31671 delete arg3;
31672 }
31673 return NULL;
31674 }
31675
31676
31677 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31678 PyObject *resultobj = 0;
31679 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31680 long arg2 ;
31681 void *argp1 = 0 ;
31682 int res1 = 0 ;
31683 long val2 ;
31684 int ecode2 = 0 ;
31685 PyObject * obj0 = 0 ;
31686 PyObject * obj1 = 0 ;
31687 char * kwnames[] = {
31688 (char *) "self",(char *) "count", NULL
31689 };
31690
31691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31693 if (!SWIG_IsOK(res1)) {
31694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31695 }
31696 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31697 ecode2 = SWIG_AsVal_long(obj1, &val2);
31698 if (!SWIG_IsOK(ecode2)) {
31699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31700 }
31701 arg2 = static_cast< long >(val2);
31702 {
31703 PyThreadState* __tstate = wxPyBeginAllowThreads();
31704 (arg1)->SetItemCount(arg2);
31705 wxPyEndAllowThreads(__tstate);
31706 if (PyErr_Occurred()) SWIG_fail;
31707 }
31708 resultobj = SWIG_Py_Void();
31709 return resultobj;
31710 fail:
31711 return NULL;
31712 }
31713
31714
31715 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31716 PyObject *resultobj = 0;
31717 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31718 int arg2 ;
31719 int arg3 ;
31720 bool result;
31721 void *argp1 = 0 ;
31722 int res1 = 0 ;
31723 int val2 ;
31724 int ecode2 = 0 ;
31725 int val3 ;
31726 int ecode3 = 0 ;
31727 PyObject * obj0 = 0 ;
31728 PyObject * obj1 = 0 ;
31729 PyObject * obj2 = 0 ;
31730 char * kwnames[] = {
31731 (char *) "self",(char *) "dx",(char *) "dy", NULL
31732 };
31733
31734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31736 if (!SWIG_IsOK(res1)) {
31737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31738 }
31739 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31740 ecode2 = SWIG_AsVal_int(obj1, &val2);
31741 if (!SWIG_IsOK(ecode2)) {
31742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31743 }
31744 arg2 = static_cast< int >(val2);
31745 ecode3 = SWIG_AsVal_int(obj2, &val3);
31746 if (!SWIG_IsOK(ecode3)) {
31747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31748 }
31749 arg3 = static_cast< int >(val3);
31750 {
31751 PyThreadState* __tstate = wxPyBeginAllowThreads();
31752 result = (bool)(arg1)->ScrollList(arg2,arg3);
31753 wxPyEndAllowThreads(__tstate);
31754 if (PyErr_Occurred()) SWIG_fail;
31755 }
31756 {
31757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31758 }
31759 return resultobj;
31760 fail:
31761 return NULL;
31762 }
31763
31764
31765 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31766 PyObject *resultobj = 0;
31767 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31768 long arg2 ;
31769 wxColour *arg3 = 0 ;
31770 void *argp1 = 0 ;
31771 int res1 = 0 ;
31772 long val2 ;
31773 int ecode2 = 0 ;
31774 wxColour temp3 ;
31775 PyObject * obj0 = 0 ;
31776 PyObject * obj1 = 0 ;
31777 PyObject * obj2 = 0 ;
31778 char * kwnames[] = {
31779 (char *) "self",(char *) "item",(char *) "col", NULL
31780 };
31781
31782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31784 if (!SWIG_IsOK(res1)) {
31785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31786 }
31787 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31788 ecode2 = SWIG_AsVal_long(obj1, &val2);
31789 if (!SWIG_IsOK(ecode2)) {
31790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31791 }
31792 arg2 = static_cast< long >(val2);
31793 {
31794 arg3 = &temp3;
31795 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31796 }
31797 {
31798 PyThreadState* __tstate = wxPyBeginAllowThreads();
31799 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31800 wxPyEndAllowThreads(__tstate);
31801 if (PyErr_Occurred()) SWIG_fail;
31802 }
31803 resultobj = SWIG_Py_Void();
31804 return resultobj;
31805 fail:
31806 return NULL;
31807 }
31808
31809
31810 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31811 PyObject *resultobj = 0;
31812 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31813 long arg2 ;
31814 wxColour result;
31815 void *argp1 = 0 ;
31816 int res1 = 0 ;
31817 long val2 ;
31818 int ecode2 = 0 ;
31819 PyObject * obj0 = 0 ;
31820 PyObject * obj1 = 0 ;
31821 char * kwnames[] = {
31822 (char *) "self",(char *) "item", NULL
31823 };
31824
31825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31827 if (!SWIG_IsOK(res1)) {
31828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31829 }
31830 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31831 ecode2 = SWIG_AsVal_long(obj1, &val2);
31832 if (!SWIG_IsOK(ecode2)) {
31833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31834 }
31835 arg2 = static_cast< long >(val2);
31836 {
31837 PyThreadState* __tstate = wxPyBeginAllowThreads();
31838 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31839 wxPyEndAllowThreads(__tstate);
31840 if (PyErr_Occurred()) SWIG_fail;
31841 }
31842 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31843 return resultobj;
31844 fail:
31845 return NULL;
31846 }
31847
31848
31849 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31850 PyObject *resultobj = 0;
31851 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31852 long arg2 ;
31853 wxColour *arg3 = 0 ;
31854 void *argp1 = 0 ;
31855 int res1 = 0 ;
31856 long val2 ;
31857 int ecode2 = 0 ;
31858 wxColour temp3 ;
31859 PyObject * obj0 = 0 ;
31860 PyObject * obj1 = 0 ;
31861 PyObject * obj2 = 0 ;
31862 char * kwnames[] = {
31863 (char *) "self",(char *) "item",(char *) "col", NULL
31864 };
31865
31866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31868 if (!SWIG_IsOK(res1)) {
31869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31870 }
31871 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31872 ecode2 = SWIG_AsVal_long(obj1, &val2);
31873 if (!SWIG_IsOK(ecode2)) {
31874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31875 }
31876 arg2 = static_cast< long >(val2);
31877 {
31878 arg3 = &temp3;
31879 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31880 }
31881 {
31882 PyThreadState* __tstate = wxPyBeginAllowThreads();
31883 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31884 wxPyEndAllowThreads(__tstate);
31885 if (PyErr_Occurred()) SWIG_fail;
31886 }
31887 resultobj = SWIG_Py_Void();
31888 return resultobj;
31889 fail:
31890 return NULL;
31891 }
31892
31893
31894 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31895 PyObject *resultobj = 0;
31896 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31897 long arg2 ;
31898 wxColour result;
31899 void *argp1 = 0 ;
31900 int res1 = 0 ;
31901 long val2 ;
31902 int ecode2 = 0 ;
31903 PyObject * obj0 = 0 ;
31904 PyObject * obj1 = 0 ;
31905 char * kwnames[] = {
31906 (char *) "self",(char *) "item", NULL
31907 };
31908
31909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31911 if (!SWIG_IsOK(res1)) {
31912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31913 }
31914 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31915 ecode2 = SWIG_AsVal_long(obj1, &val2);
31916 if (!SWIG_IsOK(ecode2)) {
31917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31918 }
31919 arg2 = static_cast< long >(val2);
31920 {
31921 PyThreadState* __tstate = wxPyBeginAllowThreads();
31922 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31923 wxPyEndAllowThreads(__tstate);
31924 if (PyErr_Occurred()) SWIG_fail;
31925 }
31926 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31927 return resultobj;
31928 fail:
31929 return NULL;
31930 }
31931
31932
31933 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31934 PyObject *resultobj = 0;
31935 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31936 long arg2 ;
31937 wxFont *arg3 = 0 ;
31938 void *argp1 = 0 ;
31939 int res1 = 0 ;
31940 long val2 ;
31941 int ecode2 = 0 ;
31942 void *argp3 = 0 ;
31943 int res3 = 0 ;
31944 PyObject * obj0 = 0 ;
31945 PyObject * obj1 = 0 ;
31946 PyObject * obj2 = 0 ;
31947 char * kwnames[] = {
31948 (char *) "self",(char *) "item",(char *) "f", NULL
31949 };
31950
31951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31953 if (!SWIG_IsOK(res1)) {
31954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31955 }
31956 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31957 ecode2 = SWIG_AsVal_long(obj1, &val2);
31958 if (!SWIG_IsOK(ecode2)) {
31959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31960 }
31961 arg2 = static_cast< long >(val2);
31962 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31963 if (!SWIG_IsOK(res3)) {
31964 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31965 }
31966 if (!argp3) {
31967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31968 }
31969 arg3 = reinterpret_cast< wxFont * >(argp3);
31970 {
31971 PyThreadState* __tstate = wxPyBeginAllowThreads();
31972 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31973 wxPyEndAllowThreads(__tstate);
31974 if (PyErr_Occurred()) SWIG_fail;
31975 }
31976 resultobj = SWIG_Py_Void();
31977 return resultobj;
31978 fail:
31979 return NULL;
31980 }
31981
31982
31983 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31984 PyObject *resultobj = 0;
31985 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31986 long arg2 ;
31987 wxFont result;
31988 void *argp1 = 0 ;
31989 int res1 = 0 ;
31990 long val2 ;
31991 int ecode2 = 0 ;
31992 PyObject * obj0 = 0 ;
31993 PyObject * obj1 = 0 ;
31994 char * kwnames[] = {
31995 (char *) "self",(char *) "item", NULL
31996 };
31997
31998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32000 if (!SWIG_IsOK(res1)) {
32001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32002 }
32003 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32004 ecode2 = SWIG_AsVal_long(obj1, &val2);
32005 if (!SWIG_IsOK(ecode2)) {
32006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32007 }
32008 arg2 = static_cast< long >(val2);
32009 {
32010 PyThreadState* __tstate = wxPyBeginAllowThreads();
32011 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32012 wxPyEndAllowThreads(__tstate);
32013 if (PyErr_Occurred()) SWIG_fail;
32014 }
32015 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32016 return resultobj;
32017 fail:
32018 return NULL;
32019 }
32020
32021
32022 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32023 PyObject *resultobj = 0;
32024 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32025 PyObject *arg2 = (PyObject *) 0 ;
32026 bool result;
32027 void *argp1 = 0 ;
32028 int res1 = 0 ;
32029 PyObject * obj0 = 0 ;
32030 PyObject * obj1 = 0 ;
32031 char * kwnames[] = {
32032 (char *) "self",(char *) "func", NULL
32033 };
32034
32035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32037 if (!SWIG_IsOK(res1)) {
32038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32039 }
32040 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32041 arg2 = obj1;
32042 {
32043 PyThreadState* __tstate = wxPyBeginAllowThreads();
32044 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32045 wxPyEndAllowThreads(__tstate);
32046 if (PyErr_Occurred()) SWIG_fail;
32047 }
32048 {
32049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32050 }
32051 return resultobj;
32052 fail:
32053 return NULL;
32054 }
32055
32056
32057 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32058 PyObject *resultobj = 0;
32059 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32060 wxWindow *result = 0 ;
32061 void *argp1 = 0 ;
32062 int res1 = 0 ;
32063 PyObject *swig_obj[1] ;
32064
32065 if (!args) SWIG_fail;
32066 swig_obj[0] = args;
32067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32068 if (!SWIG_IsOK(res1)) {
32069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32070 }
32071 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32072 {
32073 PyThreadState* __tstate = wxPyBeginAllowThreads();
32074 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32075 wxPyEndAllowThreads(__tstate);
32076 if (PyErr_Occurred()) SWIG_fail;
32077 }
32078 {
32079 resultobj = wxPyMake_wxObject(result, 0);
32080 }
32081 return resultobj;
32082 fail:
32083 return NULL;
32084 }
32085
32086
32087 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32088 PyObject *resultobj = 0;
32089 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32090 SwigValueWrapper<wxVisualAttributes > result;
32091 int val1 ;
32092 int ecode1 = 0 ;
32093 PyObject * obj0 = 0 ;
32094 char * kwnames[] = {
32095 (char *) "variant", NULL
32096 };
32097
32098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32099 if (obj0) {
32100 ecode1 = SWIG_AsVal_int(obj0, &val1);
32101 if (!SWIG_IsOK(ecode1)) {
32102 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32103 }
32104 arg1 = static_cast< wxWindowVariant >(val1);
32105 }
32106 {
32107 if (!wxPyCheckForApp()) SWIG_fail;
32108 PyThreadState* __tstate = wxPyBeginAllowThreads();
32109 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32110 wxPyEndAllowThreads(__tstate);
32111 if (PyErr_Occurred()) SWIG_fail;
32112 }
32113 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32114 return resultobj;
32115 fail:
32116 return NULL;
32117 }
32118
32119
32120 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32121 PyObject *obj;
32122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32123 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32124 return SWIG_Py_Void();
32125 }
32126
32127 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32128 return SWIG_Python_InitShadowInstance(args);
32129 }
32130
32131 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32132 PyObject *resultobj = 0;
32133 wxWindow *arg1 = (wxWindow *) 0 ;
32134 int arg2 = (int) -1 ;
32135 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32136 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32137 wxSize const &arg4_defvalue = wxDefaultSize ;
32138 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32139 long arg5 = (long) wxLC_REPORT ;
32140 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32141 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32142 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32143 wxString *arg7 = (wxString *) &arg7_defvalue ;
32144 wxListView *result = 0 ;
32145 void *argp1 = 0 ;
32146 int res1 = 0 ;
32147 int val2 ;
32148 int ecode2 = 0 ;
32149 wxPoint temp3 ;
32150 wxSize temp4 ;
32151 long val5 ;
32152 int ecode5 = 0 ;
32153 void *argp6 = 0 ;
32154 int res6 = 0 ;
32155 bool temp7 = false ;
32156 PyObject * obj0 = 0 ;
32157 PyObject * obj1 = 0 ;
32158 PyObject * obj2 = 0 ;
32159 PyObject * obj3 = 0 ;
32160 PyObject * obj4 = 0 ;
32161 PyObject * obj5 = 0 ;
32162 PyObject * obj6 = 0 ;
32163 char * kwnames[] = {
32164 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32165 };
32166
32167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32169 if (!SWIG_IsOK(res1)) {
32170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32171 }
32172 arg1 = reinterpret_cast< wxWindow * >(argp1);
32173 if (obj1) {
32174 ecode2 = SWIG_AsVal_int(obj1, &val2);
32175 if (!SWIG_IsOK(ecode2)) {
32176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32177 }
32178 arg2 = static_cast< int >(val2);
32179 }
32180 if (obj2) {
32181 {
32182 arg3 = &temp3;
32183 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32184 }
32185 }
32186 if (obj3) {
32187 {
32188 arg4 = &temp4;
32189 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32190 }
32191 }
32192 if (obj4) {
32193 ecode5 = SWIG_AsVal_long(obj4, &val5);
32194 if (!SWIG_IsOK(ecode5)) {
32195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32196 }
32197 arg5 = static_cast< long >(val5);
32198 }
32199 if (obj5) {
32200 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32201 if (!SWIG_IsOK(res6)) {
32202 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32203 }
32204 if (!argp6) {
32205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32206 }
32207 arg6 = reinterpret_cast< wxValidator * >(argp6);
32208 }
32209 if (obj6) {
32210 {
32211 arg7 = wxString_in_helper(obj6);
32212 if (arg7 == NULL) SWIG_fail;
32213 temp7 = true;
32214 }
32215 }
32216 {
32217 if (!wxPyCheckForApp()) SWIG_fail;
32218 PyThreadState* __tstate = wxPyBeginAllowThreads();
32219 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32220 wxPyEndAllowThreads(__tstate);
32221 if (PyErr_Occurred()) SWIG_fail;
32222 }
32223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32224 {
32225 if (temp7)
32226 delete arg7;
32227 }
32228 return resultobj;
32229 fail:
32230 {
32231 if (temp7)
32232 delete arg7;
32233 }
32234 return NULL;
32235 }
32236
32237
32238 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32239 PyObject *resultobj = 0;
32240 wxListView *result = 0 ;
32241
32242 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32243 {
32244 if (!wxPyCheckForApp()) SWIG_fail;
32245 PyThreadState* __tstate = wxPyBeginAllowThreads();
32246 result = (wxListView *)new wxListView();
32247 wxPyEndAllowThreads(__tstate);
32248 if (PyErr_Occurred()) SWIG_fail;
32249 }
32250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32251 return resultobj;
32252 fail:
32253 return NULL;
32254 }
32255
32256
32257 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32258 PyObject *resultobj = 0;
32259 wxListView *arg1 = (wxListView *) 0 ;
32260 wxWindow *arg2 = (wxWindow *) 0 ;
32261 int arg3 = (int) -1 ;
32262 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32263 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32264 wxSize const &arg5_defvalue = wxDefaultSize ;
32265 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32266 long arg6 = (long) wxLC_REPORT ;
32267 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32268 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32269 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32270 wxString *arg8 = (wxString *) &arg8_defvalue ;
32271 bool result;
32272 void *argp1 = 0 ;
32273 int res1 = 0 ;
32274 void *argp2 = 0 ;
32275 int res2 = 0 ;
32276 int val3 ;
32277 int ecode3 = 0 ;
32278 wxPoint temp4 ;
32279 wxSize temp5 ;
32280 long val6 ;
32281 int ecode6 = 0 ;
32282 void *argp7 = 0 ;
32283 int res7 = 0 ;
32284 bool temp8 = false ;
32285 PyObject * obj0 = 0 ;
32286 PyObject * obj1 = 0 ;
32287 PyObject * obj2 = 0 ;
32288 PyObject * obj3 = 0 ;
32289 PyObject * obj4 = 0 ;
32290 PyObject * obj5 = 0 ;
32291 PyObject * obj6 = 0 ;
32292 PyObject * obj7 = 0 ;
32293 char * kwnames[] = {
32294 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32295 };
32296
32297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32299 if (!SWIG_IsOK(res1)) {
32300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32301 }
32302 arg1 = reinterpret_cast< wxListView * >(argp1);
32303 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32304 if (!SWIG_IsOK(res2)) {
32305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32306 }
32307 arg2 = reinterpret_cast< wxWindow * >(argp2);
32308 if (obj2) {
32309 ecode3 = SWIG_AsVal_int(obj2, &val3);
32310 if (!SWIG_IsOK(ecode3)) {
32311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32312 }
32313 arg3 = static_cast< int >(val3);
32314 }
32315 if (obj3) {
32316 {
32317 arg4 = &temp4;
32318 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32319 }
32320 }
32321 if (obj4) {
32322 {
32323 arg5 = &temp5;
32324 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32325 }
32326 }
32327 if (obj5) {
32328 ecode6 = SWIG_AsVal_long(obj5, &val6);
32329 if (!SWIG_IsOK(ecode6)) {
32330 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32331 }
32332 arg6 = static_cast< long >(val6);
32333 }
32334 if (obj6) {
32335 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32336 if (!SWIG_IsOK(res7)) {
32337 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32338 }
32339 if (!argp7) {
32340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32341 }
32342 arg7 = reinterpret_cast< wxValidator * >(argp7);
32343 }
32344 if (obj7) {
32345 {
32346 arg8 = wxString_in_helper(obj7);
32347 if (arg8 == NULL) SWIG_fail;
32348 temp8 = true;
32349 }
32350 }
32351 {
32352 PyThreadState* __tstate = wxPyBeginAllowThreads();
32353 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32354 wxPyEndAllowThreads(__tstate);
32355 if (PyErr_Occurred()) SWIG_fail;
32356 }
32357 {
32358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32359 }
32360 {
32361 if (temp8)
32362 delete arg8;
32363 }
32364 return resultobj;
32365 fail:
32366 {
32367 if (temp8)
32368 delete arg8;
32369 }
32370 return NULL;
32371 }
32372
32373
32374 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32375 PyObject *resultobj = 0;
32376 wxListView *arg1 = (wxListView *) 0 ;
32377 long arg2 ;
32378 bool arg3 = (bool) true ;
32379 void *argp1 = 0 ;
32380 int res1 = 0 ;
32381 long val2 ;
32382 int ecode2 = 0 ;
32383 bool val3 ;
32384 int ecode3 = 0 ;
32385 PyObject * obj0 = 0 ;
32386 PyObject * obj1 = 0 ;
32387 PyObject * obj2 = 0 ;
32388 char * kwnames[] = {
32389 (char *) "self",(char *) "n",(char *) "on", NULL
32390 };
32391
32392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32394 if (!SWIG_IsOK(res1)) {
32395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32396 }
32397 arg1 = reinterpret_cast< wxListView * >(argp1);
32398 ecode2 = SWIG_AsVal_long(obj1, &val2);
32399 if (!SWIG_IsOK(ecode2)) {
32400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32401 }
32402 arg2 = static_cast< long >(val2);
32403 if (obj2) {
32404 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32405 if (!SWIG_IsOK(ecode3)) {
32406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32407 }
32408 arg3 = static_cast< bool >(val3);
32409 }
32410 {
32411 PyThreadState* __tstate = wxPyBeginAllowThreads();
32412 (arg1)->Select(arg2,arg3);
32413 wxPyEndAllowThreads(__tstate);
32414 if (PyErr_Occurred()) SWIG_fail;
32415 }
32416 resultobj = SWIG_Py_Void();
32417 return resultobj;
32418 fail:
32419 return NULL;
32420 }
32421
32422
32423 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32424 PyObject *resultobj = 0;
32425 wxListView *arg1 = (wxListView *) 0 ;
32426 long arg2 ;
32427 void *argp1 = 0 ;
32428 int res1 = 0 ;
32429 long val2 ;
32430 int ecode2 = 0 ;
32431 PyObject * obj0 = 0 ;
32432 PyObject * obj1 = 0 ;
32433 char * kwnames[] = {
32434 (char *) "self",(char *) "index", NULL
32435 };
32436
32437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32439 if (!SWIG_IsOK(res1)) {
32440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32441 }
32442 arg1 = reinterpret_cast< wxListView * >(argp1);
32443 ecode2 = SWIG_AsVal_long(obj1, &val2);
32444 if (!SWIG_IsOK(ecode2)) {
32445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32446 }
32447 arg2 = static_cast< long >(val2);
32448 {
32449 PyThreadState* __tstate = wxPyBeginAllowThreads();
32450 (arg1)->Focus(arg2);
32451 wxPyEndAllowThreads(__tstate);
32452 if (PyErr_Occurred()) SWIG_fail;
32453 }
32454 resultobj = SWIG_Py_Void();
32455 return resultobj;
32456 fail:
32457 return NULL;
32458 }
32459
32460
32461 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32462 PyObject *resultobj = 0;
32463 wxListView *arg1 = (wxListView *) 0 ;
32464 long result;
32465 void *argp1 = 0 ;
32466 int res1 = 0 ;
32467 PyObject *swig_obj[1] ;
32468
32469 if (!args) SWIG_fail;
32470 swig_obj[0] = args;
32471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32472 if (!SWIG_IsOK(res1)) {
32473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32474 }
32475 arg1 = reinterpret_cast< wxListView * >(argp1);
32476 {
32477 PyThreadState* __tstate = wxPyBeginAllowThreads();
32478 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32479 wxPyEndAllowThreads(__tstate);
32480 if (PyErr_Occurred()) SWIG_fail;
32481 }
32482 resultobj = SWIG_From_long(static_cast< long >(result));
32483 return resultobj;
32484 fail:
32485 return NULL;
32486 }
32487
32488
32489 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32490 PyObject *resultobj = 0;
32491 wxListView *arg1 = (wxListView *) 0 ;
32492 long arg2 ;
32493 long result;
32494 void *argp1 = 0 ;
32495 int res1 = 0 ;
32496 long val2 ;
32497 int ecode2 = 0 ;
32498 PyObject * obj0 = 0 ;
32499 PyObject * obj1 = 0 ;
32500 char * kwnames[] = {
32501 (char *) "self",(char *) "item", NULL
32502 };
32503
32504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32506 if (!SWIG_IsOK(res1)) {
32507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32508 }
32509 arg1 = reinterpret_cast< wxListView * >(argp1);
32510 ecode2 = SWIG_AsVal_long(obj1, &val2);
32511 if (!SWIG_IsOK(ecode2)) {
32512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32513 }
32514 arg2 = static_cast< long >(val2);
32515 {
32516 PyThreadState* __tstate = wxPyBeginAllowThreads();
32517 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32518 wxPyEndAllowThreads(__tstate);
32519 if (PyErr_Occurred()) SWIG_fail;
32520 }
32521 resultobj = SWIG_From_long(static_cast< long >(result));
32522 return resultobj;
32523 fail:
32524 return NULL;
32525 }
32526
32527
32528 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32529 PyObject *resultobj = 0;
32530 wxListView *arg1 = (wxListView *) 0 ;
32531 long result;
32532 void *argp1 = 0 ;
32533 int res1 = 0 ;
32534 PyObject *swig_obj[1] ;
32535
32536 if (!args) SWIG_fail;
32537 swig_obj[0] = args;
32538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32539 if (!SWIG_IsOK(res1)) {
32540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32541 }
32542 arg1 = reinterpret_cast< wxListView * >(argp1);
32543 {
32544 PyThreadState* __tstate = wxPyBeginAllowThreads();
32545 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32546 wxPyEndAllowThreads(__tstate);
32547 if (PyErr_Occurred()) SWIG_fail;
32548 }
32549 resultobj = SWIG_From_long(static_cast< long >(result));
32550 return resultobj;
32551 fail:
32552 return NULL;
32553 }
32554
32555
32556 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32557 PyObject *resultobj = 0;
32558 wxListView *arg1 = (wxListView *) 0 ;
32559 long arg2 ;
32560 bool result;
32561 void *argp1 = 0 ;
32562 int res1 = 0 ;
32563 long val2 ;
32564 int ecode2 = 0 ;
32565 PyObject * obj0 = 0 ;
32566 PyObject * obj1 = 0 ;
32567 char * kwnames[] = {
32568 (char *) "self",(char *) "index", NULL
32569 };
32570
32571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32573 if (!SWIG_IsOK(res1)) {
32574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32575 }
32576 arg1 = reinterpret_cast< wxListView * >(argp1);
32577 ecode2 = SWIG_AsVal_long(obj1, &val2);
32578 if (!SWIG_IsOK(ecode2)) {
32579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32580 }
32581 arg2 = static_cast< long >(val2);
32582 {
32583 PyThreadState* __tstate = wxPyBeginAllowThreads();
32584 result = (bool)(arg1)->IsSelected(arg2);
32585 wxPyEndAllowThreads(__tstate);
32586 if (PyErr_Occurred()) SWIG_fail;
32587 }
32588 {
32589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32590 }
32591 return resultobj;
32592 fail:
32593 return NULL;
32594 }
32595
32596
32597 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32598 PyObject *resultobj = 0;
32599 wxListView *arg1 = (wxListView *) 0 ;
32600 int arg2 ;
32601 int arg3 ;
32602 void *argp1 = 0 ;
32603 int res1 = 0 ;
32604 int val2 ;
32605 int ecode2 = 0 ;
32606 int val3 ;
32607 int ecode3 = 0 ;
32608 PyObject * obj0 = 0 ;
32609 PyObject * obj1 = 0 ;
32610 PyObject * obj2 = 0 ;
32611 char * kwnames[] = {
32612 (char *) "self",(char *) "col",(char *) "image", NULL
32613 };
32614
32615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32617 if (!SWIG_IsOK(res1)) {
32618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32619 }
32620 arg1 = reinterpret_cast< wxListView * >(argp1);
32621 ecode2 = SWIG_AsVal_int(obj1, &val2);
32622 if (!SWIG_IsOK(ecode2)) {
32623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32624 }
32625 arg2 = static_cast< int >(val2);
32626 ecode3 = SWIG_AsVal_int(obj2, &val3);
32627 if (!SWIG_IsOK(ecode3)) {
32628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32629 }
32630 arg3 = static_cast< int >(val3);
32631 {
32632 PyThreadState* __tstate = wxPyBeginAllowThreads();
32633 (arg1)->SetColumnImage(arg2,arg3);
32634 wxPyEndAllowThreads(__tstate);
32635 if (PyErr_Occurred()) SWIG_fail;
32636 }
32637 resultobj = SWIG_Py_Void();
32638 return resultobj;
32639 fail:
32640 return NULL;
32641 }
32642
32643
32644 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32645 PyObject *resultobj = 0;
32646 wxListView *arg1 = (wxListView *) 0 ;
32647 int arg2 ;
32648 void *argp1 = 0 ;
32649 int res1 = 0 ;
32650 int val2 ;
32651 int ecode2 = 0 ;
32652 PyObject * obj0 = 0 ;
32653 PyObject * obj1 = 0 ;
32654 char * kwnames[] = {
32655 (char *) "self",(char *) "col", NULL
32656 };
32657
32658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32660 if (!SWIG_IsOK(res1)) {
32661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32662 }
32663 arg1 = reinterpret_cast< wxListView * >(argp1);
32664 ecode2 = SWIG_AsVal_int(obj1, &val2);
32665 if (!SWIG_IsOK(ecode2)) {
32666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32667 }
32668 arg2 = static_cast< int >(val2);
32669 {
32670 PyThreadState* __tstate = wxPyBeginAllowThreads();
32671 (arg1)->ClearColumnImage(arg2);
32672 wxPyEndAllowThreads(__tstate);
32673 if (PyErr_Occurred()) SWIG_fail;
32674 }
32675 resultobj = SWIG_Py_Void();
32676 return resultobj;
32677 fail:
32678 return NULL;
32679 }
32680
32681
32682 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32683 PyObject *obj;
32684 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32685 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32686 return SWIG_Py_Void();
32687 }
32688
32689 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32690 return SWIG_Python_InitShadowInstance(args);
32691 }
32692
32693 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32694 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32695 return 1;
32696 }
32697
32698
32699 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32700 PyObject *pyobj = 0;
32701
32702 {
32703 #if wxUSE_UNICODE
32704 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32705 #else
32706 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32707 #endif
32708 }
32709 return pyobj;
32710 }
32711
32712
32713 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32714 PyObject *resultobj = 0;
32715 wxTreeItemId *result = 0 ;
32716
32717 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32718 {
32719 PyThreadState* __tstate = wxPyBeginAllowThreads();
32720 result = (wxTreeItemId *)new wxTreeItemId();
32721 wxPyEndAllowThreads(__tstate);
32722 if (PyErr_Occurred()) SWIG_fail;
32723 }
32724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32725 return resultobj;
32726 fail:
32727 return NULL;
32728 }
32729
32730
32731 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32732 PyObject *resultobj = 0;
32733 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32734 void *argp1 = 0 ;
32735 int res1 = 0 ;
32736 PyObject *swig_obj[1] ;
32737
32738 if (!args) SWIG_fail;
32739 swig_obj[0] = args;
32740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32741 if (!SWIG_IsOK(res1)) {
32742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32743 }
32744 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32745 {
32746 PyThreadState* __tstate = wxPyBeginAllowThreads();
32747 delete arg1;
32748
32749 wxPyEndAllowThreads(__tstate);
32750 if (PyErr_Occurred()) SWIG_fail;
32751 }
32752 resultobj = SWIG_Py_Void();
32753 return resultobj;
32754 fail:
32755 return NULL;
32756 }
32757
32758
32759 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32760 PyObject *resultobj = 0;
32761 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32762 bool result;
32763 void *argp1 = 0 ;
32764 int res1 = 0 ;
32765 PyObject *swig_obj[1] ;
32766
32767 if (!args) SWIG_fail;
32768 swig_obj[0] = args;
32769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32770 if (!SWIG_IsOK(res1)) {
32771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32772 }
32773 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32774 {
32775 PyThreadState* __tstate = wxPyBeginAllowThreads();
32776 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32777 wxPyEndAllowThreads(__tstate);
32778 if (PyErr_Occurred()) SWIG_fail;
32779 }
32780 {
32781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32782 }
32783 return resultobj;
32784 fail:
32785 return NULL;
32786 }
32787
32788
32789 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32790 PyObject *resultobj = 0;
32791 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32792 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32793 bool result;
32794 void *argp1 = 0 ;
32795 int res1 = 0 ;
32796 void *argp2 = 0 ;
32797 int res2 = 0 ;
32798 PyObject * obj0 = 0 ;
32799 PyObject * obj1 = 0 ;
32800 char * kwnames[] = {
32801 (char *) "self",(char *) "other", NULL
32802 };
32803
32804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32806 if (!SWIG_IsOK(res1)) {
32807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32808 }
32809 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32810 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32811 if (!SWIG_IsOK(res2)) {
32812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32813 }
32814 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32815 {
32816 PyThreadState* __tstate = wxPyBeginAllowThreads();
32817 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32818 wxPyEndAllowThreads(__tstate);
32819 if (PyErr_Occurred()) SWIG_fail;
32820 }
32821 {
32822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32823 }
32824 return resultobj;
32825 fail:
32826 return NULL;
32827 }
32828
32829
32830 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32831 PyObject *resultobj = 0;
32832 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32833 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32834 bool result;
32835 void *argp1 = 0 ;
32836 int res1 = 0 ;
32837 void *argp2 = 0 ;
32838 int res2 = 0 ;
32839 PyObject * obj0 = 0 ;
32840 PyObject * obj1 = 0 ;
32841 char * kwnames[] = {
32842 (char *) "self",(char *) "other", NULL
32843 };
32844
32845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32847 if (!SWIG_IsOK(res1)) {
32848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32849 }
32850 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32851 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32852 if (!SWIG_IsOK(res2)) {
32853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32854 }
32855 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32856 {
32857 PyThreadState* __tstate = wxPyBeginAllowThreads();
32858 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32859 wxPyEndAllowThreads(__tstate);
32860 if (PyErr_Occurred()) SWIG_fail;
32861 }
32862 {
32863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32864 }
32865 return resultobj;
32866 fail:
32867 return NULL;
32868 }
32869
32870
32871 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32872 PyObject *resultobj = 0;
32873 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32874 void *arg2 = (void *) 0 ;
32875 void *argp1 = 0 ;
32876 int res1 = 0 ;
32877 int res2 ;
32878 PyObject *swig_obj[2] ;
32879
32880 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32882 if (!SWIG_IsOK(res1)) {
32883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32884 }
32885 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32886 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32887 if (!SWIG_IsOK(res2)) {
32888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32889 }
32890 if (arg1) (arg1)->m_pItem = arg2;
32891
32892 resultobj = SWIG_Py_Void();
32893 return resultobj;
32894 fail:
32895 return NULL;
32896 }
32897
32898
32899 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32900 PyObject *resultobj = 0;
32901 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32902 void *result = 0 ;
32903 void *argp1 = 0 ;
32904 int res1 = 0 ;
32905 PyObject *swig_obj[1] ;
32906
32907 if (!args) SWIG_fail;
32908 swig_obj[0] = args;
32909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32910 if (!SWIG_IsOK(res1)) {
32911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32912 }
32913 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32914 result = (void *) ((arg1)->m_pItem);
32915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32916 return resultobj;
32917 fail:
32918 return NULL;
32919 }
32920
32921
32922 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32923 PyObject *obj;
32924 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32925 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32926 return SWIG_Py_Void();
32927 }
32928
32929 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32930 return SWIG_Python_InitShadowInstance(args);
32931 }
32932
32933 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32934 PyObject *resultobj = 0;
32935 PyObject *arg1 = (PyObject *) NULL ;
32936 wxPyTreeItemData *result = 0 ;
32937 PyObject * obj0 = 0 ;
32938 char * kwnames[] = {
32939 (char *) "obj", NULL
32940 };
32941
32942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32943 if (obj0) {
32944 arg1 = obj0;
32945 }
32946 {
32947 PyThreadState* __tstate = wxPyBeginAllowThreads();
32948 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32949 wxPyEndAllowThreads(__tstate);
32950 if (PyErr_Occurred()) SWIG_fail;
32951 }
32952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32953 return resultobj;
32954 fail:
32955 return NULL;
32956 }
32957
32958
32959 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32960 PyObject *resultobj = 0;
32961 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32962 void *argp1 = 0 ;
32963 int res1 = 0 ;
32964 PyObject *swig_obj[1] ;
32965
32966 if (!args) SWIG_fail;
32967 swig_obj[0] = args;
32968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32969 if (!SWIG_IsOK(res1)) {
32970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32971 }
32972 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32973 {
32974 PyThreadState* __tstate = wxPyBeginAllowThreads();
32975 delete arg1;
32976
32977 wxPyEndAllowThreads(__tstate);
32978 if (PyErr_Occurred()) SWIG_fail;
32979 }
32980 resultobj = SWIG_Py_Void();
32981 return resultobj;
32982 fail:
32983 return NULL;
32984 }
32985
32986
32987 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32988 PyObject *resultobj = 0;
32989 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32990 PyObject *result = 0 ;
32991 void *argp1 = 0 ;
32992 int res1 = 0 ;
32993 PyObject *swig_obj[1] ;
32994
32995 if (!args) SWIG_fail;
32996 swig_obj[0] = args;
32997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32998 if (!SWIG_IsOK(res1)) {
32999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33000 }
33001 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33002 {
33003 PyThreadState* __tstate = wxPyBeginAllowThreads();
33004 result = (PyObject *)(arg1)->GetData();
33005 wxPyEndAllowThreads(__tstate);
33006 if (PyErr_Occurred()) SWIG_fail;
33007 }
33008 resultobj = result;
33009 return resultobj;
33010 fail:
33011 return NULL;
33012 }
33013
33014
33015 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33016 PyObject *resultobj = 0;
33017 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33018 PyObject *arg2 = (PyObject *) 0 ;
33019 void *argp1 = 0 ;
33020 int res1 = 0 ;
33021 PyObject * obj0 = 0 ;
33022 PyObject * obj1 = 0 ;
33023 char * kwnames[] = {
33024 (char *) "self",(char *) "obj", NULL
33025 };
33026
33027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33029 if (!SWIG_IsOK(res1)) {
33030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33031 }
33032 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33033 arg2 = obj1;
33034 {
33035 PyThreadState* __tstate = wxPyBeginAllowThreads();
33036 (arg1)->SetData(arg2);
33037 wxPyEndAllowThreads(__tstate);
33038 if (PyErr_Occurred()) SWIG_fail;
33039 }
33040 resultobj = SWIG_Py_Void();
33041 return resultobj;
33042 fail:
33043 return NULL;
33044 }
33045
33046
33047 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33048 PyObject *resultobj = 0;
33049 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33050 wxTreeItemId *result = 0 ;
33051 void *argp1 = 0 ;
33052 int res1 = 0 ;
33053 PyObject *swig_obj[1] ;
33054
33055 if (!args) SWIG_fail;
33056 swig_obj[0] = args;
33057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33058 if (!SWIG_IsOK(res1)) {
33059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33060 }
33061 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33062 {
33063 PyThreadState* __tstate = wxPyBeginAllowThreads();
33064 {
33065 wxTreeItemId const &_result_ref = (arg1)->GetId();
33066 result = (wxTreeItemId *) &_result_ref;
33067 }
33068 wxPyEndAllowThreads(__tstate);
33069 if (PyErr_Occurred()) SWIG_fail;
33070 }
33071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33072 return resultobj;
33073 fail:
33074 return NULL;
33075 }
33076
33077
33078 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33079 PyObject *resultobj = 0;
33080 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33081 wxTreeItemId *arg2 = 0 ;
33082 void *argp1 = 0 ;
33083 int res1 = 0 ;
33084 void *argp2 = 0 ;
33085 int res2 = 0 ;
33086 PyObject * obj0 = 0 ;
33087 PyObject * obj1 = 0 ;
33088 char * kwnames[] = {
33089 (char *) "self",(char *) "id", NULL
33090 };
33091
33092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33094 if (!SWIG_IsOK(res1)) {
33095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33096 }
33097 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33098 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33099 if (!SWIG_IsOK(res2)) {
33100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33101 }
33102 if (!argp2) {
33103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33104 }
33105 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33106 {
33107 PyThreadState* __tstate = wxPyBeginAllowThreads();
33108 (arg1)->SetId((wxTreeItemId const &)*arg2);
33109 wxPyEndAllowThreads(__tstate);
33110 if (PyErr_Occurred()) SWIG_fail;
33111 }
33112 resultobj = SWIG_Py_Void();
33113 return resultobj;
33114 fail:
33115 return NULL;
33116 }
33117
33118
33119 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33120 PyObject *resultobj = 0;
33121 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33122 void *argp1 = 0 ;
33123 int res1 = 0 ;
33124 PyObject *swig_obj[1] ;
33125
33126 if (!args) SWIG_fail;
33127 swig_obj[0] = args;
33128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33129 if (!SWIG_IsOK(res1)) {
33130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33131 }
33132 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33133 {
33134 PyThreadState* __tstate = wxPyBeginAllowThreads();
33135 wxPyTreeItemData_Destroy(arg1);
33136 wxPyEndAllowThreads(__tstate);
33137 if (PyErr_Occurred()) SWIG_fail;
33138 }
33139 resultobj = SWIG_Py_Void();
33140 return resultobj;
33141 fail:
33142 return NULL;
33143 }
33144
33145
33146 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33147 PyObject *obj;
33148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33149 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33150 return SWIG_Py_Void();
33151 }
33152
33153 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33154 return SWIG_Python_InitShadowInstance(args);
33155 }
33156
33157 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33158 {
33159 void *argp = 0;
33160 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33161 if (!SWIG_IsOK(res)) {
33162 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33163 }
33164 if (!argp) {
33165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33166 } else {
33167 wxTreeItemId * temp;
33168 temp = reinterpret_cast< wxTreeItemId * >(argp);
33169 wxNullTreeItemId = *temp;
33170 if (SWIG_IsNewObj(res)) delete temp;
33171 }
33172 }
33173 return 0;
33174 fail:
33175 return 1;
33176 }
33177
33178
33179 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33180 PyObject *pyobj = 0;
33181
33182 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33183 return pyobj;
33184 }
33185
33186
33187 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33188 PyObject *resultobj = 0;
33189 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33190 int arg2 = (int) 0 ;
33191 wxTreeEvent *result = 0 ;
33192 int val1 ;
33193 int ecode1 = 0 ;
33194 int val2 ;
33195 int ecode2 = 0 ;
33196
33197 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33198 if (swig_obj[0]) {
33199 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33200 if (!SWIG_IsOK(ecode1)) {
33201 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33202 }
33203 arg1 = static_cast< wxEventType >(val1);
33204 }
33205 if (swig_obj[1]) {
33206 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33207 if (!SWIG_IsOK(ecode2)) {
33208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33209 }
33210 arg2 = static_cast< int >(val2);
33211 }
33212 {
33213 PyThreadState* __tstate = wxPyBeginAllowThreads();
33214 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33215 wxPyEndAllowThreads(__tstate);
33216 if (PyErr_Occurred()) SWIG_fail;
33217 }
33218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33219 return resultobj;
33220 fail:
33221 return NULL;
33222 }
33223
33224
33225 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33226 PyObject *resultobj = 0;
33227 wxEventType arg1 ;
33228 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33229 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33230 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33231 wxTreeEvent *result = 0 ;
33232 int val1 ;
33233 int ecode1 = 0 ;
33234 void *argp2 = 0 ;
33235 int res2 = 0 ;
33236 void *argp3 = 0 ;
33237 int res3 = 0 ;
33238
33239 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33240 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33241 if (!SWIG_IsOK(ecode1)) {
33242 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33243 }
33244 arg1 = static_cast< wxEventType >(val1);
33245 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33246 if (!SWIG_IsOK(res2)) {
33247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33248 }
33249 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33250 if (swig_obj[2]) {
33251 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33252 if (!SWIG_IsOK(res3)) {
33253 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33254 }
33255 if (!argp3) {
33256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33257 }
33258 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33259 }
33260 {
33261 PyThreadState* __tstate = wxPyBeginAllowThreads();
33262 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33263 wxPyEndAllowThreads(__tstate);
33264 if (PyErr_Occurred()) SWIG_fail;
33265 }
33266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33267 return resultobj;
33268 fail:
33269 return NULL;
33270 }
33271
33272
33273 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33274 int argc;
33275 PyObject *argv[4];
33276
33277 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33278 --argc;
33279 if ((argc >= 0) && (argc <= 2)) {
33280 int _v = 0;
33281 if (argc > 1) {
33282 {
33283 {
33284 int res = SWIG_AsVal_int(argv[1], NULL);
33285 _v = SWIG_CheckState(res);
33286 }
33287 }
33288 if (!_v) goto check_1;
33289 }
33290 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33291 }
33292 check_1:
33293
33294 if ((argc >= 2) && (argc <= 3)) {
33295 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33296 }
33297
33298 fail:
33299 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33300 return NULL;
33301 }
33302
33303
33304 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33305 PyObject *resultobj = 0;
33306 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33307 wxTreeItemId result;
33308 void *argp1 = 0 ;
33309 int res1 = 0 ;
33310 PyObject *swig_obj[1] ;
33311
33312 if (!args) SWIG_fail;
33313 swig_obj[0] = args;
33314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33315 if (!SWIG_IsOK(res1)) {
33316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33317 }
33318 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33319 {
33320 PyThreadState* __tstate = wxPyBeginAllowThreads();
33321 result = ((wxTreeEvent const *)arg1)->GetItem();
33322 wxPyEndAllowThreads(__tstate);
33323 if (PyErr_Occurred()) SWIG_fail;
33324 }
33325 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33326 return resultobj;
33327 fail:
33328 return NULL;
33329 }
33330
33331
33332 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33333 PyObject *resultobj = 0;
33334 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33335 wxTreeItemId *arg2 = 0 ;
33336 void *argp1 = 0 ;
33337 int res1 = 0 ;
33338 void *argp2 = 0 ;
33339 int res2 = 0 ;
33340 PyObject * obj0 = 0 ;
33341 PyObject * obj1 = 0 ;
33342 char * kwnames[] = {
33343 (char *) "self",(char *) "item", NULL
33344 };
33345
33346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33348 if (!SWIG_IsOK(res1)) {
33349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33350 }
33351 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33353 if (!SWIG_IsOK(res2)) {
33354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33355 }
33356 if (!argp2) {
33357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33358 }
33359 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33360 {
33361 PyThreadState* __tstate = wxPyBeginAllowThreads();
33362 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33363 wxPyEndAllowThreads(__tstate);
33364 if (PyErr_Occurred()) SWIG_fail;
33365 }
33366 resultobj = SWIG_Py_Void();
33367 return resultobj;
33368 fail:
33369 return NULL;
33370 }
33371
33372
33373 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33374 PyObject *resultobj = 0;
33375 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33376 wxTreeItemId result;
33377 void *argp1 = 0 ;
33378 int res1 = 0 ;
33379 PyObject *swig_obj[1] ;
33380
33381 if (!args) SWIG_fail;
33382 swig_obj[0] = args;
33383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33384 if (!SWIG_IsOK(res1)) {
33385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33386 }
33387 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33388 {
33389 PyThreadState* __tstate = wxPyBeginAllowThreads();
33390 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33391 wxPyEndAllowThreads(__tstate);
33392 if (PyErr_Occurred()) SWIG_fail;
33393 }
33394 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33395 return resultobj;
33396 fail:
33397 return NULL;
33398 }
33399
33400
33401 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33402 PyObject *resultobj = 0;
33403 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33404 wxTreeItemId *arg2 = 0 ;
33405 void *argp1 = 0 ;
33406 int res1 = 0 ;
33407 void *argp2 = 0 ;
33408 int res2 = 0 ;
33409 PyObject * obj0 = 0 ;
33410 PyObject * obj1 = 0 ;
33411 char * kwnames[] = {
33412 (char *) "self",(char *) "item", NULL
33413 };
33414
33415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33417 if (!SWIG_IsOK(res1)) {
33418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33419 }
33420 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33421 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33422 if (!SWIG_IsOK(res2)) {
33423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33424 }
33425 if (!argp2) {
33426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33427 }
33428 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33429 {
33430 PyThreadState* __tstate = wxPyBeginAllowThreads();
33431 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33432 wxPyEndAllowThreads(__tstate);
33433 if (PyErr_Occurred()) SWIG_fail;
33434 }
33435 resultobj = SWIG_Py_Void();
33436 return resultobj;
33437 fail:
33438 return NULL;
33439 }
33440
33441
33442 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33443 PyObject *resultobj = 0;
33444 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33445 wxPoint result;
33446 void *argp1 = 0 ;
33447 int res1 = 0 ;
33448 PyObject *swig_obj[1] ;
33449
33450 if (!args) SWIG_fail;
33451 swig_obj[0] = args;
33452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33453 if (!SWIG_IsOK(res1)) {
33454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33455 }
33456 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33457 {
33458 PyThreadState* __tstate = wxPyBeginAllowThreads();
33459 result = ((wxTreeEvent const *)arg1)->GetPoint();
33460 wxPyEndAllowThreads(__tstate);
33461 if (PyErr_Occurred()) SWIG_fail;
33462 }
33463 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33464 return resultobj;
33465 fail:
33466 return NULL;
33467 }
33468
33469
33470 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33471 PyObject *resultobj = 0;
33472 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33473 wxPoint *arg2 = 0 ;
33474 void *argp1 = 0 ;
33475 int res1 = 0 ;
33476 wxPoint temp2 ;
33477 PyObject * obj0 = 0 ;
33478 PyObject * obj1 = 0 ;
33479 char * kwnames[] = {
33480 (char *) "self",(char *) "pt", NULL
33481 };
33482
33483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33485 if (!SWIG_IsOK(res1)) {
33486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33487 }
33488 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33489 {
33490 arg2 = &temp2;
33491 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33492 }
33493 {
33494 PyThreadState* __tstate = wxPyBeginAllowThreads();
33495 (arg1)->SetPoint((wxPoint const &)*arg2);
33496 wxPyEndAllowThreads(__tstate);
33497 if (PyErr_Occurred()) SWIG_fail;
33498 }
33499 resultobj = SWIG_Py_Void();
33500 return resultobj;
33501 fail:
33502 return NULL;
33503 }
33504
33505
33506 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33507 PyObject *resultobj = 0;
33508 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33509 wxKeyEvent *result = 0 ;
33510 void *argp1 = 0 ;
33511 int res1 = 0 ;
33512 PyObject *swig_obj[1] ;
33513
33514 if (!args) SWIG_fail;
33515 swig_obj[0] = args;
33516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33517 if (!SWIG_IsOK(res1)) {
33518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33519 }
33520 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33521 {
33522 PyThreadState* __tstate = wxPyBeginAllowThreads();
33523 {
33524 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33525 result = (wxKeyEvent *) &_result_ref;
33526 }
33527 wxPyEndAllowThreads(__tstate);
33528 if (PyErr_Occurred()) SWIG_fail;
33529 }
33530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33531 return resultobj;
33532 fail:
33533 return NULL;
33534 }
33535
33536
33537 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33538 PyObject *resultobj = 0;
33539 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33540 int result;
33541 void *argp1 = 0 ;
33542 int res1 = 0 ;
33543 PyObject *swig_obj[1] ;
33544
33545 if (!args) SWIG_fail;
33546 swig_obj[0] = args;
33547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33548 if (!SWIG_IsOK(res1)) {
33549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33550 }
33551 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33552 {
33553 PyThreadState* __tstate = wxPyBeginAllowThreads();
33554 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33555 wxPyEndAllowThreads(__tstate);
33556 if (PyErr_Occurred()) SWIG_fail;
33557 }
33558 resultobj = SWIG_From_int(static_cast< int >(result));
33559 return resultobj;
33560 fail:
33561 return NULL;
33562 }
33563
33564
33565 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33566 PyObject *resultobj = 0;
33567 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33568 wxKeyEvent *arg2 = 0 ;
33569 void *argp1 = 0 ;
33570 int res1 = 0 ;
33571 void *argp2 = 0 ;
33572 int res2 = 0 ;
33573 PyObject * obj0 = 0 ;
33574 PyObject * obj1 = 0 ;
33575 char * kwnames[] = {
33576 (char *) "self",(char *) "evt", NULL
33577 };
33578
33579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33581 if (!SWIG_IsOK(res1)) {
33582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33583 }
33584 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33586 if (!SWIG_IsOK(res2)) {
33587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33588 }
33589 if (!argp2) {
33590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33591 }
33592 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33593 {
33594 PyThreadState* __tstate = wxPyBeginAllowThreads();
33595 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33596 wxPyEndAllowThreads(__tstate);
33597 if (PyErr_Occurred()) SWIG_fail;
33598 }
33599 resultobj = SWIG_Py_Void();
33600 return resultobj;
33601 fail:
33602 return NULL;
33603 }
33604
33605
33606 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33607 PyObject *resultobj = 0;
33608 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33609 wxString *result = 0 ;
33610 void *argp1 = 0 ;
33611 int res1 = 0 ;
33612 PyObject *swig_obj[1] ;
33613
33614 if (!args) SWIG_fail;
33615 swig_obj[0] = args;
33616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33617 if (!SWIG_IsOK(res1)) {
33618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33619 }
33620 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33621 {
33622 PyThreadState* __tstate = wxPyBeginAllowThreads();
33623 {
33624 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33625 result = (wxString *) &_result_ref;
33626 }
33627 wxPyEndAllowThreads(__tstate);
33628 if (PyErr_Occurred()) SWIG_fail;
33629 }
33630 {
33631 #if wxUSE_UNICODE
33632 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33633 #else
33634 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33635 #endif
33636 }
33637 return resultobj;
33638 fail:
33639 return NULL;
33640 }
33641
33642
33643 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33644 PyObject *resultobj = 0;
33645 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33646 wxString *arg2 = 0 ;
33647 void *argp1 = 0 ;
33648 int res1 = 0 ;
33649 bool temp2 = false ;
33650 PyObject * obj0 = 0 ;
33651 PyObject * obj1 = 0 ;
33652 char * kwnames[] = {
33653 (char *) "self",(char *) "label", NULL
33654 };
33655
33656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33658 if (!SWIG_IsOK(res1)) {
33659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33660 }
33661 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33662 {
33663 arg2 = wxString_in_helper(obj1);
33664 if (arg2 == NULL) SWIG_fail;
33665 temp2 = true;
33666 }
33667 {
33668 PyThreadState* __tstate = wxPyBeginAllowThreads();
33669 (arg1)->SetLabel((wxString const &)*arg2);
33670 wxPyEndAllowThreads(__tstate);
33671 if (PyErr_Occurred()) SWIG_fail;
33672 }
33673 resultobj = SWIG_Py_Void();
33674 {
33675 if (temp2)
33676 delete arg2;
33677 }
33678 return resultobj;
33679 fail:
33680 {
33681 if (temp2)
33682 delete arg2;
33683 }
33684 return NULL;
33685 }
33686
33687
33688 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33689 PyObject *resultobj = 0;
33690 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33691 bool result;
33692 void *argp1 = 0 ;
33693 int res1 = 0 ;
33694 PyObject *swig_obj[1] ;
33695
33696 if (!args) SWIG_fail;
33697 swig_obj[0] = args;
33698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33699 if (!SWIG_IsOK(res1)) {
33700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33701 }
33702 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33703 {
33704 PyThreadState* __tstate = wxPyBeginAllowThreads();
33705 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33706 wxPyEndAllowThreads(__tstate);
33707 if (PyErr_Occurred()) SWIG_fail;
33708 }
33709 {
33710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33711 }
33712 return resultobj;
33713 fail:
33714 return NULL;
33715 }
33716
33717
33718 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33719 PyObject *resultobj = 0;
33720 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33721 bool arg2 ;
33722 void *argp1 = 0 ;
33723 int res1 = 0 ;
33724 bool val2 ;
33725 int ecode2 = 0 ;
33726 PyObject * obj0 = 0 ;
33727 PyObject * obj1 = 0 ;
33728 char * kwnames[] = {
33729 (char *) "self",(char *) "editCancelled", NULL
33730 };
33731
33732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33734 if (!SWIG_IsOK(res1)) {
33735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33736 }
33737 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33738 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33739 if (!SWIG_IsOK(ecode2)) {
33740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33741 }
33742 arg2 = static_cast< bool >(val2);
33743 {
33744 PyThreadState* __tstate = wxPyBeginAllowThreads();
33745 (arg1)->SetEditCanceled(arg2);
33746 wxPyEndAllowThreads(__tstate);
33747 if (PyErr_Occurred()) SWIG_fail;
33748 }
33749 resultobj = SWIG_Py_Void();
33750 return resultobj;
33751 fail:
33752 return NULL;
33753 }
33754
33755
33756 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33757 PyObject *resultobj = 0;
33758 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33759 wxString *arg2 = 0 ;
33760 void *argp1 = 0 ;
33761 int res1 = 0 ;
33762 bool temp2 = false ;
33763 PyObject * obj0 = 0 ;
33764 PyObject * obj1 = 0 ;
33765 char * kwnames[] = {
33766 (char *) "self",(char *) "toolTip", NULL
33767 };
33768
33769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33771 if (!SWIG_IsOK(res1)) {
33772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33773 }
33774 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33775 {
33776 arg2 = wxString_in_helper(obj1);
33777 if (arg2 == NULL) SWIG_fail;
33778 temp2 = true;
33779 }
33780 {
33781 PyThreadState* __tstate = wxPyBeginAllowThreads();
33782 (arg1)->SetToolTip((wxString const &)*arg2);
33783 wxPyEndAllowThreads(__tstate);
33784 if (PyErr_Occurred()) SWIG_fail;
33785 }
33786 resultobj = SWIG_Py_Void();
33787 {
33788 if (temp2)
33789 delete arg2;
33790 }
33791 return resultobj;
33792 fail:
33793 {
33794 if (temp2)
33795 delete arg2;
33796 }
33797 return NULL;
33798 }
33799
33800
33801 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33802 PyObject *resultobj = 0;
33803 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33804 wxString result;
33805 void *argp1 = 0 ;
33806 int res1 = 0 ;
33807 PyObject *swig_obj[1] ;
33808
33809 if (!args) SWIG_fail;
33810 swig_obj[0] = args;
33811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33812 if (!SWIG_IsOK(res1)) {
33813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33814 }
33815 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33816 {
33817 PyThreadState* __tstate = wxPyBeginAllowThreads();
33818 result = (arg1)->GetToolTip();
33819 wxPyEndAllowThreads(__tstate);
33820 if (PyErr_Occurred()) SWIG_fail;
33821 }
33822 {
33823 #if wxUSE_UNICODE
33824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33825 #else
33826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33827 #endif
33828 }
33829 return resultobj;
33830 fail:
33831 return NULL;
33832 }
33833
33834
33835 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33836 PyObject *obj;
33837 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33838 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33839 return SWIG_Py_Void();
33840 }
33841
33842 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33843 return SWIG_Python_InitShadowInstance(args);
33844 }
33845
33846 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33847 PyObject *resultobj = 0;
33848 wxWindow *arg1 = (wxWindow *) 0 ;
33849 int arg2 = (int) -1 ;
33850 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33851 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33852 wxSize const &arg4_defvalue = wxDefaultSize ;
33853 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33854 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33855 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33856 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33857 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33858 wxString *arg7 = (wxString *) &arg7_defvalue ;
33859 wxPyTreeCtrl *result = 0 ;
33860 void *argp1 = 0 ;
33861 int res1 = 0 ;
33862 int val2 ;
33863 int ecode2 = 0 ;
33864 wxPoint temp3 ;
33865 wxSize temp4 ;
33866 long val5 ;
33867 int ecode5 = 0 ;
33868 void *argp6 = 0 ;
33869 int res6 = 0 ;
33870 bool temp7 = false ;
33871 PyObject * obj0 = 0 ;
33872 PyObject * obj1 = 0 ;
33873 PyObject * obj2 = 0 ;
33874 PyObject * obj3 = 0 ;
33875 PyObject * obj4 = 0 ;
33876 PyObject * obj5 = 0 ;
33877 PyObject * obj6 = 0 ;
33878 char * kwnames[] = {
33879 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33880 };
33881
33882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33884 if (!SWIG_IsOK(res1)) {
33885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33886 }
33887 arg1 = reinterpret_cast< wxWindow * >(argp1);
33888 if (obj1) {
33889 ecode2 = SWIG_AsVal_int(obj1, &val2);
33890 if (!SWIG_IsOK(ecode2)) {
33891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33892 }
33893 arg2 = static_cast< int >(val2);
33894 }
33895 if (obj2) {
33896 {
33897 arg3 = &temp3;
33898 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33899 }
33900 }
33901 if (obj3) {
33902 {
33903 arg4 = &temp4;
33904 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33905 }
33906 }
33907 if (obj4) {
33908 ecode5 = SWIG_AsVal_long(obj4, &val5);
33909 if (!SWIG_IsOK(ecode5)) {
33910 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33911 }
33912 arg5 = static_cast< long >(val5);
33913 }
33914 if (obj5) {
33915 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33916 if (!SWIG_IsOK(res6)) {
33917 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33918 }
33919 if (!argp6) {
33920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33921 }
33922 arg6 = reinterpret_cast< wxValidator * >(argp6);
33923 }
33924 if (obj6) {
33925 {
33926 arg7 = wxString_in_helper(obj6);
33927 if (arg7 == NULL) SWIG_fail;
33928 temp7 = true;
33929 }
33930 }
33931 {
33932 if (!wxPyCheckForApp()) SWIG_fail;
33933 PyThreadState* __tstate = wxPyBeginAllowThreads();
33934 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33935 wxPyEndAllowThreads(__tstate);
33936 if (PyErr_Occurred()) SWIG_fail;
33937 }
33938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33939 {
33940 if (temp7)
33941 delete arg7;
33942 }
33943 return resultobj;
33944 fail:
33945 {
33946 if (temp7)
33947 delete arg7;
33948 }
33949 return NULL;
33950 }
33951
33952
33953 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33954 PyObject *resultobj = 0;
33955 wxPyTreeCtrl *result = 0 ;
33956
33957 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33958 {
33959 if (!wxPyCheckForApp()) SWIG_fail;
33960 PyThreadState* __tstate = wxPyBeginAllowThreads();
33961 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33962 wxPyEndAllowThreads(__tstate);
33963 if (PyErr_Occurred()) SWIG_fail;
33964 }
33965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33966 return resultobj;
33967 fail:
33968 return NULL;
33969 }
33970
33971
33972 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33973 PyObject *resultobj = 0;
33974 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33975 wxWindow *arg2 = (wxWindow *) 0 ;
33976 int arg3 = (int) -1 ;
33977 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33978 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33979 wxSize const &arg5_defvalue = wxDefaultSize ;
33980 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33981 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33982 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33983 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33984 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33985 wxString *arg8 = (wxString *) &arg8_defvalue ;
33986 bool result;
33987 void *argp1 = 0 ;
33988 int res1 = 0 ;
33989 void *argp2 = 0 ;
33990 int res2 = 0 ;
33991 int val3 ;
33992 int ecode3 = 0 ;
33993 wxPoint temp4 ;
33994 wxSize temp5 ;
33995 long val6 ;
33996 int ecode6 = 0 ;
33997 void *argp7 = 0 ;
33998 int res7 = 0 ;
33999 bool temp8 = false ;
34000 PyObject * obj0 = 0 ;
34001 PyObject * obj1 = 0 ;
34002 PyObject * obj2 = 0 ;
34003 PyObject * obj3 = 0 ;
34004 PyObject * obj4 = 0 ;
34005 PyObject * obj5 = 0 ;
34006 PyObject * obj6 = 0 ;
34007 PyObject * obj7 = 0 ;
34008 char * kwnames[] = {
34009 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34010 };
34011
34012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34014 if (!SWIG_IsOK(res1)) {
34015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34016 }
34017 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34018 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34019 if (!SWIG_IsOK(res2)) {
34020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34021 }
34022 arg2 = reinterpret_cast< wxWindow * >(argp2);
34023 if (obj2) {
34024 ecode3 = SWIG_AsVal_int(obj2, &val3);
34025 if (!SWIG_IsOK(ecode3)) {
34026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34027 }
34028 arg3 = static_cast< int >(val3);
34029 }
34030 if (obj3) {
34031 {
34032 arg4 = &temp4;
34033 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
34034 }
34035 }
34036 if (obj4) {
34037 {
34038 arg5 = &temp5;
34039 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
34040 }
34041 }
34042 if (obj5) {
34043 ecode6 = SWIG_AsVal_long(obj5, &val6);
34044 if (!SWIG_IsOK(ecode6)) {
34045 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34046 }
34047 arg6 = static_cast< long >(val6);
34048 }
34049 if (obj6) {
34050 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34051 if (!SWIG_IsOK(res7)) {
34052 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34053 }
34054 if (!argp7) {
34055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34056 }
34057 arg7 = reinterpret_cast< wxValidator * >(argp7);
34058 }
34059 if (obj7) {
34060 {
34061 arg8 = wxString_in_helper(obj7);
34062 if (arg8 == NULL) SWIG_fail;
34063 temp8 = true;
34064 }
34065 }
34066 {
34067 PyThreadState* __tstate = wxPyBeginAllowThreads();
34068 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34069 wxPyEndAllowThreads(__tstate);
34070 if (PyErr_Occurred()) SWIG_fail;
34071 }
34072 {
34073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34074 }
34075 {
34076 if (temp8)
34077 delete arg8;
34078 }
34079 return resultobj;
34080 fail:
34081 {
34082 if (temp8)
34083 delete arg8;
34084 }
34085 return NULL;
34086 }
34087
34088
34089 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34090 PyObject *resultobj = 0;
34091 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34092 PyObject *arg2 = (PyObject *) 0 ;
34093 PyObject *arg3 = (PyObject *) 0 ;
34094 void *argp1 = 0 ;
34095 int res1 = 0 ;
34096 PyObject * obj0 = 0 ;
34097 PyObject * obj1 = 0 ;
34098 PyObject * obj2 = 0 ;
34099 char * kwnames[] = {
34100 (char *) "self",(char *) "self",(char *) "_class", NULL
34101 };
34102
34103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34105 if (!SWIG_IsOK(res1)) {
34106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34107 }
34108 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34109 arg2 = obj1;
34110 arg3 = obj2;
34111 {
34112 PyThreadState* __tstate = wxPyBeginAllowThreads();
34113 (arg1)->_setCallbackInfo(arg2,arg3);
34114 wxPyEndAllowThreads(__tstate);
34115 if (PyErr_Occurred()) SWIG_fail;
34116 }
34117 resultobj = SWIG_Py_Void();
34118 return resultobj;
34119 fail:
34120 return NULL;
34121 }
34122
34123
34124 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34125 PyObject *resultobj = 0;
34126 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34127 unsigned int result;
34128 void *argp1 = 0 ;
34129 int res1 = 0 ;
34130 PyObject *swig_obj[1] ;
34131
34132 if (!args) SWIG_fail;
34133 swig_obj[0] = args;
34134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34135 if (!SWIG_IsOK(res1)) {
34136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34137 }
34138 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34139 {
34140 PyThreadState* __tstate = wxPyBeginAllowThreads();
34141 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34142 wxPyEndAllowThreads(__tstate);
34143 if (PyErr_Occurred()) SWIG_fail;
34144 }
34145 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34146 return resultobj;
34147 fail:
34148 return NULL;
34149 }
34150
34151
34152 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34153 PyObject *resultobj = 0;
34154 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34155 unsigned int result;
34156 void *argp1 = 0 ;
34157 int res1 = 0 ;
34158 PyObject *swig_obj[1] ;
34159
34160 if (!args) SWIG_fail;
34161 swig_obj[0] = args;
34162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34163 if (!SWIG_IsOK(res1)) {
34164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34165 }
34166 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34167 {
34168 PyThreadState* __tstate = wxPyBeginAllowThreads();
34169 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34170 wxPyEndAllowThreads(__tstate);
34171 if (PyErr_Occurred()) SWIG_fail;
34172 }
34173 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34174 return resultobj;
34175 fail:
34176 return NULL;
34177 }
34178
34179
34180 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34181 PyObject *resultobj = 0;
34182 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34183 unsigned int arg2 ;
34184 void *argp1 = 0 ;
34185 int res1 = 0 ;
34186 unsigned int val2 ;
34187 int ecode2 = 0 ;
34188 PyObject * obj0 = 0 ;
34189 PyObject * obj1 = 0 ;
34190 char * kwnames[] = {
34191 (char *) "self",(char *) "indent", NULL
34192 };
34193
34194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34196 if (!SWIG_IsOK(res1)) {
34197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34198 }
34199 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34200 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34201 if (!SWIG_IsOK(ecode2)) {
34202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34203 }
34204 arg2 = static_cast< unsigned int >(val2);
34205 {
34206 PyThreadState* __tstate = wxPyBeginAllowThreads();
34207 (arg1)->SetIndent(arg2);
34208 wxPyEndAllowThreads(__tstate);
34209 if (PyErr_Occurred()) SWIG_fail;
34210 }
34211 resultobj = SWIG_Py_Void();
34212 return resultobj;
34213 fail:
34214 return NULL;
34215 }
34216
34217
34218 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34219 PyObject *resultobj = 0;
34220 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34221 unsigned int result;
34222 void *argp1 = 0 ;
34223 int res1 = 0 ;
34224 PyObject *swig_obj[1] ;
34225
34226 if (!args) SWIG_fail;
34227 swig_obj[0] = args;
34228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34229 if (!SWIG_IsOK(res1)) {
34230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34231 }
34232 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34233 {
34234 PyThreadState* __tstate = wxPyBeginAllowThreads();
34235 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34236 wxPyEndAllowThreads(__tstate);
34237 if (PyErr_Occurred()) SWIG_fail;
34238 }
34239 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34240 return resultobj;
34241 fail:
34242 return NULL;
34243 }
34244
34245
34246 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34247 PyObject *resultobj = 0;
34248 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34249 unsigned int arg2 ;
34250 void *argp1 = 0 ;
34251 int res1 = 0 ;
34252 unsigned int val2 ;
34253 int ecode2 = 0 ;
34254 PyObject * obj0 = 0 ;
34255 PyObject * obj1 = 0 ;
34256 char * kwnames[] = {
34257 (char *) "self",(char *) "spacing", NULL
34258 };
34259
34260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34262 if (!SWIG_IsOK(res1)) {
34263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34264 }
34265 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34266 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34267 if (!SWIG_IsOK(ecode2)) {
34268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34269 }
34270 arg2 = static_cast< unsigned int >(val2);
34271 {
34272 PyThreadState* __tstate = wxPyBeginAllowThreads();
34273 (arg1)->SetSpacing(arg2);
34274 wxPyEndAllowThreads(__tstate);
34275 if (PyErr_Occurred()) SWIG_fail;
34276 }
34277 resultobj = SWIG_Py_Void();
34278 return resultobj;
34279 fail:
34280 return NULL;
34281 }
34282
34283
34284 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34285 PyObject *resultobj = 0;
34286 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34287 wxImageList *result = 0 ;
34288 void *argp1 = 0 ;
34289 int res1 = 0 ;
34290 PyObject *swig_obj[1] ;
34291
34292 if (!args) SWIG_fail;
34293 swig_obj[0] = args;
34294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34295 if (!SWIG_IsOK(res1)) {
34296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34297 }
34298 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34299 {
34300 PyThreadState* __tstate = wxPyBeginAllowThreads();
34301 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34302 wxPyEndAllowThreads(__tstate);
34303 if (PyErr_Occurred()) SWIG_fail;
34304 }
34305 {
34306 resultobj = wxPyMake_wxObject(result, (bool)0);
34307 }
34308 return resultobj;
34309 fail:
34310 return NULL;
34311 }
34312
34313
34314 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34315 PyObject *resultobj = 0;
34316 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34317 wxImageList *result = 0 ;
34318 void *argp1 = 0 ;
34319 int res1 = 0 ;
34320 PyObject *swig_obj[1] ;
34321
34322 if (!args) SWIG_fail;
34323 swig_obj[0] = args;
34324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34325 if (!SWIG_IsOK(res1)) {
34326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34327 }
34328 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34329 {
34330 PyThreadState* __tstate = wxPyBeginAllowThreads();
34331 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34332 wxPyEndAllowThreads(__tstate);
34333 if (PyErr_Occurred()) SWIG_fail;
34334 }
34335 {
34336 resultobj = wxPyMake_wxObject(result, (bool)0);
34337 }
34338 return resultobj;
34339 fail:
34340 return NULL;
34341 }
34342
34343
34344 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34345 PyObject *resultobj = 0;
34346 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34347 wxImageList *arg2 = (wxImageList *) 0 ;
34348 void *argp1 = 0 ;
34349 int res1 = 0 ;
34350 void *argp2 = 0 ;
34351 int res2 = 0 ;
34352 PyObject * obj0 = 0 ;
34353 PyObject * obj1 = 0 ;
34354 char * kwnames[] = {
34355 (char *) "self",(char *) "imageList", NULL
34356 };
34357
34358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34360 if (!SWIG_IsOK(res1)) {
34361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34362 }
34363 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34364 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34365 if (!SWIG_IsOK(res2)) {
34366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34367 }
34368 arg2 = reinterpret_cast< wxImageList * >(argp2);
34369 {
34370 PyThreadState* __tstate = wxPyBeginAllowThreads();
34371 (arg1)->SetImageList(arg2);
34372 wxPyEndAllowThreads(__tstate);
34373 if (PyErr_Occurred()) SWIG_fail;
34374 }
34375 resultobj = SWIG_Py_Void();
34376 return resultobj;
34377 fail:
34378 return NULL;
34379 }
34380
34381
34382 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34383 PyObject *resultobj = 0;
34384 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34385 wxImageList *arg2 = (wxImageList *) 0 ;
34386 void *argp1 = 0 ;
34387 int res1 = 0 ;
34388 void *argp2 = 0 ;
34389 int res2 = 0 ;
34390 PyObject * obj0 = 0 ;
34391 PyObject * obj1 = 0 ;
34392 char * kwnames[] = {
34393 (char *) "self",(char *) "imageList", NULL
34394 };
34395
34396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",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_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34400 }
34401 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34402 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34403 if (!SWIG_IsOK(res2)) {
34404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34405 }
34406 arg2 = reinterpret_cast< wxImageList * >(argp2);
34407 {
34408 PyThreadState* __tstate = wxPyBeginAllowThreads();
34409 (arg1)->SetStateImageList(arg2);
34410 wxPyEndAllowThreads(__tstate);
34411 if (PyErr_Occurred()) SWIG_fail;
34412 }
34413 resultobj = SWIG_Py_Void();
34414 return resultobj;
34415 fail:
34416 return NULL;
34417 }
34418
34419
34420 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34421 PyObject *resultobj = 0;
34422 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34423 wxImageList *arg2 = (wxImageList *) 0 ;
34424 void *argp1 = 0 ;
34425 int res1 = 0 ;
34426 int res2 = 0 ;
34427 PyObject * obj0 = 0 ;
34428 PyObject * obj1 = 0 ;
34429 char * kwnames[] = {
34430 (char *) "self",(char *) "imageList", NULL
34431 };
34432
34433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34435 if (!SWIG_IsOK(res1)) {
34436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34437 }
34438 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34439 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34440 if (!SWIG_IsOK(res2)) {
34441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34442 }
34443 {
34444 PyThreadState* __tstate = wxPyBeginAllowThreads();
34445 (arg1)->AssignImageList(arg2);
34446 wxPyEndAllowThreads(__tstate);
34447 if (PyErr_Occurred()) SWIG_fail;
34448 }
34449 resultobj = SWIG_Py_Void();
34450 return resultobj;
34451 fail:
34452 return NULL;
34453 }
34454
34455
34456 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34457 PyObject *resultobj = 0;
34458 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34459 wxImageList *arg2 = (wxImageList *) 0 ;
34460 void *argp1 = 0 ;
34461 int res1 = 0 ;
34462 int res2 = 0 ;
34463 PyObject * obj0 = 0 ;
34464 PyObject * obj1 = 0 ;
34465 char * kwnames[] = {
34466 (char *) "self",(char *) "imageList", NULL
34467 };
34468
34469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34471 if (!SWIG_IsOK(res1)) {
34472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34473 }
34474 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34475 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34476 if (!SWIG_IsOK(res2)) {
34477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34478 }
34479 {
34480 PyThreadState* __tstate = wxPyBeginAllowThreads();
34481 (arg1)->AssignStateImageList(arg2);
34482 wxPyEndAllowThreads(__tstate);
34483 if (PyErr_Occurred()) SWIG_fail;
34484 }
34485 resultobj = SWIG_Py_Void();
34486 return resultobj;
34487 fail:
34488 return NULL;
34489 }
34490
34491
34492 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34493 PyObject *resultobj = 0;
34494 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34495 wxTreeItemId *arg2 = 0 ;
34496 wxString result;
34497 void *argp1 = 0 ;
34498 int res1 = 0 ;
34499 void *argp2 = 0 ;
34500 int res2 = 0 ;
34501 PyObject * obj0 = 0 ;
34502 PyObject * obj1 = 0 ;
34503 char * kwnames[] = {
34504 (char *) "self",(char *) "item", NULL
34505 };
34506
34507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34509 if (!SWIG_IsOK(res1)) {
34510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34511 }
34512 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34514 if (!SWIG_IsOK(res2)) {
34515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34516 }
34517 if (!argp2) {
34518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34519 }
34520 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34521 {
34522 PyThreadState* __tstate = wxPyBeginAllowThreads();
34523 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34524 wxPyEndAllowThreads(__tstate);
34525 if (PyErr_Occurred()) SWIG_fail;
34526 }
34527 {
34528 #if wxUSE_UNICODE
34529 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34530 #else
34531 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34532 #endif
34533 }
34534 return resultobj;
34535 fail:
34536 return NULL;
34537 }
34538
34539
34540 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34541 PyObject *resultobj = 0;
34542 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34543 wxTreeItemId *arg2 = 0 ;
34544 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34545 int result;
34546 void *argp1 = 0 ;
34547 int res1 = 0 ;
34548 void *argp2 = 0 ;
34549 int res2 = 0 ;
34550 int val3 ;
34551 int ecode3 = 0 ;
34552 PyObject * obj0 = 0 ;
34553 PyObject * obj1 = 0 ;
34554 PyObject * obj2 = 0 ;
34555 char * kwnames[] = {
34556 (char *) "self",(char *) "item",(char *) "which", NULL
34557 };
34558
34559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34561 if (!SWIG_IsOK(res1)) {
34562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34563 }
34564 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34565 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34566 if (!SWIG_IsOK(res2)) {
34567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34568 }
34569 if (!argp2) {
34570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34571 }
34572 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34573 if (obj2) {
34574 ecode3 = SWIG_AsVal_int(obj2, &val3);
34575 if (!SWIG_IsOK(ecode3)) {
34576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34577 }
34578 arg3 = static_cast< wxTreeItemIcon >(val3);
34579 }
34580 {
34581 PyThreadState* __tstate = wxPyBeginAllowThreads();
34582 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34583 wxPyEndAllowThreads(__tstate);
34584 if (PyErr_Occurred()) SWIG_fail;
34585 }
34586 resultobj = SWIG_From_int(static_cast< int >(result));
34587 return resultobj;
34588 fail:
34589 return NULL;
34590 }
34591
34592
34593 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34594 PyObject *resultobj = 0;
34595 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34596 wxTreeItemId *arg2 = 0 ;
34597 wxPyTreeItemData *result = 0 ;
34598 void *argp1 = 0 ;
34599 int res1 = 0 ;
34600 void *argp2 = 0 ;
34601 int res2 = 0 ;
34602 PyObject * obj0 = 0 ;
34603 PyObject * obj1 = 0 ;
34604 char * kwnames[] = {
34605 (char *) "self",(char *) "item", NULL
34606 };
34607
34608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34610 if (!SWIG_IsOK(res1)) {
34611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34612 }
34613 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34615 if (!SWIG_IsOK(res2)) {
34616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34617 }
34618 if (!argp2) {
34619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34620 }
34621 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34622 {
34623 PyThreadState* __tstate = wxPyBeginAllowThreads();
34624 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34625 wxPyEndAllowThreads(__tstate);
34626 if (PyErr_Occurred()) SWIG_fail;
34627 }
34628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34629 return resultobj;
34630 fail:
34631 return NULL;
34632 }
34633
34634
34635 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34636 PyObject *resultobj = 0;
34637 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34638 wxTreeItemId *arg2 = 0 ;
34639 PyObject *result = 0 ;
34640 void *argp1 = 0 ;
34641 int res1 = 0 ;
34642 void *argp2 = 0 ;
34643 int res2 = 0 ;
34644 PyObject * obj0 = 0 ;
34645 PyObject * obj1 = 0 ;
34646 char * kwnames[] = {
34647 (char *) "self",(char *) "item", NULL
34648 };
34649
34650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34652 if (!SWIG_IsOK(res1)) {
34653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34654 }
34655 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34657 if (!SWIG_IsOK(res2)) {
34658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34659 }
34660 if (!argp2) {
34661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34662 }
34663 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34664 {
34665 PyThreadState* __tstate = wxPyBeginAllowThreads();
34666 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34667 wxPyEndAllowThreads(__tstate);
34668 if (PyErr_Occurred()) SWIG_fail;
34669 }
34670 resultobj = result;
34671 return resultobj;
34672 fail:
34673 return NULL;
34674 }
34675
34676
34677 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34678 PyObject *resultobj = 0;
34679 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34680 wxTreeItemId *arg2 = 0 ;
34681 wxColour result;
34682 void *argp1 = 0 ;
34683 int res1 = 0 ;
34684 void *argp2 = 0 ;
34685 int res2 = 0 ;
34686 PyObject * obj0 = 0 ;
34687 PyObject * obj1 = 0 ;
34688 char * kwnames[] = {
34689 (char *) "self",(char *) "item", NULL
34690 };
34691
34692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34694 if (!SWIG_IsOK(res1)) {
34695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34696 }
34697 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34698 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34699 if (!SWIG_IsOK(res2)) {
34700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34701 }
34702 if (!argp2) {
34703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34704 }
34705 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34706 {
34707 PyThreadState* __tstate = wxPyBeginAllowThreads();
34708 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34709 wxPyEndAllowThreads(__tstate);
34710 if (PyErr_Occurred()) SWIG_fail;
34711 }
34712 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34713 return resultobj;
34714 fail:
34715 return NULL;
34716 }
34717
34718
34719 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34720 PyObject *resultobj = 0;
34721 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34722 wxTreeItemId *arg2 = 0 ;
34723 wxColour result;
34724 void *argp1 = 0 ;
34725 int res1 = 0 ;
34726 void *argp2 = 0 ;
34727 int res2 = 0 ;
34728 PyObject * obj0 = 0 ;
34729 PyObject * obj1 = 0 ;
34730 char * kwnames[] = {
34731 (char *) "self",(char *) "item", NULL
34732 };
34733
34734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34736 if (!SWIG_IsOK(res1)) {
34737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34738 }
34739 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34740 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34741 if (!SWIG_IsOK(res2)) {
34742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34743 }
34744 if (!argp2) {
34745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34746 }
34747 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34748 {
34749 PyThreadState* __tstate = wxPyBeginAllowThreads();
34750 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34751 wxPyEndAllowThreads(__tstate);
34752 if (PyErr_Occurred()) SWIG_fail;
34753 }
34754 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34755 return resultobj;
34756 fail:
34757 return NULL;
34758 }
34759
34760
34761 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34762 PyObject *resultobj = 0;
34763 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34764 wxTreeItemId *arg2 = 0 ;
34765 wxFont result;
34766 void *argp1 = 0 ;
34767 int res1 = 0 ;
34768 void *argp2 = 0 ;
34769 int res2 = 0 ;
34770 PyObject * obj0 = 0 ;
34771 PyObject * obj1 = 0 ;
34772 char * kwnames[] = {
34773 (char *) "self",(char *) "item", NULL
34774 };
34775
34776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34778 if (!SWIG_IsOK(res1)) {
34779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34780 }
34781 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34783 if (!SWIG_IsOK(res2)) {
34784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34785 }
34786 if (!argp2) {
34787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34788 }
34789 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34790 {
34791 PyThreadState* __tstate = wxPyBeginAllowThreads();
34792 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34793 wxPyEndAllowThreads(__tstate);
34794 if (PyErr_Occurred()) SWIG_fail;
34795 }
34796 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34797 return resultobj;
34798 fail:
34799 return NULL;
34800 }
34801
34802
34803 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34804 PyObject *resultobj = 0;
34805 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34806 wxTreeItemId *arg2 = 0 ;
34807 wxString *arg3 = 0 ;
34808 void *argp1 = 0 ;
34809 int res1 = 0 ;
34810 void *argp2 = 0 ;
34811 int res2 = 0 ;
34812 bool temp3 = false ;
34813 PyObject * obj0 = 0 ;
34814 PyObject * obj1 = 0 ;
34815 PyObject * obj2 = 0 ;
34816 char * kwnames[] = {
34817 (char *) "self",(char *) "item",(char *) "text", NULL
34818 };
34819
34820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34822 if (!SWIG_IsOK(res1)) {
34823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34824 }
34825 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34827 if (!SWIG_IsOK(res2)) {
34828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34829 }
34830 if (!argp2) {
34831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34832 }
34833 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34834 {
34835 arg3 = wxString_in_helper(obj2);
34836 if (arg3 == NULL) SWIG_fail;
34837 temp3 = true;
34838 }
34839 {
34840 PyThreadState* __tstate = wxPyBeginAllowThreads();
34841 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34842 wxPyEndAllowThreads(__tstate);
34843 if (PyErr_Occurred()) SWIG_fail;
34844 }
34845 resultobj = SWIG_Py_Void();
34846 {
34847 if (temp3)
34848 delete arg3;
34849 }
34850 return resultobj;
34851 fail:
34852 {
34853 if (temp3)
34854 delete arg3;
34855 }
34856 return NULL;
34857 }
34858
34859
34860 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34861 PyObject *resultobj = 0;
34862 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34863 wxTreeItemId *arg2 = 0 ;
34864 int arg3 ;
34865 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34866 void *argp1 = 0 ;
34867 int res1 = 0 ;
34868 void *argp2 = 0 ;
34869 int res2 = 0 ;
34870 int val3 ;
34871 int ecode3 = 0 ;
34872 int val4 ;
34873 int ecode4 = 0 ;
34874 PyObject * obj0 = 0 ;
34875 PyObject * obj1 = 0 ;
34876 PyObject * obj2 = 0 ;
34877 PyObject * obj3 = 0 ;
34878 char * kwnames[] = {
34879 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34880 };
34881
34882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34884 if (!SWIG_IsOK(res1)) {
34885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34886 }
34887 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34888 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34889 if (!SWIG_IsOK(res2)) {
34890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34891 }
34892 if (!argp2) {
34893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34894 }
34895 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34896 ecode3 = SWIG_AsVal_int(obj2, &val3);
34897 if (!SWIG_IsOK(ecode3)) {
34898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34899 }
34900 arg3 = static_cast< int >(val3);
34901 if (obj3) {
34902 ecode4 = SWIG_AsVal_int(obj3, &val4);
34903 if (!SWIG_IsOK(ecode4)) {
34904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34905 }
34906 arg4 = static_cast< wxTreeItemIcon >(val4);
34907 }
34908 {
34909 PyThreadState* __tstate = wxPyBeginAllowThreads();
34910 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34911 wxPyEndAllowThreads(__tstate);
34912 if (PyErr_Occurred()) SWIG_fail;
34913 }
34914 resultobj = SWIG_Py_Void();
34915 return resultobj;
34916 fail:
34917 return NULL;
34918 }
34919
34920
34921 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34922 PyObject *resultobj = 0;
34923 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34924 wxTreeItemId *arg2 = 0 ;
34925 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34926 void *argp1 = 0 ;
34927 int res1 = 0 ;
34928 void *argp2 = 0 ;
34929 int res2 = 0 ;
34930 int res3 = 0 ;
34931 PyObject * obj0 = 0 ;
34932 PyObject * obj1 = 0 ;
34933 PyObject * obj2 = 0 ;
34934 char * kwnames[] = {
34935 (char *) "self",(char *) "item",(char *) "data", NULL
34936 };
34937
34938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34940 if (!SWIG_IsOK(res1)) {
34941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34942 }
34943 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34945 if (!SWIG_IsOK(res2)) {
34946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34947 }
34948 if (!argp2) {
34949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34950 }
34951 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34952 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34953 if (!SWIG_IsOK(res3)) {
34954 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34955 }
34956 {
34957 PyThreadState* __tstate = wxPyBeginAllowThreads();
34958 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34959 wxPyEndAllowThreads(__tstate);
34960 if (PyErr_Occurred()) SWIG_fail;
34961 }
34962 resultobj = SWIG_Py_Void();
34963 return resultobj;
34964 fail:
34965 return NULL;
34966 }
34967
34968
34969 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34970 PyObject *resultobj = 0;
34971 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34972 wxTreeItemId *arg2 = 0 ;
34973 PyObject *arg3 = (PyObject *) 0 ;
34974 void *argp1 = 0 ;
34975 int res1 = 0 ;
34976 void *argp2 = 0 ;
34977 int res2 = 0 ;
34978 PyObject * obj0 = 0 ;
34979 PyObject * obj1 = 0 ;
34980 PyObject * obj2 = 0 ;
34981 char * kwnames[] = {
34982 (char *) "self",(char *) "item",(char *) "obj", NULL
34983 };
34984
34985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34987 if (!SWIG_IsOK(res1)) {
34988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34989 }
34990 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34991 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34992 if (!SWIG_IsOK(res2)) {
34993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34994 }
34995 if (!argp2) {
34996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34997 }
34998 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34999 arg3 = obj2;
35000 {
35001 PyThreadState* __tstate = wxPyBeginAllowThreads();
35002 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35003 wxPyEndAllowThreads(__tstate);
35004 if (PyErr_Occurred()) SWIG_fail;
35005 }
35006 resultobj = SWIG_Py_Void();
35007 return resultobj;
35008 fail:
35009 return NULL;
35010 }
35011
35012
35013 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35014 PyObject *resultobj = 0;
35015 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35016 wxTreeItemId *arg2 = 0 ;
35017 bool arg3 = (bool) true ;
35018 void *argp1 = 0 ;
35019 int res1 = 0 ;
35020 void *argp2 = 0 ;
35021 int res2 = 0 ;
35022 bool val3 ;
35023 int ecode3 = 0 ;
35024 PyObject * obj0 = 0 ;
35025 PyObject * obj1 = 0 ;
35026 PyObject * obj2 = 0 ;
35027 char * kwnames[] = {
35028 (char *) "self",(char *) "item",(char *) "has", NULL
35029 };
35030
35031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35033 if (!SWIG_IsOK(res1)) {
35034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35035 }
35036 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35037 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35038 if (!SWIG_IsOK(res2)) {
35039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35040 }
35041 if (!argp2) {
35042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35043 }
35044 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35045 if (obj2) {
35046 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35047 if (!SWIG_IsOK(ecode3)) {
35048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35049 }
35050 arg3 = static_cast< bool >(val3);
35051 }
35052 {
35053 PyThreadState* __tstate = wxPyBeginAllowThreads();
35054 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35055 wxPyEndAllowThreads(__tstate);
35056 if (PyErr_Occurred()) SWIG_fail;
35057 }
35058 resultobj = SWIG_Py_Void();
35059 return resultobj;
35060 fail:
35061 return NULL;
35062 }
35063
35064
35065 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35066 PyObject *resultobj = 0;
35067 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35068 wxTreeItemId *arg2 = 0 ;
35069 bool arg3 = (bool) true ;
35070 void *argp1 = 0 ;
35071 int res1 = 0 ;
35072 void *argp2 = 0 ;
35073 int res2 = 0 ;
35074 bool val3 ;
35075 int ecode3 = 0 ;
35076 PyObject * obj0 = 0 ;
35077 PyObject * obj1 = 0 ;
35078 PyObject * obj2 = 0 ;
35079 char * kwnames[] = {
35080 (char *) "self",(char *) "item",(char *) "bold", NULL
35081 };
35082
35083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35085 if (!SWIG_IsOK(res1)) {
35086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35087 }
35088 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35090 if (!SWIG_IsOK(res2)) {
35091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35092 }
35093 if (!argp2) {
35094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35095 }
35096 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35097 if (obj2) {
35098 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35099 if (!SWIG_IsOK(ecode3)) {
35100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35101 }
35102 arg3 = static_cast< bool >(val3);
35103 }
35104 {
35105 PyThreadState* __tstate = wxPyBeginAllowThreads();
35106 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35107 wxPyEndAllowThreads(__tstate);
35108 if (PyErr_Occurred()) SWIG_fail;
35109 }
35110 resultobj = SWIG_Py_Void();
35111 return resultobj;
35112 fail:
35113 return NULL;
35114 }
35115
35116
35117 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35118 PyObject *resultobj = 0;
35119 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35120 wxTreeItemId *arg2 = 0 ;
35121 bool arg3 = (bool) true ;
35122 void *argp1 = 0 ;
35123 int res1 = 0 ;
35124 void *argp2 = 0 ;
35125 int res2 = 0 ;
35126 bool val3 ;
35127 int ecode3 = 0 ;
35128 PyObject * obj0 = 0 ;
35129 PyObject * obj1 = 0 ;
35130 PyObject * obj2 = 0 ;
35131 char * kwnames[] = {
35132 (char *) "self",(char *) "item",(char *) "highlight", NULL
35133 };
35134
35135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35137 if (!SWIG_IsOK(res1)) {
35138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35139 }
35140 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35141 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35142 if (!SWIG_IsOK(res2)) {
35143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35144 }
35145 if (!argp2) {
35146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35147 }
35148 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35149 if (obj2) {
35150 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35151 if (!SWIG_IsOK(ecode3)) {
35152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35153 }
35154 arg3 = static_cast< bool >(val3);
35155 }
35156 {
35157 PyThreadState* __tstate = wxPyBeginAllowThreads();
35158 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35159 wxPyEndAllowThreads(__tstate);
35160 if (PyErr_Occurred()) SWIG_fail;
35161 }
35162 resultobj = SWIG_Py_Void();
35163 return resultobj;
35164 fail:
35165 return NULL;
35166 }
35167
35168
35169 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35170 PyObject *resultobj = 0;
35171 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35172 wxTreeItemId *arg2 = 0 ;
35173 wxColour *arg3 = 0 ;
35174 void *argp1 = 0 ;
35175 int res1 = 0 ;
35176 void *argp2 = 0 ;
35177 int res2 = 0 ;
35178 wxColour temp3 ;
35179 PyObject * obj0 = 0 ;
35180 PyObject * obj1 = 0 ;
35181 PyObject * obj2 = 0 ;
35182 char * kwnames[] = {
35183 (char *) "self",(char *) "item",(char *) "col", NULL
35184 };
35185
35186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35188 if (!SWIG_IsOK(res1)) {
35189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35190 }
35191 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35193 if (!SWIG_IsOK(res2)) {
35194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35195 }
35196 if (!argp2) {
35197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35198 }
35199 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35200 {
35201 arg3 = &temp3;
35202 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35203 }
35204 {
35205 PyThreadState* __tstate = wxPyBeginAllowThreads();
35206 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35207 wxPyEndAllowThreads(__tstate);
35208 if (PyErr_Occurred()) SWIG_fail;
35209 }
35210 resultobj = SWIG_Py_Void();
35211 return resultobj;
35212 fail:
35213 return NULL;
35214 }
35215
35216
35217 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35218 PyObject *resultobj = 0;
35219 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35220 wxTreeItemId *arg2 = 0 ;
35221 wxColour *arg3 = 0 ;
35222 void *argp1 = 0 ;
35223 int res1 = 0 ;
35224 void *argp2 = 0 ;
35225 int res2 = 0 ;
35226 wxColour temp3 ;
35227 PyObject * obj0 = 0 ;
35228 PyObject * obj1 = 0 ;
35229 PyObject * obj2 = 0 ;
35230 char * kwnames[] = {
35231 (char *) "self",(char *) "item",(char *) "col", NULL
35232 };
35233
35234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35236 if (!SWIG_IsOK(res1)) {
35237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35238 }
35239 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35240 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35241 if (!SWIG_IsOK(res2)) {
35242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35243 }
35244 if (!argp2) {
35245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35246 }
35247 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35248 {
35249 arg3 = &temp3;
35250 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35251 }
35252 {
35253 PyThreadState* __tstate = wxPyBeginAllowThreads();
35254 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35255 wxPyEndAllowThreads(__tstate);
35256 if (PyErr_Occurred()) SWIG_fail;
35257 }
35258 resultobj = SWIG_Py_Void();
35259 return resultobj;
35260 fail:
35261 return NULL;
35262 }
35263
35264
35265 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35266 PyObject *resultobj = 0;
35267 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35268 wxTreeItemId *arg2 = 0 ;
35269 wxFont *arg3 = 0 ;
35270 void *argp1 = 0 ;
35271 int res1 = 0 ;
35272 void *argp2 = 0 ;
35273 int res2 = 0 ;
35274 void *argp3 = 0 ;
35275 int res3 = 0 ;
35276 PyObject * obj0 = 0 ;
35277 PyObject * obj1 = 0 ;
35278 PyObject * obj2 = 0 ;
35279 char * kwnames[] = {
35280 (char *) "self",(char *) "item",(char *) "font", NULL
35281 };
35282
35283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35285 if (!SWIG_IsOK(res1)) {
35286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35287 }
35288 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35290 if (!SWIG_IsOK(res2)) {
35291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35292 }
35293 if (!argp2) {
35294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35295 }
35296 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35297 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35298 if (!SWIG_IsOK(res3)) {
35299 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35300 }
35301 if (!argp3) {
35302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35303 }
35304 arg3 = reinterpret_cast< wxFont * >(argp3);
35305 {
35306 PyThreadState* __tstate = wxPyBeginAllowThreads();
35307 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35308 wxPyEndAllowThreads(__tstate);
35309 if (PyErr_Occurred()) SWIG_fail;
35310 }
35311 resultobj = SWIG_Py_Void();
35312 return resultobj;
35313 fail:
35314 return NULL;
35315 }
35316
35317
35318 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35319 PyObject *resultobj = 0;
35320 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35321 wxTreeItemId *arg2 = 0 ;
35322 bool result;
35323 void *argp1 = 0 ;
35324 int res1 = 0 ;
35325 void *argp2 = 0 ;
35326 int res2 = 0 ;
35327 PyObject * obj0 = 0 ;
35328 PyObject * obj1 = 0 ;
35329 char * kwnames[] = {
35330 (char *) "self",(char *) "item", NULL
35331 };
35332
35333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35335 if (!SWIG_IsOK(res1)) {
35336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35337 }
35338 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35340 if (!SWIG_IsOK(res2)) {
35341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35342 }
35343 if (!argp2) {
35344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35345 }
35346 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35347 {
35348 PyThreadState* __tstate = wxPyBeginAllowThreads();
35349 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35350 wxPyEndAllowThreads(__tstate);
35351 if (PyErr_Occurred()) SWIG_fail;
35352 }
35353 {
35354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35355 }
35356 return resultobj;
35357 fail:
35358 return NULL;
35359 }
35360
35361
35362 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35363 PyObject *resultobj = 0;
35364 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35365 wxTreeItemId *arg2 = 0 ;
35366 bool result;
35367 void *argp1 = 0 ;
35368 int res1 = 0 ;
35369 void *argp2 = 0 ;
35370 int res2 = 0 ;
35371 PyObject * obj0 = 0 ;
35372 PyObject * obj1 = 0 ;
35373 char * kwnames[] = {
35374 (char *) "self",(char *) "item", NULL
35375 };
35376
35377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35379 if (!SWIG_IsOK(res1)) {
35380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35381 }
35382 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35383 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35384 if (!SWIG_IsOK(res2)) {
35385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35386 }
35387 if (!argp2) {
35388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35389 }
35390 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35391 {
35392 PyThreadState* __tstate = wxPyBeginAllowThreads();
35393 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35394 wxPyEndAllowThreads(__tstate);
35395 if (PyErr_Occurred()) SWIG_fail;
35396 }
35397 {
35398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35399 }
35400 return resultobj;
35401 fail:
35402 return NULL;
35403 }
35404
35405
35406 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35407 PyObject *resultobj = 0;
35408 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35409 wxTreeItemId *arg2 = 0 ;
35410 bool result;
35411 void *argp1 = 0 ;
35412 int res1 = 0 ;
35413 void *argp2 = 0 ;
35414 int res2 = 0 ;
35415 PyObject * obj0 = 0 ;
35416 PyObject * obj1 = 0 ;
35417 char * kwnames[] = {
35418 (char *) "self",(char *) "item", NULL
35419 };
35420
35421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35423 if (!SWIG_IsOK(res1)) {
35424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35425 }
35426 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35427 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35428 if (!SWIG_IsOK(res2)) {
35429 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35430 }
35431 if (!argp2) {
35432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35433 }
35434 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35435 {
35436 PyThreadState* __tstate = wxPyBeginAllowThreads();
35437 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35438 wxPyEndAllowThreads(__tstate);
35439 if (PyErr_Occurred()) SWIG_fail;
35440 }
35441 {
35442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35443 }
35444 return resultobj;
35445 fail:
35446 return NULL;
35447 }
35448
35449
35450 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35451 PyObject *resultobj = 0;
35452 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35453 wxTreeItemId *arg2 = 0 ;
35454 bool result;
35455 void *argp1 = 0 ;
35456 int res1 = 0 ;
35457 void *argp2 = 0 ;
35458 int res2 = 0 ;
35459 PyObject * obj0 = 0 ;
35460 PyObject * obj1 = 0 ;
35461 char * kwnames[] = {
35462 (char *) "self",(char *) "item", NULL
35463 };
35464
35465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35467 if (!SWIG_IsOK(res1)) {
35468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35469 }
35470 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35471 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35472 if (!SWIG_IsOK(res2)) {
35473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35474 }
35475 if (!argp2) {
35476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35477 }
35478 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35479 {
35480 PyThreadState* __tstate = wxPyBeginAllowThreads();
35481 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35482 wxPyEndAllowThreads(__tstate);
35483 if (PyErr_Occurred()) SWIG_fail;
35484 }
35485 {
35486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35487 }
35488 return resultobj;
35489 fail:
35490 return NULL;
35491 }
35492
35493
35494 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35495 PyObject *resultobj = 0;
35496 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35497 wxTreeItemId *arg2 = 0 ;
35498 bool result;
35499 void *argp1 = 0 ;
35500 int res1 = 0 ;
35501 void *argp2 = 0 ;
35502 int res2 = 0 ;
35503 PyObject * obj0 = 0 ;
35504 PyObject * obj1 = 0 ;
35505 char * kwnames[] = {
35506 (char *) "self",(char *) "item", NULL
35507 };
35508
35509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35511 if (!SWIG_IsOK(res1)) {
35512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35513 }
35514 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35515 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35516 if (!SWIG_IsOK(res2)) {
35517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35518 }
35519 if (!argp2) {
35520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35521 }
35522 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35523 {
35524 PyThreadState* __tstate = wxPyBeginAllowThreads();
35525 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35526 wxPyEndAllowThreads(__tstate);
35527 if (PyErr_Occurred()) SWIG_fail;
35528 }
35529 {
35530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35531 }
35532 return resultobj;
35533 fail:
35534 return NULL;
35535 }
35536
35537
35538 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35539 PyObject *resultobj = 0;
35540 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35541 wxTreeItemId *arg2 = 0 ;
35542 bool arg3 = (bool) true ;
35543 size_t result;
35544 void *argp1 = 0 ;
35545 int res1 = 0 ;
35546 void *argp2 = 0 ;
35547 int res2 = 0 ;
35548 bool val3 ;
35549 int ecode3 = 0 ;
35550 PyObject * obj0 = 0 ;
35551 PyObject * obj1 = 0 ;
35552 PyObject * obj2 = 0 ;
35553 char * kwnames[] = {
35554 (char *) "self",(char *) "item",(char *) "recursively", NULL
35555 };
35556
35557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35559 if (!SWIG_IsOK(res1)) {
35560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35561 }
35562 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35564 if (!SWIG_IsOK(res2)) {
35565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35566 }
35567 if (!argp2) {
35568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35569 }
35570 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35571 if (obj2) {
35572 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35573 if (!SWIG_IsOK(ecode3)) {
35574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35575 }
35576 arg3 = static_cast< bool >(val3);
35577 }
35578 {
35579 PyThreadState* __tstate = wxPyBeginAllowThreads();
35580 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35581 wxPyEndAllowThreads(__tstate);
35582 if (PyErr_Occurred()) SWIG_fail;
35583 }
35584 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35585 return resultobj;
35586 fail:
35587 return NULL;
35588 }
35589
35590
35591 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35592 PyObject *resultobj = 0;
35593 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35594 wxTreeItemId result;
35595 void *argp1 = 0 ;
35596 int res1 = 0 ;
35597 PyObject *swig_obj[1] ;
35598
35599 if (!args) SWIG_fail;
35600 swig_obj[0] = args;
35601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35602 if (!SWIG_IsOK(res1)) {
35603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35604 }
35605 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35606 {
35607 PyThreadState* __tstate = wxPyBeginAllowThreads();
35608 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35609 wxPyEndAllowThreads(__tstate);
35610 if (PyErr_Occurred()) SWIG_fail;
35611 }
35612 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35613 return resultobj;
35614 fail:
35615 return NULL;
35616 }
35617
35618
35619 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35620 PyObject *resultobj = 0;
35621 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35622 wxTreeItemId result;
35623 void *argp1 = 0 ;
35624 int res1 = 0 ;
35625 PyObject *swig_obj[1] ;
35626
35627 if (!args) SWIG_fail;
35628 swig_obj[0] = args;
35629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35630 if (!SWIG_IsOK(res1)) {
35631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35632 }
35633 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35634 {
35635 PyThreadState* __tstate = wxPyBeginAllowThreads();
35636 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35637 wxPyEndAllowThreads(__tstate);
35638 if (PyErr_Occurred()) SWIG_fail;
35639 }
35640 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35641 return resultobj;
35642 fail:
35643 return NULL;
35644 }
35645
35646
35647 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35648 PyObject *resultobj = 0;
35649 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35650 PyObject *result = 0 ;
35651 void *argp1 = 0 ;
35652 int res1 = 0 ;
35653 PyObject *swig_obj[1] ;
35654
35655 if (!args) SWIG_fail;
35656 swig_obj[0] = args;
35657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35658 if (!SWIG_IsOK(res1)) {
35659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35660 }
35661 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35662 {
35663 PyThreadState* __tstate = wxPyBeginAllowThreads();
35664 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35665 wxPyEndAllowThreads(__tstate);
35666 if (PyErr_Occurred()) SWIG_fail;
35667 }
35668 resultobj = result;
35669 return resultobj;
35670 fail:
35671 return NULL;
35672 }
35673
35674
35675 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35676 PyObject *resultobj = 0;
35677 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35678 wxTreeItemId *arg2 = 0 ;
35679 wxTreeItemId result;
35680 void *argp1 = 0 ;
35681 int res1 = 0 ;
35682 void *argp2 = 0 ;
35683 int res2 = 0 ;
35684 PyObject * obj0 = 0 ;
35685 PyObject * obj1 = 0 ;
35686 char * kwnames[] = {
35687 (char *) "self",(char *) "item", NULL
35688 };
35689
35690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35692 if (!SWIG_IsOK(res1)) {
35693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35694 }
35695 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35697 if (!SWIG_IsOK(res2)) {
35698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35699 }
35700 if (!argp2) {
35701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35702 }
35703 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35704 {
35705 PyThreadState* __tstate = wxPyBeginAllowThreads();
35706 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35707 wxPyEndAllowThreads(__tstate);
35708 if (PyErr_Occurred()) SWIG_fail;
35709 }
35710 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35711 return resultobj;
35712 fail:
35713 return NULL;
35714 }
35715
35716
35717 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35718 PyObject *resultobj = 0;
35719 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35720 wxTreeItemId *arg2 = 0 ;
35721 PyObject *result = 0 ;
35722 void *argp1 = 0 ;
35723 int res1 = 0 ;
35724 void *argp2 = 0 ;
35725 int res2 = 0 ;
35726 PyObject * obj0 = 0 ;
35727 PyObject * obj1 = 0 ;
35728 char * kwnames[] = {
35729 (char *) "self",(char *) "item", NULL
35730 };
35731
35732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35734 if (!SWIG_IsOK(res1)) {
35735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35736 }
35737 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35738 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35739 if (!SWIG_IsOK(res2)) {
35740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35741 }
35742 if (!argp2) {
35743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35744 }
35745 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35746 {
35747 PyThreadState* __tstate = wxPyBeginAllowThreads();
35748 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35749 wxPyEndAllowThreads(__tstate);
35750 if (PyErr_Occurred()) SWIG_fail;
35751 }
35752 resultobj = result;
35753 return resultobj;
35754 fail:
35755 return NULL;
35756 }
35757
35758
35759 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35760 PyObject *resultobj = 0;
35761 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35762 wxTreeItemId *arg2 = 0 ;
35763 void *arg3 = (void *) 0 ;
35764 PyObject *result = 0 ;
35765 void *argp1 = 0 ;
35766 int res1 = 0 ;
35767 void *argp2 = 0 ;
35768 int res2 = 0 ;
35769 int res3 ;
35770 PyObject * obj0 = 0 ;
35771 PyObject * obj1 = 0 ;
35772 PyObject * obj2 = 0 ;
35773 char * kwnames[] = {
35774 (char *) "self",(char *) "item",(char *) "cookie", NULL
35775 };
35776
35777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35779 if (!SWIG_IsOK(res1)) {
35780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35781 }
35782 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35783 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35784 if (!SWIG_IsOK(res2)) {
35785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35786 }
35787 if (!argp2) {
35788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35789 }
35790 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35791 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35792 if (!SWIG_IsOK(res3)) {
35793 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35794 }
35795 {
35796 PyThreadState* __tstate = wxPyBeginAllowThreads();
35797 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35798 wxPyEndAllowThreads(__tstate);
35799 if (PyErr_Occurred()) SWIG_fail;
35800 }
35801 resultobj = result;
35802 return resultobj;
35803 fail:
35804 return NULL;
35805 }
35806
35807
35808 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35809 PyObject *resultobj = 0;
35810 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35811 wxTreeItemId *arg2 = 0 ;
35812 wxTreeItemId result;
35813 void *argp1 = 0 ;
35814 int res1 = 0 ;
35815 void *argp2 = 0 ;
35816 int res2 = 0 ;
35817 PyObject * obj0 = 0 ;
35818 PyObject * obj1 = 0 ;
35819 char * kwnames[] = {
35820 (char *) "self",(char *) "item", NULL
35821 };
35822
35823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35825 if (!SWIG_IsOK(res1)) {
35826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35827 }
35828 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35830 if (!SWIG_IsOK(res2)) {
35831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35832 }
35833 if (!argp2) {
35834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35835 }
35836 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35837 {
35838 PyThreadState* __tstate = wxPyBeginAllowThreads();
35839 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35840 wxPyEndAllowThreads(__tstate);
35841 if (PyErr_Occurred()) SWIG_fail;
35842 }
35843 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35844 return resultobj;
35845 fail:
35846 return NULL;
35847 }
35848
35849
35850 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35851 PyObject *resultobj = 0;
35852 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35853 wxTreeItemId *arg2 = 0 ;
35854 wxTreeItemId result;
35855 void *argp1 = 0 ;
35856 int res1 = 0 ;
35857 void *argp2 = 0 ;
35858 int res2 = 0 ;
35859 PyObject * obj0 = 0 ;
35860 PyObject * obj1 = 0 ;
35861 char * kwnames[] = {
35862 (char *) "self",(char *) "item", NULL
35863 };
35864
35865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35867 if (!SWIG_IsOK(res1)) {
35868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35869 }
35870 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35872 if (!SWIG_IsOK(res2)) {
35873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35874 }
35875 if (!argp2) {
35876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35877 }
35878 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35879 {
35880 PyThreadState* __tstate = wxPyBeginAllowThreads();
35881 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35882 wxPyEndAllowThreads(__tstate);
35883 if (PyErr_Occurred()) SWIG_fail;
35884 }
35885 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35886 return resultobj;
35887 fail:
35888 return NULL;
35889 }
35890
35891
35892 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35893 PyObject *resultobj = 0;
35894 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35895 wxTreeItemId *arg2 = 0 ;
35896 wxTreeItemId result;
35897 void *argp1 = 0 ;
35898 int res1 = 0 ;
35899 void *argp2 = 0 ;
35900 int res2 = 0 ;
35901 PyObject * obj0 = 0 ;
35902 PyObject * obj1 = 0 ;
35903 char * kwnames[] = {
35904 (char *) "self",(char *) "item", NULL
35905 };
35906
35907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35909 if (!SWIG_IsOK(res1)) {
35910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35911 }
35912 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35914 if (!SWIG_IsOK(res2)) {
35915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35916 }
35917 if (!argp2) {
35918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35919 }
35920 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35921 {
35922 PyThreadState* __tstate = wxPyBeginAllowThreads();
35923 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35924 wxPyEndAllowThreads(__tstate);
35925 if (PyErr_Occurred()) SWIG_fail;
35926 }
35927 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35928 return resultobj;
35929 fail:
35930 return NULL;
35931 }
35932
35933
35934 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35935 PyObject *resultobj = 0;
35936 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35937 wxTreeItemId result;
35938 void *argp1 = 0 ;
35939 int res1 = 0 ;
35940 PyObject *swig_obj[1] ;
35941
35942 if (!args) SWIG_fail;
35943 swig_obj[0] = args;
35944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35945 if (!SWIG_IsOK(res1)) {
35946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35947 }
35948 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35949 {
35950 PyThreadState* __tstate = wxPyBeginAllowThreads();
35951 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35952 wxPyEndAllowThreads(__tstate);
35953 if (PyErr_Occurred()) SWIG_fail;
35954 }
35955 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35956 return resultobj;
35957 fail:
35958 return NULL;
35959 }
35960
35961
35962 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35963 PyObject *resultobj = 0;
35964 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35965 wxTreeItemId *arg2 = 0 ;
35966 wxTreeItemId result;
35967 void *argp1 = 0 ;
35968 int res1 = 0 ;
35969 void *argp2 = 0 ;
35970 int res2 = 0 ;
35971 PyObject * obj0 = 0 ;
35972 PyObject * obj1 = 0 ;
35973 char * kwnames[] = {
35974 (char *) "self",(char *) "item", NULL
35975 };
35976
35977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35979 if (!SWIG_IsOK(res1)) {
35980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35981 }
35982 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35984 if (!SWIG_IsOK(res2)) {
35985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35986 }
35987 if (!argp2) {
35988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35989 }
35990 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35991 {
35992 PyThreadState* __tstate = wxPyBeginAllowThreads();
35993 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35994 wxPyEndAllowThreads(__tstate);
35995 if (PyErr_Occurred()) SWIG_fail;
35996 }
35997 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35998 return resultobj;
35999 fail:
36000 return NULL;
36001 }
36002
36003
36004 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36005 PyObject *resultobj = 0;
36006 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36007 wxTreeItemId *arg2 = 0 ;
36008 wxTreeItemId result;
36009 void *argp1 = 0 ;
36010 int res1 = 0 ;
36011 void *argp2 = 0 ;
36012 int res2 = 0 ;
36013 PyObject * obj0 = 0 ;
36014 PyObject * obj1 = 0 ;
36015 char * kwnames[] = {
36016 (char *) "self",(char *) "item", NULL
36017 };
36018
36019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36021 if (!SWIG_IsOK(res1)) {
36022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36023 }
36024 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36026 if (!SWIG_IsOK(res2)) {
36027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36028 }
36029 if (!argp2) {
36030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36031 }
36032 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36033 {
36034 PyThreadState* __tstate = wxPyBeginAllowThreads();
36035 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36036 wxPyEndAllowThreads(__tstate);
36037 if (PyErr_Occurred()) SWIG_fail;
36038 }
36039 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36040 return resultobj;
36041 fail:
36042 return NULL;
36043 }
36044
36045
36046 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36047 PyObject *resultobj = 0;
36048 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36049 wxString *arg2 = 0 ;
36050 int arg3 = (int) -1 ;
36051 int arg4 = (int) -1 ;
36052 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36053 wxTreeItemId result;
36054 void *argp1 = 0 ;
36055 int res1 = 0 ;
36056 bool temp2 = false ;
36057 int val3 ;
36058 int ecode3 = 0 ;
36059 int val4 ;
36060 int ecode4 = 0 ;
36061 int res5 = 0 ;
36062 PyObject * obj0 = 0 ;
36063 PyObject * obj1 = 0 ;
36064 PyObject * obj2 = 0 ;
36065 PyObject * obj3 = 0 ;
36066 PyObject * obj4 = 0 ;
36067 char * kwnames[] = {
36068 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36069 };
36070
36071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36073 if (!SWIG_IsOK(res1)) {
36074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36075 }
36076 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36077 {
36078 arg2 = wxString_in_helper(obj1);
36079 if (arg2 == NULL) SWIG_fail;
36080 temp2 = true;
36081 }
36082 if (obj2) {
36083 ecode3 = SWIG_AsVal_int(obj2, &val3);
36084 if (!SWIG_IsOK(ecode3)) {
36085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36086 }
36087 arg3 = static_cast< int >(val3);
36088 }
36089 if (obj3) {
36090 ecode4 = SWIG_AsVal_int(obj3, &val4);
36091 if (!SWIG_IsOK(ecode4)) {
36092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36093 }
36094 arg4 = static_cast< int >(val4);
36095 }
36096 if (obj4) {
36097 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36098 if (!SWIG_IsOK(res5)) {
36099 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36100 }
36101 }
36102 {
36103 PyThreadState* __tstate = wxPyBeginAllowThreads();
36104 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36105 wxPyEndAllowThreads(__tstate);
36106 if (PyErr_Occurred()) SWIG_fail;
36107 }
36108 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36109 {
36110 if (temp2)
36111 delete arg2;
36112 }
36113 return resultobj;
36114 fail:
36115 {
36116 if (temp2)
36117 delete arg2;
36118 }
36119 return NULL;
36120 }
36121
36122
36123 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36124 PyObject *resultobj = 0;
36125 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36126 wxTreeItemId *arg2 = 0 ;
36127 wxString *arg3 = 0 ;
36128 int arg4 = (int) -1 ;
36129 int arg5 = (int) -1 ;
36130 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36131 wxTreeItemId result;
36132 void *argp1 = 0 ;
36133 int res1 = 0 ;
36134 void *argp2 = 0 ;
36135 int res2 = 0 ;
36136 bool temp3 = false ;
36137 int val4 ;
36138 int ecode4 = 0 ;
36139 int val5 ;
36140 int ecode5 = 0 ;
36141 int res6 = 0 ;
36142 PyObject * obj0 = 0 ;
36143 PyObject * obj1 = 0 ;
36144 PyObject * obj2 = 0 ;
36145 PyObject * obj3 = 0 ;
36146 PyObject * obj4 = 0 ;
36147 PyObject * obj5 = 0 ;
36148 char * kwnames[] = {
36149 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36150 };
36151
36152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36154 if (!SWIG_IsOK(res1)) {
36155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36156 }
36157 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36159 if (!SWIG_IsOK(res2)) {
36160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36161 }
36162 if (!argp2) {
36163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36164 }
36165 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36166 {
36167 arg3 = wxString_in_helper(obj2);
36168 if (arg3 == NULL) SWIG_fail;
36169 temp3 = true;
36170 }
36171 if (obj3) {
36172 ecode4 = SWIG_AsVal_int(obj3, &val4);
36173 if (!SWIG_IsOK(ecode4)) {
36174 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36175 }
36176 arg4 = static_cast< int >(val4);
36177 }
36178 if (obj4) {
36179 ecode5 = SWIG_AsVal_int(obj4, &val5);
36180 if (!SWIG_IsOK(ecode5)) {
36181 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36182 }
36183 arg5 = static_cast< int >(val5);
36184 }
36185 if (obj5) {
36186 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36187 if (!SWIG_IsOK(res6)) {
36188 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36189 }
36190 }
36191 {
36192 PyThreadState* __tstate = wxPyBeginAllowThreads();
36193 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36194 wxPyEndAllowThreads(__tstate);
36195 if (PyErr_Occurred()) SWIG_fail;
36196 }
36197 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36198 {
36199 if (temp3)
36200 delete arg3;
36201 }
36202 return resultobj;
36203 fail:
36204 {
36205 if (temp3)
36206 delete arg3;
36207 }
36208 return NULL;
36209 }
36210
36211
36212 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36213 PyObject *resultobj = 0;
36214 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36215 wxTreeItemId *arg2 = 0 ;
36216 wxTreeItemId *arg3 = 0 ;
36217 wxString *arg4 = 0 ;
36218 int arg5 = (int) -1 ;
36219 int arg6 = (int) -1 ;
36220 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36221 wxTreeItemId result;
36222 void *argp1 = 0 ;
36223 int res1 = 0 ;
36224 void *argp2 = 0 ;
36225 int res2 = 0 ;
36226 void *argp3 = 0 ;
36227 int res3 = 0 ;
36228 bool temp4 = false ;
36229 int val5 ;
36230 int ecode5 = 0 ;
36231 int val6 ;
36232 int ecode6 = 0 ;
36233 int res7 = 0 ;
36234 PyObject * obj0 = 0 ;
36235 PyObject * obj1 = 0 ;
36236 PyObject * obj2 = 0 ;
36237 PyObject * obj3 = 0 ;
36238 PyObject * obj4 = 0 ;
36239 PyObject * obj5 = 0 ;
36240 PyObject * obj6 = 0 ;
36241 char * kwnames[] = {
36242 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36243 };
36244
36245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36247 if (!SWIG_IsOK(res1)) {
36248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36249 }
36250 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36252 if (!SWIG_IsOK(res2)) {
36253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36254 }
36255 if (!argp2) {
36256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36257 }
36258 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36259 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36260 if (!SWIG_IsOK(res3)) {
36261 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36262 }
36263 if (!argp3) {
36264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36265 }
36266 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36267 {
36268 arg4 = wxString_in_helper(obj3);
36269 if (arg4 == NULL) SWIG_fail;
36270 temp4 = true;
36271 }
36272 if (obj4) {
36273 ecode5 = SWIG_AsVal_int(obj4, &val5);
36274 if (!SWIG_IsOK(ecode5)) {
36275 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36276 }
36277 arg5 = static_cast< int >(val5);
36278 }
36279 if (obj5) {
36280 ecode6 = SWIG_AsVal_int(obj5, &val6);
36281 if (!SWIG_IsOK(ecode6)) {
36282 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36283 }
36284 arg6 = static_cast< int >(val6);
36285 }
36286 if (obj6) {
36287 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36288 if (!SWIG_IsOK(res7)) {
36289 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36290 }
36291 }
36292 {
36293 PyThreadState* __tstate = wxPyBeginAllowThreads();
36294 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36295 wxPyEndAllowThreads(__tstate);
36296 if (PyErr_Occurred()) SWIG_fail;
36297 }
36298 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36299 {
36300 if (temp4)
36301 delete arg4;
36302 }
36303 return resultobj;
36304 fail:
36305 {
36306 if (temp4)
36307 delete arg4;
36308 }
36309 return NULL;
36310 }
36311
36312
36313 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36314 PyObject *resultobj = 0;
36315 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36316 wxTreeItemId *arg2 = 0 ;
36317 size_t arg3 ;
36318 wxString *arg4 = 0 ;
36319 int arg5 = (int) -1 ;
36320 int arg6 = (int) -1 ;
36321 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36322 wxTreeItemId result;
36323 void *argp1 = 0 ;
36324 int res1 = 0 ;
36325 void *argp2 = 0 ;
36326 int res2 = 0 ;
36327 size_t val3 ;
36328 int ecode3 = 0 ;
36329 bool temp4 = false ;
36330 int val5 ;
36331 int ecode5 = 0 ;
36332 int val6 ;
36333 int ecode6 = 0 ;
36334 int res7 = 0 ;
36335 PyObject * obj0 = 0 ;
36336 PyObject * obj1 = 0 ;
36337 PyObject * obj2 = 0 ;
36338 PyObject * obj3 = 0 ;
36339 PyObject * obj4 = 0 ;
36340 PyObject * obj5 = 0 ;
36341 PyObject * obj6 = 0 ;
36342 char * kwnames[] = {
36343 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36344 };
36345
36346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36348 if (!SWIG_IsOK(res1)) {
36349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36350 }
36351 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36353 if (!SWIG_IsOK(res2)) {
36354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36355 }
36356 if (!argp2) {
36357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36358 }
36359 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36360 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36361 if (!SWIG_IsOK(ecode3)) {
36362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36363 }
36364 arg3 = static_cast< size_t >(val3);
36365 {
36366 arg4 = wxString_in_helper(obj3);
36367 if (arg4 == NULL) SWIG_fail;
36368 temp4 = true;
36369 }
36370 if (obj4) {
36371 ecode5 = SWIG_AsVal_int(obj4, &val5);
36372 if (!SWIG_IsOK(ecode5)) {
36373 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36374 }
36375 arg5 = static_cast< int >(val5);
36376 }
36377 if (obj5) {
36378 ecode6 = SWIG_AsVal_int(obj5, &val6);
36379 if (!SWIG_IsOK(ecode6)) {
36380 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36381 }
36382 arg6 = static_cast< int >(val6);
36383 }
36384 if (obj6) {
36385 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36386 if (!SWIG_IsOK(res7)) {
36387 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36388 }
36389 }
36390 {
36391 PyThreadState* __tstate = wxPyBeginAllowThreads();
36392 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36393 wxPyEndAllowThreads(__tstate);
36394 if (PyErr_Occurred()) SWIG_fail;
36395 }
36396 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36397 {
36398 if (temp4)
36399 delete arg4;
36400 }
36401 return resultobj;
36402 fail:
36403 {
36404 if (temp4)
36405 delete arg4;
36406 }
36407 return NULL;
36408 }
36409
36410
36411 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36412 PyObject *resultobj = 0;
36413 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36414 wxTreeItemId *arg2 = 0 ;
36415 wxString *arg3 = 0 ;
36416 int arg4 = (int) -1 ;
36417 int arg5 = (int) -1 ;
36418 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36419 wxTreeItemId result;
36420 void *argp1 = 0 ;
36421 int res1 = 0 ;
36422 void *argp2 = 0 ;
36423 int res2 = 0 ;
36424 bool temp3 = false ;
36425 int val4 ;
36426 int ecode4 = 0 ;
36427 int val5 ;
36428 int ecode5 = 0 ;
36429 int res6 = 0 ;
36430 PyObject * obj0 = 0 ;
36431 PyObject * obj1 = 0 ;
36432 PyObject * obj2 = 0 ;
36433 PyObject * obj3 = 0 ;
36434 PyObject * obj4 = 0 ;
36435 PyObject * obj5 = 0 ;
36436 char * kwnames[] = {
36437 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36438 };
36439
36440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36442 if (!SWIG_IsOK(res1)) {
36443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36444 }
36445 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36446 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36447 if (!SWIG_IsOK(res2)) {
36448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36449 }
36450 if (!argp2) {
36451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36452 }
36453 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36454 {
36455 arg3 = wxString_in_helper(obj2);
36456 if (arg3 == NULL) SWIG_fail;
36457 temp3 = true;
36458 }
36459 if (obj3) {
36460 ecode4 = SWIG_AsVal_int(obj3, &val4);
36461 if (!SWIG_IsOK(ecode4)) {
36462 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36463 }
36464 arg4 = static_cast< int >(val4);
36465 }
36466 if (obj4) {
36467 ecode5 = SWIG_AsVal_int(obj4, &val5);
36468 if (!SWIG_IsOK(ecode5)) {
36469 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36470 }
36471 arg5 = static_cast< int >(val5);
36472 }
36473 if (obj5) {
36474 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36475 if (!SWIG_IsOK(res6)) {
36476 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36477 }
36478 }
36479 {
36480 PyThreadState* __tstate = wxPyBeginAllowThreads();
36481 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36482 wxPyEndAllowThreads(__tstate);
36483 if (PyErr_Occurred()) SWIG_fail;
36484 }
36485 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36486 {
36487 if (temp3)
36488 delete arg3;
36489 }
36490 return resultobj;
36491 fail:
36492 {
36493 if (temp3)
36494 delete arg3;
36495 }
36496 return NULL;
36497 }
36498
36499
36500 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36501 PyObject *resultobj = 0;
36502 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36503 wxTreeItemId *arg2 = 0 ;
36504 void *argp1 = 0 ;
36505 int res1 = 0 ;
36506 void *argp2 = 0 ;
36507 int res2 = 0 ;
36508 PyObject * obj0 = 0 ;
36509 PyObject * obj1 = 0 ;
36510 char * kwnames[] = {
36511 (char *) "self",(char *) "item", NULL
36512 };
36513
36514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36516 if (!SWIG_IsOK(res1)) {
36517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36518 }
36519 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36521 if (!SWIG_IsOK(res2)) {
36522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36523 }
36524 if (!argp2) {
36525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36526 }
36527 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36528 {
36529 PyThreadState* __tstate = wxPyBeginAllowThreads();
36530 (arg1)->Delete((wxTreeItemId const &)*arg2);
36531 wxPyEndAllowThreads(__tstate);
36532 if (PyErr_Occurred()) SWIG_fail;
36533 }
36534 resultobj = SWIG_Py_Void();
36535 return resultobj;
36536 fail:
36537 return NULL;
36538 }
36539
36540
36541 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36542 PyObject *resultobj = 0;
36543 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36544 wxTreeItemId *arg2 = 0 ;
36545 void *argp1 = 0 ;
36546 int res1 = 0 ;
36547 void *argp2 = 0 ;
36548 int res2 = 0 ;
36549 PyObject * obj0 = 0 ;
36550 PyObject * obj1 = 0 ;
36551 char * kwnames[] = {
36552 (char *) "self",(char *) "item", NULL
36553 };
36554
36555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36557 if (!SWIG_IsOK(res1)) {
36558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36559 }
36560 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36561 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36562 if (!SWIG_IsOK(res2)) {
36563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36564 }
36565 if (!argp2) {
36566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36567 }
36568 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36569 {
36570 PyThreadState* __tstate = wxPyBeginAllowThreads();
36571 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36572 wxPyEndAllowThreads(__tstate);
36573 if (PyErr_Occurred()) SWIG_fail;
36574 }
36575 resultobj = SWIG_Py_Void();
36576 return resultobj;
36577 fail:
36578 return NULL;
36579 }
36580
36581
36582 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36583 PyObject *resultobj = 0;
36584 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36585 void *argp1 = 0 ;
36586 int res1 = 0 ;
36587 PyObject *swig_obj[1] ;
36588
36589 if (!args) SWIG_fail;
36590 swig_obj[0] = args;
36591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36592 if (!SWIG_IsOK(res1)) {
36593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36594 }
36595 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36596 {
36597 PyThreadState* __tstate = wxPyBeginAllowThreads();
36598 (arg1)->DeleteAllItems();
36599 wxPyEndAllowThreads(__tstate);
36600 if (PyErr_Occurred()) SWIG_fail;
36601 }
36602 resultobj = SWIG_Py_Void();
36603 return resultobj;
36604 fail:
36605 return NULL;
36606 }
36607
36608
36609 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36610 PyObject *resultobj = 0;
36611 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36612 wxTreeItemId *arg2 = 0 ;
36613 void *argp1 = 0 ;
36614 int res1 = 0 ;
36615 void *argp2 = 0 ;
36616 int res2 = 0 ;
36617 PyObject * obj0 = 0 ;
36618 PyObject * obj1 = 0 ;
36619 char * kwnames[] = {
36620 (char *) "self",(char *) "item", NULL
36621 };
36622
36623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36625 if (!SWIG_IsOK(res1)) {
36626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36627 }
36628 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36629 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36630 if (!SWIG_IsOK(res2)) {
36631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36632 }
36633 if (!argp2) {
36634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36635 }
36636 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36637 {
36638 PyThreadState* __tstate = wxPyBeginAllowThreads();
36639 (arg1)->Expand((wxTreeItemId const &)*arg2);
36640 wxPyEndAllowThreads(__tstate);
36641 if (PyErr_Occurred()) SWIG_fail;
36642 }
36643 resultobj = SWIG_Py_Void();
36644 return resultobj;
36645 fail:
36646 return NULL;
36647 }
36648
36649
36650 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36651 PyObject *resultobj = 0;
36652 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36653 wxTreeItemId *arg2 = 0 ;
36654 void *argp1 = 0 ;
36655 int res1 = 0 ;
36656 void *argp2 = 0 ;
36657 int res2 = 0 ;
36658 PyObject * obj0 = 0 ;
36659 PyObject * obj1 = 0 ;
36660 char * kwnames[] = {
36661 (char *) "self",(char *) "item", NULL
36662 };
36663
36664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36666 if (!SWIG_IsOK(res1)) {
36667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36668 }
36669 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36671 if (!SWIG_IsOK(res2)) {
36672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36673 }
36674 if (!argp2) {
36675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36676 }
36677 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36678 {
36679 PyThreadState* __tstate = wxPyBeginAllowThreads();
36680 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36681 wxPyEndAllowThreads(__tstate);
36682 if (PyErr_Occurred()) SWIG_fail;
36683 }
36684 resultobj = SWIG_Py_Void();
36685 return resultobj;
36686 fail:
36687 return NULL;
36688 }
36689
36690
36691 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36692 PyObject *resultobj = 0;
36693 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36694 void *argp1 = 0 ;
36695 int res1 = 0 ;
36696 PyObject *swig_obj[1] ;
36697
36698 if (!args) SWIG_fail;
36699 swig_obj[0] = args;
36700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36701 if (!SWIG_IsOK(res1)) {
36702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36703 }
36704 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36705 {
36706 PyThreadState* __tstate = wxPyBeginAllowThreads();
36707 (arg1)->ExpandAll();
36708 wxPyEndAllowThreads(__tstate);
36709 if (PyErr_Occurred()) SWIG_fail;
36710 }
36711 resultobj = SWIG_Py_Void();
36712 return resultobj;
36713 fail:
36714 return NULL;
36715 }
36716
36717
36718 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36719 PyObject *resultobj = 0;
36720 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36721 wxTreeItemId *arg2 = 0 ;
36722 void *argp1 = 0 ;
36723 int res1 = 0 ;
36724 void *argp2 = 0 ;
36725 int res2 = 0 ;
36726 PyObject * obj0 = 0 ;
36727 PyObject * obj1 = 0 ;
36728 char * kwnames[] = {
36729 (char *) "self",(char *) "item", NULL
36730 };
36731
36732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36734 if (!SWIG_IsOK(res1)) {
36735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36736 }
36737 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36738 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36739 if (!SWIG_IsOK(res2)) {
36740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36741 }
36742 if (!argp2) {
36743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36744 }
36745 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36746 {
36747 PyThreadState* __tstate = wxPyBeginAllowThreads();
36748 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36749 wxPyEndAllowThreads(__tstate);
36750 if (PyErr_Occurred()) SWIG_fail;
36751 }
36752 resultobj = SWIG_Py_Void();
36753 return resultobj;
36754 fail:
36755 return NULL;
36756 }
36757
36758
36759 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36760 PyObject *resultobj = 0;
36761 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36762 wxTreeItemId *arg2 = 0 ;
36763 void *argp1 = 0 ;
36764 int res1 = 0 ;
36765 void *argp2 = 0 ;
36766 int res2 = 0 ;
36767 PyObject * obj0 = 0 ;
36768 PyObject * obj1 = 0 ;
36769 char * kwnames[] = {
36770 (char *) "self",(char *) "item", NULL
36771 };
36772
36773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36775 if (!SWIG_IsOK(res1)) {
36776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36777 }
36778 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36779 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36780 if (!SWIG_IsOK(res2)) {
36781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36782 }
36783 if (!argp2) {
36784 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36785 }
36786 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36787 {
36788 PyThreadState* __tstate = wxPyBeginAllowThreads();
36789 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36790 wxPyEndAllowThreads(__tstate);
36791 if (PyErr_Occurred()) SWIG_fail;
36792 }
36793 resultobj = SWIG_Py_Void();
36794 return resultobj;
36795 fail:
36796 return NULL;
36797 }
36798
36799
36800 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36801 PyObject *resultobj = 0;
36802 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36803 wxTreeItemId *arg2 = 0 ;
36804 void *argp1 = 0 ;
36805 int res1 = 0 ;
36806 void *argp2 = 0 ;
36807 int res2 = 0 ;
36808 PyObject * obj0 = 0 ;
36809 PyObject * obj1 = 0 ;
36810 char * kwnames[] = {
36811 (char *) "self",(char *) "item", NULL
36812 };
36813
36814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36816 if (!SWIG_IsOK(res1)) {
36817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36818 }
36819 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36820 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36821 if (!SWIG_IsOK(res2)) {
36822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36823 }
36824 if (!argp2) {
36825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36826 }
36827 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36828 {
36829 PyThreadState* __tstate = wxPyBeginAllowThreads();
36830 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36831 wxPyEndAllowThreads(__tstate);
36832 if (PyErr_Occurred()) SWIG_fail;
36833 }
36834 resultobj = SWIG_Py_Void();
36835 return resultobj;
36836 fail:
36837 return NULL;
36838 }
36839
36840
36841 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36842 PyObject *resultobj = 0;
36843 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36844 void *argp1 = 0 ;
36845 int res1 = 0 ;
36846 PyObject *swig_obj[1] ;
36847
36848 if (!args) SWIG_fail;
36849 swig_obj[0] = args;
36850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36851 if (!SWIG_IsOK(res1)) {
36852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36853 }
36854 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36855 {
36856 PyThreadState* __tstate = wxPyBeginAllowThreads();
36857 (arg1)->Unselect();
36858 wxPyEndAllowThreads(__tstate);
36859 if (PyErr_Occurred()) SWIG_fail;
36860 }
36861 resultobj = SWIG_Py_Void();
36862 return resultobj;
36863 fail:
36864 return NULL;
36865 }
36866
36867
36868 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36869 PyObject *resultobj = 0;
36870 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36871 wxTreeItemId *arg2 = 0 ;
36872 void *argp1 = 0 ;
36873 int res1 = 0 ;
36874 void *argp2 = 0 ;
36875 int res2 = 0 ;
36876 PyObject * obj0 = 0 ;
36877 PyObject * obj1 = 0 ;
36878 char * kwnames[] = {
36879 (char *) "self",(char *) "item", NULL
36880 };
36881
36882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36884 if (!SWIG_IsOK(res1)) {
36885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36886 }
36887 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36888 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36889 if (!SWIG_IsOK(res2)) {
36890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36891 }
36892 if (!argp2) {
36893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36894 }
36895 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36896 {
36897 PyThreadState* __tstate = wxPyBeginAllowThreads();
36898 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36899 wxPyEndAllowThreads(__tstate);
36900 if (PyErr_Occurred()) SWIG_fail;
36901 }
36902 resultobj = SWIG_Py_Void();
36903 return resultobj;
36904 fail:
36905 return NULL;
36906 }
36907
36908
36909 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36910 PyObject *resultobj = 0;
36911 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36912 void *argp1 = 0 ;
36913 int res1 = 0 ;
36914 PyObject *swig_obj[1] ;
36915
36916 if (!args) SWIG_fail;
36917 swig_obj[0] = args;
36918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36919 if (!SWIG_IsOK(res1)) {
36920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36921 }
36922 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36923 {
36924 PyThreadState* __tstate = wxPyBeginAllowThreads();
36925 (arg1)->UnselectAll();
36926 wxPyEndAllowThreads(__tstate);
36927 if (PyErr_Occurred()) SWIG_fail;
36928 }
36929 resultobj = SWIG_Py_Void();
36930 return resultobj;
36931 fail:
36932 return NULL;
36933 }
36934
36935
36936 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36937 PyObject *resultobj = 0;
36938 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36939 wxTreeItemId *arg2 = 0 ;
36940 bool arg3 = (bool) true ;
36941 void *argp1 = 0 ;
36942 int res1 = 0 ;
36943 void *argp2 = 0 ;
36944 int res2 = 0 ;
36945 bool val3 ;
36946 int ecode3 = 0 ;
36947 PyObject * obj0 = 0 ;
36948 PyObject * obj1 = 0 ;
36949 PyObject * obj2 = 0 ;
36950 char * kwnames[] = {
36951 (char *) "self",(char *) "item",(char *) "select", NULL
36952 };
36953
36954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36956 if (!SWIG_IsOK(res1)) {
36957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36958 }
36959 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36961 if (!SWIG_IsOK(res2)) {
36962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36963 }
36964 if (!argp2) {
36965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36966 }
36967 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36968 if (obj2) {
36969 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36970 if (!SWIG_IsOK(ecode3)) {
36971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36972 }
36973 arg3 = static_cast< bool >(val3);
36974 }
36975 {
36976 PyThreadState* __tstate = wxPyBeginAllowThreads();
36977 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36978 wxPyEndAllowThreads(__tstate);
36979 if (PyErr_Occurred()) SWIG_fail;
36980 }
36981 resultobj = SWIG_Py_Void();
36982 return resultobj;
36983 fail:
36984 return NULL;
36985 }
36986
36987
36988 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36989 PyObject *resultobj = 0;
36990 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36991 wxTreeItemId *arg2 = 0 ;
36992 void *argp1 = 0 ;
36993 int res1 = 0 ;
36994 void *argp2 = 0 ;
36995 int res2 = 0 ;
36996 PyObject * obj0 = 0 ;
36997 PyObject * obj1 = 0 ;
36998 char * kwnames[] = {
36999 (char *) "self",(char *) "item", NULL
37000 };
37001
37002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37004 if (!SWIG_IsOK(res1)) {
37005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37006 }
37007 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37008 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37009 if (!SWIG_IsOK(res2)) {
37010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37011 }
37012 if (!argp2) {
37013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37014 }
37015 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37016 {
37017 PyThreadState* __tstate = wxPyBeginAllowThreads();
37018 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37019 wxPyEndAllowThreads(__tstate);
37020 if (PyErr_Occurred()) SWIG_fail;
37021 }
37022 resultobj = SWIG_Py_Void();
37023 return resultobj;
37024 fail:
37025 return NULL;
37026 }
37027
37028
37029 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37030 PyObject *resultobj = 0;
37031 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37032 wxTreeItemId *arg2 = 0 ;
37033 void *argp1 = 0 ;
37034 int res1 = 0 ;
37035 void *argp2 = 0 ;
37036 int res2 = 0 ;
37037 PyObject * obj0 = 0 ;
37038 PyObject * obj1 = 0 ;
37039 char * kwnames[] = {
37040 (char *) "self",(char *) "item", NULL
37041 };
37042
37043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37045 if (!SWIG_IsOK(res1)) {
37046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37047 }
37048 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37049 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37050 if (!SWIG_IsOK(res2)) {
37051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37052 }
37053 if (!argp2) {
37054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37055 }
37056 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37057 {
37058 PyThreadState* __tstate = wxPyBeginAllowThreads();
37059 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37060 wxPyEndAllowThreads(__tstate);
37061 if (PyErr_Occurred()) SWIG_fail;
37062 }
37063 resultobj = SWIG_Py_Void();
37064 return resultobj;
37065 fail:
37066 return NULL;
37067 }
37068
37069
37070 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37071 PyObject *resultobj = 0;
37072 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37073 wxTreeItemId *arg2 = 0 ;
37074 void *argp1 = 0 ;
37075 int res1 = 0 ;
37076 void *argp2 = 0 ;
37077 int res2 = 0 ;
37078 PyObject * obj0 = 0 ;
37079 PyObject * obj1 = 0 ;
37080 char * kwnames[] = {
37081 (char *) "self",(char *) "item", NULL
37082 };
37083
37084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37086 if (!SWIG_IsOK(res1)) {
37087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37088 }
37089 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37090 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37091 if (!SWIG_IsOK(res2)) {
37092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37093 }
37094 if (!argp2) {
37095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37096 }
37097 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37098 {
37099 PyThreadState* __tstate = wxPyBeginAllowThreads();
37100 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37101 wxPyEndAllowThreads(__tstate);
37102 if (PyErr_Occurred()) SWIG_fail;
37103 }
37104 resultobj = SWIG_Py_Void();
37105 return resultobj;
37106 fail:
37107 return NULL;
37108 }
37109
37110
37111 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37112 PyObject *resultobj = 0;
37113 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37114 wxTreeItemId *arg2 = 0 ;
37115 void *argp1 = 0 ;
37116 int res1 = 0 ;
37117 void *argp2 = 0 ;
37118 int res2 = 0 ;
37119 PyObject * obj0 = 0 ;
37120 PyObject * obj1 = 0 ;
37121 char * kwnames[] = {
37122 (char *) "self",(char *) "item", NULL
37123 };
37124
37125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37127 if (!SWIG_IsOK(res1)) {
37128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37129 }
37130 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37131 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37132 if (!SWIG_IsOK(res2)) {
37133 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37134 }
37135 if (!argp2) {
37136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37137 }
37138 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37139 {
37140 PyThreadState* __tstate = wxPyBeginAllowThreads();
37141 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37142 wxPyEndAllowThreads(__tstate);
37143 if (PyErr_Occurred()) SWIG_fail;
37144 }
37145 resultobj = SWIG_Py_Void();
37146 return resultobj;
37147 fail:
37148 return NULL;
37149 }
37150
37151
37152 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37153 PyObject *resultobj = 0;
37154 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37155 wxTextCtrl *result = 0 ;
37156 void *argp1 = 0 ;
37157 int res1 = 0 ;
37158 PyObject *swig_obj[1] ;
37159
37160 if (!args) SWIG_fail;
37161 swig_obj[0] = args;
37162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37163 if (!SWIG_IsOK(res1)) {
37164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37165 }
37166 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37167 {
37168 PyThreadState* __tstate = wxPyBeginAllowThreads();
37169 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37170 wxPyEndAllowThreads(__tstate);
37171 if (PyErr_Occurred()) SWIG_fail;
37172 }
37173 {
37174 resultobj = wxPyMake_wxObject(result, 0);
37175 }
37176 return resultobj;
37177 fail:
37178 return NULL;
37179 }
37180
37181
37182 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37183 PyObject *resultobj = 0;
37184 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37185 wxTreeItemId *arg2 = 0 ;
37186 void *argp1 = 0 ;
37187 int res1 = 0 ;
37188 void *argp2 = 0 ;
37189 int res2 = 0 ;
37190 PyObject * obj0 = 0 ;
37191 PyObject * obj1 = 0 ;
37192 char * kwnames[] = {
37193 (char *) "self",(char *) "item", NULL
37194 };
37195
37196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37198 if (!SWIG_IsOK(res1)) {
37199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37200 }
37201 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37202 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37203 if (!SWIG_IsOK(res2)) {
37204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37205 }
37206 if (!argp2) {
37207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37208 }
37209 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37210 {
37211 PyThreadState* __tstate = wxPyBeginAllowThreads();
37212 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37213 wxPyEndAllowThreads(__tstate);
37214 if (PyErr_Occurred()) SWIG_fail;
37215 }
37216 resultobj = SWIG_Py_Void();
37217 return resultobj;
37218 fail:
37219 return NULL;
37220 }
37221
37222
37223 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37224 PyObject *resultobj = 0;
37225 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37226 wxPoint *arg2 = 0 ;
37227 int *arg3 = 0 ;
37228 wxTreeItemId result;
37229 void *argp1 = 0 ;
37230 int res1 = 0 ;
37231 wxPoint temp2 ;
37232 int temp3 ;
37233 int res3 = SWIG_TMPOBJ ;
37234 PyObject * obj0 = 0 ;
37235 PyObject * obj1 = 0 ;
37236 char * kwnames[] = {
37237 (char *) "self",(char *) "point", NULL
37238 };
37239
37240 arg3 = &temp3;
37241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37243 if (!SWIG_IsOK(res1)) {
37244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37245 }
37246 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37247 {
37248 arg2 = &temp2;
37249 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37250 }
37251 {
37252 PyThreadState* __tstate = wxPyBeginAllowThreads();
37253 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37254 wxPyEndAllowThreads(__tstate);
37255 if (PyErr_Occurred()) SWIG_fail;
37256 }
37257 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37258 if (SWIG_IsTmpObj(res3)) {
37259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37260 } else {
37261 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37263 }
37264 return resultobj;
37265 fail:
37266 return NULL;
37267 }
37268
37269
37270 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37271 PyObject *resultobj = 0;
37272 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37273 wxTreeItemId *arg2 = 0 ;
37274 bool arg3 = (bool) false ;
37275 PyObject *result = 0 ;
37276 void *argp1 = 0 ;
37277 int res1 = 0 ;
37278 void *argp2 = 0 ;
37279 int res2 = 0 ;
37280 bool val3 ;
37281 int ecode3 = 0 ;
37282 PyObject * obj0 = 0 ;
37283 PyObject * obj1 = 0 ;
37284 PyObject * obj2 = 0 ;
37285 char * kwnames[] = {
37286 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37287 };
37288
37289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37291 if (!SWIG_IsOK(res1)) {
37292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37293 }
37294 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37296 if (!SWIG_IsOK(res2)) {
37297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37298 }
37299 if (!argp2) {
37300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37301 }
37302 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37303 if (obj2) {
37304 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37305 if (!SWIG_IsOK(ecode3)) {
37306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37307 }
37308 arg3 = static_cast< bool >(val3);
37309 }
37310 {
37311 PyThreadState* __tstate = wxPyBeginAllowThreads();
37312 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37313 wxPyEndAllowThreads(__tstate);
37314 if (PyErr_Occurred()) SWIG_fail;
37315 }
37316 resultobj = result;
37317 return resultobj;
37318 fail:
37319 return NULL;
37320 }
37321
37322
37323 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37324 PyObject *resultobj = 0;
37325 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37326 SwigValueWrapper<wxVisualAttributes > result;
37327 int val1 ;
37328 int ecode1 = 0 ;
37329 PyObject * obj0 = 0 ;
37330 char * kwnames[] = {
37331 (char *) "variant", NULL
37332 };
37333
37334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37335 if (obj0) {
37336 ecode1 = SWIG_AsVal_int(obj0, &val1);
37337 if (!SWIG_IsOK(ecode1)) {
37338 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37339 }
37340 arg1 = static_cast< wxWindowVariant >(val1);
37341 }
37342 {
37343 if (!wxPyCheckForApp()) SWIG_fail;
37344 PyThreadState* __tstate = wxPyBeginAllowThreads();
37345 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37346 wxPyEndAllowThreads(__tstate);
37347 if (PyErr_Occurred()) SWIG_fail;
37348 }
37349 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37350 return resultobj;
37351 fail:
37352 return NULL;
37353 }
37354
37355
37356 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37357 PyObject *resultobj = 0;
37358 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37359 bool arg2 ;
37360 void *argp1 = 0 ;
37361 int res1 = 0 ;
37362 bool val2 ;
37363 int ecode2 = 0 ;
37364 PyObject * obj0 = 0 ;
37365 PyObject * obj1 = 0 ;
37366 char * kwnames[] = {
37367 (char *) "self",(char *) "q", NULL
37368 };
37369
37370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37372 if (!SWIG_IsOK(res1)) {
37373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37374 }
37375 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37376 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37377 if (!SWIG_IsOK(ecode2)) {
37378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37379 }
37380 arg2 = static_cast< bool >(val2);
37381 {
37382 PyThreadState* __tstate = wxPyBeginAllowThreads();
37383 (arg1)->SetQuickBestSize(arg2);
37384 wxPyEndAllowThreads(__tstate);
37385 if (PyErr_Occurred()) SWIG_fail;
37386 }
37387 resultobj = SWIG_Py_Void();
37388 return resultobj;
37389 fail:
37390 return NULL;
37391 }
37392
37393
37394 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37395 PyObject *resultobj = 0;
37396 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37397 bool result;
37398 void *argp1 = 0 ;
37399 int res1 = 0 ;
37400 PyObject *swig_obj[1] ;
37401
37402 if (!args) SWIG_fail;
37403 swig_obj[0] = args;
37404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37405 if (!SWIG_IsOK(res1)) {
37406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37407 }
37408 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37409 {
37410 PyThreadState* __tstate = wxPyBeginAllowThreads();
37411 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37412 wxPyEndAllowThreads(__tstate);
37413 if (PyErr_Occurred()) SWIG_fail;
37414 }
37415 {
37416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37417 }
37418 return resultobj;
37419 fail:
37420 return NULL;
37421 }
37422
37423
37424 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37425 PyObject *obj;
37426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37427 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37428 return SWIG_Py_Void();
37429 }
37430
37431 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37432 return SWIG_Python_InitShadowInstance(args);
37433 }
37434
37435 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37436 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37437 return 1;
37438 }
37439
37440
37441 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37442 PyObject *pyobj = 0;
37443
37444 {
37445 #if wxUSE_UNICODE
37446 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37447 #else
37448 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37449 #endif
37450 }
37451 return pyobj;
37452 }
37453
37454
37455 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37456 PyObject *resultobj = 0;
37457 wxWindow *arg1 = (wxWindow *) 0 ;
37458 int arg2 = (int) (int)-1 ;
37459 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37460 wxString *arg3 = (wxString *) &arg3_defvalue ;
37461 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37462 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37463 wxSize const &arg5_defvalue = wxDefaultSize ;
37464 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37465 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37466 wxString const &arg7_defvalue = wxPyEmptyString ;
37467 wxString *arg7 = (wxString *) &arg7_defvalue ;
37468 int arg8 = (int) 0 ;
37469 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37470 wxString *arg9 = (wxString *) &arg9_defvalue ;
37471 wxGenericDirCtrl *result = 0 ;
37472 void *argp1 = 0 ;
37473 int res1 = 0 ;
37474 int val2 ;
37475 int ecode2 = 0 ;
37476 bool temp3 = false ;
37477 wxPoint temp4 ;
37478 wxSize temp5 ;
37479 long val6 ;
37480 int ecode6 = 0 ;
37481 bool temp7 = false ;
37482 int val8 ;
37483 int ecode8 = 0 ;
37484 bool temp9 = false ;
37485 PyObject * obj0 = 0 ;
37486 PyObject * obj1 = 0 ;
37487 PyObject * obj2 = 0 ;
37488 PyObject * obj3 = 0 ;
37489 PyObject * obj4 = 0 ;
37490 PyObject * obj5 = 0 ;
37491 PyObject * obj6 = 0 ;
37492 PyObject * obj7 = 0 ;
37493 PyObject * obj8 = 0 ;
37494 char * kwnames[] = {
37495 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37496 };
37497
37498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37500 if (!SWIG_IsOK(res1)) {
37501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37502 }
37503 arg1 = reinterpret_cast< wxWindow * >(argp1);
37504 if (obj1) {
37505 ecode2 = SWIG_AsVal_int(obj1, &val2);
37506 if (!SWIG_IsOK(ecode2)) {
37507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37508 }
37509 arg2 = static_cast< int >(val2);
37510 }
37511 if (obj2) {
37512 {
37513 arg3 = wxString_in_helper(obj2);
37514 if (arg3 == NULL) SWIG_fail;
37515 temp3 = true;
37516 }
37517 }
37518 if (obj3) {
37519 {
37520 arg4 = &temp4;
37521 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37522 }
37523 }
37524 if (obj4) {
37525 {
37526 arg5 = &temp5;
37527 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37528 }
37529 }
37530 if (obj5) {
37531 ecode6 = SWIG_AsVal_long(obj5, &val6);
37532 if (!SWIG_IsOK(ecode6)) {
37533 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37534 }
37535 arg6 = static_cast< long >(val6);
37536 }
37537 if (obj6) {
37538 {
37539 arg7 = wxString_in_helper(obj6);
37540 if (arg7 == NULL) SWIG_fail;
37541 temp7 = true;
37542 }
37543 }
37544 if (obj7) {
37545 ecode8 = SWIG_AsVal_int(obj7, &val8);
37546 if (!SWIG_IsOK(ecode8)) {
37547 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37548 }
37549 arg8 = static_cast< int >(val8);
37550 }
37551 if (obj8) {
37552 {
37553 arg9 = wxString_in_helper(obj8);
37554 if (arg9 == NULL) SWIG_fail;
37555 temp9 = true;
37556 }
37557 }
37558 {
37559 if (!wxPyCheckForApp()) SWIG_fail;
37560 PyThreadState* __tstate = wxPyBeginAllowThreads();
37561 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37562 wxPyEndAllowThreads(__tstate);
37563 if (PyErr_Occurred()) SWIG_fail;
37564 }
37565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37566 {
37567 if (temp3)
37568 delete arg3;
37569 }
37570 {
37571 if (temp7)
37572 delete arg7;
37573 }
37574 {
37575 if (temp9)
37576 delete arg9;
37577 }
37578 return resultobj;
37579 fail:
37580 {
37581 if (temp3)
37582 delete arg3;
37583 }
37584 {
37585 if (temp7)
37586 delete arg7;
37587 }
37588 {
37589 if (temp9)
37590 delete arg9;
37591 }
37592 return NULL;
37593 }
37594
37595
37596 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37597 PyObject *resultobj = 0;
37598 wxGenericDirCtrl *result = 0 ;
37599
37600 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37601 {
37602 if (!wxPyCheckForApp()) SWIG_fail;
37603 PyThreadState* __tstate = wxPyBeginAllowThreads();
37604 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37605 wxPyEndAllowThreads(__tstate);
37606 if (PyErr_Occurred()) SWIG_fail;
37607 }
37608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37609 return resultobj;
37610 fail:
37611 return NULL;
37612 }
37613
37614
37615 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37616 PyObject *resultobj = 0;
37617 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37618 wxWindow *arg2 = (wxWindow *) 0 ;
37619 int arg3 = (int) (int)-1 ;
37620 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37621 wxString *arg4 = (wxString *) &arg4_defvalue ;
37622 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37623 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37624 wxSize const &arg6_defvalue = wxDefaultSize ;
37625 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37626 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37627 wxString const &arg8_defvalue = wxPyEmptyString ;
37628 wxString *arg8 = (wxString *) &arg8_defvalue ;
37629 int arg9 = (int) 0 ;
37630 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37631 wxString *arg10 = (wxString *) &arg10_defvalue ;
37632 bool result;
37633 void *argp1 = 0 ;
37634 int res1 = 0 ;
37635 void *argp2 = 0 ;
37636 int res2 = 0 ;
37637 int val3 ;
37638 int ecode3 = 0 ;
37639 bool temp4 = false ;
37640 wxPoint temp5 ;
37641 wxSize temp6 ;
37642 long val7 ;
37643 int ecode7 = 0 ;
37644 bool temp8 = false ;
37645 int val9 ;
37646 int ecode9 = 0 ;
37647 bool temp10 = false ;
37648 PyObject * obj0 = 0 ;
37649 PyObject * obj1 = 0 ;
37650 PyObject * obj2 = 0 ;
37651 PyObject * obj3 = 0 ;
37652 PyObject * obj4 = 0 ;
37653 PyObject * obj5 = 0 ;
37654 PyObject * obj6 = 0 ;
37655 PyObject * obj7 = 0 ;
37656 PyObject * obj8 = 0 ;
37657 PyObject * obj9 = 0 ;
37658 char * kwnames[] = {
37659 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37660 };
37661
37662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37664 if (!SWIG_IsOK(res1)) {
37665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37666 }
37667 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37668 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37669 if (!SWIG_IsOK(res2)) {
37670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37671 }
37672 arg2 = reinterpret_cast< wxWindow * >(argp2);
37673 if (obj2) {
37674 ecode3 = SWIG_AsVal_int(obj2, &val3);
37675 if (!SWIG_IsOK(ecode3)) {
37676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37677 }
37678 arg3 = static_cast< int >(val3);
37679 }
37680 if (obj3) {
37681 {
37682 arg4 = wxString_in_helper(obj3);
37683 if (arg4 == NULL) SWIG_fail;
37684 temp4 = true;
37685 }
37686 }
37687 if (obj4) {
37688 {
37689 arg5 = &temp5;
37690 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37691 }
37692 }
37693 if (obj5) {
37694 {
37695 arg6 = &temp6;
37696 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37697 }
37698 }
37699 if (obj6) {
37700 ecode7 = SWIG_AsVal_long(obj6, &val7);
37701 if (!SWIG_IsOK(ecode7)) {
37702 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37703 }
37704 arg7 = static_cast< long >(val7);
37705 }
37706 if (obj7) {
37707 {
37708 arg8 = wxString_in_helper(obj7);
37709 if (arg8 == NULL) SWIG_fail;
37710 temp8 = true;
37711 }
37712 }
37713 if (obj8) {
37714 ecode9 = SWIG_AsVal_int(obj8, &val9);
37715 if (!SWIG_IsOK(ecode9)) {
37716 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37717 }
37718 arg9 = static_cast< int >(val9);
37719 }
37720 if (obj9) {
37721 {
37722 arg10 = wxString_in_helper(obj9);
37723 if (arg10 == NULL) SWIG_fail;
37724 temp10 = true;
37725 }
37726 }
37727 {
37728 PyThreadState* __tstate = wxPyBeginAllowThreads();
37729 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37730 wxPyEndAllowThreads(__tstate);
37731 if (PyErr_Occurred()) SWIG_fail;
37732 }
37733 {
37734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37735 }
37736 {
37737 if (temp4)
37738 delete arg4;
37739 }
37740 {
37741 if (temp8)
37742 delete arg8;
37743 }
37744 {
37745 if (temp10)
37746 delete arg10;
37747 }
37748 return resultobj;
37749 fail:
37750 {
37751 if (temp4)
37752 delete arg4;
37753 }
37754 {
37755 if (temp8)
37756 delete arg8;
37757 }
37758 {
37759 if (temp10)
37760 delete arg10;
37761 }
37762 return NULL;
37763 }
37764
37765
37766 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37767 PyObject *resultobj = 0;
37768 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37769 wxString *arg2 = 0 ;
37770 bool result;
37771 void *argp1 = 0 ;
37772 int res1 = 0 ;
37773 bool temp2 = false ;
37774 PyObject * obj0 = 0 ;
37775 PyObject * obj1 = 0 ;
37776 char * kwnames[] = {
37777 (char *) "self",(char *) "path", NULL
37778 };
37779
37780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37782 if (!SWIG_IsOK(res1)) {
37783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37784 }
37785 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37786 {
37787 arg2 = wxString_in_helper(obj1);
37788 if (arg2 == NULL) SWIG_fail;
37789 temp2 = true;
37790 }
37791 {
37792 PyThreadState* __tstate = wxPyBeginAllowThreads();
37793 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37794 wxPyEndAllowThreads(__tstate);
37795 if (PyErr_Occurred()) SWIG_fail;
37796 }
37797 {
37798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37799 }
37800 {
37801 if (temp2)
37802 delete arg2;
37803 }
37804 return resultobj;
37805 fail:
37806 {
37807 if (temp2)
37808 delete arg2;
37809 }
37810 return NULL;
37811 }
37812
37813
37814 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37815 PyObject *resultobj = 0;
37816 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37817 wxString *arg2 = 0 ;
37818 bool result;
37819 void *argp1 = 0 ;
37820 int res1 = 0 ;
37821 bool temp2 = false ;
37822 PyObject * obj0 = 0 ;
37823 PyObject * obj1 = 0 ;
37824 char * kwnames[] = {
37825 (char *) "self",(char *) "path", NULL
37826 };
37827
37828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37830 if (!SWIG_IsOK(res1)) {
37831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37832 }
37833 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37834 {
37835 arg2 = wxString_in_helper(obj1);
37836 if (arg2 == NULL) SWIG_fail;
37837 temp2 = true;
37838 }
37839 {
37840 PyThreadState* __tstate = wxPyBeginAllowThreads();
37841 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37842 wxPyEndAllowThreads(__tstate);
37843 if (PyErr_Occurred()) SWIG_fail;
37844 }
37845 {
37846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37847 }
37848 {
37849 if (temp2)
37850 delete arg2;
37851 }
37852 return resultobj;
37853 fail:
37854 {
37855 if (temp2)
37856 delete arg2;
37857 }
37858 return NULL;
37859 }
37860
37861
37862 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37863 PyObject *resultobj = 0;
37864 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37865 wxString result;
37866 void *argp1 = 0 ;
37867 int res1 = 0 ;
37868 PyObject *swig_obj[1] ;
37869
37870 if (!args) SWIG_fail;
37871 swig_obj[0] = args;
37872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37873 if (!SWIG_IsOK(res1)) {
37874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37875 }
37876 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37877 {
37878 PyThreadState* __tstate = wxPyBeginAllowThreads();
37879 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37880 wxPyEndAllowThreads(__tstate);
37881 if (PyErr_Occurred()) SWIG_fail;
37882 }
37883 {
37884 #if wxUSE_UNICODE
37885 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37886 #else
37887 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37888 #endif
37889 }
37890 return resultobj;
37891 fail:
37892 return NULL;
37893 }
37894
37895
37896 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37897 PyObject *resultobj = 0;
37898 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37899 wxString *arg2 = 0 ;
37900 void *argp1 = 0 ;
37901 int res1 = 0 ;
37902 bool temp2 = false ;
37903 PyObject * obj0 = 0 ;
37904 PyObject * obj1 = 0 ;
37905 char * kwnames[] = {
37906 (char *) "self",(char *) "path", NULL
37907 };
37908
37909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37911 if (!SWIG_IsOK(res1)) {
37912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37913 }
37914 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37915 {
37916 arg2 = wxString_in_helper(obj1);
37917 if (arg2 == NULL) SWIG_fail;
37918 temp2 = true;
37919 }
37920 {
37921 PyThreadState* __tstate = wxPyBeginAllowThreads();
37922 (arg1)->SetDefaultPath((wxString const &)*arg2);
37923 wxPyEndAllowThreads(__tstate);
37924 if (PyErr_Occurred()) SWIG_fail;
37925 }
37926 resultobj = SWIG_Py_Void();
37927 {
37928 if (temp2)
37929 delete arg2;
37930 }
37931 return resultobj;
37932 fail:
37933 {
37934 if (temp2)
37935 delete arg2;
37936 }
37937 return NULL;
37938 }
37939
37940
37941 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37942 PyObject *resultobj = 0;
37943 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37944 wxString result;
37945 void *argp1 = 0 ;
37946 int res1 = 0 ;
37947 PyObject *swig_obj[1] ;
37948
37949 if (!args) SWIG_fail;
37950 swig_obj[0] = args;
37951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37952 if (!SWIG_IsOK(res1)) {
37953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37954 }
37955 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37956 {
37957 PyThreadState* __tstate = wxPyBeginAllowThreads();
37958 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37959 wxPyEndAllowThreads(__tstate);
37960 if (PyErr_Occurred()) SWIG_fail;
37961 }
37962 {
37963 #if wxUSE_UNICODE
37964 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37965 #else
37966 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37967 #endif
37968 }
37969 return resultobj;
37970 fail:
37971 return NULL;
37972 }
37973
37974
37975 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37976 PyObject *resultobj = 0;
37977 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37978 wxString result;
37979 void *argp1 = 0 ;
37980 int res1 = 0 ;
37981 PyObject *swig_obj[1] ;
37982
37983 if (!args) SWIG_fail;
37984 swig_obj[0] = args;
37985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37986 if (!SWIG_IsOK(res1)) {
37987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37988 }
37989 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37990 {
37991 PyThreadState* __tstate = wxPyBeginAllowThreads();
37992 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37993 wxPyEndAllowThreads(__tstate);
37994 if (PyErr_Occurred()) SWIG_fail;
37995 }
37996 {
37997 #if wxUSE_UNICODE
37998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37999 #else
38000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38001 #endif
38002 }
38003 return resultobj;
38004 fail:
38005 return NULL;
38006 }
38007
38008
38009 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38010 PyObject *resultobj = 0;
38011 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38012 wxString *arg2 = 0 ;
38013 void *argp1 = 0 ;
38014 int res1 = 0 ;
38015 bool temp2 = false ;
38016 PyObject * obj0 = 0 ;
38017 PyObject * obj1 = 0 ;
38018 char * kwnames[] = {
38019 (char *) "self",(char *) "path", NULL
38020 };
38021
38022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38024 if (!SWIG_IsOK(res1)) {
38025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38026 }
38027 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38028 {
38029 arg2 = wxString_in_helper(obj1);
38030 if (arg2 == NULL) SWIG_fail;
38031 temp2 = true;
38032 }
38033 {
38034 PyThreadState* __tstate = wxPyBeginAllowThreads();
38035 (arg1)->SetPath((wxString const &)*arg2);
38036 wxPyEndAllowThreads(__tstate);
38037 if (PyErr_Occurred()) SWIG_fail;
38038 }
38039 resultobj = SWIG_Py_Void();
38040 {
38041 if (temp2)
38042 delete arg2;
38043 }
38044 return resultobj;
38045 fail:
38046 {
38047 if (temp2)
38048 delete arg2;
38049 }
38050 return NULL;
38051 }
38052
38053
38054 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38055 PyObject *resultobj = 0;
38056 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38057 bool arg2 ;
38058 void *argp1 = 0 ;
38059 int res1 = 0 ;
38060 bool val2 ;
38061 int ecode2 = 0 ;
38062 PyObject * obj0 = 0 ;
38063 PyObject * obj1 = 0 ;
38064 char * kwnames[] = {
38065 (char *) "self",(char *) "show", NULL
38066 };
38067
38068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38070 if (!SWIG_IsOK(res1)) {
38071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38072 }
38073 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38074 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38075 if (!SWIG_IsOK(ecode2)) {
38076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38077 }
38078 arg2 = static_cast< bool >(val2);
38079 {
38080 PyThreadState* __tstate = wxPyBeginAllowThreads();
38081 (arg1)->ShowHidden(arg2);
38082 wxPyEndAllowThreads(__tstate);
38083 if (PyErr_Occurred()) SWIG_fail;
38084 }
38085 resultobj = SWIG_Py_Void();
38086 return resultobj;
38087 fail:
38088 return NULL;
38089 }
38090
38091
38092 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38093 PyObject *resultobj = 0;
38094 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38095 bool result;
38096 void *argp1 = 0 ;
38097 int res1 = 0 ;
38098 PyObject *swig_obj[1] ;
38099
38100 if (!args) SWIG_fail;
38101 swig_obj[0] = args;
38102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38103 if (!SWIG_IsOK(res1)) {
38104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38105 }
38106 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38107 {
38108 PyThreadState* __tstate = wxPyBeginAllowThreads();
38109 result = (bool)(arg1)->GetShowHidden();
38110 wxPyEndAllowThreads(__tstate);
38111 if (PyErr_Occurred()) SWIG_fail;
38112 }
38113 {
38114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38115 }
38116 return resultobj;
38117 fail:
38118 return NULL;
38119 }
38120
38121
38122 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38123 PyObject *resultobj = 0;
38124 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38125 wxString result;
38126 void *argp1 = 0 ;
38127 int res1 = 0 ;
38128 PyObject *swig_obj[1] ;
38129
38130 if (!args) SWIG_fail;
38131 swig_obj[0] = args;
38132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38133 if (!SWIG_IsOK(res1)) {
38134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38135 }
38136 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38137 {
38138 PyThreadState* __tstate = wxPyBeginAllowThreads();
38139 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38140 wxPyEndAllowThreads(__tstate);
38141 if (PyErr_Occurred()) SWIG_fail;
38142 }
38143 {
38144 #if wxUSE_UNICODE
38145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38146 #else
38147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38148 #endif
38149 }
38150 return resultobj;
38151 fail:
38152 return NULL;
38153 }
38154
38155
38156 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38157 PyObject *resultobj = 0;
38158 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38159 wxString *arg2 = 0 ;
38160 void *argp1 = 0 ;
38161 int res1 = 0 ;
38162 bool temp2 = false ;
38163 PyObject * obj0 = 0 ;
38164 PyObject * obj1 = 0 ;
38165 char * kwnames[] = {
38166 (char *) "self",(char *) "filter", NULL
38167 };
38168
38169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38171 if (!SWIG_IsOK(res1)) {
38172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38173 }
38174 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38175 {
38176 arg2 = wxString_in_helper(obj1);
38177 if (arg2 == NULL) SWIG_fail;
38178 temp2 = true;
38179 }
38180 {
38181 PyThreadState* __tstate = wxPyBeginAllowThreads();
38182 (arg1)->SetFilter((wxString const &)*arg2);
38183 wxPyEndAllowThreads(__tstate);
38184 if (PyErr_Occurred()) SWIG_fail;
38185 }
38186 resultobj = SWIG_Py_Void();
38187 {
38188 if (temp2)
38189 delete arg2;
38190 }
38191 return resultobj;
38192 fail:
38193 {
38194 if (temp2)
38195 delete arg2;
38196 }
38197 return NULL;
38198 }
38199
38200
38201 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38202 PyObject *resultobj = 0;
38203 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38204 int result;
38205 void *argp1 = 0 ;
38206 int res1 = 0 ;
38207 PyObject *swig_obj[1] ;
38208
38209 if (!args) SWIG_fail;
38210 swig_obj[0] = args;
38211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38212 if (!SWIG_IsOK(res1)) {
38213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38214 }
38215 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38216 {
38217 PyThreadState* __tstate = wxPyBeginAllowThreads();
38218 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38219 wxPyEndAllowThreads(__tstate);
38220 if (PyErr_Occurred()) SWIG_fail;
38221 }
38222 resultobj = SWIG_From_int(static_cast< int >(result));
38223 return resultobj;
38224 fail:
38225 return NULL;
38226 }
38227
38228
38229 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38230 PyObject *resultobj = 0;
38231 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38232 int arg2 ;
38233 void *argp1 = 0 ;
38234 int res1 = 0 ;
38235 int val2 ;
38236 int ecode2 = 0 ;
38237 PyObject * obj0 = 0 ;
38238 PyObject * obj1 = 0 ;
38239 char * kwnames[] = {
38240 (char *) "self",(char *) "n", NULL
38241 };
38242
38243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38245 if (!SWIG_IsOK(res1)) {
38246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38247 }
38248 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38249 ecode2 = SWIG_AsVal_int(obj1, &val2);
38250 if (!SWIG_IsOK(ecode2)) {
38251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38252 }
38253 arg2 = static_cast< int >(val2);
38254 {
38255 PyThreadState* __tstate = wxPyBeginAllowThreads();
38256 (arg1)->SetFilterIndex(arg2);
38257 wxPyEndAllowThreads(__tstate);
38258 if (PyErr_Occurred()) SWIG_fail;
38259 }
38260 resultobj = SWIG_Py_Void();
38261 return resultobj;
38262 fail:
38263 return NULL;
38264 }
38265
38266
38267 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38268 PyObject *resultobj = 0;
38269 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38270 wxTreeItemId result;
38271 void *argp1 = 0 ;
38272 int res1 = 0 ;
38273 PyObject *swig_obj[1] ;
38274
38275 if (!args) SWIG_fail;
38276 swig_obj[0] = args;
38277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38278 if (!SWIG_IsOK(res1)) {
38279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38280 }
38281 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38282 {
38283 PyThreadState* __tstate = wxPyBeginAllowThreads();
38284 result = (arg1)->GetRootId();
38285 wxPyEndAllowThreads(__tstate);
38286 if (PyErr_Occurred()) SWIG_fail;
38287 }
38288 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38289 return resultobj;
38290 fail:
38291 return NULL;
38292 }
38293
38294
38295 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38296 PyObject *resultobj = 0;
38297 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38298 wxPyTreeCtrl *result = 0 ;
38299 void *argp1 = 0 ;
38300 int res1 = 0 ;
38301 PyObject *swig_obj[1] ;
38302
38303 if (!args) SWIG_fail;
38304 swig_obj[0] = args;
38305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38306 if (!SWIG_IsOK(res1)) {
38307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38308 }
38309 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38310 {
38311 PyThreadState* __tstate = wxPyBeginAllowThreads();
38312 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38313 wxPyEndAllowThreads(__tstate);
38314 if (PyErr_Occurred()) SWIG_fail;
38315 }
38316 {
38317 resultobj = wxPyMake_wxObject(result, 0);
38318 }
38319 return resultobj;
38320 fail:
38321 return NULL;
38322 }
38323
38324
38325 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38326 PyObject *resultobj = 0;
38327 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38328 wxDirFilterListCtrl *result = 0 ;
38329 void *argp1 = 0 ;
38330 int res1 = 0 ;
38331 PyObject *swig_obj[1] ;
38332
38333 if (!args) SWIG_fail;
38334 swig_obj[0] = args;
38335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38336 if (!SWIG_IsOK(res1)) {
38337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38338 }
38339 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38340 {
38341 PyThreadState* __tstate = wxPyBeginAllowThreads();
38342 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38343 wxPyEndAllowThreads(__tstate);
38344 if (PyErr_Occurred()) SWIG_fail;
38345 }
38346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38347 return resultobj;
38348 fail:
38349 return NULL;
38350 }
38351
38352
38353 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38354 PyObject *resultobj = 0;
38355 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38356 wxTreeItemId arg2 ;
38357 wxString *arg3 = 0 ;
38358 bool *arg4 = 0 ;
38359 wxTreeItemId result;
38360 void *argp1 = 0 ;
38361 int res1 = 0 ;
38362 void *argp2 ;
38363 int res2 = 0 ;
38364 bool temp3 = false ;
38365 bool temp4 ;
38366 int res4 = SWIG_TMPOBJ ;
38367 PyObject * obj0 = 0 ;
38368 PyObject * obj1 = 0 ;
38369 PyObject * obj2 = 0 ;
38370 char * kwnames[] = {
38371 (char *) "self",(char *) "parentId",(char *) "path", NULL
38372 };
38373
38374 arg4 = &temp4;
38375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38377 if (!SWIG_IsOK(res1)) {
38378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38379 }
38380 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38381 {
38382 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38383 if (!SWIG_IsOK(res2)) {
38384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38385 }
38386 if (!argp2) {
38387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38388 } else {
38389 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38390 arg2 = *temp;
38391 if (SWIG_IsNewObj(res2)) delete temp;
38392 }
38393 }
38394 {
38395 arg3 = wxString_in_helper(obj2);
38396 if (arg3 == NULL) SWIG_fail;
38397 temp3 = true;
38398 }
38399 {
38400 PyThreadState* __tstate = wxPyBeginAllowThreads();
38401 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38402 wxPyEndAllowThreads(__tstate);
38403 if (PyErr_Occurred()) SWIG_fail;
38404 }
38405 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38406 if (SWIG_IsTmpObj(res4)) {
38407 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38408 } else {
38409 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38410 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38411 }
38412 {
38413 if (temp3)
38414 delete arg3;
38415 }
38416 return resultobj;
38417 fail:
38418 {
38419 if (temp3)
38420 delete arg3;
38421 }
38422 return NULL;
38423 }
38424
38425
38426 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38427 PyObject *resultobj = 0;
38428 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38429 void *argp1 = 0 ;
38430 int res1 = 0 ;
38431 PyObject *swig_obj[1] ;
38432
38433 if (!args) SWIG_fail;
38434 swig_obj[0] = args;
38435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38436 if (!SWIG_IsOK(res1)) {
38437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38438 }
38439 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38440 {
38441 PyThreadState* __tstate = wxPyBeginAllowThreads();
38442 (arg1)->DoResize();
38443 wxPyEndAllowThreads(__tstate);
38444 if (PyErr_Occurred()) SWIG_fail;
38445 }
38446 resultobj = SWIG_Py_Void();
38447 return resultobj;
38448 fail:
38449 return NULL;
38450 }
38451
38452
38453 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38454 PyObject *resultobj = 0;
38455 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38456 void *argp1 = 0 ;
38457 int res1 = 0 ;
38458 PyObject *swig_obj[1] ;
38459
38460 if (!args) SWIG_fail;
38461 swig_obj[0] = args;
38462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38463 if (!SWIG_IsOK(res1)) {
38464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38465 }
38466 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38467 {
38468 PyThreadState* __tstate = wxPyBeginAllowThreads();
38469 (arg1)->ReCreateTree();
38470 wxPyEndAllowThreads(__tstate);
38471 if (PyErr_Occurred()) SWIG_fail;
38472 }
38473 resultobj = SWIG_Py_Void();
38474 return resultobj;
38475 fail:
38476 return NULL;
38477 }
38478
38479
38480 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38481 PyObject *obj;
38482 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38483 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38484 return SWIG_Py_Void();
38485 }
38486
38487 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38488 return SWIG_Python_InitShadowInstance(args);
38489 }
38490
38491 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38492 PyObject *resultobj = 0;
38493 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38494 int arg2 = (int) (int)-1 ;
38495 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38496 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38497 wxSize const &arg4_defvalue = wxDefaultSize ;
38498 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38499 long arg5 = (long) 0 ;
38500 wxDirFilterListCtrl *result = 0 ;
38501 void *argp1 = 0 ;
38502 int res1 = 0 ;
38503 int val2 ;
38504 int ecode2 = 0 ;
38505 wxPoint temp3 ;
38506 wxSize temp4 ;
38507 long val5 ;
38508 int ecode5 = 0 ;
38509 PyObject * obj0 = 0 ;
38510 PyObject * obj1 = 0 ;
38511 PyObject * obj2 = 0 ;
38512 PyObject * obj3 = 0 ;
38513 PyObject * obj4 = 0 ;
38514 char * kwnames[] = {
38515 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38516 };
38517
38518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38520 if (!SWIG_IsOK(res1)) {
38521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38522 }
38523 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38524 if (obj1) {
38525 ecode2 = SWIG_AsVal_int(obj1, &val2);
38526 if (!SWIG_IsOK(ecode2)) {
38527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38528 }
38529 arg2 = static_cast< int >(val2);
38530 }
38531 if (obj2) {
38532 {
38533 arg3 = &temp3;
38534 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38535 }
38536 }
38537 if (obj3) {
38538 {
38539 arg4 = &temp4;
38540 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38541 }
38542 }
38543 if (obj4) {
38544 ecode5 = SWIG_AsVal_long(obj4, &val5);
38545 if (!SWIG_IsOK(ecode5)) {
38546 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38547 }
38548 arg5 = static_cast< long >(val5);
38549 }
38550 {
38551 if (!wxPyCheckForApp()) SWIG_fail;
38552 PyThreadState* __tstate = wxPyBeginAllowThreads();
38553 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38554 wxPyEndAllowThreads(__tstate);
38555 if (PyErr_Occurred()) SWIG_fail;
38556 }
38557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38558 return resultobj;
38559 fail:
38560 return NULL;
38561 }
38562
38563
38564 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38565 PyObject *resultobj = 0;
38566 wxDirFilterListCtrl *result = 0 ;
38567
38568 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38569 {
38570 if (!wxPyCheckForApp()) SWIG_fail;
38571 PyThreadState* __tstate = wxPyBeginAllowThreads();
38572 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38573 wxPyEndAllowThreads(__tstate);
38574 if (PyErr_Occurred()) SWIG_fail;
38575 }
38576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38577 return resultobj;
38578 fail:
38579 return NULL;
38580 }
38581
38582
38583 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38584 PyObject *resultobj = 0;
38585 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38586 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38587 int arg3 = (int) (int)-1 ;
38588 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38589 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38590 wxSize const &arg5_defvalue = wxDefaultSize ;
38591 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38592 long arg6 = (long) 0 ;
38593 bool result;
38594 void *argp1 = 0 ;
38595 int res1 = 0 ;
38596 void *argp2 = 0 ;
38597 int res2 = 0 ;
38598 int val3 ;
38599 int ecode3 = 0 ;
38600 wxPoint temp4 ;
38601 wxSize temp5 ;
38602 long val6 ;
38603 int ecode6 = 0 ;
38604 PyObject * obj0 = 0 ;
38605 PyObject * obj1 = 0 ;
38606 PyObject * obj2 = 0 ;
38607 PyObject * obj3 = 0 ;
38608 PyObject * obj4 = 0 ;
38609 PyObject * obj5 = 0 ;
38610 char * kwnames[] = {
38611 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38612 };
38613
38614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38616 if (!SWIG_IsOK(res1)) {
38617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38618 }
38619 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38620 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38621 if (!SWIG_IsOK(res2)) {
38622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38623 }
38624 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38625 if (obj2) {
38626 ecode3 = SWIG_AsVal_int(obj2, &val3);
38627 if (!SWIG_IsOK(ecode3)) {
38628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38629 }
38630 arg3 = static_cast< int >(val3);
38631 }
38632 if (obj3) {
38633 {
38634 arg4 = &temp4;
38635 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38636 }
38637 }
38638 if (obj4) {
38639 {
38640 arg5 = &temp5;
38641 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38642 }
38643 }
38644 if (obj5) {
38645 ecode6 = SWIG_AsVal_long(obj5, &val6);
38646 if (!SWIG_IsOK(ecode6)) {
38647 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38648 }
38649 arg6 = static_cast< long >(val6);
38650 }
38651 {
38652 PyThreadState* __tstate = wxPyBeginAllowThreads();
38653 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38654 wxPyEndAllowThreads(__tstate);
38655 if (PyErr_Occurred()) SWIG_fail;
38656 }
38657 {
38658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38659 }
38660 return resultobj;
38661 fail:
38662 return NULL;
38663 }
38664
38665
38666 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38667 PyObject *resultobj = 0;
38668 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38669 wxString *arg2 = 0 ;
38670 int arg3 ;
38671 void *argp1 = 0 ;
38672 int res1 = 0 ;
38673 bool temp2 = false ;
38674 int val3 ;
38675 int ecode3 = 0 ;
38676 PyObject * obj0 = 0 ;
38677 PyObject * obj1 = 0 ;
38678 PyObject * obj2 = 0 ;
38679 char * kwnames[] = {
38680 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38681 };
38682
38683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38685 if (!SWIG_IsOK(res1)) {
38686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38687 }
38688 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38689 {
38690 arg2 = wxString_in_helper(obj1);
38691 if (arg2 == NULL) SWIG_fail;
38692 temp2 = true;
38693 }
38694 ecode3 = SWIG_AsVal_int(obj2, &val3);
38695 if (!SWIG_IsOK(ecode3)) {
38696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38697 }
38698 arg3 = static_cast< int >(val3);
38699 {
38700 PyThreadState* __tstate = wxPyBeginAllowThreads();
38701 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38702 wxPyEndAllowThreads(__tstate);
38703 if (PyErr_Occurred()) SWIG_fail;
38704 }
38705 resultobj = SWIG_Py_Void();
38706 {
38707 if (temp2)
38708 delete arg2;
38709 }
38710 return resultobj;
38711 fail:
38712 {
38713 if (temp2)
38714 delete arg2;
38715 }
38716 return NULL;
38717 }
38718
38719
38720 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38721 PyObject *obj;
38722 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38723 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38724 return SWIG_Py_Void();
38725 }
38726
38727 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38728 return SWIG_Python_InitShadowInstance(args);
38729 }
38730
38731 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38732 PyObject *resultobj = 0;
38733 wxWindow *arg1 = (wxWindow *) 0 ;
38734 int arg2 = (int) (int)-1 ;
38735 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38736 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38737 wxSize const &arg4_defvalue = wxDefaultSize ;
38738 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38739 long arg5 = (long) 0 ;
38740 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38741 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38742 wxString const &arg7_defvalue = wxPyControlNameStr ;
38743 wxString *arg7 = (wxString *) &arg7_defvalue ;
38744 wxPyControl *result = 0 ;
38745 void *argp1 = 0 ;
38746 int res1 = 0 ;
38747 int val2 ;
38748 int ecode2 = 0 ;
38749 wxPoint temp3 ;
38750 wxSize temp4 ;
38751 long val5 ;
38752 int ecode5 = 0 ;
38753 void *argp6 = 0 ;
38754 int res6 = 0 ;
38755 bool temp7 = false ;
38756 PyObject * obj0 = 0 ;
38757 PyObject * obj1 = 0 ;
38758 PyObject * obj2 = 0 ;
38759 PyObject * obj3 = 0 ;
38760 PyObject * obj4 = 0 ;
38761 PyObject * obj5 = 0 ;
38762 PyObject * obj6 = 0 ;
38763 char * kwnames[] = {
38764 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38765 };
38766
38767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38769 if (!SWIG_IsOK(res1)) {
38770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38771 }
38772 arg1 = reinterpret_cast< wxWindow * >(argp1);
38773 if (obj1) {
38774 ecode2 = SWIG_AsVal_int(obj1, &val2);
38775 if (!SWIG_IsOK(ecode2)) {
38776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38777 }
38778 arg2 = static_cast< int >(val2);
38779 }
38780 if (obj2) {
38781 {
38782 arg3 = &temp3;
38783 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38784 }
38785 }
38786 if (obj3) {
38787 {
38788 arg4 = &temp4;
38789 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38790 }
38791 }
38792 if (obj4) {
38793 ecode5 = SWIG_AsVal_long(obj4, &val5);
38794 if (!SWIG_IsOK(ecode5)) {
38795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38796 }
38797 arg5 = static_cast< long >(val5);
38798 }
38799 if (obj5) {
38800 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38801 if (!SWIG_IsOK(res6)) {
38802 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38803 }
38804 if (!argp6) {
38805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38806 }
38807 arg6 = reinterpret_cast< wxValidator * >(argp6);
38808 }
38809 if (obj6) {
38810 {
38811 arg7 = wxString_in_helper(obj6);
38812 if (arg7 == NULL) SWIG_fail;
38813 temp7 = true;
38814 }
38815 }
38816 {
38817 if (!wxPyCheckForApp()) SWIG_fail;
38818 PyThreadState* __tstate = wxPyBeginAllowThreads();
38819 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38820 wxPyEndAllowThreads(__tstate);
38821 if (PyErr_Occurred()) SWIG_fail;
38822 }
38823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38824 {
38825 if (temp7)
38826 delete arg7;
38827 }
38828 return resultobj;
38829 fail:
38830 {
38831 if (temp7)
38832 delete arg7;
38833 }
38834 return NULL;
38835 }
38836
38837
38838 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38839 PyObject *resultobj = 0;
38840 wxPyControl *result = 0 ;
38841
38842 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38843 {
38844 if (!wxPyCheckForApp()) SWIG_fail;
38845 PyThreadState* __tstate = wxPyBeginAllowThreads();
38846 result = (wxPyControl *)new wxPyControl();
38847 wxPyEndAllowThreads(__tstate);
38848 if (PyErr_Occurred()) SWIG_fail;
38849 }
38850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38851 return resultobj;
38852 fail:
38853 return NULL;
38854 }
38855
38856
38857 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38858 PyObject *resultobj = 0;
38859 wxPyControl *arg1 = (wxPyControl *) 0 ;
38860 PyObject *arg2 = (PyObject *) 0 ;
38861 PyObject *arg3 = (PyObject *) 0 ;
38862 void *argp1 = 0 ;
38863 int res1 = 0 ;
38864 PyObject * obj0 = 0 ;
38865 PyObject * obj1 = 0 ;
38866 PyObject * obj2 = 0 ;
38867 char * kwnames[] = {
38868 (char *) "self",(char *) "self",(char *) "_class", NULL
38869 };
38870
38871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38873 if (!SWIG_IsOK(res1)) {
38874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38875 }
38876 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38877 arg2 = obj1;
38878 arg3 = obj2;
38879 {
38880 PyThreadState* __tstate = wxPyBeginAllowThreads();
38881 (arg1)->_setCallbackInfo(arg2,arg3);
38882 wxPyEndAllowThreads(__tstate);
38883 if (PyErr_Occurred()) SWIG_fail;
38884 }
38885 resultobj = SWIG_Py_Void();
38886 return resultobj;
38887 fail:
38888 return NULL;
38889 }
38890
38891
38892 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38893 PyObject *resultobj = 0;
38894 wxPyControl *arg1 = (wxPyControl *) 0 ;
38895 wxDC *arg2 = (wxDC *) 0 ;
38896 bool result;
38897 void *argp1 = 0 ;
38898 int res1 = 0 ;
38899 void *argp2 = 0 ;
38900 int res2 = 0 ;
38901 PyObject * obj0 = 0 ;
38902 PyObject * obj1 = 0 ;
38903 char * kwnames[] = {
38904 (char *) "self",(char *) "dc", NULL
38905 };
38906
38907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38909 if (!SWIG_IsOK(res1)) {
38910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38911 }
38912 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38913 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38914 if (!SWIG_IsOK(res2)) {
38915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38916 }
38917 arg2 = reinterpret_cast< wxDC * >(argp2);
38918 {
38919 PyThreadState* __tstate = wxPyBeginAllowThreads();
38920 result = (bool)(arg1)->DoEraseBackground(arg2);
38921 wxPyEndAllowThreads(__tstate);
38922 if (PyErr_Occurred()) SWIG_fail;
38923 }
38924 {
38925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38926 }
38927 return resultobj;
38928 fail:
38929 return NULL;
38930 }
38931
38932
38933 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38934 PyObject *resultobj = 0;
38935 wxPyControl *arg1 = (wxPyControl *) 0 ;
38936 int arg2 ;
38937 int arg3 ;
38938 int arg4 ;
38939 int arg5 ;
38940 void *argp1 = 0 ;
38941 int res1 = 0 ;
38942 int val2 ;
38943 int ecode2 = 0 ;
38944 int val3 ;
38945 int ecode3 = 0 ;
38946 int val4 ;
38947 int ecode4 = 0 ;
38948 int val5 ;
38949 int ecode5 = 0 ;
38950 PyObject * obj0 = 0 ;
38951 PyObject * obj1 = 0 ;
38952 PyObject * obj2 = 0 ;
38953 PyObject * obj3 = 0 ;
38954 PyObject * obj4 = 0 ;
38955 char * kwnames[] = {
38956 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38957 };
38958
38959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38961 if (!SWIG_IsOK(res1)) {
38962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38963 }
38964 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38965 ecode2 = SWIG_AsVal_int(obj1, &val2);
38966 if (!SWIG_IsOK(ecode2)) {
38967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38968 }
38969 arg2 = static_cast< int >(val2);
38970 ecode3 = SWIG_AsVal_int(obj2, &val3);
38971 if (!SWIG_IsOK(ecode3)) {
38972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38973 }
38974 arg3 = static_cast< int >(val3);
38975 ecode4 = SWIG_AsVal_int(obj3, &val4);
38976 if (!SWIG_IsOK(ecode4)) {
38977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38978 }
38979 arg4 = static_cast< int >(val4);
38980 ecode5 = SWIG_AsVal_int(obj4, &val5);
38981 if (!SWIG_IsOK(ecode5)) {
38982 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38983 }
38984 arg5 = static_cast< int >(val5);
38985 {
38986 PyThreadState* __tstate = wxPyBeginAllowThreads();
38987 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38988 wxPyEndAllowThreads(__tstate);
38989 if (PyErr_Occurred()) SWIG_fail;
38990 }
38991 resultobj = SWIG_Py_Void();
38992 return resultobj;
38993 fail:
38994 return NULL;
38995 }
38996
38997
38998 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38999 PyObject *resultobj = 0;
39000 wxPyControl *arg1 = (wxPyControl *) 0 ;
39001 int arg2 ;
39002 int arg3 ;
39003 int arg4 ;
39004 int arg5 ;
39005 int arg6 = (int) wxSIZE_AUTO ;
39006 void *argp1 = 0 ;
39007 int res1 = 0 ;
39008 int val2 ;
39009 int ecode2 = 0 ;
39010 int val3 ;
39011 int ecode3 = 0 ;
39012 int val4 ;
39013 int ecode4 = 0 ;
39014 int val5 ;
39015 int ecode5 = 0 ;
39016 int val6 ;
39017 int ecode6 = 0 ;
39018 PyObject * obj0 = 0 ;
39019 PyObject * obj1 = 0 ;
39020 PyObject * obj2 = 0 ;
39021 PyObject * obj3 = 0 ;
39022 PyObject * obj4 = 0 ;
39023 PyObject * obj5 = 0 ;
39024 char * kwnames[] = {
39025 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39026 };
39027
39028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39030 if (!SWIG_IsOK(res1)) {
39031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39032 }
39033 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39034 ecode2 = SWIG_AsVal_int(obj1, &val2);
39035 if (!SWIG_IsOK(ecode2)) {
39036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39037 }
39038 arg2 = static_cast< int >(val2);
39039 ecode3 = SWIG_AsVal_int(obj2, &val3);
39040 if (!SWIG_IsOK(ecode3)) {
39041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39042 }
39043 arg3 = static_cast< int >(val3);
39044 ecode4 = SWIG_AsVal_int(obj3, &val4);
39045 if (!SWIG_IsOK(ecode4)) {
39046 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39047 }
39048 arg4 = static_cast< int >(val4);
39049 ecode5 = SWIG_AsVal_int(obj4, &val5);
39050 if (!SWIG_IsOK(ecode5)) {
39051 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39052 }
39053 arg5 = static_cast< int >(val5);
39054 if (obj5) {
39055 ecode6 = SWIG_AsVal_int(obj5, &val6);
39056 if (!SWIG_IsOK(ecode6)) {
39057 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39058 }
39059 arg6 = static_cast< int >(val6);
39060 }
39061 {
39062 PyThreadState* __tstate = wxPyBeginAllowThreads();
39063 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39064 wxPyEndAllowThreads(__tstate);
39065 if (PyErr_Occurred()) SWIG_fail;
39066 }
39067 resultobj = SWIG_Py_Void();
39068 return resultobj;
39069 fail:
39070 return NULL;
39071 }
39072
39073
39074 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39075 PyObject *resultobj = 0;
39076 wxPyControl *arg1 = (wxPyControl *) 0 ;
39077 int arg2 ;
39078 int arg3 ;
39079 void *argp1 = 0 ;
39080 int res1 = 0 ;
39081 int val2 ;
39082 int ecode2 = 0 ;
39083 int val3 ;
39084 int ecode3 = 0 ;
39085 PyObject * obj0 = 0 ;
39086 PyObject * obj1 = 0 ;
39087 PyObject * obj2 = 0 ;
39088 char * kwnames[] = {
39089 (char *) "self",(char *) "width",(char *) "height", NULL
39090 };
39091
39092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39094 if (!SWIG_IsOK(res1)) {
39095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39096 }
39097 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39098 ecode2 = SWIG_AsVal_int(obj1, &val2);
39099 if (!SWIG_IsOK(ecode2)) {
39100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39101 }
39102 arg2 = static_cast< int >(val2);
39103 ecode3 = SWIG_AsVal_int(obj2, &val3);
39104 if (!SWIG_IsOK(ecode3)) {
39105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39106 }
39107 arg3 = static_cast< int >(val3);
39108 {
39109 PyThreadState* __tstate = wxPyBeginAllowThreads();
39110 (arg1)->DoSetClientSize(arg2,arg3);
39111 wxPyEndAllowThreads(__tstate);
39112 if (PyErr_Occurred()) SWIG_fail;
39113 }
39114 resultobj = SWIG_Py_Void();
39115 return resultobj;
39116 fail:
39117 return NULL;
39118 }
39119
39120
39121 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39122 PyObject *resultobj = 0;
39123 wxPyControl *arg1 = (wxPyControl *) 0 ;
39124 int arg2 ;
39125 int arg3 ;
39126 void *argp1 = 0 ;
39127 int res1 = 0 ;
39128 int val2 ;
39129 int ecode2 = 0 ;
39130 int val3 ;
39131 int ecode3 = 0 ;
39132 PyObject * obj0 = 0 ;
39133 PyObject * obj1 = 0 ;
39134 PyObject * obj2 = 0 ;
39135 char * kwnames[] = {
39136 (char *) "self",(char *) "x",(char *) "y", NULL
39137 };
39138
39139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39141 if (!SWIG_IsOK(res1)) {
39142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39143 }
39144 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39145 ecode2 = SWIG_AsVal_int(obj1, &val2);
39146 if (!SWIG_IsOK(ecode2)) {
39147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39148 }
39149 arg2 = static_cast< int >(val2);
39150 ecode3 = SWIG_AsVal_int(obj2, &val3);
39151 if (!SWIG_IsOK(ecode3)) {
39152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39153 }
39154 arg3 = static_cast< int >(val3);
39155 {
39156 PyThreadState* __tstate = wxPyBeginAllowThreads();
39157 (arg1)->DoSetVirtualSize(arg2,arg3);
39158 wxPyEndAllowThreads(__tstate);
39159 if (PyErr_Occurred()) SWIG_fail;
39160 }
39161 resultobj = SWIG_Py_Void();
39162 return resultobj;
39163 fail:
39164 return NULL;
39165 }
39166
39167
39168 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39169 PyObject *resultobj = 0;
39170 wxPyControl *arg1 = (wxPyControl *) 0 ;
39171 int *arg2 = (int *) 0 ;
39172 int *arg3 = (int *) 0 ;
39173 void *argp1 = 0 ;
39174 int res1 = 0 ;
39175 int temp2 ;
39176 int res2 = SWIG_TMPOBJ ;
39177 int temp3 ;
39178 int res3 = SWIG_TMPOBJ ;
39179 PyObject *swig_obj[1] ;
39180
39181 arg2 = &temp2;
39182 arg3 = &temp3;
39183 if (!args) SWIG_fail;
39184 swig_obj[0] = args;
39185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39186 if (!SWIG_IsOK(res1)) {
39187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39188 }
39189 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39190 {
39191 PyThreadState* __tstate = wxPyBeginAllowThreads();
39192 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39193 wxPyEndAllowThreads(__tstate);
39194 if (PyErr_Occurred()) SWIG_fail;
39195 }
39196 resultobj = SWIG_Py_Void();
39197 if (SWIG_IsTmpObj(res2)) {
39198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39199 } else {
39200 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39201 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39202 }
39203 if (SWIG_IsTmpObj(res3)) {
39204 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39205 } else {
39206 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39207 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39208 }
39209 return resultobj;
39210 fail:
39211 return NULL;
39212 }
39213
39214
39215 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39216 PyObject *resultobj = 0;
39217 wxPyControl *arg1 = (wxPyControl *) 0 ;
39218 int *arg2 = (int *) 0 ;
39219 int *arg3 = (int *) 0 ;
39220 void *argp1 = 0 ;
39221 int res1 = 0 ;
39222 int temp2 ;
39223 int res2 = SWIG_TMPOBJ ;
39224 int temp3 ;
39225 int res3 = SWIG_TMPOBJ ;
39226 PyObject *swig_obj[1] ;
39227
39228 arg2 = &temp2;
39229 arg3 = &temp3;
39230 if (!args) SWIG_fail;
39231 swig_obj[0] = args;
39232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39233 if (!SWIG_IsOK(res1)) {
39234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39235 }
39236 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39237 {
39238 PyThreadState* __tstate = wxPyBeginAllowThreads();
39239 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39240 wxPyEndAllowThreads(__tstate);
39241 if (PyErr_Occurred()) SWIG_fail;
39242 }
39243 resultobj = SWIG_Py_Void();
39244 if (SWIG_IsTmpObj(res2)) {
39245 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39246 } else {
39247 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39248 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39249 }
39250 if (SWIG_IsTmpObj(res3)) {
39251 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39252 } else {
39253 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39254 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39255 }
39256 return resultobj;
39257 fail:
39258 return NULL;
39259 }
39260
39261
39262 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39263 PyObject *resultobj = 0;
39264 wxPyControl *arg1 = (wxPyControl *) 0 ;
39265 int *arg2 = (int *) 0 ;
39266 int *arg3 = (int *) 0 ;
39267 void *argp1 = 0 ;
39268 int res1 = 0 ;
39269 int temp2 ;
39270 int res2 = SWIG_TMPOBJ ;
39271 int temp3 ;
39272 int res3 = SWIG_TMPOBJ ;
39273 PyObject *swig_obj[1] ;
39274
39275 arg2 = &temp2;
39276 arg3 = &temp3;
39277 if (!args) SWIG_fail;
39278 swig_obj[0] = args;
39279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39280 if (!SWIG_IsOK(res1)) {
39281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39282 }
39283 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39284 {
39285 PyThreadState* __tstate = wxPyBeginAllowThreads();
39286 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39287 wxPyEndAllowThreads(__tstate);
39288 if (PyErr_Occurred()) SWIG_fail;
39289 }
39290 resultobj = SWIG_Py_Void();
39291 if (SWIG_IsTmpObj(res2)) {
39292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39293 } else {
39294 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39295 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39296 }
39297 if (SWIG_IsTmpObj(res3)) {
39298 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39299 } else {
39300 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39301 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39302 }
39303 return resultobj;
39304 fail:
39305 return NULL;
39306 }
39307
39308
39309 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39310 PyObject *resultobj = 0;
39311 wxPyControl *arg1 = (wxPyControl *) 0 ;
39312 wxSize result;
39313 void *argp1 = 0 ;
39314 int res1 = 0 ;
39315 PyObject *swig_obj[1] ;
39316
39317 if (!args) SWIG_fail;
39318 swig_obj[0] = args;
39319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39320 if (!SWIG_IsOK(res1)) {
39321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39322 }
39323 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39324 {
39325 PyThreadState* __tstate = wxPyBeginAllowThreads();
39326 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39327 wxPyEndAllowThreads(__tstate);
39328 if (PyErr_Occurred()) SWIG_fail;
39329 }
39330 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39331 return resultobj;
39332 fail:
39333 return NULL;
39334 }
39335
39336
39337 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39338 PyObject *resultobj = 0;
39339 wxPyControl *arg1 = (wxPyControl *) 0 ;
39340 wxSize result;
39341 void *argp1 = 0 ;
39342 int res1 = 0 ;
39343 PyObject *swig_obj[1] ;
39344
39345 if (!args) SWIG_fail;
39346 swig_obj[0] = args;
39347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39348 if (!SWIG_IsOK(res1)) {
39349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39350 }
39351 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39352 {
39353 PyThreadState* __tstate = wxPyBeginAllowThreads();
39354 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39355 wxPyEndAllowThreads(__tstate);
39356 if (PyErr_Occurred()) SWIG_fail;
39357 }
39358 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39359 return resultobj;
39360 fail:
39361 return NULL;
39362 }
39363
39364
39365 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39366 PyObject *resultobj = 0;
39367 wxPyControl *arg1 = (wxPyControl *) 0 ;
39368 SwigValueWrapper<wxVisualAttributes > result;
39369 void *argp1 = 0 ;
39370 int res1 = 0 ;
39371 PyObject *swig_obj[1] ;
39372
39373 if (!args) SWIG_fail;
39374 swig_obj[0] = args;
39375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39376 if (!SWIG_IsOK(res1)) {
39377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39378 }
39379 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39380 {
39381 PyThreadState* __tstate = wxPyBeginAllowThreads();
39382 result = (arg1)->GetDefaultAttributes();
39383 wxPyEndAllowThreads(__tstate);
39384 if (PyErr_Occurred()) SWIG_fail;
39385 }
39386 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39387 return resultobj;
39388 fail:
39389 return NULL;
39390 }
39391
39392
39393 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39394 PyObject *resultobj = 0;
39395 wxPyControl *arg1 = (wxPyControl *) 0 ;
39396 void *argp1 = 0 ;
39397 int res1 = 0 ;
39398 PyObject *swig_obj[1] ;
39399
39400 if (!args) SWIG_fail;
39401 swig_obj[0] = args;
39402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39403 if (!SWIG_IsOK(res1)) {
39404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39405 }
39406 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39407 {
39408 PyThreadState* __tstate = wxPyBeginAllowThreads();
39409 (arg1)->OnInternalIdle();
39410 wxPyEndAllowThreads(__tstate);
39411 if (PyErr_Occurred()) SWIG_fail;
39412 }
39413 resultobj = SWIG_Py_Void();
39414 return resultobj;
39415 fail:
39416 return NULL;
39417 }
39418
39419
39420 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39421 PyObject *obj;
39422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39423 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39424 return SWIG_Py_Void();
39425 }
39426
39427 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39428 return SWIG_Python_InitShadowInstance(args);
39429 }
39430
39431 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39432 PyObject *resultobj = 0;
39433 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39434 int arg2 = (int) 0 ;
39435 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39436 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39437 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39438 wxHelpEvent *result = 0 ;
39439 int val1 ;
39440 int ecode1 = 0 ;
39441 int val2 ;
39442 int ecode2 = 0 ;
39443 wxPoint temp3 ;
39444 int val4 ;
39445 int ecode4 = 0 ;
39446 PyObject * obj0 = 0 ;
39447 PyObject * obj1 = 0 ;
39448 PyObject * obj2 = 0 ;
39449 PyObject * obj3 = 0 ;
39450 char * kwnames[] = {
39451 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39452 };
39453
39454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39455 if (obj0) {
39456 ecode1 = SWIG_AsVal_int(obj0, &val1);
39457 if (!SWIG_IsOK(ecode1)) {
39458 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39459 }
39460 arg1 = static_cast< wxEventType >(val1);
39461 }
39462 if (obj1) {
39463 ecode2 = SWIG_AsVal_int(obj1, &val2);
39464 if (!SWIG_IsOK(ecode2)) {
39465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39466 }
39467 arg2 = static_cast< int >(val2);
39468 }
39469 if (obj2) {
39470 {
39471 arg3 = &temp3;
39472 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39473 }
39474 }
39475 if (obj3) {
39476 ecode4 = SWIG_AsVal_int(obj3, &val4);
39477 if (!SWIG_IsOK(ecode4)) {
39478 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39479 }
39480 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39481 }
39482 {
39483 PyThreadState* __tstate = wxPyBeginAllowThreads();
39484 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39485 wxPyEndAllowThreads(__tstate);
39486 if (PyErr_Occurred()) SWIG_fail;
39487 }
39488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39489 return resultobj;
39490 fail:
39491 return NULL;
39492 }
39493
39494
39495 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39496 PyObject *resultobj = 0;
39497 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39498 wxPoint result;
39499 void *argp1 = 0 ;
39500 int res1 = 0 ;
39501 PyObject *swig_obj[1] ;
39502
39503 if (!args) SWIG_fail;
39504 swig_obj[0] = args;
39505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39506 if (!SWIG_IsOK(res1)) {
39507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39508 }
39509 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39510 {
39511 PyThreadState* __tstate = wxPyBeginAllowThreads();
39512 result = ((wxHelpEvent const *)arg1)->GetPosition();
39513 wxPyEndAllowThreads(__tstate);
39514 if (PyErr_Occurred()) SWIG_fail;
39515 }
39516 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39517 return resultobj;
39518 fail:
39519 return NULL;
39520 }
39521
39522
39523 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39524 PyObject *resultobj = 0;
39525 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39526 wxPoint *arg2 = 0 ;
39527 void *argp1 = 0 ;
39528 int res1 = 0 ;
39529 wxPoint temp2 ;
39530 PyObject * obj0 = 0 ;
39531 PyObject * obj1 = 0 ;
39532 char * kwnames[] = {
39533 (char *) "self",(char *) "pos", NULL
39534 };
39535
39536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",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_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39540 }
39541 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39542 {
39543 arg2 = &temp2;
39544 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39545 }
39546 {
39547 PyThreadState* __tstate = wxPyBeginAllowThreads();
39548 (arg1)->SetPosition((wxPoint const &)*arg2);
39549 wxPyEndAllowThreads(__tstate);
39550 if (PyErr_Occurred()) SWIG_fail;
39551 }
39552 resultobj = SWIG_Py_Void();
39553 return resultobj;
39554 fail:
39555 return NULL;
39556 }
39557
39558
39559 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39560 PyObject *resultobj = 0;
39561 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39562 wxString *result = 0 ;
39563 void *argp1 = 0 ;
39564 int res1 = 0 ;
39565 PyObject *swig_obj[1] ;
39566
39567 if (!args) SWIG_fail;
39568 swig_obj[0] = args;
39569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39570 if (!SWIG_IsOK(res1)) {
39571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39572 }
39573 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39574 {
39575 PyThreadState* __tstate = wxPyBeginAllowThreads();
39576 {
39577 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39578 result = (wxString *) &_result_ref;
39579 }
39580 wxPyEndAllowThreads(__tstate);
39581 if (PyErr_Occurred()) SWIG_fail;
39582 }
39583 {
39584 #if wxUSE_UNICODE
39585 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39586 #else
39587 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39588 #endif
39589 }
39590 return resultobj;
39591 fail:
39592 return NULL;
39593 }
39594
39595
39596 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39597 PyObject *resultobj = 0;
39598 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39599 wxString *arg2 = 0 ;
39600 void *argp1 = 0 ;
39601 int res1 = 0 ;
39602 bool temp2 = false ;
39603 PyObject * obj0 = 0 ;
39604 PyObject * obj1 = 0 ;
39605 char * kwnames[] = {
39606 (char *) "self",(char *) "link", NULL
39607 };
39608
39609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39611 if (!SWIG_IsOK(res1)) {
39612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39613 }
39614 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39615 {
39616 arg2 = wxString_in_helper(obj1);
39617 if (arg2 == NULL) SWIG_fail;
39618 temp2 = true;
39619 }
39620 {
39621 PyThreadState* __tstate = wxPyBeginAllowThreads();
39622 (arg1)->SetLink((wxString const &)*arg2);
39623 wxPyEndAllowThreads(__tstate);
39624 if (PyErr_Occurred()) SWIG_fail;
39625 }
39626 resultobj = SWIG_Py_Void();
39627 {
39628 if (temp2)
39629 delete arg2;
39630 }
39631 return resultobj;
39632 fail:
39633 {
39634 if (temp2)
39635 delete arg2;
39636 }
39637 return NULL;
39638 }
39639
39640
39641 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39642 PyObject *resultobj = 0;
39643 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39644 wxString *result = 0 ;
39645 void *argp1 = 0 ;
39646 int res1 = 0 ;
39647 PyObject *swig_obj[1] ;
39648
39649 if (!args) SWIG_fail;
39650 swig_obj[0] = args;
39651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39652 if (!SWIG_IsOK(res1)) {
39653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39654 }
39655 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39656 {
39657 PyThreadState* __tstate = wxPyBeginAllowThreads();
39658 {
39659 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39660 result = (wxString *) &_result_ref;
39661 }
39662 wxPyEndAllowThreads(__tstate);
39663 if (PyErr_Occurred()) SWIG_fail;
39664 }
39665 {
39666 #if wxUSE_UNICODE
39667 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39668 #else
39669 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39670 #endif
39671 }
39672 return resultobj;
39673 fail:
39674 return NULL;
39675 }
39676
39677
39678 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39679 PyObject *resultobj = 0;
39680 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39681 wxString *arg2 = 0 ;
39682 void *argp1 = 0 ;
39683 int res1 = 0 ;
39684 bool temp2 = false ;
39685 PyObject * obj0 = 0 ;
39686 PyObject * obj1 = 0 ;
39687 char * kwnames[] = {
39688 (char *) "self",(char *) "target", NULL
39689 };
39690
39691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39693 if (!SWIG_IsOK(res1)) {
39694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39695 }
39696 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39697 {
39698 arg2 = wxString_in_helper(obj1);
39699 if (arg2 == NULL) SWIG_fail;
39700 temp2 = true;
39701 }
39702 {
39703 PyThreadState* __tstate = wxPyBeginAllowThreads();
39704 (arg1)->SetTarget((wxString const &)*arg2);
39705 wxPyEndAllowThreads(__tstate);
39706 if (PyErr_Occurred()) SWIG_fail;
39707 }
39708 resultobj = SWIG_Py_Void();
39709 {
39710 if (temp2)
39711 delete arg2;
39712 }
39713 return resultobj;
39714 fail:
39715 {
39716 if (temp2)
39717 delete arg2;
39718 }
39719 return NULL;
39720 }
39721
39722
39723 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39724 PyObject *resultobj = 0;
39725 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39726 wxHelpEvent::Origin result;
39727 void *argp1 = 0 ;
39728 int res1 = 0 ;
39729 PyObject *swig_obj[1] ;
39730
39731 if (!args) SWIG_fail;
39732 swig_obj[0] = args;
39733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39734 if (!SWIG_IsOK(res1)) {
39735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39736 }
39737 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39738 {
39739 PyThreadState* __tstate = wxPyBeginAllowThreads();
39740 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39741 wxPyEndAllowThreads(__tstate);
39742 if (PyErr_Occurred()) SWIG_fail;
39743 }
39744 resultobj = SWIG_From_int(static_cast< int >(result));
39745 return resultobj;
39746 fail:
39747 return NULL;
39748 }
39749
39750
39751 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39752 PyObject *resultobj = 0;
39753 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39754 wxHelpEvent::Origin arg2 ;
39755 void *argp1 = 0 ;
39756 int res1 = 0 ;
39757 int val2 ;
39758 int ecode2 = 0 ;
39759 PyObject * obj0 = 0 ;
39760 PyObject * obj1 = 0 ;
39761 char * kwnames[] = {
39762 (char *) "self",(char *) "origin", NULL
39763 };
39764
39765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39767 if (!SWIG_IsOK(res1)) {
39768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39769 }
39770 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39771 ecode2 = SWIG_AsVal_int(obj1, &val2);
39772 if (!SWIG_IsOK(ecode2)) {
39773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39774 }
39775 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39776 {
39777 PyThreadState* __tstate = wxPyBeginAllowThreads();
39778 (arg1)->SetOrigin(arg2);
39779 wxPyEndAllowThreads(__tstate);
39780 if (PyErr_Occurred()) SWIG_fail;
39781 }
39782 resultobj = SWIG_Py_Void();
39783 return resultobj;
39784 fail:
39785 return NULL;
39786 }
39787
39788
39789 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39790 PyObject *obj;
39791 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39792 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39793 return SWIG_Py_Void();
39794 }
39795
39796 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39797 return SWIG_Python_InitShadowInstance(args);
39798 }
39799
39800 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39801 PyObject *resultobj = 0;
39802 wxWindow *arg1 = (wxWindow *) NULL ;
39803 bool arg2 = (bool) true ;
39804 wxContextHelp *result = 0 ;
39805 void *argp1 = 0 ;
39806 int res1 = 0 ;
39807 bool val2 ;
39808 int ecode2 = 0 ;
39809 PyObject * obj0 = 0 ;
39810 PyObject * obj1 = 0 ;
39811 char * kwnames[] = {
39812 (char *) "window",(char *) "doNow", NULL
39813 };
39814
39815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39816 if (obj0) {
39817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39818 if (!SWIG_IsOK(res1)) {
39819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39820 }
39821 arg1 = reinterpret_cast< wxWindow * >(argp1);
39822 }
39823 if (obj1) {
39824 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39825 if (!SWIG_IsOK(ecode2)) {
39826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39827 }
39828 arg2 = static_cast< bool >(val2);
39829 }
39830 {
39831 if (!wxPyCheckForApp()) SWIG_fail;
39832 PyThreadState* __tstate = wxPyBeginAllowThreads();
39833 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39834 wxPyEndAllowThreads(__tstate);
39835 if (PyErr_Occurred()) SWIG_fail;
39836 }
39837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39838 return resultobj;
39839 fail:
39840 return NULL;
39841 }
39842
39843
39844 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39845 PyObject *resultobj = 0;
39846 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39847 void *argp1 = 0 ;
39848 int res1 = 0 ;
39849 PyObject *swig_obj[1] ;
39850
39851 if (!args) SWIG_fail;
39852 swig_obj[0] = args;
39853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39854 if (!SWIG_IsOK(res1)) {
39855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39856 }
39857 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39858 {
39859 PyThreadState* __tstate = wxPyBeginAllowThreads();
39860 delete arg1;
39861
39862 wxPyEndAllowThreads(__tstate);
39863 if (PyErr_Occurred()) SWIG_fail;
39864 }
39865 resultobj = SWIG_Py_Void();
39866 return resultobj;
39867 fail:
39868 return NULL;
39869 }
39870
39871
39872 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39873 PyObject *resultobj = 0;
39874 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39875 wxWindow *arg2 = (wxWindow *) NULL ;
39876 bool result;
39877 void *argp1 = 0 ;
39878 int res1 = 0 ;
39879 void *argp2 = 0 ;
39880 int res2 = 0 ;
39881 PyObject * obj0 = 0 ;
39882 PyObject * obj1 = 0 ;
39883 char * kwnames[] = {
39884 (char *) "self",(char *) "window", NULL
39885 };
39886
39887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39889 if (!SWIG_IsOK(res1)) {
39890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39891 }
39892 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39893 if (obj1) {
39894 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39895 if (!SWIG_IsOK(res2)) {
39896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39897 }
39898 arg2 = reinterpret_cast< wxWindow * >(argp2);
39899 }
39900 {
39901 PyThreadState* __tstate = wxPyBeginAllowThreads();
39902 result = (bool)(arg1)->BeginContextHelp(arg2);
39903 wxPyEndAllowThreads(__tstate);
39904 if (PyErr_Occurred()) SWIG_fail;
39905 }
39906 {
39907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39908 }
39909 return resultobj;
39910 fail:
39911 return NULL;
39912 }
39913
39914
39915 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39916 PyObject *resultobj = 0;
39917 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39918 bool result;
39919 void *argp1 = 0 ;
39920 int res1 = 0 ;
39921 PyObject *swig_obj[1] ;
39922
39923 if (!args) SWIG_fail;
39924 swig_obj[0] = args;
39925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39926 if (!SWIG_IsOK(res1)) {
39927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39928 }
39929 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39930 {
39931 PyThreadState* __tstate = wxPyBeginAllowThreads();
39932 result = (bool)(arg1)->EndContextHelp();
39933 wxPyEndAllowThreads(__tstate);
39934 if (PyErr_Occurred()) SWIG_fail;
39935 }
39936 {
39937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39938 }
39939 return resultobj;
39940 fail:
39941 return NULL;
39942 }
39943
39944
39945 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39946 PyObject *obj;
39947 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39948 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39949 return SWIG_Py_Void();
39950 }
39951
39952 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39953 return SWIG_Python_InitShadowInstance(args);
39954 }
39955
39956 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39957 PyObject *resultobj = 0;
39958 wxWindow *arg1 = (wxWindow *) 0 ;
39959 int arg2 = (int) wxID_CONTEXT_HELP ;
39960 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39961 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39962 wxSize const &arg4_defvalue = wxDefaultSize ;
39963 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39964 long arg5 = (long) wxBU_AUTODRAW ;
39965 wxContextHelpButton *result = 0 ;
39966 void *argp1 = 0 ;
39967 int res1 = 0 ;
39968 int val2 ;
39969 int ecode2 = 0 ;
39970 wxPoint temp3 ;
39971 wxSize temp4 ;
39972 long val5 ;
39973 int ecode5 = 0 ;
39974 PyObject * obj0 = 0 ;
39975 PyObject * obj1 = 0 ;
39976 PyObject * obj2 = 0 ;
39977 PyObject * obj3 = 0 ;
39978 PyObject * obj4 = 0 ;
39979 char * kwnames[] = {
39980 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39981 };
39982
39983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39985 if (!SWIG_IsOK(res1)) {
39986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39987 }
39988 arg1 = reinterpret_cast< wxWindow * >(argp1);
39989 if (obj1) {
39990 ecode2 = SWIG_AsVal_int(obj1, &val2);
39991 if (!SWIG_IsOK(ecode2)) {
39992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39993 }
39994 arg2 = static_cast< int >(val2);
39995 }
39996 if (obj2) {
39997 {
39998 arg3 = &temp3;
39999 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40000 }
40001 }
40002 if (obj3) {
40003 {
40004 arg4 = &temp4;
40005 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
40006 }
40007 }
40008 if (obj4) {
40009 ecode5 = SWIG_AsVal_long(obj4, &val5);
40010 if (!SWIG_IsOK(ecode5)) {
40011 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40012 }
40013 arg5 = static_cast< long >(val5);
40014 }
40015 {
40016 if (!wxPyCheckForApp()) SWIG_fail;
40017 PyThreadState* __tstate = wxPyBeginAllowThreads();
40018 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40019 wxPyEndAllowThreads(__tstate);
40020 if (PyErr_Occurred()) SWIG_fail;
40021 }
40022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40023 return resultobj;
40024 fail:
40025 return NULL;
40026 }
40027
40028
40029 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40030 PyObject *obj;
40031 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40032 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40033 return SWIG_Py_Void();
40034 }
40035
40036 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40037 return SWIG_Python_InitShadowInstance(args);
40038 }
40039
40040 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40041 PyObject *resultobj = 0;
40042 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40043 void *argp1 = 0 ;
40044 int res1 = 0 ;
40045 PyObject *swig_obj[1] ;
40046
40047 if (!args) SWIG_fail;
40048 swig_obj[0] = args;
40049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40050 if (!SWIG_IsOK(res1)) {
40051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40052 }
40053 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40054 {
40055 PyThreadState* __tstate = wxPyBeginAllowThreads();
40056 delete arg1;
40057
40058 wxPyEndAllowThreads(__tstate);
40059 if (PyErr_Occurred()) SWIG_fail;
40060 }
40061 resultobj = SWIG_Py_Void();
40062 return resultobj;
40063 fail:
40064 return NULL;
40065 }
40066
40067
40068 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40069 PyObject *resultobj = 0;
40070 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40071 wxHelpProvider *result = 0 ;
40072 int res1 = 0 ;
40073 PyObject * obj0 = 0 ;
40074 char * kwnames[] = {
40075 (char *) "helpProvider", NULL
40076 };
40077
40078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40079 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40080 if (!SWIG_IsOK(res1)) {
40081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40082 }
40083 {
40084 PyThreadState* __tstate = wxPyBeginAllowThreads();
40085 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40086 wxPyEndAllowThreads(__tstate);
40087 if (PyErr_Occurred()) SWIG_fail;
40088 }
40089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40090 return resultobj;
40091 fail:
40092 return NULL;
40093 }
40094
40095
40096 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40097 PyObject *resultobj = 0;
40098 wxHelpProvider *result = 0 ;
40099
40100 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40101 {
40102 PyThreadState* __tstate = wxPyBeginAllowThreads();
40103 result = (wxHelpProvider *)wxHelpProvider::Get();
40104 wxPyEndAllowThreads(__tstate);
40105 if (PyErr_Occurred()) SWIG_fail;
40106 }
40107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40108 return resultobj;
40109 fail:
40110 return NULL;
40111 }
40112
40113
40114 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40115 PyObject *resultobj = 0;
40116 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40117 wxWindow *arg2 = (wxWindow *) 0 ;
40118 wxString result;
40119 void *argp1 = 0 ;
40120 int res1 = 0 ;
40121 void *argp2 = 0 ;
40122 int res2 = 0 ;
40123 PyObject * obj0 = 0 ;
40124 PyObject * obj1 = 0 ;
40125 char * kwnames[] = {
40126 (char *) "self",(char *) "window", NULL
40127 };
40128
40129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40131 if (!SWIG_IsOK(res1)) {
40132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40133 }
40134 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40135 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40136 if (!SWIG_IsOK(res2)) {
40137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40138 }
40139 arg2 = reinterpret_cast< wxWindow * >(argp2);
40140 {
40141 PyThreadState* __tstate = wxPyBeginAllowThreads();
40142 result = (arg1)->GetHelp((wxWindow const *)arg2);
40143 wxPyEndAllowThreads(__tstate);
40144 if (PyErr_Occurred()) SWIG_fail;
40145 }
40146 {
40147 #if wxUSE_UNICODE
40148 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40149 #else
40150 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40151 #endif
40152 }
40153 return resultobj;
40154 fail:
40155 return NULL;
40156 }
40157
40158
40159 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40160 PyObject *resultobj = 0;
40161 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40162 wxWindow *arg2 = (wxWindow *) 0 ;
40163 bool result;
40164 void *argp1 = 0 ;
40165 int res1 = 0 ;
40166 void *argp2 = 0 ;
40167 int res2 = 0 ;
40168 PyObject * obj0 = 0 ;
40169 PyObject * obj1 = 0 ;
40170 char * kwnames[] = {
40171 (char *) "self",(char *) "window", NULL
40172 };
40173
40174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40176 if (!SWIG_IsOK(res1)) {
40177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40178 }
40179 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40180 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40181 if (!SWIG_IsOK(res2)) {
40182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40183 }
40184 arg2 = reinterpret_cast< wxWindow * >(argp2);
40185 {
40186 PyThreadState* __tstate = wxPyBeginAllowThreads();
40187 result = (bool)(arg1)->ShowHelp(arg2);
40188 wxPyEndAllowThreads(__tstate);
40189 if (PyErr_Occurred()) SWIG_fail;
40190 }
40191 {
40192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40193 }
40194 return resultobj;
40195 fail:
40196 return NULL;
40197 }
40198
40199
40200 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40201 PyObject *resultobj = 0;
40202 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40203 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40204 wxPoint *arg3 = 0 ;
40205 wxHelpEvent::Origin arg4 ;
40206 bool result;
40207 void *argp1 = 0 ;
40208 int res1 = 0 ;
40209 void *argp2 = 0 ;
40210 int res2 = 0 ;
40211 wxPoint temp3 ;
40212 int val4 ;
40213 int ecode4 = 0 ;
40214 PyObject * obj0 = 0 ;
40215 PyObject * obj1 = 0 ;
40216 PyObject * obj2 = 0 ;
40217 PyObject * obj3 = 0 ;
40218 char * kwnames[] = {
40219 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40220 };
40221
40222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40224 if (!SWIG_IsOK(res1)) {
40225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40226 }
40227 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40228 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40229 if (!SWIG_IsOK(res2)) {
40230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40231 }
40232 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40233 {
40234 arg3 = &temp3;
40235 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40236 }
40237 ecode4 = SWIG_AsVal_int(obj3, &val4);
40238 if (!SWIG_IsOK(ecode4)) {
40239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40240 }
40241 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40242 {
40243 PyThreadState* __tstate = wxPyBeginAllowThreads();
40244 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40245 wxPyEndAllowThreads(__tstate);
40246 if (PyErr_Occurred()) SWIG_fail;
40247 }
40248 {
40249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40250 }
40251 return resultobj;
40252 fail:
40253 return NULL;
40254 }
40255
40256
40257 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40258 PyObject *resultobj = 0;
40259 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40260 wxWindow *arg2 = (wxWindow *) 0 ;
40261 wxString *arg3 = 0 ;
40262 void *argp1 = 0 ;
40263 int res1 = 0 ;
40264 void *argp2 = 0 ;
40265 int res2 = 0 ;
40266 bool temp3 = false ;
40267 PyObject * obj0 = 0 ;
40268 PyObject * obj1 = 0 ;
40269 PyObject * obj2 = 0 ;
40270 char * kwnames[] = {
40271 (char *) "self",(char *) "window",(char *) "text", NULL
40272 };
40273
40274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40276 if (!SWIG_IsOK(res1)) {
40277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40278 }
40279 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40280 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40281 if (!SWIG_IsOK(res2)) {
40282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40283 }
40284 arg2 = reinterpret_cast< wxWindow * >(argp2);
40285 {
40286 arg3 = wxString_in_helper(obj2);
40287 if (arg3 == NULL) SWIG_fail;
40288 temp3 = true;
40289 }
40290 {
40291 PyThreadState* __tstate = wxPyBeginAllowThreads();
40292 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40293 wxPyEndAllowThreads(__tstate);
40294 if (PyErr_Occurred()) SWIG_fail;
40295 }
40296 resultobj = SWIG_Py_Void();
40297 {
40298 if (temp3)
40299 delete arg3;
40300 }
40301 return resultobj;
40302 fail:
40303 {
40304 if (temp3)
40305 delete arg3;
40306 }
40307 return NULL;
40308 }
40309
40310
40311 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40312 PyObject *resultobj = 0;
40313 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40314 int arg2 ;
40315 wxString *arg3 = 0 ;
40316 void *argp1 = 0 ;
40317 int res1 = 0 ;
40318 int val2 ;
40319 int ecode2 = 0 ;
40320 bool temp3 = false ;
40321 PyObject * obj0 = 0 ;
40322 PyObject * obj1 = 0 ;
40323 PyObject * obj2 = 0 ;
40324 char * kwnames[] = {
40325 (char *) "self",(char *) "id",(char *) "text", NULL
40326 };
40327
40328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40330 if (!SWIG_IsOK(res1)) {
40331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40332 }
40333 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40334 ecode2 = SWIG_AsVal_int(obj1, &val2);
40335 if (!SWIG_IsOK(ecode2)) {
40336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40337 }
40338 arg2 = static_cast< int >(val2);
40339 {
40340 arg3 = wxString_in_helper(obj2);
40341 if (arg3 == NULL) SWIG_fail;
40342 temp3 = true;
40343 }
40344 {
40345 PyThreadState* __tstate = wxPyBeginAllowThreads();
40346 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40347 wxPyEndAllowThreads(__tstate);
40348 if (PyErr_Occurred()) SWIG_fail;
40349 }
40350 resultobj = SWIG_Py_Void();
40351 {
40352 if (temp3)
40353 delete arg3;
40354 }
40355 return resultobj;
40356 fail:
40357 {
40358 if (temp3)
40359 delete arg3;
40360 }
40361 return NULL;
40362 }
40363
40364
40365 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40366 PyObject *resultobj = 0;
40367 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40368 wxWindow *arg2 = (wxWindow *) 0 ;
40369 void *argp1 = 0 ;
40370 int res1 = 0 ;
40371 void *argp2 = 0 ;
40372 int res2 = 0 ;
40373 PyObject * obj0 = 0 ;
40374 PyObject * obj1 = 0 ;
40375 char * kwnames[] = {
40376 (char *) "self",(char *) "window", NULL
40377 };
40378
40379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40381 if (!SWIG_IsOK(res1)) {
40382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40383 }
40384 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40385 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40386 if (!SWIG_IsOK(res2)) {
40387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40388 }
40389 arg2 = reinterpret_cast< wxWindow * >(argp2);
40390 {
40391 PyThreadState* __tstate = wxPyBeginAllowThreads();
40392 (arg1)->RemoveHelp(arg2);
40393 wxPyEndAllowThreads(__tstate);
40394 if (PyErr_Occurred()) SWIG_fail;
40395 }
40396 resultobj = SWIG_Py_Void();
40397 return resultobj;
40398 fail:
40399 return NULL;
40400 }
40401
40402
40403 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40404 PyObject *resultobj = 0;
40405 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40406 void *argp1 = 0 ;
40407 int res1 = 0 ;
40408 PyObject *swig_obj[1] ;
40409
40410 if (!args) SWIG_fail;
40411 swig_obj[0] = args;
40412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40413 if (!SWIG_IsOK(res1)) {
40414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40415 }
40416 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40417 {
40418 PyThreadState* __tstate = wxPyBeginAllowThreads();
40419 wxHelpProvider_Destroy(arg1);
40420 wxPyEndAllowThreads(__tstate);
40421 if (PyErr_Occurred()) SWIG_fail;
40422 }
40423 resultobj = SWIG_Py_Void();
40424 return resultobj;
40425 fail:
40426 return NULL;
40427 }
40428
40429
40430 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40431 PyObject *obj;
40432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40433 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40434 return SWIG_Py_Void();
40435 }
40436
40437 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40438 PyObject *resultobj = 0;
40439 wxSimpleHelpProvider *result = 0 ;
40440
40441 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40442 {
40443 PyThreadState* __tstate = wxPyBeginAllowThreads();
40444 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40445 wxPyEndAllowThreads(__tstate);
40446 if (PyErr_Occurred()) SWIG_fail;
40447 }
40448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40449 return resultobj;
40450 fail:
40451 return NULL;
40452 }
40453
40454
40455 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40456 PyObject *obj;
40457 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40458 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40459 return SWIG_Py_Void();
40460 }
40461
40462 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40463 return SWIG_Python_InitShadowInstance(args);
40464 }
40465
40466 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40467 PyObject *resultobj = 0;
40468 wxBitmap *arg1 = 0 ;
40469 wxCursor const &arg2_defvalue = wxNullCursor ;
40470 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40471 wxGenericDragImage *result = 0 ;
40472 void *argp1 = 0 ;
40473 int res1 = 0 ;
40474 void *argp2 = 0 ;
40475 int res2 = 0 ;
40476 PyObject * obj0 = 0 ;
40477 PyObject * obj1 = 0 ;
40478 char * kwnames[] = {
40479 (char *) "image",(char *) "cursor", NULL
40480 };
40481
40482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40483 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40484 if (!SWIG_IsOK(res1)) {
40485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40486 }
40487 if (!argp1) {
40488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40489 }
40490 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40491 if (obj1) {
40492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40493 if (!SWIG_IsOK(res2)) {
40494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40495 }
40496 if (!argp2) {
40497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40498 }
40499 arg2 = reinterpret_cast< wxCursor * >(argp2);
40500 }
40501 {
40502 if (!wxPyCheckForApp()) SWIG_fail;
40503 PyThreadState* __tstate = wxPyBeginAllowThreads();
40504 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40505 wxPyEndAllowThreads(__tstate);
40506 if (PyErr_Occurred()) SWIG_fail;
40507 }
40508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40509 return resultobj;
40510 fail:
40511 return NULL;
40512 }
40513
40514
40515 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40516 PyObject *resultobj = 0;
40517 wxIcon *arg1 = 0 ;
40518 wxCursor const &arg2_defvalue = wxNullCursor ;
40519 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40520 wxGenericDragImage *result = 0 ;
40521 void *argp1 = 0 ;
40522 int res1 = 0 ;
40523 void *argp2 = 0 ;
40524 int res2 = 0 ;
40525 PyObject * obj0 = 0 ;
40526 PyObject * obj1 = 0 ;
40527 char * kwnames[] = {
40528 (char *) "image",(char *) "cursor", NULL
40529 };
40530
40531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40532 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40533 if (!SWIG_IsOK(res1)) {
40534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40535 }
40536 if (!argp1) {
40537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40538 }
40539 arg1 = reinterpret_cast< wxIcon * >(argp1);
40540 if (obj1) {
40541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40542 if (!SWIG_IsOK(res2)) {
40543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40544 }
40545 if (!argp2) {
40546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40547 }
40548 arg2 = reinterpret_cast< wxCursor * >(argp2);
40549 }
40550 {
40551 if (!wxPyCheckForApp()) SWIG_fail;
40552 PyThreadState* __tstate = wxPyBeginAllowThreads();
40553 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40554 wxPyEndAllowThreads(__tstate);
40555 if (PyErr_Occurred()) SWIG_fail;
40556 }
40557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40558 return resultobj;
40559 fail:
40560 return NULL;
40561 }
40562
40563
40564 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40565 PyObject *resultobj = 0;
40566 wxString *arg1 = 0 ;
40567 wxCursor const &arg2_defvalue = wxNullCursor ;
40568 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40569 wxGenericDragImage *result = 0 ;
40570 bool temp1 = false ;
40571 void *argp2 = 0 ;
40572 int res2 = 0 ;
40573 PyObject * obj0 = 0 ;
40574 PyObject * obj1 = 0 ;
40575 char * kwnames[] = {
40576 (char *) "str",(char *) "cursor", NULL
40577 };
40578
40579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40580 {
40581 arg1 = wxString_in_helper(obj0);
40582 if (arg1 == NULL) SWIG_fail;
40583 temp1 = true;
40584 }
40585 if (obj1) {
40586 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40587 if (!SWIG_IsOK(res2)) {
40588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40589 }
40590 if (!argp2) {
40591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40592 }
40593 arg2 = reinterpret_cast< wxCursor * >(argp2);
40594 }
40595 {
40596 if (!wxPyCheckForApp()) SWIG_fail;
40597 PyThreadState* __tstate = wxPyBeginAllowThreads();
40598 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40599 wxPyEndAllowThreads(__tstate);
40600 if (PyErr_Occurred()) SWIG_fail;
40601 }
40602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40603 {
40604 if (temp1)
40605 delete arg1;
40606 }
40607 return resultobj;
40608 fail:
40609 {
40610 if (temp1)
40611 delete arg1;
40612 }
40613 return NULL;
40614 }
40615
40616
40617 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40618 PyObject *resultobj = 0;
40619 wxPyTreeCtrl *arg1 = 0 ;
40620 wxTreeItemId *arg2 = 0 ;
40621 wxGenericDragImage *result = 0 ;
40622 void *argp1 = 0 ;
40623 int res1 = 0 ;
40624 void *argp2 = 0 ;
40625 int res2 = 0 ;
40626 PyObject * obj0 = 0 ;
40627 PyObject * obj1 = 0 ;
40628 char * kwnames[] = {
40629 (char *) "treeCtrl",(char *) "id", NULL
40630 };
40631
40632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40633 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40634 if (!SWIG_IsOK(res1)) {
40635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40636 }
40637 if (!argp1) {
40638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40639 }
40640 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40642 if (!SWIG_IsOK(res2)) {
40643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40644 }
40645 if (!argp2) {
40646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40647 }
40648 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40649 {
40650 if (!wxPyCheckForApp()) SWIG_fail;
40651 PyThreadState* __tstate = wxPyBeginAllowThreads();
40652 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40653 wxPyEndAllowThreads(__tstate);
40654 if (PyErr_Occurred()) SWIG_fail;
40655 }
40656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40657 return resultobj;
40658 fail:
40659 return NULL;
40660 }
40661
40662
40663 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40664 PyObject *resultobj = 0;
40665 wxPyListCtrl *arg1 = 0 ;
40666 long arg2 ;
40667 wxGenericDragImage *result = 0 ;
40668 void *argp1 = 0 ;
40669 int res1 = 0 ;
40670 long val2 ;
40671 int ecode2 = 0 ;
40672 PyObject * obj0 = 0 ;
40673 PyObject * obj1 = 0 ;
40674 char * kwnames[] = {
40675 (char *) "listCtrl",(char *) "id", NULL
40676 };
40677
40678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40679 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40680 if (!SWIG_IsOK(res1)) {
40681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40682 }
40683 if (!argp1) {
40684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40685 }
40686 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40687 ecode2 = SWIG_AsVal_long(obj1, &val2);
40688 if (!SWIG_IsOK(ecode2)) {
40689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40690 }
40691 arg2 = static_cast< long >(val2);
40692 {
40693 if (!wxPyCheckForApp()) SWIG_fail;
40694 PyThreadState* __tstate = wxPyBeginAllowThreads();
40695 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40696 wxPyEndAllowThreads(__tstate);
40697 if (PyErr_Occurred()) SWIG_fail;
40698 }
40699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40700 return resultobj;
40701 fail:
40702 return NULL;
40703 }
40704
40705
40706 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40707 PyObject *resultobj = 0;
40708 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40709 void *argp1 = 0 ;
40710 int res1 = 0 ;
40711 PyObject *swig_obj[1] ;
40712
40713 if (!args) SWIG_fail;
40714 swig_obj[0] = args;
40715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40716 if (!SWIG_IsOK(res1)) {
40717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40718 }
40719 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40720 {
40721 PyThreadState* __tstate = wxPyBeginAllowThreads();
40722 delete arg1;
40723
40724 wxPyEndAllowThreads(__tstate);
40725 if (PyErr_Occurred()) SWIG_fail;
40726 }
40727 resultobj = SWIG_Py_Void();
40728 return resultobj;
40729 fail:
40730 return NULL;
40731 }
40732
40733
40734 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40735 PyObject *resultobj = 0;
40736 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40737 wxBitmap *arg2 = (wxBitmap *) 0 ;
40738 void *argp1 = 0 ;
40739 int res1 = 0 ;
40740 void *argp2 = 0 ;
40741 int res2 = 0 ;
40742 PyObject * obj0 = 0 ;
40743 PyObject * obj1 = 0 ;
40744 char * kwnames[] = {
40745 (char *) "self",(char *) "bitmap", NULL
40746 };
40747
40748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40750 if (!SWIG_IsOK(res1)) {
40751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40752 }
40753 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40754 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40755 if (!SWIG_IsOK(res2)) {
40756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40757 }
40758 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40759 {
40760 PyThreadState* __tstate = wxPyBeginAllowThreads();
40761 (arg1)->SetBackingBitmap(arg2);
40762 wxPyEndAllowThreads(__tstate);
40763 if (PyErr_Occurred()) SWIG_fail;
40764 }
40765 resultobj = SWIG_Py_Void();
40766 return resultobj;
40767 fail:
40768 return NULL;
40769 }
40770
40771
40772 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40773 PyObject *resultobj = 0;
40774 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40775 wxPoint *arg2 = 0 ;
40776 wxWindow *arg3 = (wxWindow *) 0 ;
40777 bool arg4 = (bool) false ;
40778 wxRect *arg5 = (wxRect *) NULL ;
40779 bool result;
40780 void *argp1 = 0 ;
40781 int res1 = 0 ;
40782 wxPoint temp2 ;
40783 void *argp3 = 0 ;
40784 int res3 = 0 ;
40785 bool val4 ;
40786 int ecode4 = 0 ;
40787 void *argp5 = 0 ;
40788 int res5 = 0 ;
40789 PyObject * obj0 = 0 ;
40790 PyObject * obj1 = 0 ;
40791 PyObject * obj2 = 0 ;
40792 PyObject * obj3 = 0 ;
40793 PyObject * obj4 = 0 ;
40794 char * kwnames[] = {
40795 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40796 };
40797
40798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40800 if (!SWIG_IsOK(res1)) {
40801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40802 }
40803 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40804 {
40805 arg2 = &temp2;
40806 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40807 }
40808 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40809 if (!SWIG_IsOK(res3)) {
40810 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40811 }
40812 arg3 = reinterpret_cast< wxWindow * >(argp3);
40813 if (obj3) {
40814 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40815 if (!SWIG_IsOK(ecode4)) {
40816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40817 }
40818 arg4 = static_cast< bool >(val4);
40819 }
40820 if (obj4) {
40821 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40822 if (!SWIG_IsOK(res5)) {
40823 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40824 }
40825 arg5 = reinterpret_cast< wxRect * >(argp5);
40826 }
40827 {
40828 PyThreadState* __tstate = wxPyBeginAllowThreads();
40829 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40830 wxPyEndAllowThreads(__tstate);
40831 if (PyErr_Occurred()) SWIG_fail;
40832 }
40833 {
40834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40835 }
40836 return resultobj;
40837 fail:
40838 return NULL;
40839 }
40840
40841
40842 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40843 PyObject *resultobj = 0;
40844 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40845 wxPoint *arg2 = 0 ;
40846 wxWindow *arg3 = (wxWindow *) 0 ;
40847 wxWindow *arg4 = (wxWindow *) 0 ;
40848 bool result;
40849 void *argp1 = 0 ;
40850 int res1 = 0 ;
40851 wxPoint temp2 ;
40852 void *argp3 = 0 ;
40853 int res3 = 0 ;
40854 void *argp4 = 0 ;
40855 int res4 = 0 ;
40856 PyObject * obj0 = 0 ;
40857 PyObject * obj1 = 0 ;
40858 PyObject * obj2 = 0 ;
40859 PyObject * obj3 = 0 ;
40860 char * kwnames[] = {
40861 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40862 };
40863
40864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40866 if (!SWIG_IsOK(res1)) {
40867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40868 }
40869 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40870 {
40871 arg2 = &temp2;
40872 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40873 }
40874 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40875 if (!SWIG_IsOK(res3)) {
40876 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40877 }
40878 arg3 = reinterpret_cast< wxWindow * >(argp3);
40879 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40880 if (!SWIG_IsOK(res4)) {
40881 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40882 }
40883 arg4 = reinterpret_cast< wxWindow * >(argp4);
40884 {
40885 PyThreadState* __tstate = wxPyBeginAllowThreads();
40886 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40887 wxPyEndAllowThreads(__tstate);
40888 if (PyErr_Occurred()) SWIG_fail;
40889 }
40890 {
40891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40892 }
40893 return resultobj;
40894 fail:
40895 return NULL;
40896 }
40897
40898
40899 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40900 PyObject *resultobj = 0;
40901 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40902 bool result;
40903 void *argp1 = 0 ;
40904 int res1 = 0 ;
40905 PyObject *swig_obj[1] ;
40906
40907 if (!args) SWIG_fail;
40908 swig_obj[0] = args;
40909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40910 if (!SWIG_IsOK(res1)) {
40911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40912 }
40913 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40914 {
40915 PyThreadState* __tstate = wxPyBeginAllowThreads();
40916 result = (bool)(arg1)->EndDrag();
40917 wxPyEndAllowThreads(__tstate);
40918 if (PyErr_Occurred()) SWIG_fail;
40919 }
40920 {
40921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40922 }
40923 return resultobj;
40924 fail:
40925 return NULL;
40926 }
40927
40928
40929 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40930 PyObject *resultobj = 0;
40931 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40932 wxPoint *arg2 = 0 ;
40933 bool result;
40934 void *argp1 = 0 ;
40935 int res1 = 0 ;
40936 wxPoint temp2 ;
40937 PyObject * obj0 = 0 ;
40938 PyObject * obj1 = 0 ;
40939 char * kwnames[] = {
40940 (char *) "self",(char *) "pt", NULL
40941 };
40942
40943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40945 if (!SWIG_IsOK(res1)) {
40946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40947 }
40948 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40949 {
40950 arg2 = &temp2;
40951 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40952 }
40953 {
40954 PyThreadState* __tstate = wxPyBeginAllowThreads();
40955 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40956 wxPyEndAllowThreads(__tstate);
40957 if (PyErr_Occurred()) SWIG_fail;
40958 }
40959 {
40960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40961 }
40962 return resultobj;
40963 fail:
40964 return NULL;
40965 }
40966
40967
40968 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40969 PyObject *resultobj = 0;
40970 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40971 bool result;
40972 void *argp1 = 0 ;
40973 int res1 = 0 ;
40974 PyObject *swig_obj[1] ;
40975
40976 if (!args) SWIG_fail;
40977 swig_obj[0] = args;
40978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40979 if (!SWIG_IsOK(res1)) {
40980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40981 }
40982 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40983 {
40984 PyThreadState* __tstate = wxPyBeginAllowThreads();
40985 result = (bool)(arg1)->Show();
40986 wxPyEndAllowThreads(__tstate);
40987 if (PyErr_Occurred()) SWIG_fail;
40988 }
40989 {
40990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40991 }
40992 return resultobj;
40993 fail:
40994 return NULL;
40995 }
40996
40997
40998 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40999 PyObject *resultobj = 0;
41000 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41001 bool result;
41002 void *argp1 = 0 ;
41003 int res1 = 0 ;
41004 PyObject *swig_obj[1] ;
41005
41006 if (!args) SWIG_fail;
41007 swig_obj[0] = args;
41008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41009 if (!SWIG_IsOK(res1)) {
41010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41011 }
41012 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41013 {
41014 PyThreadState* __tstate = wxPyBeginAllowThreads();
41015 result = (bool)(arg1)->Hide();
41016 wxPyEndAllowThreads(__tstate);
41017 if (PyErr_Occurred()) SWIG_fail;
41018 }
41019 {
41020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41021 }
41022 return resultobj;
41023 fail:
41024 return NULL;
41025 }
41026
41027
41028 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41029 PyObject *resultobj = 0;
41030 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41031 wxPoint *arg2 = 0 ;
41032 wxRect result;
41033 void *argp1 = 0 ;
41034 int res1 = 0 ;
41035 wxPoint temp2 ;
41036 PyObject * obj0 = 0 ;
41037 PyObject * obj1 = 0 ;
41038 char * kwnames[] = {
41039 (char *) "self",(char *) "pos", NULL
41040 };
41041
41042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41044 if (!SWIG_IsOK(res1)) {
41045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41046 }
41047 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41048 {
41049 arg2 = &temp2;
41050 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41051 }
41052 {
41053 PyThreadState* __tstate = wxPyBeginAllowThreads();
41054 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41055 wxPyEndAllowThreads(__tstate);
41056 if (PyErr_Occurred()) SWIG_fail;
41057 }
41058 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41059 return resultobj;
41060 fail:
41061 return NULL;
41062 }
41063
41064
41065 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41066 PyObject *resultobj = 0;
41067 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41068 wxDC *arg2 = 0 ;
41069 wxPoint *arg3 = 0 ;
41070 bool result;
41071 void *argp1 = 0 ;
41072 int res1 = 0 ;
41073 void *argp2 = 0 ;
41074 int res2 = 0 ;
41075 wxPoint temp3 ;
41076 PyObject * obj0 = 0 ;
41077 PyObject * obj1 = 0 ;
41078 PyObject * obj2 = 0 ;
41079 char * kwnames[] = {
41080 (char *) "self",(char *) "dc",(char *) "pos", NULL
41081 };
41082
41083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41085 if (!SWIG_IsOK(res1)) {
41086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41087 }
41088 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41090 if (!SWIG_IsOK(res2)) {
41091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41092 }
41093 if (!argp2) {
41094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41095 }
41096 arg2 = reinterpret_cast< wxDC * >(argp2);
41097 {
41098 arg3 = &temp3;
41099 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41100 }
41101 {
41102 PyThreadState* __tstate = wxPyBeginAllowThreads();
41103 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41104 wxPyEndAllowThreads(__tstate);
41105 if (PyErr_Occurred()) SWIG_fail;
41106 }
41107 {
41108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41109 }
41110 return resultobj;
41111 fail:
41112 return NULL;
41113 }
41114
41115
41116 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41117 PyObject *resultobj = 0;
41118 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41119 wxDC *arg2 = 0 ;
41120 wxMemoryDC *arg3 = 0 ;
41121 wxRect *arg4 = 0 ;
41122 wxRect *arg5 = 0 ;
41123 bool result;
41124 void *argp1 = 0 ;
41125 int res1 = 0 ;
41126 void *argp2 = 0 ;
41127 int res2 = 0 ;
41128 void *argp3 = 0 ;
41129 int res3 = 0 ;
41130 wxRect temp4 ;
41131 wxRect temp5 ;
41132 PyObject * obj0 = 0 ;
41133 PyObject * obj1 = 0 ;
41134 PyObject * obj2 = 0 ;
41135 PyObject * obj3 = 0 ;
41136 PyObject * obj4 = 0 ;
41137 char * kwnames[] = {
41138 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41139 };
41140
41141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41143 if (!SWIG_IsOK(res1)) {
41144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41145 }
41146 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41148 if (!SWIG_IsOK(res2)) {
41149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41150 }
41151 if (!argp2) {
41152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41153 }
41154 arg2 = reinterpret_cast< wxDC * >(argp2);
41155 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41156 if (!SWIG_IsOK(res3)) {
41157 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41158 }
41159 if (!argp3) {
41160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41161 }
41162 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41163 {
41164 arg4 = &temp4;
41165 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41166 }
41167 {
41168 arg5 = &temp5;
41169 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41170 }
41171 {
41172 PyThreadState* __tstate = wxPyBeginAllowThreads();
41173 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41174 wxPyEndAllowThreads(__tstate);
41175 if (PyErr_Occurred()) SWIG_fail;
41176 }
41177 {
41178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41179 }
41180 return resultobj;
41181 fail:
41182 return NULL;
41183 }
41184
41185
41186 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41187 PyObject *resultobj = 0;
41188 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41189 wxPoint *arg2 = 0 ;
41190 wxPoint *arg3 = 0 ;
41191 bool arg4 ;
41192 bool arg5 ;
41193 bool result;
41194 void *argp1 = 0 ;
41195 int res1 = 0 ;
41196 wxPoint temp2 ;
41197 wxPoint temp3 ;
41198 bool val4 ;
41199 int ecode4 = 0 ;
41200 bool val5 ;
41201 int ecode5 = 0 ;
41202 PyObject * obj0 = 0 ;
41203 PyObject * obj1 = 0 ;
41204 PyObject * obj2 = 0 ;
41205 PyObject * obj3 = 0 ;
41206 PyObject * obj4 = 0 ;
41207 char * kwnames[] = {
41208 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41209 };
41210
41211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41213 if (!SWIG_IsOK(res1)) {
41214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41215 }
41216 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41217 {
41218 arg2 = &temp2;
41219 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41220 }
41221 {
41222 arg3 = &temp3;
41223 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41224 }
41225 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41226 if (!SWIG_IsOK(ecode4)) {
41227 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41228 }
41229 arg4 = static_cast< bool >(val4);
41230 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41231 if (!SWIG_IsOK(ecode5)) {
41232 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41233 }
41234 arg5 = static_cast< bool >(val5);
41235 {
41236 PyThreadState* __tstate = wxPyBeginAllowThreads();
41237 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41238 wxPyEndAllowThreads(__tstate);
41239 if (PyErr_Occurred()) SWIG_fail;
41240 }
41241 {
41242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41243 }
41244 return resultobj;
41245 fail:
41246 return NULL;
41247 }
41248
41249
41250 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41251 PyObject *obj;
41252 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41253 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41254 return SWIG_Py_Void();
41255 }
41256
41257 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41258 return SWIG_Python_InitShadowInstance(args);
41259 }
41260
41261 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41262 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41263 return 1;
41264 }
41265
41266
41267 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41268 PyObject *pyobj = 0;
41269
41270 {
41271 #if wxUSE_UNICODE
41272 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41273 #else
41274 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41275 #endif
41276 }
41277 return pyobj;
41278 }
41279
41280
41281 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41282 PyObject *resultobj = 0;
41283 wxWindow *arg1 = (wxWindow *) 0 ;
41284 int arg2 = (int) -1 ;
41285 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41286 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41287 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41288 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41289 wxSize const &arg5_defvalue = wxDefaultSize ;
41290 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41291 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41292 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41293 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41294 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41295 wxString *arg8 = (wxString *) &arg8_defvalue ;
41296 wxDatePickerCtrl *result = 0 ;
41297 void *argp1 = 0 ;
41298 int res1 = 0 ;
41299 int val2 ;
41300 int ecode2 = 0 ;
41301 void *argp3 = 0 ;
41302 int res3 = 0 ;
41303 wxPoint temp4 ;
41304 wxSize temp5 ;
41305 long val6 ;
41306 int ecode6 = 0 ;
41307 void *argp7 = 0 ;
41308 int res7 = 0 ;
41309 bool temp8 = false ;
41310 PyObject * obj0 = 0 ;
41311 PyObject * obj1 = 0 ;
41312 PyObject * obj2 = 0 ;
41313 PyObject * obj3 = 0 ;
41314 PyObject * obj4 = 0 ;
41315 PyObject * obj5 = 0 ;
41316 PyObject * obj6 = 0 ;
41317 PyObject * obj7 = 0 ;
41318 char * kwnames[] = {
41319 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41320 };
41321
41322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41324 if (!SWIG_IsOK(res1)) {
41325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41326 }
41327 arg1 = reinterpret_cast< wxWindow * >(argp1);
41328 if (obj1) {
41329 ecode2 = SWIG_AsVal_int(obj1, &val2);
41330 if (!SWIG_IsOK(ecode2)) {
41331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41332 }
41333 arg2 = static_cast< int >(val2);
41334 }
41335 if (obj2) {
41336 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41337 if (!SWIG_IsOK(res3)) {
41338 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41339 }
41340 if (!argp3) {
41341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41342 }
41343 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41344 }
41345 if (obj3) {
41346 {
41347 arg4 = &temp4;
41348 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41349 }
41350 }
41351 if (obj4) {
41352 {
41353 arg5 = &temp5;
41354 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41355 }
41356 }
41357 if (obj5) {
41358 ecode6 = SWIG_AsVal_long(obj5, &val6);
41359 if (!SWIG_IsOK(ecode6)) {
41360 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41361 }
41362 arg6 = static_cast< long >(val6);
41363 }
41364 if (obj6) {
41365 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41366 if (!SWIG_IsOK(res7)) {
41367 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41368 }
41369 if (!argp7) {
41370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41371 }
41372 arg7 = reinterpret_cast< wxValidator * >(argp7);
41373 }
41374 if (obj7) {
41375 {
41376 arg8 = wxString_in_helper(obj7);
41377 if (arg8 == NULL) SWIG_fail;
41378 temp8 = true;
41379 }
41380 }
41381 {
41382 if (!wxPyCheckForApp()) SWIG_fail;
41383 PyThreadState* __tstate = wxPyBeginAllowThreads();
41384 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41385 wxPyEndAllowThreads(__tstate);
41386 if (PyErr_Occurred()) SWIG_fail;
41387 }
41388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41389 {
41390 if (temp8)
41391 delete arg8;
41392 }
41393 return resultobj;
41394 fail:
41395 {
41396 if (temp8)
41397 delete arg8;
41398 }
41399 return NULL;
41400 }
41401
41402
41403 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41404 PyObject *resultobj = 0;
41405 wxDatePickerCtrl *result = 0 ;
41406
41407 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41408 {
41409 if (!wxPyCheckForApp()) SWIG_fail;
41410 PyThreadState* __tstate = wxPyBeginAllowThreads();
41411 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41412 wxPyEndAllowThreads(__tstate);
41413 if (PyErr_Occurred()) SWIG_fail;
41414 }
41415 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41416 return resultobj;
41417 fail:
41418 return NULL;
41419 }
41420
41421
41422 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41423 PyObject *resultobj = 0;
41424 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41425 wxWindow *arg2 = (wxWindow *) 0 ;
41426 int arg3 = (int) -1 ;
41427 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41428 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41429 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41430 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41431 wxSize const &arg6_defvalue = wxDefaultSize ;
41432 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41433 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41434 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41435 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41436 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41437 wxString *arg9 = (wxString *) &arg9_defvalue ;
41438 bool result;
41439 void *argp1 = 0 ;
41440 int res1 = 0 ;
41441 void *argp2 = 0 ;
41442 int res2 = 0 ;
41443 int val3 ;
41444 int ecode3 = 0 ;
41445 void *argp4 = 0 ;
41446 int res4 = 0 ;
41447 wxPoint temp5 ;
41448 wxSize temp6 ;
41449 long val7 ;
41450 int ecode7 = 0 ;
41451 void *argp8 = 0 ;
41452 int res8 = 0 ;
41453 bool temp9 = false ;
41454 PyObject * obj0 = 0 ;
41455 PyObject * obj1 = 0 ;
41456 PyObject * obj2 = 0 ;
41457 PyObject * obj3 = 0 ;
41458 PyObject * obj4 = 0 ;
41459 PyObject * obj5 = 0 ;
41460 PyObject * obj6 = 0 ;
41461 PyObject * obj7 = 0 ;
41462 PyObject * obj8 = 0 ;
41463 char * kwnames[] = {
41464 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41465 };
41466
41467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41469 if (!SWIG_IsOK(res1)) {
41470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41471 }
41472 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41473 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41474 if (!SWIG_IsOK(res2)) {
41475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41476 }
41477 arg2 = reinterpret_cast< wxWindow * >(argp2);
41478 if (obj2) {
41479 ecode3 = SWIG_AsVal_int(obj2, &val3);
41480 if (!SWIG_IsOK(ecode3)) {
41481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41482 }
41483 arg3 = static_cast< int >(val3);
41484 }
41485 if (obj3) {
41486 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41487 if (!SWIG_IsOK(res4)) {
41488 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41489 }
41490 if (!argp4) {
41491 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41492 }
41493 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41494 }
41495 if (obj4) {
41496 {
41497 arg5 = &temp5;
41498 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41499 }
41500 }
41501 if (obj5) {
41502 {
41503 arg6 = &temp6;
41504 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41505 }
41506 }
41507 if (obj6) {
41508 ecode7 = SWIG_AsVal_long(obj6, &val7);
41509 if (!SWIG_IsOK(ecode7)) {
41510 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41511 }
41512 arg7 = static_cast< long >(val7);
41513 }
41514 if (obj7) {
41515 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41516 if (!SWIG_IsOK(res8)) {
41517 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41518 }
41519 if (!argp8) {
41520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41521 }
41522 arg8 = reinterpret_cast< wxValidator * >(argp8);
41523 }
41524 if (obj8) {
41525 {
41526 arg9 = wxString_in_helper(obj8);
41527 if (arg9 == NULL) SWIG_fail;
41528 temp9 = true;
41529 }
41530 }
41531 {
41532 PyThreadState* __tstate = wxPyBeginAllowThreads();
41533 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41534 wxPyEndAllowThreads(__tstate);
41535 if (PyErr_Occurred()) SWIG_fail;
41536 }
41537 {
41538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41539 }
41540 {
41541 if (temp9)
41542 delete arg9;
41543 }
41544 return resultobj;
41545 fail:
41546 {
41547 if (temp9)
41548 delete arg9;
41549 }
41550 return NULL;
41551 }
41552
41553
41554 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41555 PyObject *resultobj = 0;
41556 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41557 wxDateTime *arg2 = 0 ;
41558 void *argp1 = 0 ;
41559 int res1 = 0 ;
41560 void *argp2 = 0 ;
41561 int res2 = 0 ;
41562 PyObject * obj0 = 0 ;
41563 PyObject * obj1 = 0 ;
41564 char * kwnames[] = {
41565 (char *) "self",(char *) "dt", NULL
41566 };
41567
41568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) 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_SetValue" "', 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_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41577 }
41578 if (!argp2) {
41579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41580 }
41581 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41582 {
41583 PyThreadState* __tstate = wxPyBeginAllowThreads();
41584 (arg1)->SetValue((wxDateTime const &)*arg2);
41585 wxPyEndAllowThreads(__tstate);
41586 if (PyErr_Occurred()) SWIG_fail;
41587 }
41588 resultobj = SWIG_Py_Void();
41589 return resultobj;
41590 fail:
41591 return NULL;
41592 }
41593
41594
41595 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41596 PyObject *resultobj = 0;
41597 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41598 wxDateTime result;
41599 void *argp1 = 0 ;
41600 int res1 = 0 ;
41601 PyObject *swig_obj[1] ;
41602
41603 if (!args) SWIG_fail;
41604 swig_obj[0] = args;
41605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41606 if (!SWIG_IsOK(res1)) {
41607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41608 }
41609 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41610 {
41611 PyThreadState* __tstate = wxPyBeginAllowThreads();
41612 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41613 wxPyEndAllowThreads(__tstate);
41614 if (PyErr_Occurred()) SWIG_fail;
41615 }
41616 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41617 return resultobj;
41618 fail:
41619 return NULL;
41620 }
41621
41622
41623 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41624 PyObject *resultobj = 0;
41625 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41626 wxDateTime *arg2 = 0 ;
41627 wxDateTime *arg3 = 0 ;
41628 void *argp1 = 0 ;
41629 int res1 = 0 ;
41630 void *argp2 = 0 ;
41631 int res2 = 0 ;
41632 void *argp3 = 0 ;
41633 int res3 = 0 ;
41634 PyObject * obj0 = 0 ;
41635 PyObject * obj1 = 0 ;
41636 PyObject * obj2 = 0 ;
41637 char * kwnames[] = {
41638 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41639 };
41640
41641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41643 if (!SWIG_IsOK(res1)) {
41644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41645 }
41646 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41647 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41648 if (!SWIG_IsOK(res2)) {
41649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41650 }
41651 if (!argp2) {
41652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41653 }
41654 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41655 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41656 if (!SWIG_IsOK(res3)) {
41657 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41658 }
41659 if (!argp3) {
41660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41661 }
41662 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41663 {
41664 PyThreadState* __tstate = wxPyBeginAllowThreads();
41665 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41666 wxPyEndAllowThreads(__tstate);
41667 if (PyErr_Occurred()) SWIG_fail;
41668 }
41669 resultobj = SWIG_Py_Void();
41670 return resultobj;
41671 fail:
41672 return NULL;
41673 }
41674
41675
41676 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41677 PyObject *resultobj = 0;
41678 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41679 wxDateTime result;
41680 void *argp1 = 0 ;
41681 int res1 = 0 ;
41682 PyObject *swig_obj[1] ;
41683
41684 if (!args) SWIG_fail;
41685 swig_obj[0] = args;
41686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41687 if (!SWIG_IsOK(res1)) {
41688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41689 }
41690 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41691 {
41692 PyThreadState* __tstate = wxPyBeginAllowThreads();
41693 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41694 wxPyEndAllowThreads(__tstate);
41695 if (PyErr_Occurred()) SWIG_fail;
41696 }
41697 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41698 return resultobj;
41699 fail:
41700 return NULL;
41701 }
41702
41703
41704 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41705 PyObject *resultobj = 0;
41706 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41707 wxDateTime result;
41708 void *argp1 = 0 ;
41709 int res1 = 0 ;
41710 PyObject *swig_obj[1] ;
41711
41712 if (!args) SWIG_fail;
41713 swig_obj[0] = args;
41714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41715 if (!SWIG_IsOK(res1)) {
41716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41717 }
41718 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41719 {
41720 PyThreadState* __tstate = wxPyBeginAllowThreads();
41721 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41722 wxPyEndAllowThreads(__tstate);
41723 if (PyErr_Occurred()) SWIG_fail;
41724 }
41725 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41726 return resultobj;
41727 fail:
41728 return NULL;
41729 }
41730
41731
41732 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41733 PyObject *obj;
41734 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41735 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41736 return SWIG_Py_Void();
41737 }
41738
41739 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41740 return SWIG_Python_InitShadowInstance(args);
41741 }
41742
41743 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41744 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41745 return 1;
41746 }
41747
41748
41749 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41750 PyObject *pyobj = 0;
41751
41752 {
41753 #if wxUSE_UNICODE
41754 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41755 #else
41756 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41757 #endif
41758 }
41759 return pyobj;
41760 }
41761
41762
41763 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41764 PyObject *resultobj = 0;
41765 wxWindow *arg1 = (wxWindow *) 0 ;
41766 int arg2 ;
41767 wxString *arg3 = 0 ;
41768 wxString *arg4 = 0 ;
41769 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41770 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41771 wxSize const &arg6_defvalue = wxDefaultSize ;
41772 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41773 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41774 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41775 wxString *arg8 = (wxString *) &arg8_defvalue ;
41776 wxHyperlinkCtrl *result = 0 ;
41777 void *argp1 = 0 ;
41778 int res1 = 0 ;
41779 int val2 ;
41780 int ecode2 = 0 ;
41781 bool temp3 = false ;
41782 bool temp4 = false ;
41783 wxPoint temp5 ;
41784 wxSize temp6 ;
41785 long val7 ;
41786 int ecode7 = 0 ;
41787 bool temp8 = false ;
41788 PyObject * obj0 = 0 ;
41789 PyObject * obj1 = 0 ;
41790 PyObject * obj2 = 0 ;
41791 PyObject * obj3 = 0 ;
41792 PyObject * obj4 = 0 ;
41793 PyObject * obj5 = 0 ;
41794 PyObject * obj6 = 0 ;
41795 PyObject * obj7 = 0 ;
41796 char * kwnames[] = {
41797 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41798 };
41799
41800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41802 if (!SWIG_IsOK(res1)) {
41803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41804 }
41805 arg1 = reinterpret_cast< wxWindow * >(argp1);
41806 ecode2 = SWIG_AsVal_int(obj1, &val2);
41807 if (!SWIG_IsOK(ecode2)) {
41808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41809 }
41810 arg2 = static_cast< int >(val2);
41811 {
41812 arg3 = wxString_in_helper(obj2);
41813 if (arg3 == NULL) SWIG_fail;
41814 temp3 = true;
41815 }
41816 {
41817 arg4 = wxString_in_helper(obj3);
41818 if (arg4 == NULL) SWIG_fail;
41819 temp4 = true;
41820 }
41821 if (obj4) {
41822 {
41823 arg5 = &temp5;
41824 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41825 }
41826 }
41827 if (obj5) {
41828 {
41829 arg6 = &temp6;
41830 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41831 }
41832 }
41833 if (obj6) {
41834 ecode7 = SWIG_AsVal_long(obj6, &val7);
41835 if (!SWIG_IsOK(ecode7)) {
41836 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41837 }
41838 arg7 = static_cast< long >(val7);
41839 }
41840 if (obj7) {
41841 {
41842 arg8 = wxString_in_helper(obj7);
41843 if (arg8 == NULL) SWIG_fail;
41844 temp8 = true;
41845 }
41846 }
41847 {
41848 if (!wxPyCheckForApp()) SWIG_fail;
41849 PyThreadState* __tstate = wxPyBeginAllowThreads();
41850 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41851 wxPyEndAllowThreads(__tstate);
41852 if (PyErr_Occurred()) SWIG_fail;
41853 }
41854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41855 {
41856 if (temp3)
41857 delete arg3;
41858 }
41859 {
41860 if (temp4)
41861 delete arg4;
41862 }
41863 {
41864 if (temp8)
41865 delete arg8;
41866 }
41867 return resultobj;
41868 fail:
41869 {
41870 if (temp3)
41871 delete arg3;
41872 }
41873 {
41874 if (temp4)
41875 delete arg4;
41876 }
41877 {
41878 if (temp8)
41879 delete arg8;
41880 }
41881 return NULL;
41882 }
41883
41884
41885 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41886 PyObject *resultobj = 0;
41887 wxHyperlinkCtrl *result = 0 ;
41888
41889 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41890 {
41891 if (!wxPyCheckForApp()) SWIG_fail;
41892 PyThreadState* __tstate = wxPyBeginAllowThreads();
41893 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41894 wxPyEndAllowThreads(__tstate);
41895 if (PyErr_Occurred()) SWIG_fail;
41896 }
41897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41898 return resultobj;
41899 fail:
41900 return NULL;
41901 }
41902
41903
41904 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41905 PyObject *resultobj = 0;
41906 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41907 wxWindow *arg2 = (wxWindow *) 0 ;
41908 int arg3 ;
41909 wxString *arg4 = 0 ;
41910 wxString *arg5 = 0 ;
41911 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41912 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41913 wxSize const &arg7_defvalue = wxDefaultSize ;
41914 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41915 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41916 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41917 wxString *arg9 = (wxString *) &arg9_defvalue ;
41918 bool result;
41919 void *argp1 = 0 ;
41920 int res1 = 0 ;
41921 void *argp2 = 0 ;
41922 int res2 = 0 ;
41923 int val3 ;
41924 int ecode3 = 0 ;
41925 bool temp4 = false ;
41926 bool temp5 = false ;
41927 wxPoint temp6 ;
41928 wxSize temp7 ;
41929 long val8 ;
41930 int ecode8 = 0 ;
41931 bool temp9 = false ;
41932 PyObject * obj0 = 0 ;
41933 PyObject * obj1 = 0 ;
41934 PyObject * obj2 = 0 ;
41935 PyObject * obj3 = 0 ;
41936 PyObject * obj4 = 0 ;
41937 PyObject * obj5 = 0 ;
41938 PyObject * obj6 = 0 ;
41939 PyObject * obj7 = 0 ;
41940 PyObject * obj8 = 0 ;
41941 char * kwnames[] = {
41942 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41943 };
41944
41945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41947 if (!SWIG_IsOK(res1)) {
41948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41949 }
41950 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41952 if (!SWIG_IsOK(res2)) {
41953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41954 }
41955 arg2 = reinterpret_cast< wxWindow * >(argp2);
41956 ecode3 = SWIG_AsVal_int(obj2, &val3);
41957 if (!SWIG_IsOK(ecode3)) {
41958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41959 }
41960 arg3 = static_cast< int >(val3);
41961 {
41962 arg4 = wxString_in_helper(obj3);
41963 if (arg4 == NULL) SWIG_fail;
41964 temp4 = true;
41965 }
41966 {
41967 arg5 = wxString_in_helper(obj4);
41968 if (arg5 == NULL) SWIG_fail;
41969 temp5 = true;
41970 }
41971 if (obj5) {
41972 {
41973 arg6 = &temp6;
41974 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41975 }
41976 }
41977 if (obj6) {
41978 {
41979 arg7 = &temp7;
41980 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41981 }
41982 }
41983 if (obj7) {
41984 ecode8 = SWIG_AsVal_long(obj7, &val8);
41985 if (!SWIG_IsOK(ecode8)) {
41986 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41987 }
41988 arg8 = static_cast< long >(val8);
41989 }
41990 if (obj8) {
41991 {
41992 arg9 = wxString_in_helper(obj8);
41993 if (arg9 == NULL) SWIG_fail;
41994 temp9 = true;
41995 }
41996 }
41997 {
41998 PyThreadState* __tstate = wxPyBeginAllowThreads();
41999 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42000 wxPyEndAllowThreads(__tstate);
42001 if (PyErr_Occurred()) SWIG_fail;
42002 }
42003 {
42004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42005 }
42006 {
42007 if (temp4)
42008 delete arg4;
42009 }
42010 {
42011 if (temp5)
42012 delete arg5;
42013 }
42014 {
42015 if (temp9)
42016 delete arg9;
42017 }
42018 return resultobj;
42019 fail:
42020 {
42021 if (temp4)
42022 delete arg4;
42023 }
42024 {
42025 if (temp5)
42026 delete arg5;
42027 }
42028 {
42029 if (temp9)
42030 delete arg9;
42031 }
42032 return NULL;
42033 }
42034
42035
42036 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42037 PyObject *resultobj = 0;
42038 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42039 wxColour result;
42040 void *argp1 = 0 ;
42041 int res1 = 0 ;
42042 PyObject *swig_obj[1] ;
42043
42044 if (!args) SWIG_fail;
42045 swig_obj[0] = args;
42046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42047 if (!SWIG_IsOK(res1)) {
42048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42049 }
42050 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42051 {
42052 PyThreadState* __tstate = wxPyBeginAllowThreads();
42053 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42054 wxPyEndAllowThreads(__tstate);
42055 if (PyErr_Occurred()) SWIG_fail;
42056 }
42057 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42058 return resultobj;
42059 fail:
42060 return NULL;
42061 }
42062
42063
42064 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42065 PyObject *resultobj = 0;
42066 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42067 wxColour *arg2 = 0 ;
42068 void *argp1 = 0 ;
42069 int res1 = 0 ;
42070 wxColour temp2 ;
42071 PyObject * obj0 = 0 ;
42072 PyObject * obj1 = 0 ;
42073 char * kwnames[] = {
42074 (char *) "self",(char *) "colour", NULL
42075 };
42076
42077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42079 if (!SWIG_IsOK(res1)) {
42080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42081 }
42082 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42083 {
42084 arg2 = &temp2;
42085 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42086 }
42087 {
42088 PyThreadState* __tstate = wxPyBeginAllowThreads();
42089 (arg1)->SetHoverColour((wxColour const &)*arg2);
42090 wxPyEndAllowThreads(__tstate);
42091 if (PyErr_Occurred()) SWIG_fail;
42092 }
42093 resultobj = SWIG_Py_Void();
42094 return resultobj;
42095 fail:
42096 return NULL;
42097 }
42098
42099
42100 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42101 PyObject *resultobj = 0;
42102 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42103 wxColour result;
42104 void *argp1 = 0 ;
42105 int res1 = 0 ;
42106 PyObject *swig_obj[1] ;
42107
42108 if (!args) SWIG_fail;
42109 swig_obj[0] = args;
42110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42111 if (!SWIG_IsOK(res1)) {
42112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42113 }
42114 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42115 {
42116 PyThreadState* __tstate = wxPyBeginAllowThreads();
42117 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42118 wxPyEndAllowThreads(__tstate);
42119 if (PyErr_Occurred()) SWIG_fail;
42120 }
42121 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42122 return resultobj;
42123 fail:
42124 return NULL;
42125 }
42126
42127
42128 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42129 PyObject *resultobj = 0;
42130 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42131 wxColour *arg2 = 0 ;
42132 void *argp1 = 0 ;
42133 int res1 = 0 ;
42134 wxColour temp2 ;
42135 PyObject * obj0 = 0 ;
42136 PyObject * obj1 = 0 ;
42137 char * kwnames[] = {
42138 (char *) "self",(char *) "colour", NULL
42139 };
42140
42141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42143 if (!SWIG_IsOK(res1)) {
42144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42145 }
42146 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42147 {
42148 arg2 = &temp2;
42149 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42150 }
42151 {
42152 PyThreadState* __tstate = wxPyBeginAllowThreads();
42153 (arg1)->SetNormalColour((wxColour const &)*arg2);
42154 wxPyEndAllowThreads(__tstate);
42155 if (PyErr_Occurred()) SWIG_fail;
42156 }
42157 resultobj = SWIG_Py_Void();
42158 return resultobj;
42159 fail:
42160 return NULL;
42161 }
42162
42163
42164 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42165 PyObject *resultobj = 0;
42166 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42167 wxColour result;
42168 void *argp1 = 0 ;
42169 int res1 = 0 ;
42170 PyObject *swig_obj[1] ;
42171
42172 if (!args) SWIG_fail;
42173 swig_obj[0] = args;
42174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42175 if (!SWIG_IsOK(res1)) {
42176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42177 }
42178 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42179 {
42180 PyThreadState* __tstate = wxPyBeginAllowThreads();
42181 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42182 wxPyEndAllowThreads(__tstate);
42183 if (PyErr_Occurred()) SWIG_fail;
42184 }
42185 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42186 return resultobj;
42187 fail:
42188 return NULL;
42189 }
42190
42191
42192 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42193 PyObject *resultobj = 0;
42194 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42195 wxColour *arg2 = 0 ;
42196 void *argp1 = 0 ;
42197 int res1 = 0 ;
42198 wxColour temp2 ;
42199 PyObject * obj0 = 0 ;
42200 PyObject * obj1 = 0 ;
42201 char * kwnames[] = {
42202 (char *) "self",(char *) "colour", NULL
42203 };
42204
42205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42207 if (!SWIG_IsOK(res1)) {
42208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42209 }
42210 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42211 {
42212 arg2 = &temp2;
42213 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42214 }
42215 {
42216 PyThreadState* __tstate = wxPyBeginAllowThreads();
42217 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42218 wxPyEndAllowThreads(__tstate);
42219 if (PyErr_Occurred()) SWIG_fail;
42220 }
42221 resultobj = SWIG_Py_Void();
42222 return resultobj;
42223 fail:
42224 return NULL;
42225 }
42226
42227
42228 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42229 PyObject *resultobj = 0;
42230 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42231 wxString result;
42232 void *argp1 = 0 ;
42233 int res1 = 0 ;
42234 PyObject *swig_obj[1] ;
42235
42236 if (!args) SWIG_fail;
42237 swig_obj[0] = args;
42238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42239 if (!SWIG_IsOK(res1)) {
42240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42241 }
42242 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42243 {
42244 PyThreadState* __tstate = wxPyBeginAllowThreads();
42245 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42246 wxPyEndAllowThreads(__tstate);
42247 if (PyErr_Occurred()) SWIG_fail;
42248 }
42249 {
42250 #if wxUSE_UNICODE
42251 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42252 #else
42253 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42254 #endif
42255 }
42256 return resultobj;
42257 fail:
42258 return NULL;
42259 }
42260
42261
42262 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42263 PyObject *resultobj = 0;
42264 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42265 wxString *arg2 = 0 ;
42266 void *argp1 = 0 ;
42267 int res1 = 0 ;
42268 bool temp2 = false ;
42269 PyObject * obj0 = 0 ;
42270 PyObject * obj1 = 0 ;
42271 char * kwnames[] = {
42272 (char *) "self",(char *) "url", NULL
42273 };
42274
42275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42277 if (!SWIG_IsOK(res1)) {
42278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42279 }
42280 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42281 {
42282 arg2 = wxString_in_helper(obj1);
42283 if (arg2 == NULL) SWIG_fail;
42284 temp2 = true;
42285 }
42286 {
42287 PyThreadState* __tstate = wxPyBeginAllowThreads();
42288 (arg1)->SetURL((wxString const &)*arg2);
42289 wxPyEndAllowThreads(__tstate);
42290 if (PyErr_Occurred()) SWIG_fail;
42291 }
42292 resultobj = SWIG_Py_Void();
42293 {
42294 if (temp2)
42295 delete arg2;
42296 }
42297 return resultobj;
42298 fail:
42299 {
42300 if (temp2)
42301 delete arg2;
42302 }
42303 return NULL;
42304 }
42305
42306
42307 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42308 PyObject *resultobj = 0;
42309 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42310 bool arg2 = (bool) true ;
42311 void *argp1 = 0 ;
42312 int res1 = 0 ;
42313 bool val2 ;
42314 int ecode2 = 0 ;
42315 PyObject * obj0 = 0 ;
42316 PyObject * obj1 = 0 ;
42317 char * kwnames[] = {
42318 (char *) "self",(char *) "visited", NULL
42319 };
42320
42321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42323 if (!SWIG_IsOK(res1)) {
42324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42325 }
42326 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42327 if (obj1) {
42328 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42329 if (!SWIG_IsOK(ecode2)) {
42330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42331 }
42332 arg2 = static_cast< bool >(val2);
42333 }
42334 {
42335 PyThreadState* __tstate = wxPyBeginAllowThreads();
42336 (arg1)->SetVisited(arg2);
42337 wxPyEndAllowThreads(__tstate);
42338 if (PyErr_Occurred()) SWIG_fail;
42339 }
42340 resultobj = SWIG_Py_Void();
42341 return resultobj;
42342 fail:
42343 return NULL;
42344 }
42345
42346
42347 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42348 PyObject *resultobj = 0;
42349 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42350 bool result;
42351 void *argp1 = 0 ;
42352 int res1 = 0 ;
42353 PyObject *swig_obj[1] ;
42354
42355 if (!args) SWIG_fail;
42356 swig_obj[0] = args;
42357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42358 if (!SWIG_IsOK(res1)) {
42359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42360 }
42361 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42362 {
42363 PyThreadState* __tstate = wxPyBeginAllowThreads();
42364 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42365 wxPyEndAllowThreads(__tstate);
42366 if (PyErr_Occurred()) SWIG_fail;
42367 }
42368 {
42369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42370 }
42371 return resultobj;
42372 fail:
42373 return NULL;
42374 }
42375
42376
42377 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42378 PyObject *obj;
42379 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42380 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42381 return SWIG_Py_Void();
42382 }
42383
42384 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42385 return SWIG_Python_InitShadowInstance(args);
42386 }
42387
42388 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42389 PyObject *resultobj = 0;
42390 wxObject *arg1 = (wxObject *) 0 ;
42391 int arg2 ;
42392 wxString *arg3 = 0 ;
42393 wxHyperlinkEvent *result = 0 ;
42394 void *argp1 = 0 ;
42395 int res1 = 0 ;
42396 int val2 ;
42397 int ecode2 = 0 ;
42398 bool temp3 = false ;
42399 PyObject * obj0 = 0 ;
42400 PyObject * obj1 = 0 ;
42401 PyObject * obj2 = 0 ;
42402 char * kwnames[] = {
42403 (char *) "generator",(char *) "id",(char *) "url", NULL
42404 };
42405
42406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42408 if (!SWIG_IsOK(res1)) {
42409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42410 }
42411 arg1 = reinterpret_cast< wxObject * >(argp1);
42412 ecode2 = SWIG_AsVal_int(obj1, &val2);
42413 if (!SWIG_IsOK(ecode2)) {
42414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42415 }
42416 arg2 = static_cast< int >(val2);
42417 {
42418 arg3 = wxString_in_helper(obj2);
42419 if (arg3 == NULL) SWIG_fail;
42420 temp3 = true;
42421 }
42422 {
42423 PyThreadState* __tstate = wxPyBeginAllowThreads();
42424 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42425 wxPyEndAllowThreads(__tstate);
42426 if (PyErr_Occurred()) SWIG_fail;
42427 }
42428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42429 {
42430 if (temp3)
42431 delete arg3;
42432 }
42433 return resultobj;
42434 fail:
42435 {
42436 if (temp3)
42437 delete arg3;
42438 }
42439 return NULL;
42440 }
42441
42442
42443 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42444 PyObject *resultobj = 0;
42445 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42446 wxString result;
42447 void *argp1 = 0 ;
42448 int res1 = 0 ;
42449 PyObject *swig_obj[1] ;
42450
42451 if (!args) SWIG_fail;
42452 swig_obj[0] = args;
42453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42454 if (!SWIG_IsOK(res1)) {
42455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42456 }
42457 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42458 {
42459 PyThreadState* __tstate = wxPyBeginAllowThreads();
42460 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42461 wxPyEndAllowThreads(__tstate);
42462 if (PyErr_Occurred()) SWIG_fail;
42463 }
42464 {
42465 #if wxUSE_UNICODE
42466 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42467 #else
42468 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42469 #endif
42470 }
42471 return resultobj;
42472 fail:
42473 return NULL;
42474 }
42475
42476
42477 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42478 PyObject *resultobj = 0;
42479 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42480 wxString *arg2 = 0 ;
42481 void *argp1 = 0 ;
42482 int res1 = 0 ;
42483 bool temp2 = false ;
42484 PyObject * obj0 = 0 ;
42485 PyObject * obj1 = 0 ;
42486 char * kwnames[] = {
42487 (char *) "self",(char *) "url", NULL
42488 };
42489
42490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42492 if (!SWIG_IsOK(res1)) {
42493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42494 }
42495 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42496 {
42497 arg2 = wxString_in_helper(obj1);
42498 if (arg2 == NULL) SWIG_fail;
42499 temp2 = true;
42500 }
42501 {
42502 PyThreadState* __tstate = wxPyBeginAllowThreads();
42503 (arg1)->SetURL((wxString const &)*arg2);
42504 wxPyEndAllowThreads(__tstate);
42505 if (PyErr_Occurred()) SWIG_fail;
42506 }
42507 resultobj = SWIG_Py_Void();
42508 {
42509 if (temp2)
42510 delete arg2;
42511 }
42512 return resultobj;
42513 fail:
42514 {
42515 if (temp2)
42516 delete arg2;
42517 }
42518 return NULL;
42519 }
42520
42521
42522 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42523 PyObject *obj;
42524 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42525 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42526 return SWIG_Py_Void();
42527 }
42528
42529 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42530 return SWIG_Python_InitShadowInstance(args);
42531 }
42532
42533 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42534 PyObject *resultobj = 0;
42535 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42536 wxWindow *arg2 = (wxWindow *) 0 ;
42537 int arg3 ;
42538 wxString const &arg4_defvalue = wxEmptyString ;
42539 wxString *arg4 = (wxString *) &arg4_defvalue ;
42540 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42541 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42542 wxSize const &arg6_defvalue = wxDefaultSize ;
42543 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42544 long arg7 = (long) 0 ;
42545 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42546 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42547 wxString const &arg9_defvalue = wxButtonNameStr ;
42548 wxString *arg9 = (wxString *) &arg9_defvalue ;
42549 bool result;
42550 void *argp1 = 0 ;
42551 int res1 = 0 ;
42552 void *argp2 = 0 ;
42553 int res2 = 0 ;
42554 int val3 ;
42555 int ecode3 = 0 ;
42556 bool temp4 = false ;
42557 wxPoint temp5 ;
42558 wxSize temp6 ;
42559 long val7 ;
42560 int ecode7 = 0 ;
42561 void *argp8 = 0 ;
42562 int res8 = 0 ;
42563 bool temp9 = false ;
42564 PyObject * obj0 = 0 ;
42565 PyObject * obj1 = 0 ;
42566 PyObject * obj2 = 0 ;
42567 PyObject * obj3 = 0 ;
42568 PyObject * obj4 = 0 ;
42569 PyObject * obj5 = 0 ;
42570 PyObject * obj6 = 0 ;
42571 PyObject * obj7 = 0 ;
42572 PyObject * obj8 = 0 ;
42573 char * kwnames[] = {
42574 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42575 };
42576
42577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42579 if (!SWIG_IsOK(res1)) {
42580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42581 }
42582 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42583 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42584 if (!SWIG_IsOK(res2)) {
42585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42586 }
42587 arg2 = reinterpret_cast< wxWindow * >(argp2);
42588 ecode3 = SWIG_AsVal_int(obj2, &val3);
42589 if (!SWIG_IsOK(ecode3)) {
42590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42591 }
42592 arg3 = static_cast< int >(val3);
42593 if (obj3) {
42594 {
42595 arg4 = wxString_in_helper(obj3);
42596 if (arg4 == NULL) SWIG_fail;
42597 temp4 = true;
42598 }
42599 }
42600 if (obj4) {
42601 {
42602 arg5 = &temp5;
42603 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42604 }
42605 }
42606 if (obj5) {
42607 {
42608 arg6 = &temp6;
42609 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42610 }
42611 }
42612 if (obj6) {
42613 ecode7 = SWIG_AsVal_long(obj6, &val7);
42614 if (!SWIG_IsOK(ecode7)) {
42615 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42616 }
42617 arg7 = static_cast< long >(val7);
42618 }
42619 if (obj7) {
42620 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42621 if (!SWIG_IsOK(res8)) {
42622 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42623 }
42624 if (!argp8) {
42625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42626 }
42627 arg8 = reinterpret_cast< wxValidator * >(argp8);
42628 }
42629 if (obj8) {
42630 {
42631 arg9 = wxString_in_helper(obj8);
42632 if (arg9 == NULL) SWIG_fail;
42633 temp9 = true;
42634 }
42635 }
42636 {
42637 PyThreadState* __tstate = wxPyBeginAllowThreads();
42638 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42639 wxPyEndAllowThreads(__tstate);
42640 if (PyErr_Occurred()) SWIG_fail;
42641 }
42642 {
42643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42644 }
42645 {
42646 if (temp4)
42647 delete arg4;
42648 }
42649 {
42650 if (temp9)
42651 delete arg9;
42652 }
42653 return resultobj;
42654 fail:
42655 {
42656 if (temp4)
42657 delete arg4;
42658 }
42659 {
42660 if (temp9)
42661 delete arg9;
42662 }
42663 return NULL;
42664 }
42665
42666
42667 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42668 PyObject *resultobj = 0;
42669 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42670 int arg2 ;
42671 void *argp1 = 0 ;
42672 int res1 = 0 ;
42673 int val2 ;
42674 int ecode2 = 0 ;
42675 PyObject * obj0 = 0 ;
42676 PyObject * obj1 = 0 ;
42677 char * kwnames[] = {
42678 (char *) "self",(char *) "newmargin", NULL
42679 };
42680
42681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42683 if (!SWIG_IsOK(res1)) {
42684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42685 }
42686 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42687 ecode2 = SWIG_AsVal_int(obj1, &val2);
42688 if (!SWIG_IsOK(ecode2)) {
42689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42690 }
42691 arg2 = static_cast< int >(val2);
42692 {
42693 PyThreadState* __tstate = wxPyBeginAllowThreads();
42694 (arg1)->SetInternalMargin(arg2);
42695 wxPyEndAllowThreads(__tstate);
42696 if (PyErr_Occurred()) SWIG_fail;
42697 }
42698 resultobj = SWIG_Py_Void();
42699 return resultobj;
42700 fail:
42701 return NULL;
42702 }
42703
42704
42705 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42706 PyObject *resultobj = 0;
42707 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42708 int result;
42709 void *argp1 = 0 ;
42710 int res1 = 0 ;
42711 PyObject *swig_obj[1] ;
42712
42713 if (!args) SWIG_fail;
42714 swig_obj[0] = args;
42715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42716 if (!SWIG_IsOK(res1)) {
42717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42718 }
42719 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42720 {
42721 PyThreadState* __tstate = wxPyBeginAllowThreads();
42722 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42723 wxPyEndAllowThreads(__tstate);
42724 if (PyErr_Occurred()) SWIG_fail;
42725 }
42726 resultobj = SWIG_From_int(static_cast< int >(result));
42727 return resultobj;
42728 fail:
42729 return NULL;
42730 }
42731
42732
42733 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42734 PyObject *resultobj = 0;
42735 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42736 int arg2 ;
42737 void *argp1 = 0 ;
42738 int res1 = 0 ;
42739 int val2 ;
42740 int ecode2 = 0 ;
42741 PyObject * obj0 = 0 ;
42742 PyObject * obj1 = 0 ;
42743 char * kwnames[] = {
42744 (char *) "self",(char *) "prop", NULL
42745 };
42746
42747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42749 if (!SWIG_IsOK(res1)) {
42750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42751 }
42752 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42753 ecode2 = SWIG_AsVal_int(obj1, &val2);
42754 if (!SWIG_IsOK(ecode2)) {
42755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42756 }
42757 arg2 = static_cast< int >(val2);
42758 {
42759 PyThreadState* __tstate = wxPyBeginAllowThreads();
42760 (arg1)->SetTextCtrlProportion(arg2);
42761 wxPyEndAllowThreads(__tstate);
42762 if (PyErr_Occurred()) SWIG_fail;
42763 }
42764 resultobj = SWIG_Py_Void();
42765 return resultobj;
42766 fail:
42767 return NULL;
42768 }
42769
42770
42771 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42772 PyObject *resultobj = 0;
42773 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42774 int result;
42775 void *argp1 = 0 ;
42776 int res1 = 0 ;
42777 PyObject *swig_obj[1] ;
42778
42779 if (!args) SWIG_fail;
42780 swig_obj[0] = args;
42781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42782 if (!SWIG_IsOK(res1)) {
42783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42784 }
42785 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42786 {
42787 PyThreadState* __tstate = wxPyBeginAllowThreads();
42788 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42789 wxPyEndAllowThreads(__tstate);
42790 if (PyErr_Occurred()) SWIG_fail;
42791 }
42792 resultobj = SWIG_From_int(static_cast< int >(result));
42793 return resultobj;
42794 fail:
42795 return NULL;
42796 }
42797
42798
42799 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42800 PyObject *resultobj = 0;
42801 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42802 int arg2 ;
42803 void *argp1 = 0 ;
42804 int res1 = 0 ;
42805 int val2 ;
42806 int ecode2 = 0 ;
42807 PyObject * obj0 = 0 ;
42808 PyObject * obj1 = 0 ;
42809 char * kwnames[] = {
42810 (char *) "self",(char *) "prop", NULL
42811 };
42812
42813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42815 if (!SWIG_IsOK(res1)) {
42816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42817 }
42818 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42819 ecode2 = SWIG_AsVal_int(obj1, &val2);
42820 if (!SWIG_IsOK(ecode2)) {
42821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42822 }
42823 arg2 = static_cast< int >(val2);
42824 {
42825 PyThreadState* __tstate = wxPyBeginAllowThreads();
42826 (arg1)->SetPickerCtrlProportion(arg2);
42827 wxPyEndAllowThreads(__tstate);
42828 if (PyErr_Occurred()) SWIG_fail;
42829 }
42830 resultobj = SWIG_Py_Void();
42831 return resultobj;
42832 fail:
42833 return NULL;
42834 }
42835
42836
42837 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42838 PyObject *resultobj = 0;
42839 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42840 int result;
42841 void *argp1 = 0 ;
42842 int res1 = 0 ;
42843 PyObject *swig_obj[1] ;
42844
42845 if (!args) SWIG_fail;
42846 swig_obj[0] = args;
42847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42848 if (!SWIG_IsOK(res1)) {
42849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42850 }
42851 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42852 {
42853 PyThreadState* __tstate = wxPyBeginAllowThreads();
42854 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42855 wxPyEndAllowThreads(__tstate);
42856 if (PyErr_Occurred()) SWIG_fail;
42857 }
42858 resultobj = SWIG_From_int(static_cast< int >(result));
42859 return resultobj;
42860 fail:
42861 return NULL;
42862 }
42863
42864
42865 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42866 PyObject *resultobj = 0;
42867 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42868 bool result;
42869 void *argp1 = 0 ;
42870 int res1 = 0 ;
42871 PyObject *swig_obj[1] ;
42872
42873 if (!args) SWIG_fail;
42874 swig_obj[0] = args;
42875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42876 if (!SWIG_IsOK(res1)) {
42877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42878 }
42879 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42880 {
42881 PyThreadState* __tstate = wxPyBeginAllowThreads();
42882 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42883 wxPyEndAllowThreads(__tstate);
42884 if (PyErr_Occurred()) SWIG_fail;
42885 }
42886 {
42887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42888 }
42889 return resultobj;
42890 fail:
42891 return NULL;
42892 }
42893
42894
42895 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42896 PyObject *resultobj = 0;
42897 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42898 bool arg2 = (bool) true ;
42899 void *argp1 = 0 ;
42900 int res1 = 0 ;
42901 bool val2 ;
42902 int ecode2 = 0 ;
42903 PyObject * obj0 = 0 ;
42904 PyObject * obj1 = 0 ;
42905 char * kwnames[] = {
42906 (char *) "self",(char *) "grow", NULL
42907 };
42908
42909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42911 if (!SWIG_IsOK(res1)) {
42912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42913 }
42914 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42915 if (obj1) {
42916 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42917 if (!SWIG_IsOK(ecode2)) {
42918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42919 }
42920 arg2 = static_cast< bool >(val2);
42921 }
42922 {
42923 PyThreadState* __tstate = wxPyBeginAllowThreads();
42924 (arg1)->SetTextCtrlGrowable(arg2);
42925 wxPyEndAllowThreads(__tstate);
42926 if (PyErr_Occurred()) SWIG_fail;
42927 }
42928 resultobj = SWIG_Py_Void();
42929 return resultobj;
42930 fail:
42931 return NULL;
42932 }
42933
42934
42935 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42936 PyObject *resultobj = 0;
42937 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42938 bool result;
42939 void *argp1 = 0 ;
42940 int res1 = 0 ;
42941 PyObject *swig_obj[1] ;
42942
42943 if (!args) SWIG_fail;
42944 swig_obj[0] = args;
42945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42946 if (!SWIG_IsOK(res1)) {
42947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42948 }
42949 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42950 {
42951 PyThreadState* __tstate = wxPyBeginAllowThreads();
42952 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42953 wxPyEndAllowThreads(__tstate);
42954 if (PyErr_Occurred()) SWIG_fail;
42955 }
42956 {
42957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42958 }
42959 return resultobj;
42960 fail:
42961 return NULL;
42962 }
42963
42964
42965 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42966 PyObject *resultobj = 0;
42967 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42968 bool arg2 = (bool) true ;
42969 void *argp1 = 0 ;
42970 int res1 = 0 ;
42971 bool val2 ;
42972 int ecode2 = 0 ;
42973 PyObject * obj0 = 0 ;
42974 PyObject * obj1 = 0 ;
42975 char * kwnames[] = {
42976 (char *) "self",(char *) "grow", NULL
42977 };
42978
42979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42981 if (!SWIG_IsOK(res1)) {
42982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42983 }
42984 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42985 if (obj1) {
42986 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42987 if (!SWIG_IsOK(ecode2)) {
42988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42989 }
42990 arg2 = static_cast< bool >(val2);
42991 }
42992 {
42993 PyThreadState* __tstate = wxPyBeginAllowThreads();
42994 (arg1)->SetPickerCtrlGrowable(arg2);
42995 wxPyEndAllowThreads(__tstate);
42996 if (PyErr_Occurred()) SWIG_fail;
42997 }
42998 resultobj = SWIG_Py_Void();
42999 return resultobj;
43000 fail:
43001 return NULL;
43002 }
43003
43004
43005 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43006 PyObject *resultobj = 0;
43007 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43008 bool result;
43009 void *argp1 = 0 ;
43010 int res1 = 0 ;
43011 PyObject *swig_obj[1] ;
43012
43013 if (!args) SWIG_fail;
43014 swig_obj[0] = args;
43015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43016 if (!SWIG_IsOK(res1)) {
43017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43018 }
43019 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43020 {
43021 PyThreadState* __tstate = wxPyBeginAllowThreads();
43022 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43023 wxPyEndAllowThreads(__tstate);
43024 if (PyErr_Occurred()) SWIG_fail;
43025 }
43026 {
43027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43028 }
43029 return resultobj;
43030 fail:
43031 return NULL;
43032 }
43033
43034
43035 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43036 PyObject *resultobj = 0;
43037 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43038 wxTextCtrl *result = 0 ;
43039 void *argp1 = 0 ;
43040 int res1 = 0 ;
43041 PyObject *swig_obj[1] ;
43042
43043 if (!args) SWIG_fail;
43044 swig_obj[0] = args;
43045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43046 if (!SWIG_IsOK(res1)) {
43047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43048 }
43049 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43050 {
43051 PyThreadState* __tstate = wxPyBeginAllowThreads();
43052 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43053 wxPyEndAllowThreads(__tstate);
43054 if (PyErr_Occurred()) SWIG_fail;
43055 }
43056 {
43057 resultobj = wxPyMake_wxObject(result, 0);
43058 }
43059 return resultobj;
43060 fail:
43061 return NULL;
43062 }
43063
43064
43065 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43066 PyObject *resultobj = 0;
43067 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43068 wxControl *result = 0 ;
43069 void *argp1 = 0 ;
43070 int res1 = 0 ;
43071 PyObject *swig_obj[1] ;
43072
43073 if (!args) SWIG_fail;
43074 swig_obj[0] = args;
43075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43076 if (!SWIG_IsOK(res1)) {
43077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43078 }
43079 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43080 {
43081 PyThreadState* __tstate = wxPyBeginAllowThreads();
43082 result = (wxControl *)(arg1)->GetPickerCtrl();
43083 wxPyEndAllowThreads(__tstate);
43084 if (PyErr_Occurred()) SWIG_fail;
43085 }
43086 {
43087 resultobj = wxPyMake_wxObject(result, 0);
43088 }
43089 return resultobj;
43090 fail:
43091 return NULL;
43092 }
43093
43094
43095 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43096 PyObject *obj;
43097 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43098 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43099 return SWIG_Py_Void();
43100 }
43101
43102 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43103 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43104 return 1;
43105 }
43106
43107
43108 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43109 PyObject *pyobj = 0;
43110
43111 {
43112 #if wxUSE_UNICODE
43113 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43114 #else
43115 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43116 #endif
43117 }
43118 return pyobj;
43119 }
43120
43121
43122 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43123 PyObject *resultobj = 0;
43124 wxWindow *arg1 = (wxWindow *) 0 ;
43125 int arg2 = (int) -1 ;
43126 wxColour const &arg3_defvalue = *wxBLACK ;
43127 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43128 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43129 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43130 wxSize const &arg5_defvalue = wxDefaultSize ;
43131 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43132 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43133 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43134 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43135 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43136 wxString *arg8 = (wxString *) &arg8_defvalue ;
43137 wxColourPickerCtrl *result = 0 ;
43138 void *argp1 = 0 ;
43139 int res1 = 0 ;
43140 int val2 ;
43141 int ecode2 = 0 ;
43142 wxColour temp3 ;
43143 wxPoint temp4 ;
43144 wxSize temp5 ;
43145 long val6 ;
43146 int ecode6 = 0 ;
43147 void *argp7 = 0 ;
43148 int res7 = 0 ;
43149 bool temp8 = false ;
43150 PyObject * obj0 = 0 ;
43151 PyObject * obj1 = 0 ;
43152 PyObject * obj2 = 0 ;
43153 PyObject * obj3 = 0 ;
43154 PyObject * obj4 = 0 ;
43155 PyObject * obj5 = 0 ;
43156 PyObject * obj6 = 0 ;
43157 PyObject * obj7 = 0 ;
43158 char * kwnames[] = {
43159 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43160 };
43161
43162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43164 if (!SWIG_IsOK(res1)) {
43165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43166 }
43167 arg1 = reinterpret_cast< wxWindow * >(argp1);
43168 if (obj1) {
43169 ecode2 = SWIG_AsVal_int(obj1, &val2);
43170 if (!SWIG_IsOK(ecode2)) {
43171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43172 }
43173 arg2 = static_cast< int >(val2);
43174 }
43175 if (obj2) {
43176 {
43177 arg3 = &temp3;
43178 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43179 }
43180 }
43181 if (obj3) {
43182 {
43183 arg4 = &temp4;
43184 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43185 }
43186 }
43187 if (obj4) {
43188 {
43189 arg5 = &temp5;
43190 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43191 }
43192 }
43193 if (obj5) {
43194 ecode6 = SWIG_AsVal_long(obj5, &val6);
43195 if (!SWIG_IsOK(ecode6)) {
43196 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43197 }
43198 arg6 = static_cast< long >(val6);
43199 }
43200 if (obj6) {
43201 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43202 if (!SWIG_IsOK(res7)) {
43203 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43204 }
43205 if (!argp7) {
43206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43207 }
43208 arg7 = reinterpret_cast< wxValidator * >(argp7);
43209 }
43210 if (obj7) {
43211 {
43212 arg8 = wxString_in_helper(obj7);
43213 if (arg8 == NULL) SWIG_fail;
43214 temp8 = true;
43215 }
43216 }
43217 {
43218 if (!wxPyCheckForApp()) SWIG_fail;
43219 PyThreadState* __tstate = wxPyBeginAllowThreads();
43220 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43221 wxPyEndAllowThreads(__tstate);
43222 if (PyErr_Occurred()) SWIG_fail;
43223 }
43224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43225 {
43226 if (temp8)
43227 delete arg8;
43228 }
43229 return resultobj;
43230 fail:
43231 {
43232 if (temp8)
43233 delete arg8;
43234 }
43235 return NULL;
43236 }
43237
43238
43239 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43240 PyObject *resultobj = 0;
43241 wxColourPickerCtrl *result = 0 ;
43242
43243 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43244 {
43245 if (!wxPyCheckForApp()) SWIG_fail;
43246 PyThreadState* __tstate = wxPyBeginAllowThreads();
43247 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43248 wxPyEndAllowThreads(__tstate);
43249 if (PyErr_Occurred()) SWIG_fail;
43250 }
43251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43252 return resultobj;
43253 fail:
43254 return NULL;
43255 }
43256
43257
43258 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43259 PyObject *resultobj = 0;
43260 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43261 wxWindow *arg2 = (wxWindow *) 0 ;
43262 int arg3 ;
43263 wxColour const &arg4_defvalue = *wxBLACK ;
43264 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43265 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43266 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43267 wxSize const &arg6_defvalue = wxDefaultSize ;
43268 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43269 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43270 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43271 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43272 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43273 wxString *arg9 = (wxString *) &arg9_defvalue ;
43274 bool result;
43275 void *argp1 = 0 ;
43276 int res1 = 0 ;
43277 void *argp2 = 0 ;
43278 int res2 = 0 ;
43279 int val3 ;
43280 int ecode3 = 0 ;
43281 wxColour temp4 ;
43282 wxPoint temp5 ;
43283 wxSize temp6 ;
43284 long val7 ;
43285 int ecode7 = 0 ;
43286 void *argp8 = 0 ;
43287 int res8 = 0 ;
43288 bool temp9 = false ;
43289 PyObject * obj0 = 0 ;
43290 PyObject * obj1 = 0 ;
43291 PyObject * obj2 = 0 ;
43292 PyObject * obj3 = 0 ;
43293 PyObject * obj4 = 0 ;
43294 PyObject * obj5 = 0 ;
43295 PyObject * obj6 = 0 ;
43296 PyObject * obj7 = 0 ;
43297 PyObject * obj8 = 0 ;
43298 char * kwnames[] = {
43299 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43300 };
43301
43302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43304 if (!SWIG_IsOK(res1)) {
43305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43306 }
43307 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43308 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43309 if (!SWIG_IsOK(res2)) {
43310 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43311 }
43312 arg2 = reinterpret_cast< wxWindow * >(argp2);
43313 ecode3 = SWIG_AsVal_int(obj2, &val3);
43314 if (!SWIG_IsOK(ecode3)) {
43315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43316 }
43317 arg3 = static_cast< int >(val3);
43318 if (obj3) {
43319 {
43320 arg4 = &temp4;
43321 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43322 }
43323 }
43324 if (obj4) {
43325 {
43326 arg5 = &temp5;
43327 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43328 }
43329 }
43330 if (obj5) {
43331 {
43332 arg6 = &temp6;
43333 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43334 }
43335 }
43336 if (obj6) {
43337 ecode7 = SWIG_AsVal_long(obj6, &val7);
43338 if (!SWIG_IsOK(ecode7)) {
43339 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43340 }
43341 arg7 = static_cast< long >(val7);
43342 }
43343 if (obj7) {
43344 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43345 if (!SWIG_IsOK(res8)) {
43346 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43347 }
43348 if (!argp8) {
43349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43350 }
43351 arg8 = reinterpret_cast< wxValidator * >(argp8);
43352 }
43353 if (obj8) {
43354 {
43355 arg9 = wxString_in_helper(obj8);
43356 if (arg9 == NULL) SWIG_fail;
43357 temp9 = true;
43358 }
43359 }
43360 {
43361 PyThreadState* __tstate = wxPyBeginAllowThreads();
43362 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43363 wxPyEndAllowThreads(__tstate);
43364 if (PyErr_Occurred()) SWIG_fail;
43365 }
43366 {
43367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43368 }
43369 {
43370 if (temp9)
43371 delete arg9;
43372 }
43373 return resultobj;
43374 fail:
43375 {
43376 if (temp9)
43377 delete arg9;
43378 }
43379 return NULL;
43380 }
43381
43382
43383 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43384 PyObject *resultobj = 0;
43385 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43386 wxColour result;
43387 void *argp1 = 0 ;
43388 int res1 = 0 ;
43389 PyObject *swig_obj[1] ;
43390
43391 if (!args) SWIG_fail;
43392 swig_obj[0] = args;
43393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43394 if (!SWIG_IsOK(res1)) {
43395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43396 }
43397 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43398 {
43399 PyThreadState* __tstate = wxPyBeginAllowThreads();
43400 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43401 wxPyEndAllowThreads(__tstate);
43402 if (PyErr_Occurred()) SWIG_fail;
43403 }
43404 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43405 return resultobj;
43406 fail:
43407 return NULL;
43408 }
43409
43410
43411 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43412 PyObject *resultobj = 0;
43413 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43414 wxColour *arg2 = 0 ;
43415 void *argp1 = 0 ;
43416 int res1 = 0 ;
43417 wxColour temp2 ;
43418 PyObject * obj0 = 0 ;
43419 PyObject * obj1 = 0 ;
43420 char * kwnames[] = {
43421 (char *) "self",(char *) "col", NULL
43422 };
43423
43424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43426 if (!SWIG_IsOK(res1)) {
43427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43428 }
43429 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43430 {
43431 arg2 = &temp2;
43432 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43433 }
43434 {
43435 PyThreadState* __tstate = wxPyBeginAllowThreads();
43436 (arg1)->SetColour((wxColour const &)*arg2);
43437 wxPyEndAllowThreads(__tstate);
43438 if (PyErr_Occurred()) SWIG_fail;
43439 }
43440 resultobj = SWIG_Py_Void();
43441 return resultobj;
43442 fail:
43443 return NULL;
43444 }
43445
43446
43447 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43448 PyObject *obj;
43449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43450 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43451 return SWIG_Py_Void();
43452 }
43453
43454 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43455 return SWIG_Python_InitShadowInstance(args);
43456 }
43457
43458 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43459 PyObject *resultobj = 0;
43460 wxObject *arg1 = (wxObject *) 0 ;
43461 int arg2 ;
43462 wxColour *arg3 = 0 ;
43463 wxColourPickerEvent *result = 0 ;
43464 void *argp1 = 0 ;
43465 int res1 = 0 ;
43466 int val2 ;
43467 int ecode2 = 0 ;
43468 wxColour temp3 ;
43469 PyObject * obj0 = 0 ;
43470 PyObject * obj1 = 0 ;
43471 PyObject * obj2 = 0 ;
43472 char * kwnames[] = {
43473 (char *) "generator",(char *) "id",(char *) "col", NULL
43474 };
43475
43476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43478 if (!SWIG_IsOK(res1)) {
43479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43480 }
43481 arg1 = reinterpret_cast< wxObject * >(argp1);
43482 ecode2 = SWIG_AsVal_int(obj1, &val2);
43483 if (!SWIG_IsOK(ecode2)) {
43484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43485 }
43486 arg2 = static_cast< int >(val2);
43487 {
43488 arg3 = &temp3;
43489 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43490 }
43491 {
43492 PyThreadState* __tstate = wxPyBeginAllowThreads();
43493 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43494 wxPyEndAllowThreads(__tstate);
43495 if (PyErr_Occurred()) SWIG_fail;
43496 }
43497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43498 return resultobj;
43499 fail:
43500 return NULL;
43501 }
43502
43503
43504 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43505 PyObject *resultobj = 0;
43506 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43507 wxColour result;
43508 void *argp1 = 0 ;
43509 int res1 = 0 ;
43510 PyObject *swig_obj[1] ;
43511
43512 if (!args) SWIG_fail;
43513 swig_obj[0] = args;
43514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43515 if (!SWIG_IsOK(res1)) {
43516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43517 }
43518 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43519 {
43520 PyThreadState* __tstate = wxPyBeginAllowThreads();
43521 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43522 wxPyEndAllowThreads(__tstate);
43523 if (PyErr_Occurred()) SWIG_fail;
43524 }
43525 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43526 return resultobj;
43527 fail:
43528 return NULL;
43529 }
43530
43531
43532 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43533 PyObject *resultobj = 0;
43534 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43535 wxColour *arg2 = 0 ;
43536 void *argp1 = 0 ;
43537 int res1 = 0 ;
43538 wxColour temp2 ;
43539 PyObject * obj0 = 0 ;
43540 PyObject * obj1 = 0 ;
43541 char * kwnames[] = {
43542 (char *) "self",(char *) "c", NULL
43543 };
43544
43545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43547 if (!SWIG_IsOK(res1)) {
43548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43549 }
43550 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43551 {
43552 arg2 = &temp2;
43553 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43554 }
43555 {
43556 PyThreadState* __tstate = wxPyBeginAllowThreads();
43557 (arg1)->SetColour((wxColour const &)*arg2);
43558 wxPyEndAllowThreads(__tstate);
43559 if (PyErr_Occurred()) SWIG_fail;
43560 }
43561 resultobj = SWIG_Py_Void();
43562 return resultobj;
43563 fail:
43564 return NULL;
43565 }
43566
43567
43568 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43569 PyObject *obj;
43570 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43571 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43572 return SWIG_Py_Void();
43573 }
43574
43575 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43576 return SWIG_Python_InitShadowInstance(args);
43577 }
43578
43579 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43580 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43581 return 1;
43582 }
43583
43584
43585 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43586 PyObject *pyobj = 0;
43587
43588 {
43589 #if wxUSE_UNICODE
43590 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43591 #else
43592 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43593 #endif
43594 }
43595 return pyobj;
43596 }
43597
43598
43599 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43600 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43601 return 1;
43602 }
43603
43604
43605 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43606 PyObject *pyobj = 0;
43607
43608 {
43609 #if wxUSE_UNICODE
43610 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43611 #else
43612 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43613 #endif
43614 }
43615 return pyobj;
43616 }
43617
43618
43619 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43620 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43621 return 1;
43622 }
43623
43624
43625 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43626 PyObject *pyobj = 0;
43627
43628 {
43629 #if wxUSE_UNICODE
43630 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43631 #else
43632 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43633 #endif
43634 }
43635 return pyobj;
43636 }
43637
43638
43639 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43640 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43641 return 1;
43642 }
43643
43644
43645 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43646 PyObject *pyobj = 0;
43647
43648 {
43649 #if wxUSE_UNICODE
43650 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43651 #else
43652 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43653 #endif
43654 }
43655 return pyobj;
43656 }
43657
43658
43659 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43660 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43661 return 1;
43662 }
43663
43664
43665 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43666 PyObject *pyobj = 0;
43667
43668 {
43669 #if wxUSE_UNICODE
43670 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43671 #else
43672 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43673 #endif
43674 }
43675 return pyobj;
43676 }
43677
43678
43679 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43680 PyObject *resultobj = 0;
43681 wxWindow *arg1 = (wxWindow *) 0 ;
43682 int arg2 = (int) -1 ;
43683 wxString const &arg3_defvalue = wxPyEmptyString ;
43684 wxString *arg3 = (wxString *) &arg3_defvalue ;
43685 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43686 wxString *arg4 = (wxString *) &arg4_defvalue ;
43687 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43688 wxString *arg5 = (wxString *) &arg5_defvalue ;
43689 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43690 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43691 wxSize const &arg7_defvalue = wxDefaultSize ;
43692 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43693 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43694 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43695 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43696 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43697 wxString *arg10 = (wxString *) &arg10_defvalue ;
43698 wxFilePickerCtrl *result = 0 ;
43699 void *argp1 = 0 ;
43700 int res1 = 0 ;
43701 int val2 ;
43702 int ecode2 = 0 ;
43703 bool temp3 = false ;
43704 bool temp4 = false ;
43705 bool temp5 = false ;
43706 wxPoint temp6 ;
43707 wxSize temp7 ;
43708 long val8 ;
43709 int ecode8 = 0 ;
43710 void *argp9 = 0 ;
43711 int res9 = 0 ;
43712 bool temp10 = false ;
43713 PyObject * obj0 = 0 ;
43714 PyObject * obj1 = 0 ;
43715 PyObject * obj2 = 0 ;
43716 PyObject * obj3 = 0 ;
43717 PyObject * obj4 = 0 ;
43718 PyObject * obj5 = 0 ;
43719 PyObject * obj6 = 0 ;
43720 PyObject * obj7 = 0 ;
43721 PyObject * obj8 = 0 ;
43722 PyObject * obj9 = 0 ;
43723 char * kwnames[] = {
43724 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43725 };
43726
43727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43729 if (!SWIG_IsOK(res1)) {
43730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43731 }
43732 arg1 = reinterpret_cast< wxWindow * >(argp1);
43733 if (obj1) {
43734 ecode2 = SWIG_AsVal_int(obj1, &val2);
43735 if (!SWIG_IsOK(ecode2)) {
43736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43737 }
43738 arg2 = static_cast< int >(val2);
43739 }
43740 if (obj2) {
43741 {
43742 arg3 = wxString_in_helper(obj2);
43743 if (arg3 == NULL) SWIG_fail;
43744 temp3 = true;
43745 }
43746 }
43747 if (obj3) {
43748 {
43749 arg4 = wxString_in_helper(obj3);
43750 if (arg4 == NULL) SWIG_fail;
43751 temp4 = true;
43752 }
43753 }
43754 if (obj4) {
43755 {
43756 arg5 = wxString_in_helper(obj4);
43757 if (arg5 == NULL) SWIG_fail;
43758 temp5 = true;
43759 }
43760 }
43761 if (obj5) {
43762 {
43763 arg6 = &temp6;
43764 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43765 }
43766 }
43767 if (obj6) {
43768 {
43769 arg7 = &temp7;
43770 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43771 }
43772 }
43773 if (obj7) {
43774 ecode8 = SWIG_AsVal_long(obj7, &val8);
43775 if (!SWIG_IsOK(ecode8)) {
43776 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43777 }
43778 arg8 = static_cast< long >(val8);
43779 }
43780 if (obj8) {
43781 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43782 if (!SWIG_IsOK(res9)) {
43783 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43784 }
43785 if (!argp9) {
43786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43787 }
43788 arg9 = reinterpret_cast< wxValidator * >(argp9);
43789 }
43790 if (obj9) {
43791 {
43792 arg10 = wxString_in_helper(obj9);
43793 if (arg10 == NULL) SWIG_fail;
43794 temp10 = true;
43795 }
43796 }
43797 {
43798 if (!wxPyCheckForApp()) SWIG_fail;
43799 PyThreadState* __tstate = wxPyBeginAllowThreads();
43800 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);
43801 wxPyEndAllowThreads(__tstate);
43802 if (PyErr_Occurred()) SWIG_fail;
43803 }
43804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43805 {
43806 if (temp3)
43807 delete arg3;
43808 }
43809 {
43810 if (temp4)
43811 delete arg4;
43812 }
43813 {
43814 if (temp5)
43815 delete arg5;
43816 }
43817 {
43818 if (temp10)
43819 delete arg10;
43820 }
43821 return resultobj;
43822 fail:
43823 {
43824 if (temp3)
43825 delete arg3;
43826 }
43827 {
43828 if (temp4)
43829 delete arg4;
43830 }
43831 {
43832 if (temp5)
43833 delete arg5;
43834 }
43835 {
43836 if (temp10)
43837 delete arg10;
43838 }
43839 return NULL;
43840 }
43841
43842
43843 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43844 PyObject *resultobj = 0;
43845 wxFilePickerCtrl *result = 0 ;
43846
43847 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43848 {
43849 if (!wxPyCheckForApp()) SWIG_fail;
43850 PyThreadState* __tstate = wxPyBeginAllowThreads();
43851 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43852 wxPyEndAllowThreads(__tstate);
43853 if (PyErr_Occurred()) SWIG_fail;
43854 }
43855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43856 return resultobj;
43857 fail:
43858 return NULL;
43859 }
43860
43861
43862 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43863 PyObject *resultobj = 0;
43864 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43865 wxWindow *arg2 = (wxWindow *) 0 ;
43866 int arg3 = (int) -1 ;
43867 wxString const &arg4_defvalue = wxPyEmptyString ;
43868 wxString *arg4 = (wxString *) &arg4_defvalue ;
43869 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43870 wxString *arg5 = (wxString *) &arg5_defvalue ;
43871 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43872 wxString *arg6 = (wxString *) &arg6_defvalue ;
43873 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43874 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43875 wxSize const &arg8_defvalue = wxDefaultSize ;
43876 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43877 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43878 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43879 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43880 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43881 wxString *arg11 = (wxString *) &arg11_defvalue ;
43882 bool result;
43883 void *argp1 = 0 ;
43884 int res1 = 0 ;
43885 void *argp2 = 0 ;
43886 int res2 = 0 ;
43887 int val3 ;
43888 int ecode3 = 0 ;
43889 bool temp4 = false ;
43890 bool temp5 = false ;
43891 bool temp6 = false ;
43892 wxPoint temp7 ;
43893 wxSize temp8 ;
43894 long val9 ;
43895 int ecode9 = 0 ;
43896 void *argp10 = 0 ;
43897 int res10 = 0 ;
43898 bool temp11 = false ;
43899 PyObject * obj0 = 0 ;
43900 PyObject * obj1 = 0 ;
43901 PyObject * obj2 = 0 ;
43902 PyObject * obj3 = 0 ;
43903 PyObject * obj4 = 0 ;
43904 PyObject * obj5 = 0 ;
43905 PyObject * obj6 = 0 ;
43906 PyObject * obj7 = 0 ;
43907 PyObject * obj8 = 0 ;
43908 PyObject * obj9 = 0 ;
43909 PyObject * obj10 = 0 ;
43910 char * kwnames[] = {
43911 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43912 };
43913
43914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43916 if (!SWIG_IsOK(res1)) {
43917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43918 }
43919 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43920 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43921 if (!SWIG_IsOK(res2)) {
43922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43923 }
43924 arg2 = reinterpret_cast< wxWindow * >(argp2);
43925 if (obj2) {
43926 ecode3 = SWIG_AsVal_int(obj2, &val3);
43927 if (!SWIG_IsOK(ecode3)) {
43928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43929 }
43930 arg3 = static_cast< int >(val3);
43931 }
43932 if (obj3) {
43933 {
43934 arg4 = wxString_in_helper(obj3);
43935 if (arg4 == NULL) SWIG_fail;
43936 temp4 = true;
43937 }
43938 }
43939 if (obj4) {
43940 {
43941 arg5 = wxString_in_helper(obj4);
43942 if (arg5 == NULL) SWIG_fail;
43943 temp5 = true;
43944 }
43945 }
43946 if (obj5) {
43947 {
43948 arg6 = wxString_in_helper(obj5);
43949 if (arg6 == NULL) SWIG_fail;
43950 temp6 = true;
43951 }
43952 }
43953 if (obj6) {
43954 {
43955 arg7 = &temp7;
43956 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43957 }
43958 }
43959 if (obj7) {
43960 {
43961 arg8 = &temp8;
43962 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43963 }
43964 }
43965 if (obj8) {
43966 ecode9 = SWIG_AsVal_long(obj8, &val9);
43967 if (!SWIG_IsOK(ecode9)) {
43968 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43969 }
43970 arg9 = static_cast< long >(val9);
43971 }
43972 if (obj9) {
43973 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43974 if (!SWIG_IsOK(res10)) {
43975 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43976 }
43977 if (!argp10) {
43978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43979 }
43980 arg10 = reinterpret_cast< wxValidator * >(argp10);
43981 }
43982 if (obj10) {
43983 {
43984 arg11 = wxString_in_helper(obj10);
43985 if (arg11 == NULL) SWIG_fail;
43986 temp11 = true;
43987 }
43988 }
43989 {
43990 PyThreadState* __tstate = wxPyBeginAllowThreads();
43991 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);
43992 wxPyEndAllowThreads(__tstate);
43993 if (PyErr_Occurred()) SWIG_fail;
43994 }
43995 {
43996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43997 }
43998 {
43999 if (temp4)
44000 delete arg4;
44001 }
44002 {
44003 if (temp5)
44004 delete arg5;
44005 }
44006 {
44007 if (temp6)
44008 delete arg6;
44009 }
44010 {
44011 if (temp11)
44012 delete arg11;
44013 }
44014 return resultobj;
44015 fail:
44016 {
44017 if (temp4)
44018 delete arg4;
44019 }
44020 {
44021 if (temp5)
44022 delete arg5;
44023 }
44024 {
44025 if (temp6)
44026 delete arg6;
44027 }
44028 {
44029 if (temp11)
44030 delete arg11;
44031 }
44032 return NULL;
44033 }
44034
44035
44036 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44037 PyObject *resultobj = 0;
44038 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44039 wxString result;
44040 void *argp1 = 0 ;
44041 int res1 = 0 ;
44042 PyObject *swig_obj[1] ;
44043
44044 if (!args) SWIG_fail;
44045 swig_obj[0] = args;
44046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44047 if (!SWIG_IsOK(res1)) {
44048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44049 }
44050 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44051 {
44052 PyThreadState* __tstate = wxPyBeginAllowThreads();
44053 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44054 wxPyEndAllowThreads(__tstate);
44055 if (PyErr_Occurred()) SWIG_fail;
44056 }
44057 {
44058 #if wxUSE_UNICODE
44059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44060 #else
44061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44062 #endif
44063 }
44064 return resultobj;
44065 fail:
44066 return NULL;
44067 }
44068
44069
44070 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44071 PyObject *resultobj = 0;
44072 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44073 wxString *arg2 = 0 ;
44074 void *argp1 = 0 ;
44075 int res1 = 0 ;
44076 bool temp2 = false ;
44077 PyObject * obj0 = 0 ;
44078 PyObject * obj1 = 0 ;
44079 char * kwnames[] = {
44080 (char *) "self",(char *) "str", NULL
44081 };
44082
44083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44085 if (!SWIG_IsOK(res1)) {
44086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44087 }
44088 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44089 {
44090 arg2 = wxString_in_helper(obj1);
44091 if (arg2 == NULL) SWIG_fail;
44092 temp2 = true;
44093 }
44094 {
44095 PyThreadState* __tstate = wxPyBeginAllowThreads();
44096 (arg1)->SetPath((wxString const &)*arg2);
44097 wxPyEndAllowThreads(__tstate);
44098 if (PyErr_Occurred()) SWIG_fail;
44099 }
44100 resultobj = SWIG_Py_Void();
44101 {
44102 if (temp2)
44103 delete arg2;
44104 }
44105 return resultobj;
44106 fail:
44107 {
44108 if (temp2)
44109 delete arg2;
44110 }
44111 return NULL;
44112 }
44113
44114
44115 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44116 PyObject *resultobj = 0;
44117 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44118 wxString *arg2 = 0 ;
44119 bool result;
44120 void *argp1 = 0 ;
44121 int res1 = 0 ;
44122 bool temp2 = false ;
44123 PyObject * obj0 = 0 ;
44124 PyObject * obj1 = 0 ;
44125 char * kwnames[] = {
44126 (char *) "self",(char *) "path", NULL
44127 };
44128
44129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44131 if (!SWIG_IsOK(res1)) {
44132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44133 }
44134 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44135 {
44136 arg2 = wxString_in_helper(obj1);
44137 if (arg2 == NULL) SWIG_fail;
44138 temp2 = true;
44139 }
44140 {
44141 PyThreadState* __tstate = wxPyBeginAllowThreads();
44142 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44143 wxPyEndAllowThreads(__tstate);
44144 if (PyErr_Occurred()) SWIG_fail;
44145 }
44146 {
44147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44148 }
44149 {
44150 if (temp2)
44151 delete arg2;
44152 }
44153 return resultobj;
44154 fail:
44155 {
44156 if (temp2)
44157 delete arg2;
44158 }
44159 return NULL;
44160 }
44161
44162
44163 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44164 PyObject *resultobj = 0;
44165 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44166 wxString result;
44167 void *argp1 = 0 ;
44168 int res1 = 0 ;
44169 PyObject *swig_obj[1] ;
44170
44171 if (!args) SWIG_fail;
44172 swig_obj[0] = args;
44173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44174 if (!SWIG_IsOK(res1)) {
44175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44176 }
44177 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44178 {
44179 PyThreadState* __tstate = wxPyBeginAllowThreads();
44180 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44181 wxPyEndAllowThreads(__tstate);
44182 if (PyErr_Occurred()) SWIG_fail;
44183 }
44184 {
44185 #if wxUSE_UNICODE
44186 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44187 #else
44188 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44189 #endif
44190 }
44191 return resultobj;
44192 fail:
44193 return NULL;
44194 }
44195
44196
44197 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44198 PyObject *obj;
44199 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44200 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44201 return SWIG_Py_Void();
44202 }
44203
44204 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44205 return SWIG_Python_InitShadowInstance(args);
44206 }
44207
44208 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44209 PyObject *resultobj = 0;
44210 wxWindow *arg1 = (wxWindow *) 0 ;
44211 int arg2 = (int) -1 ;
44212 wxString const &arg3_defvalue = wxPyEmptyString ;
44213 wxString *arg3 = (wxString *) &arg3_defvalue ;
44214 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44215 wxString *arg4 = (wxString *) &arg4_defvalue ;
44216 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44217 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44218 wxSize const &arg6_defvalue = wxDefaultSize ;
44219 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44220 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44221 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44222 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44223 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44224 wxString *arg9 = (wxString *) &arg9_defvalue ;
44225 wxDirPickerCtrl *result = 0 ;
44226 void *argp1 = 0 ;
44227 int res1 = 0 ;
44228 int val2 ;
44229 int ecode2 = 0 ;
44230 bool temp3 = false ;
44231 bool temp4 = false ;
44232 wxPoint temp5 ;
44233 wxSize temp6 ;
44234 long val7 ;
44235 int ecode7 = 0 ;
44236 void *argp8 = 0 ;
44237 int res8 = 0 ;
44238 bool temp9 = false ;
44239 PyObject * obj0 = 0 ;
44240 PyObject * obj1 = 0 ;
44241 PyObject * obj2 = 0 ;
44242 PyObject * obj3 = 0 ;
44243 PyObject * obj4 = 0 ;
44244 PyObject * obj5 = 0 ;
44245 PyObject * obj6 = 0 ;
44246 PyObject * obj7 = 0 ;
44247 PyObject * obj8 = 0 ;
44248 char * kwnames[] = {
44249 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44250 };
44251
44252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44254 if (!SWIG_IsOK(res1)) {
44255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44256 }
44257 arg1 = reinterpret_cast< wxWindow * >(argp1);
44258 if (obj1) {
44259 ecode2 = SWIG_AsVal_int(obj1, &val2);
44260 if (!SWIG_IsOK(ecode2)) {
44261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44262 }
44263 arg2 = static_cast< int >(val2);
44264 }
44265 if (obj2) {
44266 {
44267 arg3 = wxString_in_helper(obj2);
44268 if (arg3 == NULL) SWIG_fail;
44269 temp3 = true;
44270 }
44271 }
44272 if (obj3) {
44273 {
44274 arg4 = wxString_in_helper(obj3);
44275 if (arg4 == NULL) SWIG_fail;
44276 temp4 = true;
44277 }
44278 }
44279 if (obj4) {
44280 {
44281 arg5 = &temp5;
44282 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44283 }
44284 }
44285 if (obj5) {
44286 {
44287 arg6 = &temp6;
44288 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44289 }
44290 }
44291 if (obj6) {
44292 ecode7 = SWIG_AsVal_long(obj6, &val7);
44293 if (!SWIG_IsOK(ecode7)) {
44294 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44295 }
44296 arg7 = static_cast< long >(val7);
44297 }
44298 if (obj7) {
44299 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44300 if (!SWIG_IsOK(res8)) {
44301 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44302 }
44303 if (!argp8) {
44304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44305 }
44306 arg8 = reinterpret_cast< wxValidator * >(argp8);
44307 }
44308 if (obj8) {
44309 {
44310 arg9 = wxString_in_helper(obj8);
44311 if (arg9 == NULL) SWIG_fail;
44312 temp9 = true;
44313 }
44314 }
44315 {
44316 if (!wxPyCheckForApp()) SWIG_fail;
44317 PyThreadState* __tstate = wxPyBeginAllowThreads();
44318 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);
44319 wxPyEndAllowThreads(__tstate);
44320 if (PyErr_Occurred()) SWIG_fail;
44321 }
44322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44323 {
44324 if (temp3)
44325 delete arg3;
44326 }
44327 {
44328 if (temp4)
44329 delete arg4;
44330 }
44331 {
44332 if (temp9)
44333 delete arg9;
44334 }
44335 return resultobj;
44336 fail:
44337 {
44338 if (temp3)
44339 delete arg3;
44340 }
44341 {
44342 if (temp4)
44343 delete arg4;
44344 }
44345 {
44346 if (temp9)
44347 delete arg9;
44348 }
44349 return NULL;
44350 }
44351
44352
44353 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44354 PyObject *resultobj = 0;
44355 wxDirPickerCtrl *result = 0 ;
44356
44357 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44358 {
44359 if (!wxPyCheckForApp()) SWIG_fail;
44360 PyThreadState* __tstate = wxPyBeginAllowThreads();
44361 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44362 wxPyEndAllowThreads(__tstate);
44363 if (PyErr_Occurred()) SWIG_fail;
44364 }
44365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44366 return resultobj;
44367 fail:
44368 return NULL;
44369 }
44370
44371
44372 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44373 PyObject *resultobj = 0;
44374 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44375 wxWindow *arg2 = (wxWindow *) 0 ;
44376 int arg3 = (int) -1 ;
44377 wxString const &arg4_defvalue = wxPyEmptyString ;
44378 wxString *arg4 = (wxString *) &arg4_defvalue ;
44379 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44380 wxString *arg5 = (wxString *) &arg5_defvalue ;
44381 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44382 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44383 wxSize const &arg7_defvalue = wxDefaultSize ;
44384 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44385 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44386 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44387 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44388 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44389 wxString *arg10 = (wxString *) &arg10_defvalue ;
44390 bool result;
44391 void *argp1 = 0 ;
44392 int res1 = 0 ;
44393 void *argp2 = 0 ;
44394 int res2 = 0 ;
44395 int val3 ;
44396 int ecode3 = 0 ;
44397 bool temp4 = false ;
44398 bool temp5 = false ;
44399 wxPoint temp6 ;
44400 wxSize temp7 ;
44401 long val8 ;
44402 int ecode8 = 0 ;
44403 void *argp9 = 0 ;
44404 int res9 = 0 ;
44405 bool temp10 = false ;
44406 PyObject * obj0 = 0 ;
44407 PyObject * obj1 = 0 ;
44408 PyObject * obj2 = 0 ;
44409 PyObject * obj3 = 0 ;
44410 PyObject * obj4 = 0 ;
44411 PyObject * obj5 = 0 ;
44412 PyObject * obj6 = 0 ;
44413 PyObject * obj7 = 0 ;
44414 PyObject * obj8 = 0 ;
44415 PyObject * obj9 = 0 ;
44416 char * kwnames[] = {
44417 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44418 };
44419
44420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44422 if (!SWIG_IsOK(res1)) {
44423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44424 }
44425 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44426 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44427 if (!SWIG_IsOK(res2)) {
44428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44429 }
44430 arg2 = reinterpret_cast< wxWindow * >(argp2);
44431 if (obj2) {
44432 ecode3 = SWIG_AsVal_int(obj2, &val3);
44433 if (!SWIG_IsOK(ecode3)) {
44434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44435 }
44436 arg3 = static_cast< int >(val3);
44437 }
44438 if (obj3) {
44439 {
44440 arg4 = wxString_in_helper(obj3);
44441 if (arg4 == NULL) SWIG_fail;
44442 temp4 = true;
44443 }
44444 }
44445 if (obj4) {
44446 {
44447 arg5 = wxString_in_helper(obj4);
44448 if (arg5 == NULL) SWIG_fail;
44449 temp5 = true;
44450 }
44451 }
44452 if (obj5) {
44453 {
44454 arg6 = &temp6;
44455 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44456 }
44457 }
44458 if (obj6) {
44459 {
44460 arg7 = &temp7;
44461 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44462 }
44463 }
44464 if (obj7) {
44465 ecode8 = SWIG_AsVal_long(obj7, &val8);
44466 if (!SWIG_IsOK(ecode8)) {
44467 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44468 }
44469 arg8 = static_cast< long >(val8);
44470 }
44471 if (obj8) {
44472 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44473 if (!SWIG_IsOK(res9)) {
44474 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44475 }
44476 if (!argp9) {
44477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44478 }
44479 arg9 = reinterpret_cast< wxValidator * >(argp9);
44480 }
44481 if (obj9) {
44482 {
44483 arg10 = wxString_in_helper(obj9);
44484 if (arg10 == NULL) SWIG_fail;
44485 temp10 = true;
44486 }
44487 }
44488 {
44489 PyThreadState* __tstate = wxPyBeginAllowThreads();
44490 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);
44491 wxPyEndAllowThreads(__tstate);
44492 if (PyErr_Occurred()) SWIG_fail;
44493 }
44494 {
44495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44496 }
44497 {
44498 if (temp4)
44499 delete arg4;
44500 }
44501 {
44502 if (temp5)
44503 delete arg5;
44504 }
44505 {
44506 if (temp10)
44507 delete arg10;
44508 }
44509 return resultobj;
44510 fail:
44511 {
44512 if (temp4)
44513 delete arg4;
44514 }
44515 {
44516 if (temp5)
44517 delete arg5;
44518 }
44519 {
44520 if (temp10)
44521 delete arg10;
44522 }
44523 return NULL;
44524 }
44525
44526
44527 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44528 PyObject *resultobj = 0;
44529 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44530 wxString result;
44531 void *argp1 = 0 ;
44532 int res1 = 0 ;
44533 PyObject *swig_obj[1] ;
44534
44535 if (!args) SWIG_fail;
44536 swig_obj[0] = args;
44537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44538 if (!SWIG_IsOK(res1)) {
44539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44540 }
44541 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44542 {
44543 PyThreadState* __tstate = wxPyBeginAllowThreads();
44544 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44545 wxPyEndAllowThreads(__tstate);
44546 if (PyErr_Occurred()) SWIG_fail;
44547 }
44548 {
44549 #if wxUSE_UNICODE
44550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44551 #else
44552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44553 #endif
44554 }
44555 return resultobj;
44556 fail:
44557 return NULL;
44558 }
44559
44560
44561 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44562 PyObject *resultobj = 0;
44563 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44564 wxString *arg2 = 0 ;
44565 void *argp1 = 0 ;
44566 int res1 = 0 ;
44567 bool temp2 = false ;
44568 PyObject * obj0 = 0 ;
44569 PyObject * obj1 = 0 ;
44570 char * kwnames[] = {
44571 (char *) "self",(char *) "str", NULL
44572 };
44573
44574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44576 if (!SWIG_IsOK(res1)) {
44577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44578 }
44579 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44580 {
44581 arg2 = wxString_in_helper(obj1);
44582 if (arg2 == NULL) SWIG_fail;
44583 temp2 = true;
44584 }
44585 {
44586 PyThreadState* __tstate = wxPyBeginAllowThreads();
44587 (arg1)->SetPath((wxString const &)*arg2);
44588 wxPyEndAllowThreads(__tstate);
44589 if (PyErr_Occurred()) SWIG_fail;
44590 }
44591 resultobj = SWIG_Py_Void();
44592 {
44593 if (temp2)
44594 delete arg2;
44595 }
44596 return resultobj;
44597 fail:
44598 {
44599 if (temp2)
44600 delete arg2;
44601 }
44602 return NULL;
44603 }
44604
44605
44606 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44607 PyObject *resultobj = 0;
44608 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44609 wxString *arg2 = 0 ;
44610 bool result;
44611 void *argp1 = 0 ;
44612 int res1 = 0 ;
44613 bool temp2 = false ;
44614 PyObject * obj0 = 0 ;
44615 PyObject * obj1 = 0 ;
44616 char * kwnames[] = {
44617 (char *) "self",(char *) "path", NULL
44618 };
44619
44620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44622 if (!SWIG_IsOK(res1)) {
44623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44624 }
44625 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44626 {
44627 arg2 = wxString_in_helper(obj1);
44628 if (arg2 == NULL) SWIG_fail;
44629 temp2 = true;
44630 }
44631 {
44632 PyThreadState* __tstate = wxPyBeginAllowThreads();
44633 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44634 wxPyEndAllowThreads(__tstate);
44635 if (PyErr_Occurred()) SWIG_fail;
44636 }
44637 {
44638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44639 }
44640 {
44641 if (temp2)
44642 delete arg2;
44643 }
44644 return resultobj;
44645 fail:
44646 {
44647 if (temp2)
44648 delete arg2;
44649 }
44650 return NULL;
44651 }
44652
44653
44654 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44655 PyObject *resultobj = 0;
44656 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44657 wxString result;
44658 void *argp1 = 0 ;
44659 int res1 = 0 ;
44660 PyObject *swig_obj[1] ;
44661
44662 if (!args) SWIG_fail;
44663 swig_obj[0] = args;
44664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44665 if (!SWIG_IsOK(res1)) {
44666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44667 }
44668 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44669 {
44670 PyThreadState* __tstate = wxPyBeginAllowThreads();
44671 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44672 wxPyEndAllowThreads(__tstate);
44673 if (PyErr_Occurred()) SWIG_fail;
44674 }
44675 {
44676 #if wxUSE_UNICODE
44677 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44678 #else
44679 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44680 #endif
44681 }
44682 return resultobj;
44683 fail:
44684 return NULL;
44685 }
44686
44687
44688 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44689 PyObject *obj;
44690 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44691 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44692 return SWIG_Py_Void();
44693 }
44694
44695 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44696 return SWIG_Python_InitShadowInstance(args);
44697 }
44698
44699 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44700 PyObject *resultobj = 0;
44701 wxEventType arg1 ;
44702 wxObject *arg2 = (wxObject *) 0 ;
44703 int arg3 ;
44704 wxString *arg4 = 0 ;
44705 wxFileDirPickerEvent *result = 0 ;
44706 int val1 ;
44707 int ecode1 = 0 ;
44708 void *argp2 = 0 ;
44709 int res2 = 0 ;
44710 int val3 ;
44711 int ecode3 = 0 ;
44712 bool temp4 = false ;
44713 PyObject * obj0 = 0 ;
44714 PyObject * obj1 = 0 ;
44715 PyObject * obj2 = 0 ;
44716 PyObject * obj3 = 0 ;
44717 char * kwnames[] = {
44718 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44719 };
44720
44721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44722 ecode1 = SWIG_AsVal_int(obj0, &val1);
44723 if (!SWIG_IsOK(ecode1)) {
44724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44725 }
44726 arg1 = static_cast< wxEventType >(val1);
44727 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44728 if (!SWIG_IsOK(res2)) {
44729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44730 }
44731 arg2 = reinterpret_cast< wxObject * >(argp2);
44732 ecode3 = SWIG_AsVal_int(obj2, &val3);
44733 if (!SWIG_IsOK(ecode3)) {
44734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44735 }
44736 arg3 = static_cast< int >(val3);
44737 {
44738 arg4 = wxString_in_helper(obj3);
44739 if (arg4 == NULL) SWIG_fail;
44740 temp4 = true;
44741 }
44742 {
44743 PyThreadState* __tstate = wxPyBeginAllowThreads();
44744 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44745 wxPyEndAllowThreads(__tstate);
44746 if (PyErr_Occurred()) SWIG_fail;
44747 }
44748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44749 {
44750 if (temp4)
44751 delete arg4;
44752 }
44753 return resultobj;
44754 fail:
44755 {
44756 if (temp4)
44757 delete arg4;
44758 }
44759 return NULL;
44760 }
44761
44762
44763 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44764 PyObject *resultobj = 0;
44765 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44766 wxString result;
44767 void *argp1 = 0 ;
44768 int res1 = 0 ;
44769 PyObject *swig_obj[1] ;
44770
44771 if (!args) SWIG_fail;
44772 swig_obj[0] = args;
44773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44774 if (!SWIG_IsOK(res1)) {
44775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44776 }
44777 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44778 {
44779 PyThreadState* __tstate = wxPyBeginAllowThreads();
44780 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44781 wxPyEndAllowThreads(__tstate);
44782 if (PyErr_Occurred()) SWIG_fail;
44783 }
44784 {
44785 #if wxUSE_UNICODE
44786 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44787 #else
44788 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44789 #endif
44790 }
44791 return resultobj;
44792 fail:
44793 return NULL;
44794 }
44795
44796
44797 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44798 PyObject *resultobj = 0;
44799 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44800 wxString *arg2 = 0 ;
44801 void *argp1 = 0 ;
44802 int res1 = 0 ;
44803 bool temp2 = false ;
44804 PyObject * obj0 = 0 ;
44805 PyObject * obj1 = 0 ;
44806 char * kwnames[] = {
44807 (char *) "self",(char *) "p", NULL
44808 };
44809
44810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44812 if (!SWIG_IsOK(res1)) {
44813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44814 }
44815 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44816 {
44817 arg2 = wxString_in_helper(obj1);
44818 if (arg2 == NULL) SWIG_fail;
44819 temp2 = true;
44820 }
44821 {
44822 PyThreadState* __tstate = wxPyBeginAllowThreads();
44823 (arg1)->SetPath((wxString const &)*arg2);
44824 wxPyEndAllowThreads(__tstate);
44825 if (PyErr_Occurred()) SWIG_fail;
44826 }
44827 resultobj = SWIG_Py_Void();
44828 {
44829 if (temp2)
44830 delete arg2;
44831 }
44832 return resultobj;
44833 fail:
44834 {
44835 if (temp2)
44836 delete arg2;
44837 }
44838 return NULL;
44839 }
44840
44841
44842 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44843 PyObject *obj;
44844 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44845 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44846 return SWIG_Py_Void();
44847 }
44848
44849 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44850 return SWIG_Python_InitShadowInstance(args);
44851 }
44852
44853 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44854 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44855 return 1;
44856 }
44857
44858
44859 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44860 PyObject *pyobj = 0;
44861
44862 {
44863 #if wxUSE_UNICODE
44864 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44865 #else
44866 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44867 #endif
44868 }
44869 return pyobj;
44870 }
44871
44872
44873 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44874 PyObject *resultobj = 0;
44875 wxWindow *arg1 = (wxWindow *) 0 ;
44876 int arg2 = (int) -1 ;
44877 wxFont const &arg3_defvalue = wxNullFont ;
44878 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44879 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44880 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44881 wxSize const &arg5_defvalue = wxDefaultSize ;
44882 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44883 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44884 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44885 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44886 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44887 wxString *arg8 = (wxString *) &arg8_defvalue ;
44888 wxFontPickerCtrl *result = 0 ;
44889 void *argp1 = 0 ;
44890 int res1 = 0 ;
44891 int val2 ;
44892 int ecode2 = 0 ;
44893 void *argp3 = 0 ;
44894 int res3 = 0 ;
44895 wxPoint temp4 ;
44896 wxSize temp5 ;
44897 long val6 ;
44898 int ecode6 = 0 ;
44899 void *argp7 = 0 ;
44900 int res7 = 0 ;
44901 bool temp8 = false ;
44902 PyObject * obj0 = 0 ;
44903 PyObject * obj1 = 0 ;
44904 PyObject * obj2 = 0 ;
44905 PyObject * obj3 = 0 ;
44906 PyObject * obj4 = 0 ;
44907 PyObject * obj5 = 0 ;
44908 PyObject * obj6 = 0 ;
44909 PyObject * obj7 = 0 ;
44910 char * kwnames[] = {
44911 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44912 };
44913
44914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44916 if (!SWIG_IsOK(res1)) {
44917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44918 }
44919 arg1 = reinterpret_cast< wxWindow * >(argp1);
44920 if (obj1) {
44921 ecode2 = SWIG_AsVal_int(obj1, &val2);
44922 if (!SWIG_IsOK(ecode2)) {
44923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44924 }
44925 arg2 = static_cast< int >(val2);
44926 }
44927 if (obj2) {
44928 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44929 if (!SWIG_IsOK(res3)) {
44930 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44931 }
44932 if (!argp3) {
44933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44934 }
44935 arg3 = reinterpret_cast< wxFont * >(argp3);
44936 }
44937 if (obj3) {
44938 {
44939 arg4 = &temp4;
44940 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44941 }
44942 }
44943 if (obj4) {
44944 {
44945 arg5 = &temp5;
44946 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44947 }
44948 }
44949 if (obj5) {
44950 ecode6 = SWIG_AsVal_long(obj5, &val6);
44951 if (!SWIG_IsOK(ecode6)) {
44952 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44953 }
44954 arg6 = static_cast< long >(val6);
44955 }
44956 if (obj6) {
44957 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44958 if (!SWIG_IsOK(res7)) {
44959 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44960 }
44961 if (!argp7) {
44962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44963 }
44964 arg7 = reinterpret_cast< wxValidator * >(argp7);
44965 }
44966 if (obj7) {
44967 {
44968 arg8 = wxString_in_helper(obj7);
44969 if (arg8 == NULL) SWIG_fail;
44970 temp8 = true;
44971 }
44972 }
44973 {
44974 if (!wxPyCheckForApp()) SWIG_fail;
44975 PyThreadState* __tstate = wxPyBeginAllowThreads();
44976 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44977 wxPyEndAllowThreads(__tstate);
44978 if (PyErr_Occurred()) SWIG_fail;
44979 }
44980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44981 {
44982 if (temp8)
44983 delete arg8;
44984 }
44985 return resultobj;
44986 fail:
44987 {
44988 if (temp8)
44989 delete arg8;
44990 }
44991 return NULL;
44992 }
44993
44994
44995 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44996 PyObject *resultobj = 0;
44997 wxFontPickerCtrl *result = 0 ;
44998
44999 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45000 {
45001 if (!wxPyCheckForApp()) SWIG_fail;
45002 PyThreadState* __tstate = wxPyBeginAllowThreads();
45003 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45004 wxPyEndAllowThreads(__tstate);
45005 if (PyErr_Occurred()) SWIG_fail;
45006 }
45007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45008 return resultobj;
45009 fail:
45010 return NULL;
45011 }
45012
45013
45014 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45015 PyObject *resultobj = 0;
45016 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45017 wxWindow *arg2 = (wxWindow *) 0 ;
45018 int arg3 = (int) -1 ;
45019 wxFont const &arg4_defvalue = wxNullFont ;
45020 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45021 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45022 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45023 wxSize const &arg6_defvalue = wxDefaultSize ;
45024 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45025 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45026 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45027 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45028 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45029 wxString *arg9 = (wxString *) &arg9_defvalue ;
45030 bool result;
45031 void *argp1 = 0 ;
45032 int res1 = 0 ;
45033 void *argp2 = 0 ;
45034 int res2 = 0 ;
45035 int val3 ;
45036 int ecode3 = 0 ;
45037 void *argp4 = 0 ;
45038 int res4 = 0 ;
45039 wxPoint temp5 ;
45040 wxSize temp6 ;
45041 long val7 ;
45042 int ecode7 = 0 ;
45043 void *argp8 = 0 ;
45044 int res8 = 0 ;
45045 bool temp9 = false ;
45046 PyObject * obj0 = 0 ;
45047 PyObject * obj1 = 0 ;
45048 PyObject * obj2 = 0 ;
45049 PyObject * obj3 = 0 ;
45050 PyObject * obj4 = 0 ;
45051 PyObject * obj5 = 0 ;
45052 PyObject * obj6 = 0 ;
45053 PyObject * obj7 = 0 ;
45054 PyObject * obj8 = 0 ;
45055 char * kwnames[] = {
45056 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45057 };
45058
45059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45061 if (!SWIG_IsOK(res1)) {
45062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45063 }
45064 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45065 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45066 if (!SWIG_IsOK(res2)) {
45067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45068 }
45069 arg2 = reinterpret_cast< wxWindow * >(argp2);
45070 if (obj2) {
45071 ecode3 = SWIG_AsVal_int(obj2, &val3);
45072 if (!SWIG_IsOK(ecode3)) {
45073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45074 }
45075 arg3 = static_cast< int >(val3);
45076 }
45077 if (obj3) {
45078 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45079 if (!SWIG_IsOK(res4)) {
45080 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45081 }
45082 if (!argp4) {
45083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45084 }
45085 arg4 = reinterpret_cast< wxFont * >(argp4);
45086 }
45087 if (obj4) {
45088 {
45089 arg5 = &temp5;
45090 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45091 }
45092 }
45093 if (obj5) {
45094 {
45095 arg6 = &temp6;
45096 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45097 }
45098 }
45099 if (obj6) {
45100 ecode7 = SWIG_AsVal_long(obj6, &val7);
45101 if (!SWIG_IsOK(ecode7)) {
45102 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45103 }
45104 arg7 = static_cast< long >(val7);
45105 }
45106 if (obj7) {
45107 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45108 if (!SWIG_IsOK(res8)) {
45109 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45110 }
45111 if (!argp8) {
45112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45113 }
45114 arg8 = reinterpret_cast< wxValidator * >(argp8);
45115 }
45116 if (obj8) {
45117 {
45118 arg9 = wxString_in_helper(obj8);
45119 if (arg9 == NULL) SWIG_fail;
45120 temp9 = true;
45121 }
45122 }
45123 {
45124 PyThreadState* __tstate = wxPyBeginAllowThreads();
45125 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45126 wxPyEndAllowThreads(__tstate);
45127 if (PyErr_Occurred()) SWIG_fail;
45128 }
45129 {
45130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45131 }
45132 {
45133 if (temp9)
45134 delete arg9;
45135 }
45136 return resultobj;
45137 fail:
45138 {
45139 if (temp9)
45140 delete arg9;
45141 }
45142 return NULL;
45143 }
45144
45145
45146 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45147 PyObject *resultobj = 0;
45148 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45149 wxFont result;
45150 void *argp1 = 0 ;
45151 int res1 = 0 ;
45152 PyObject *swig_obj[1] ;
45153
45154 if (!args) SWIG_fail;
45155 swig_obj[0] = args;
45156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45157 if (!SWIG_IsOK(res1)) {
45158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45159 }
45160 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45161 {
45162 PyThreadState* __tstate = wxPyBeginAllowThreads();
45163 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45164 wxPyEndAllowThreads(__tstate);
45165 if (PyErr_Occurred()) SWIG_fail;
45166 }
45167 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45168 return resultobj;
45169 fail:
45170 return NULL;
45171 }
45172
45173
45174 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45175 PyObject *resultobj = 0;
45176 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45177 wxFont *arg2 = 0 ;
45178 void *argp1 = 0 ;
45179 int res1 = 0 ;
45180 void *argp2 = 0 ;
45181 int res2 = 0 ;
45182 PyObject * obj0 = 0 ;
45183 PyObject * obj1 = 0 ;
45184 char * kwnames[] = {
45185 (char *) "self",(char *) "f", NULL
45186 };
45187
45188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45190 if (!SWIG_IsOK(res1)) {
45191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45192 }
45193 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45194 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45195 if (!SWIG_IsOK(res2)) {
45196 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45197 }
45198 if (!argp2) {
45199 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45200 }
45201 arg2 = reinterpret_cast< wxFont * >(argp2);
45202 {
45203 PyThreadState* __tstate = wxPyBeginAllowThreads();
45204 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45205 wxPyEndAllowThreads(__tstate);
45206 if (PyErr_Occurred()) SWIG_fail;
45207 }
45208 resultobj = SWIG_Py_Void();
45209 return resultobj;
45210 fail:
45211 return NULL;
45212 }
45213
45214
45215 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45216 PyObject *resultobj = 0;
45217 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45218 unsigned int arg2 ;
45219 void *argp1 = 0 ;
45220 int res1 = 0 ;
45221 unsigned int val2 ;
45222 int ecode2 = 0 ;
45223 PyObject * obj0 = 0 ;
45224 PyObject * obj1 = 0 ;
45225 char * kwnames[] = {
45226 (char *) "self",(char *) "max", NULL
45227 };
45228
45229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45231 if (!SWIG_IsOK(res1)) {
45232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45233 }
45234 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45235 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45236 if (!SWIG_IsOK(ecode2)) {
45237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45238 }
45239 arg2 = static_cast< unsigned int >(val2);
45240 {
45241 PyThreadState* __tstate = wxPyBeginAllowThreads();
45242 (arg1)->SetMaxPointSize(arg2);
45243 wxPyEndAllowThreads(__tstate);
45244 if (PyErr_Occurred()) SWIG_fail;
45245 }
45246 resultobj = SWIG_Py_Void();
45247 return resultobj;
45248 fail:
45249 return NULL;
45250 }
45251
45252
45253 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45254 PyObject *resultobj = 0;
45255 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45256 unsigned int result;
45257 void *argp1 = 0 ;
45258 int res1 = 0 ;
45259 PyObject *swig_obj[1] ;
45260
45261 if (!args) SWIG_fail;
45262 swig_obj[0] = args;
45263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45264 if (!SWIG_IsOK(res1)) {
45265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45266 }
45267 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45268 {
45269 PyThreadState* __tstate = wxPyBeginAllowThreads();
45270 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45271 wxPyEndAllowThreads(__tstate);
45272 if (PyErr_Occurred()) SWIG_fail;
45273 }
45274 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45275 return resultobj;
45276 fail:
45277 return NULL;
45278 }
45279
45280
45281 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45282 PyObject *obj;
45283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45284 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45285 return SWIG_Py_Void();
45286 }
45287
45288 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45289 return SWIG_Python_InitShadowInstance(args);
45290 }
45291
45292 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45293 PyObject *resultobj = 0;
45294 wxObject *arg1 = (wxObject *) 0 ;
45295 int arg2 ;
45296 wxFont *arg3 = 0 ;
45297 wxFontPickerEvent *result = 0 ;
45298 void *argp1 = 0 ;
45299 int res1 = 0 ;
45300 int val2 ;
45301 int ecode2 = 0 ;
45302 void *argp3 = 0 ;
45303 int res3 = 0 ;
45304 PyObject * obj0 = 0 ;
45305 PyObject * obj1 = 0 ;
45306 PyObject * obj2 = 0 ;
45307 char * kwnames[] = {
45308 (char *) "generator",(char *) "id",(char *) "f", NULL
45309 };
45310
45311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45313 if (!SWIG_IsOK(res1)) {
45314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45315 }
45316 arg1 = reinterpret_cast< wxObject * >(argp1);
45317 ecode2 = SWIG_AsVal_int(obj1, &val2);
45318 if (!SWIG_IsOK(ecode2)) {
45319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45320 }
45321 arg2 = static_cast< int >(val2);
45322 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45323 if (!SWIG_IsOK(res3)) {
45324 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45325 }
45326 if (!argp3) {
45327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45328 }
45329 arg3 = reinterpret_cast< wxFont * >(argp3);
45330 {
45331 PyThreadState* __tstate = wxPyBeginAllowThreads();
45332 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45333 wxPyEndAllowThreads(__tstate);
45334 if (PyErr_Occurred()) SWIG_fail;
45335 }
45336 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45337 return resultobj;
45338 fail:
45339 return NULL;
45340 }
45341
45342
45343 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45344 PyObject *resultobj = 0;
45345 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45346 wxFont result;
45347 void *argp1 = 0 ;
45348 int res1 = 0 ;
45349 PyObject *swig_obj[1] ;
45350
45351 if (!args) SWIG_fail;
45352 swig_obj[0] = args;
45353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45354 if (!SWIG_IsOK(res1)) {
45355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45356 }
45357 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45358 {
45359 PyThreadState* __tstate = wxPyBeginAllowThreads();
45360 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45361 wxPyEndAllowThreads(__tstate);
45362 if (PyErr_Occurred()) SWIG_fail;
45363 }
45364 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45365 return resultobj;
45366 fail:
45367 return NULL;
45368 }
45369
45370
45371 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45372 PyObject *resultobj = 0;
45373 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45374 wxFont *arg2 = 0 ;
45375 void *argp1 = 0 ;
45376 int res1 = 0 ;
45377 void *argp2 = 0 ;
45378 int res2 = 0 ;
45379 PyObject * obj0 = 0 ;
45380 PyObject * obj1 = 0 ;
45381 char * kwnames[] = {
45382 (char *) "self",(char *) "c", NULL
45383 };
45384
45385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45387 if (!SWIG_IsOK(res1)) {
45388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45389 }
45390 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45392 if (!SWIG_IsOK(res2)) {
45393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45394 }
45395 if (!argp2) {
45396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45397 }
45398 arg2 = reinterpret_cast< wxFont * >(argp2);
45399 {
45400 PyThreadState* __tstate = wxPyBeginAllowThreads();
45401 (arg1)->SetFont((wxFont const &)*arg2);
45402 wxPyEndAllowThreads(__tstate);
45403 if (PyErr_Occurred()) SWIG_fail;
45404 }
45405 resultobj = SWIG_Py_Void();
45406 return resultobj;
45407 fail:
45408 return NULL;
45409 }
45410
45411
45412 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45413 PyObject *obj;
45414 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45415 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45416 return SWIG_Py_Void();
45417 }
45418
45419 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45420 return SWIG_Python_InitShadowInstance(args);
45421 }
45422
45423 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45424 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45425 return 1;
45426 }
45427
45428
45429 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45430 PyObject *pyobj = 0;
45431
45432 {
45433 #if wxUSE_UNICODE
45434 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45435 #else
45436 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45437 #endif
45438 }
45439 return pyobj;
45440 }
45441
45442
45443 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45444 PyObject *resultobj = 0;
45445 wxWindow *arg1 = (wxWindow *) 0 ;
45446 int arg2 = (int) -1 ;
45447 wxString const &arg3_defvalue = wxPyEmptyString ;
45448 wxString *arg3 = (wxString *) &arg3_defvalue ;
45449 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45450 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45451 wxSize const &arg5_defvalue = wxDefaultSize ;
45452 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45453 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45454 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45455 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45456 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45457 wxString *arg8 = (wxString *) &arg8_defvalue ;
45458 wxCollapsiblePane *result = 0 ;
45459 void *argp1 = 0 ;
45460 int res1 = 0 ;
45461 int val2 ;
45462 int ecode2 = 0 ;
45463 bool temp3 = false ;
45464 wxPoint temp4 ;
45465 wxSize temp5 ;
45466 long val6 ;
45467 int ecode6 = 0 ;
45468 void *argp7 = 0 ;
45469 int res7 = 0 ;
45470 bool temp8 = false ;
45471 PyObject * obj0 = 0 ;
45472 PyObject * obj1 = 0 ;
45473 PyObject * obj2 = 0 ;
45474 PyObject * obj3 = 0 ;
45475 PyObject * obj4 = 0 ;
45476 PyObject * obj5 = 0 ;
45477 PyObject * obj6 = 0 ;
45478 PyObject * obj7 = 0 ;
45479 char * kwnames[] = {
45480 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45481 };
45482
45483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45485 if (!SWIG_IsOK(res1)) {
45486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45487 }
45488 arg1 = reinterpret_cast< wxWindow * >(argp1);
45489 if (obj1) {
45490 ecode2 = SWIG_AsVal_int(obj1, &val2);
45491 if (!SWIG_IsOK(ecode2)) {
45492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45493 }
45494 arg2 = static_cast< int >(val2);
45495 }
45496 if (obj2) {
45497 {
45498 arg3 = wxString_in_helper(obj2);
45499 if (arg3 == NULL) SWIG_fail;
45500 temp3 = true;
45501 }
45502 }
45503 if (obj3) {
45504 {
45505 arg4 = &temp4;
45506 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45507 }
45508 }
45509 if (obj4) {
45510 {
45511 arg5 = &temp5;
45512 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45513 }
45514 }
45515 if (obj5) {
45516 ecode6 = SWIG_AsVal_long(obj5, &val6);
45517 if (!SWIG_IsOK(ecode6)) {
45518 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45519 }
45520 arg6 = static_cast< long >(val6);
45521 }
45522 if (obj6) {
45523 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45524 if (!SWIG_IsOK(res7)) {
45525 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45526 }
45527 if (!argp7) {
45528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45529 }
45530 arg7 = reinterpret_cast< wxValidator * >(argp7);
45531 }
45532 if (obj7) {
45533 {
45534 arg8 = wxString_in_helper(obj7);
45535 if (arg8 == NULL) SWIG_fail;
45536 temp8 = true;
45537 }
45538 }
45539 {
45540 if (!wxPyCheckForApp()) SWIG_fail;
45541 PyThreadState* __tstate = wxPyBeginAllowThreads();
45542 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45543 wxPyEndAllowThreads(__tstate);
45544 if (PyErr_Occurred()) SWIG_fail;
45545 }
45546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45547 {
45548 if (temp3)
45549 delete arg3;
45550 }
45551 {
45552 if (temp8)
45553 delete arg8;
45554 }
45555 return resultobj;
45556 fail:
45557 {
45558 if (temp3)
45559 delete arg3;
45560 }
45561 {
45562 if (temp8)
45563 delete arg8;
45564 }
45565 return NULL;
45566 }
45567
45568
45569 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45570 PyObject *resultobj = 0;
45571 wxCollapsiblePane *result = 0 ;
45572
45573 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45574 {
45575 if (!wxPyCheckForApp()) SWIG_fail;
45576 PyThreadState* __tstate = wxPyBeginAllowThreads();
45577 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45578 wxPyEndAllowThreads(__tstate);
45579 if (PyErr_Occurred()) SWIG_fail;
45580 }
45581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45582 return resultobj;
45583 fail:
45584 return NULL;
45585 }
45586
45587
45588 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45589 PyObject *resultobj = 0;
45590 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45591 wxWindow *arg2 = (wxWindow *) 0 ;
45592 int arg3 = (int) -1 ;
45593 wxString const &arg4_defvalue = wxPyEmptyString ;
45594 wxString *arg4 = (wxString *) &arg4_defvalue ;
45595 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45596 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45597 wxSize const &arg6_defvalue = wxDefaultSize ;
45598 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45599 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45600 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45601 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45602 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45603 wxString *arg9 = (wxString *) &arg9_defvalue ;
45604 bool result;
45605 void *argp1 = 0 ;
45606 int res1 = 0 ;
45607 void *argp2 = 0 ;
45608 int res2 = 0 ;
45609 int val3 ;
45610 int ecode3 = 0 ;
45611 bool temp4 = false ;
45612 wxPoint temp5 ;
45613 wxSize temp6 ;
45614 long val7 ;
45615 int ecode7 = 0 ;
45616 void *argp8 = 0 ;
45617 int res8 = 0 ;
45618 bool temp9 = false ;
45619 PyObject * obj0 = 0 ;
45620 PyObject * obj1 = 0 ;
45621 PyObject * obj2 = 0 ;
45622 PyObject * obj3 = 0 ;
45623 PyObject * obj4 = 0 ;
45624 PyObject * obj5 = 0 ;
45625 PyObject * obj6 = 0 ;
45626 PyObject * obj7 = 0 ;
45627 PyObject * obj8 = 0 ;
45628 char * kwnames[] = {
45629 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45630 };
45631
45632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45634 if (!SWIG_IsOK(res1)) {
45635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45636 }
45637 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45638 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45639 if (!SWIG_IsOK(res2)) {
45640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45641 }
45642 arg2 = reinterpret_cast< wxWindow * >(argp2);
45643 if (obj2) {
45644 ecode3 = SWIG_AsVal_int(obj2, &val3);
45645 if (!SWIG_IsOK(ecode3)) {
45646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45647 }
45648 arg3 = static_cast< int >(val3);
45649 }
45650 if (obj3) {
45651 {
45652 arg4 = wxString_in_helper(obj3);
45653 if (arg4 == NULL) SWIG_fail;
45654 temp4 = true;
45655 }
45656 }
45657 if (obj4) {
45658 {
45659 arg5 = &temp5;
45660 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45661 }
45662 }
45663 if (obj5) {
45664 {
45665 arg6 = &temp6;
45666 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45667 }
45668 }
45669 if (obj6) {
45670 ecode7 = SWIG_AsVal_long(obj6, &val7);
45671 if (!SWIG_IsOK(ecode7)) {
45672 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45673 }
45674 arg7 = static_cast< long >(val7);
45675 }
45676 if (obj7) {
45677 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45678 if (!SWIG_IsOK(res8)) {
45679 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45680 }
45681 if (!argp8) {
45682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45683 }
45684 arg8 = reinterpret_cast< wxValidator * >(argp8);
45685 }
45686 if (obj8) {
45687 {
45688 arg9 = wxString_in_helper(obj8);
45689 if (arg9 == NULL) SWIG_fail;
45690 temp9 = true;
45691 }
45692 }
45693 {
45694 PyThreadState* __tstate = wxPyBeginAllowThreads();
45695 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45696 wxPyEndAllowThreads(__tstate);
45697 if (PyErr_Occurred()) SWIG_fail;
45698 }
45699 {
45700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45701 }
45702 {
45703 if (temp4)
45704 delete arg4;
45705 }
45706 {
45707 if (temp9)
45708 delete arg9;
45709 }
45710 return resultobj;
45711 fail:
45712 {
45713 if (temp4)
45714 delete arg4;
45715 }
45716 {
45717 if (temp9)
45718 delete arg9;
45719 }
45720 return NULL;
45721 }
45722
45723
45724 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45725 PyObject *resultobj = 0;
45726 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45727 bool arg2 = (bool) true ;
45728 void *argp1 = 0 ;
45729 int res1 = 0 ;
45730 bool val2 ;
45731 int ecode2 = 0 ;
45732 PyObject * obj0 = 0 ;
45733 PyObject * obj1 = 0 ;
45734 char * kwnames[] = {
45735 (char *) "self",(char *) "collapse", NULL
45736 };
45737
45738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45740 if (!SWIG_IsOK(res1)) {
45741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45742 }
45743 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45744 if (obj1) {
45745 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45746 if (!SWIG_IsOK(ecode2)) {
45747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45748 }
45749 arg2 = static_cast< bool >(val2);
45750 }
45751 {
45752 PyThreadState* __tstate = wxPyBeginAllowThreads();
45753 (arg1)->Collapse(arg2);
45754 wxPyEndAllowThreads(__tstate);
45755 if (PyErr_Occurred()) SWIG_fail;
45756 }
45757 resultobj = SWIG_Py_Void();
45758 return resultobj;
45759 fail:
45760 return NULL;
45761 }
45762
45763
45764 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45765 PyObject *resultobj = 0;
45766 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45767 void *argp1 = 0 ;
45768 int res1 = 0 ;
45769 PyObject *swig_obj[1] ;
45770
45771 if (!args) SWIG_fail;
45772 swig_obj[0] = args;
45773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45774 if (!SWIG_IsOK(res1)) {
45775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45776 }
45777 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45778 {
45779 PyThreadState* __tstate = wxPyBeginAllowThreads();
45780 (arg1)->Expand();
45781 wxPyEndAllowThreads(__tstate);
45782 if (PyErr_Occurred()) SWIG_fail;
45783 }
45784 resultobj = SWIG_Py_Void();
45785 return resultobj;
45786 fail:
45787 return NULL;
45788 }
45789
45790
45791 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45792 PyObject *resultobj = 0;
45793 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45794 bool result;
45795 void *argp1 = 0 ;
45796 int res1 = 0 ;
45797 PyObject *swig_obj[1] ;
45798
45799 if (!args) SWIG_fail;
45800 swig_obj[0] = args;
45801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45802 if (!SWIG_IsOK(res1)) {
45803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45804 }
45805 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45806 {
45807 PyThreadState* __tstate = wxPyBeginAllowThreads();
45808 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
45809 wxPyEndAllowThreads(__tstate);
45810 if (PyErr_Occurred()) SWIG_fail;
45811 }
45812 {
45813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45814 }
45815 return resultobj;
45816 fail:
45817 return NULL;
45818 }
45819
45820
45821 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45822 PyObject *resultobj = 0;
45823 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45824 bool result;
45825 void *argp1 = 0 ;
45826 int res1 = 0 ;
45827 PyObject *swig_obj[1] ;
45828
45829 if (!args) SWIG_fail;
45830 swig_obj[0] = args;
45831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45832 if (!SWIG_IsOK(res1)) {
45833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45834 }
45835 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45836 {
45837 PyThreadState* __tstate = wxPyBeginAllowThreads();
45838 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
45839 wxPyEndAllowThreads(__tstate);
45840 if (PyErr_Occurred()) SWIG_fail;
45841 }
45842 {
45843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45844 }
45845 return resultobj;
45846 fail:
45847 return NULL;
45848 }
45849
45850
45851 SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45852 PyObject *resultobj = 0;
45853 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45854 wxWindow *result = 0 ;
45855 void *argp1 = 0 ;
45856 int res1 = 0 ;
45857 PyObject *swig_obj[1] ;
45858
45859 if (!args) SWIG_fail;
45860 swig_obj[0] = args;
45861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45862 if (!SWIG_IsOK(res1)) {
45863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45864 }
45865 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45866 {
45867 PyThreadState* __tstate = wxPyBeginAllowThreads();
45868 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
45869 wxPyEndAllowThreads(__tstate);
45870 if (PyErr_Occurred()) SWIG_fail;
45871 }
45872 {
45873 resultobj = wxPyMake_wxObject(result, 0);
45874 }
45875 return resultobj;
45876 fail:
45877 return NULL;
45878 }
45879
45880
45881 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45882 PyObject *obj;
45883 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45884 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
45885 return SWIG_Py_Void();
45886 }
45887
45888 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45889 return SWIG_Python_InitShadowInstance(args);
45890 }
45891
45892 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45893 PyObject *resultobj = 0;
45894 wxObject *arg1 = (wxObject *) 0 ;
45895 int arg2 ;
45896 bool arg3 ;
45897 wxCollapsiblePaneEvent *result = 0 ;
45898 void *argp1 = 0 ;
45899 int res1 = 0 ;
45900 int val2 ;
45901 int ecode2 = 0 ;
45902 bool val3 ;
45903 int ecode3 = 0 ;
45904 PyObject * obj0 = 0 ;
45905 PyObject * obj1 = 0 ;
45906 PyObject * obj2 = 0 ;
45907 char * kwnames[] = {
45908 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
45909 };
45910
45911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45913 if (!SWIG_IsOK(res1)) {
45914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45915 }
45916 arg1 = reinterpret_cast< wxObject * >(argp1);
45917 ecode2 = SWIG_AsVal_int(obj1, &val2);
45918 if (!SWIG_IsOK(ecode2)) {
45919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
45920 }
45921 arg2 = static_cast< int >(val2);
45922 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45923 if (!SWIG_IsOK(ecode3)) {
45924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
45925 }
45926 arg3 = static_cast< bool >(val3);
45927 {
45928 PyThreadState* __tstate = wxPyBeginAllowThreads();
45929 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
45930 wxPyEndAllowThreads(__tstate);
45931 if (PyErr_Occurred()) SWIG_fail;
45932 }
45933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
45934 return resultobj;
45935 fail:
45936 return NULL;
45937 }
45938
45939
45940 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45941 PyObject *resultobj = 0;
45942 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45943 bool result;
45944 void *argp1 = 0 ;
45945 int res1 = 0 ;
45946 PyObject *swig_obj[1] ;
45947
45948 if (!args) SWIG_fail;
45949 swig_obj[0] = args;
45950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45951 if (!SWIG_IsOK(res1)) {
45952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
45953 }
45954 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45955 {
45956 PyThreadState* __tstate = wxPyBeginAllowThreads();
45957 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
45958 wxPyEndAllowThreads(__tstate);
45959 if (PyErr_Occurred()) SWIG_fail;
45960 }
45961 {
45962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45963 }
45964 return resultobj;
45965 fail:
45966 return NULL;
45967 }
45968
45969
45970 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45971 PyObject *resultobj = 0;
45972 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45973 bool arg2 ;
45974 void *argp1 = 0 ;
45975 int res1 = 0 ;
45976 bool val2 ;
45977 int ecode2 = 0 ;
45978 PyObject * obj0 = 0 ;
45979 PyObject * obj1 = 0 ;
45980 char * kwnames[] = {
45981 (char *) "self",(char *) "c", NULL
45982 };
45983
45984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
45985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45986 if (!SWIG_IsOK(res1)) {
45987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
45988 }
45989 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45990 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45991 if (!SWIG_IsOK(ecode2)) {
45992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
45993 }
45994 arg2 = static_cast< bool >(val2);
45995 {
45996 PyThreadState* __tstate = wxPyBeginAllowThreads();
45997 (arg1)->SetCollapsed(arg2);
45998 wxPyEndAllowThreads(__tstate);
45999 if (PyErr_Occurred()) SWIG_fail;
46000 }
46001 resultobj = SWIG_Py_Void();
46002 return resultobj;
46003 fail:
46004 return NULL;
46005 }
46006
46007
46008 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46009 PyObject *obj;
46010 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46011 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46012 return SWIG_Py_Void();
46013 }
46014
46015 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46016 return SWIG_Python_InitShadowInstance(args);
46017 }
46018
46019 SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
46020 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
46021 return 1;
46022 }
46023
46024
46025 SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
46026 PyObject *pyobj = 0;
46027
46028 {
46029 #if wxUSE_UNICODE
46030 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46031 #else
46032 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46033 #endif
46034 }
46035 return pyobj;
46036 }
46037
46038
46039 SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46040 PyObject *resultobj = 0;
46041 wxWindow *arg1 = (wxWindow *) 0 ;
46042 int arg2 = (int) -1 ;
46043 wxString const &arg3_defvalue = wxEmptyString ;
46044 wxString *arg3 = (wxString *) &arg3_defvalue ;
46045 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46046 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46047 wxSize const &arg5_defvalue = wxDefaultSize ;
46048 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46049 long arg6 = (long) 0 ;
46050 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46051 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46052 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
46053 wxString *arg8 = (wxString *) &arg8_defvalue ;
46054 wxSearchCtrl *result = 0 ;
46055 void *argp1 = 0 ;
46056 int res1 = 0 ;
46057 int val2 ;
46058 int ecode2 = 0 ;
46059 bool temp3 = false ;
46060 wxPoint temp4 ;
46061 wxSize temp5 ;
46062 long val6 ;
46063 int ecode6 = 0 ;
46064 void *argp7 = 0 ;
46065 int res7 = 0 ;
46066 bool temp8 = false ;
46067 PyObject * obj0 = 0 ;
46068 PyObject * obj1 = 0 ;
46069 PyObject * obj2 = 0 ;
46070 PyObject * obj3 = 0 ;
46071 PyObject * obj4 = 0 ;
46072 PyObject * obj5 = 0 ;
46073 PyObject * obj6 = 0 ;
46074 PyObject * obj7 = 0 ;
46075 char * kwnames[] = {
46076 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46077 };
46078
46079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46081 if (!SWIG_IsOK(res1)) {
46082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46083 }
46084 arg1 = reinterpret_cast< wxWindow * >(argp1);
46085 if (obj1) {
46086 ecode2 = SWIG_AsVal_int(obj1, &val2);
46087 if (!SWIG_IsOK(ecode2)) {
46088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46089 }
46090 arg2 = static_cast< int >(val2);
46091 }
46092 if (obj2) {
46093 {
46094 arg3 = wxString_in_helper(obj2);
46095 if (arg3 == NULL) SWIG_fail;
46096 temp3 = true;
46097 }
46098 }
46099 if (obj3) {
46100 {
46101 arg4 = &temp4;
46102 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46103 }
46104 }
46105 if (obj4) {
46106 {
46107 arg5 = &temp5;
46108 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46109 }
46110 }
46111 if (obj5) {
46112 ecode6 = SWIG_AsVal_long(obj5, &val6);
46113 if (!SWIG_IsOK(ecode6)) {
46114 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46115 }
46116 arg6 = static_cast< long >(val6);
46117 }
46118 if (obj6) {
46119 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46120 if (!SWIG_IsOK(res7)) {
46121 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46122 }
46123 if (!argp7) {
46124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46125 }
46126 arg7 = reinterpret_cast< wxValidator * >(argp7);
46127 }
46128 if (obj7) {
46129 {
46130 arg8 = wxString_in_helper(obj7);
46131 if (arg8 == NULL) SWIG_fail;
46132 temp8 = true;
46133 }
46134 }
46135 {
46136 if (!wxPyCheckForApp()) SWIG_fail;
46137 PyThreadState* __tstate = wxPyBeginAllowThreads();
46138 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46139 wxPyEndAllowThreads(__tstate);
46140 if (PyErr_Occurred()) SWIG_fail;
46141 }
46142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46143 {
46144 if (temp3)
46145 delete arg3;
46146 }
46147 {
46148 if (temp8)
46149 delete arg8;
46150 }
46151 return resultobj;
46152 fail:
46153 {
46154 if (temp3)
46155 delete arg3;
46156 }
46157 {
46158 if (temp8)
46159 delete arg8;
46160 }
46161 return NULL;
46162 }
46163
46164
46165 SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46166 PyObject *resultobj = 0;
46167 wxSearchCtrl *result = 0 ;
46168
46169 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46170 {
46171 if (!wxPyCheckForApp()) SWIG_fail;
46172 PyThreadState* __tstate = wxPyBeginAllowThreads();
46173 result = (wxSearchCtrl *)new wxSearchCtrl();
46174 wxPyEndAllowThreads(__tstate);
46175 if (PyErr_Occurred()) SWIG_fail;
46176 }
46177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46178 return resultobj;
46179 fail:
46180 return NULL;
46181 }
46182
46183
46184 SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46185 PyObject *resultobj = 0;
46186 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46187 wxWindow *arg2 = (wxWindow *) 0 ;
46188 int arg3 = (int) -1 ;
46189 wxString const &arg4_defvalue = wxEmptyString ;
46190 wxString *arg4 = (wxString *) &arg4_defvalue ;
46191 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46192 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46193 wxSize const &arg6_defvalue = wxDefaultSize ;
46194 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46195 long arg7 = (long) 0 ;
46196 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46197 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46198 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46199 wxString *arg9 = (wxString *) &arg9_defvalue ;
46200 bool result;
46201 void *argp1 = 0 ;
46202 int res1 = 0 ;
46203 void *argp2 = 0 ;
46204 int res2 = 0 ;
46205 int val3 ;
46206 int ecode3 = 0 ;
46207 bool temp4 = false ;
46208 wxPoint temp5 ;
46209 wxSize temp6 ;
46210 long val7 ;
46211 int ecode7 = 0 ;
46212 void *argp8 = 0 ;
46213 int res8 = 0 ;
46214 bool temp9 = false ;
46215 PyObject * obj0 = 0 ;
46216 PyObject * obj1 = 0 ;
46217 PyObject * obj2 = 0 ;
46218 PyObject * obj3 = 0 ;
46219 PyObject * obj4 = 0 ;
46220 PyObject * obj5 = 0 ;
46221 PyObject * obj6 = 0 ;
46222 PyObject * obj7 = 0 ;
46223 PyObject * obj8 = 0 ;
46224 char * kwnames[] = {
46225 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46226 };
46227
46228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46230 if (!SWIG_IsOK(res1)) {
46231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46232 }
46233 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46234 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46235 if (!SWIG_IsOK(res2)) {
46236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46237 }
46238 arg2 = reinterpret_cast< wxWindow * >(argp2);
46239 if (obj2) {
46240 ecode3 = SWIG_AsVal_int(obj2, &val3);
46241 if (!SWIG_IsOK(ecode3)) {
46242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46243 }
46244 arg3 = static_cast< int >(val3);
46245 }
46246 if (obj3) {
46247 {
46248 arg4 = wxString_in_helper(obj3);
46249 if (arg4 == NULL) SWIG_fail;
46250 temp4 = true;
46251 }
46252 }
46253 if (obj4) {
46254 {
46255 arg5 = &temp5;
46256 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46257 }
46258 }
46259 if (obj5) {
46260 {
46261 arg6 = &temp6;
46262 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46263 }
46264 }
46265 if (obj6) {
46266 ecode7 = SWIG_AsVal_long(obj6, &val7);
46267 if (!SWIG_IsOK(ecode7)) {
46268 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46269 }
46270 arg7 = static_cast< long >(val7);
46271 }
46272 if (obj7) {
46273 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46274 if (!SWIG_IsOK(res8)) {
46275 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46276 }
46277 if (!argp8) {
46278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46279 }
46280 arg8 = reinterpret_cast< wxValidator * >(argp8);
46281 }
46282 if (obj8) {
46283 {
46284 arg9 = wxString_in_helper(obj8);
46285 if (arg9 == NULL) SWIG_fail;
46286 temp9 = true;
46287 }
46288 }
46289 {
46290 PyThreadState* __tstate = wxPyBeginAllowThreads();
46291 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46292 wxPyEndAllowThreads(__tstate);
46293 if (PyErr_Occurred()) SWIG_fail;
46294 }
46295 {
46296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46297 }
46298 {
46299 if (temp4)
46300 delete arg4;
46301 }
46302 {
46303 if (temp9)
46304 delete arg9;
46305 }
46306 return resultobj;
46307 fail:
46308 {
46309 if (temp4)
46310 delete arg4;
46311 }
46312 {
46313 if (temp9)
46314 delete arg9;
46315 }
46316 return NULL;
46317 }
46318
46319
46320 SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46321 PyObject *resultobj = 0;
46322 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46323 wxMenu *arg2 = (wxMenu *) 0 ;
46324 void *argp1 = 0 ;
46325 int res1 = 0 ;
46326 void *argp2 = 0 ;
46327 int res2 = 0 ;
46328 PyObject * obj0 = 0 ;
46329 PyObject * obj1 = 0 ;
46330 char * kwnames[] = {
46331 (char *) "self",(char *) "menu", NULL
46332 };
46333
46334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46336 if (!SWIG_IsOK(res1)) {
46337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46338 }
46339 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46340 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46341 if (!SWIG_IsOK(res2)) {
46342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46343 }
46344 arg2 = reinterpret_cast< wxMenu * >(argp2);
46345 {
46346 PyThreadState* __tstate = wxPyBeginAllowThreads();
46347 (arg1)->SetMenu(arg2);
46348 wxPyEndAllowThreads(__tstate);
46349 if (PyErr_Occurred()) SWIG_fail;
46350 }
46351 resultobj = SWIG_Py_Void();
46352 return resultobj;
46353 fail:
46354 return NULL;
46355 }
46356
46357
46358 SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46359 PyObject *resultobj = 0;
46360 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46361 wxMenu *result = 0 ;
46362 void *argp1 = 0 ;
46363 int res1 = 0 ;
46364 PyObject *swig_obj[1] ;
46365
46366 if (!args) SWIG_fail;
46367 swig_obj[0] = args;
46368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46369 if (!SWIG_IsOK(res1)) {
46370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46371 }
46372 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46373 {
46374 PyThreadState* __tstate = wxPyBeginAllowThreads();
46375 result = (wxMenu *)(arg1)->GetMenu();
46376 wxPyEndAllowThreads(__tstate);
46377 if (PyErr_Occurred()) SWIG_fail;
46378 }
46379 {
46380 resultobj = wxPyMake_wxObject(result, 0);
46381 }
46382 return resultobj;
46383 fail:
46384 return NULL;
46385 }
46386
46387
46388 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46389 PyObject *resultobj = 0;
46390 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46391 bool arg2 ;
46392 void *argp1 = 0 ;
46393 int res1 = 0 ;
46394 bool val2 ;
46395 int ecode2 = 0 ;
46396 PyObject * obj0 = 0 ;
46397 PyObject * obj1 = 0 ;
46398 char * kwnames[] = {
46399 (char *) "self",(char *) "show", NULL
46400 };
46401
46402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchButtonVisible",kwnames,&obj0,&obj1)) SWIG_fail;
46403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46404 if (!SWIG_IsOK(res1)) {
46405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46406 }
46407 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46408 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46409 if (!SWIG_IsOK(ecode2)) {
46410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_SetSearchButtonVisible" "', expected argument " "2"" of type '" "bool""'");
46411 }
46412 arg2 = static_cast< bool >(val2);
46413 {
46414 PyThreadState* __tstate = wxPyBeginAllowThreads();
46415 (arg1)->SetSearchButtonVisible(arg2);
46416 wxPyEndAllowThreads(__tstate);
46417 if (PyErr_Occurred()) SWIG_fail;
46418 }
46419 resultobj = SWIG_Py_Void();
46420 return resultobj;
46421 fail:
46422 return NULL;
46423 }
46424
46425
46426 SWIGINTERN PyObject *_wrap_SearchCtrl_GetSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46427 PyObject *resultobj = 0;
46428 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46429 bool result;
46430 void *argp1 = 0 ;
46431 int res1 = 0 ;
46432 PyObject *swig_obj[1] ;
46433
46434 if (!args) SWIG_fail;
46435 swig_obj[0] = args;
46436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46437 if (!SWIG_IsOK(res1)) {
46438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46439 }
46440 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46441 {
46442 PyThreadState* __tstate = wxPyBeginAllowThreads();
46443 result = (bool)((wxSearchCtrl const *)arg1)->GetSearchButtonVisible();
46444 wxPyEndAllowThreads(__tstate);
46445 if (PyErr_Occurred()) SWIG_fail;
46446 }
46447 {
46448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46449 }
46450 return resultobj;
46451 fail:
46452 return NULL;
46453 }
46454
46455
46456 SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46457 PyObject *resultobj = 0;
46458 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46459 bool arg2 ;
46460 void *argp1 = 0 ;
46461 int res1 = 0 ;
46462 bool val2 ;
46463 int ecode2 = 0 ;
46464 PyObject * obj0 = 0 ;
46465 PyObject * obj1 = 0 ;
46466 char * kwnames[] = {
46467 (char *) "self",(char *) "show", NULL
46468 };
46469
46470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelButtonVisible",kwnames,&obj0,&obj1)) SWIG_fail;
46471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46472 if (!SWIG_IsOK(res1)) {
46473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46474 }
46475 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46476 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46477 if (!SWIG_IsOK(ecode2)) {
46478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_SetCancelButtonVisible" "', expected argument " "2"" of type '" "bool""'");
46479 }
46480 arg2 = static_cast< bool >(val2);
46481 {
46482 PyThreadState* __tstate = wxPyBeginAllowThreads();
46483 (arg1)->SetCancelButtonVisible(arg2);
46484 wxPyEndAllowThreads(__tstate);
46485 if (PyErr_Occurred()) SWIG_fail;
46486 }
46487 resultobj = SWIG_Py_Void();
46488 return resultobj;
46489 fail:
46490 return NULL;
46491 }
46492
46493
46494 SWIGINTERN PyObject *_wrap_SearchCtrl_GetCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46495 PyObject *resultobj = 0;
46496 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46497 bool result;
46498 void *argp1 = 0 ;
46499 int res1 = 0 ;
46500 PyObject *swig_obj[1] ;
46501
46502 if (!args) SWIG_fail;
46503 swig_obj[0] = args;
46504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46505 if (!SWIG_IsOK(res1)) {
46506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46507 }
46508 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46509 {
46510 PyThreadState* __tstate = wxPyBeginAllowThreads();
46511 result = (bool)((wxSearchCtrl const *)arg1)->GetCancelButtonVisible();
46512 wxPyEndAllowThreads(__tstate);
46513 if (PyErr_Occurred()) SWIG_fail;
46514 }
46515 {
46516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46517 }
46518 return resultobj;
46519 fail:
46520 return NULL;
46521 }
46522
46523
46524 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46525 PyObject *resultobj = 0;
46526 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46527 wxBitmap *arg2 = 0 ;
46528 void *argp1 = 0 ;
46529 int res1 = 0 ;
46530 void *argp2 = 0 ;
46531 int res2 = 0 ;
46532 PyObject * obj0 = 0 ;
46533 PyObject * obj1 = 0 ;
46534 char * kwnames[] = {
46535 (char *) "self",(char *) "bitmap", NULL
46536 };
46537
46538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46540 if (!SWIG_IsOK(res1)) {
46541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46542 }
46543 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46544 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46545 if (!SWIG_IsOK(res2)) {
46546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46547 }
46548 if (!argp2) {
46549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46550 }
46551 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46552 {
46553 PyThreadState* __tstate = wxPyBeginAllowThreads();
46554 (arg1)->SetSearchBitmap((wxBitmap const &)*arg2);
46555 wxPyEndAllowThreads(__tstate);
46556 if (PyErr_Occurred()) SWIG_fail;
46557 }
46558 resultobj = SWIG_Py_Void();
46559 return resultobj;
46560 fail:
46561 return NULL;
46562 }
46563
46564
46565 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46566 PyObject *resultobj = 0;
46567 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46568 wxBitmap *arg2 = 0 ;
46569 void *argp1 = 0 ;
46570 int res1 = 0 ;
46571 void *argp2 = 0 ;
46572 int res2 = 0 ;
46573 PyObject * obj0 = 0 ;
46574 PyObject * obj1 = 0 ;
46575 char * kwnames[] = {
46576 (char *) "self",(char *) "bitmap", NULL
46577 };
46578
46579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46581 if (!SWIG_IsOK(res1)) {
46582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46583 }
46584 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46586 if (!SWIG_IsOK(res2)) {
46587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46588 }
46589 if (!argp2) {
46590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46591 }
46592 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46593 {
46594 PyThreadState* __tstate = wxPyBeginAllowThreads();
46595 (arg1)->SetSearchMenuBitmap((wxBitmap const &)*arg2);
46596 wxPyEndAllowThreads(__tstate);
46597 if (PyErr_Occurred()) SWIG_fail;
46598 }
46599 resultobj = SWIG_Py_Void();
46600 return resultobj;
46601 fail:
46602 return NULL;
46603 }
46604
46605
46606 SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46607 PyObject *resultobj = 0;
46608 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46609 wxBitmap *arg2 = 0 ;
46610 void *argp1 = 0 ;
46611 int res1 = 0 ;
46612 void *argp2 = 0 ;
46613 int res2 = 0 ;
46614 PyObject * obj0 = 0 ;
46615 PyObject * obj1 = 0 ;
46616 char * kwnames[] = {
46617 (char *) "self",(char *) "bitmap", NULL
46618 };
46619
46620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46622 if (!SWIG_IsOK(res1)) {
46623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46624 }
46625 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46626 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46627 if (!SWIG_IsOK(res2)) {
46628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46629 }
46630 if (!argp2) {
46631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46632 }
46633 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46634 {
46635 PyThreadState* __tstate = wxPyBeginAllowThreads();
46636 (arg1)->SetCancelBitmap((wxBitmap const &)*arg2);
46637 wxPyEndAllowThreads(__tstate);
46638 if (PyErr_Occurred()) SWIG_fail;
46639 }
46640 resultobj = SWIG_Py_Void();
46641 return resultobj;
46642 fail:
46643 return NULL;
46644 }
46645
46646
46647 SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46648 PyObject *obj;
46649 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46650 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
46651 return SWIG_Py_Void();
46652 }
46653
46654 SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46655 return SWIG_Python_InitShadowInstance(args);
46656 }
46657
46658 static PyMethodDef SwigMethods[] = {
46659 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
46660 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
46661 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46662 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
46663 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
46664 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46665 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
46666 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
46667 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
46668 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
46669 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46670 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
46671 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
46672 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
46673 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
46674 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
46675 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
46676 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46677 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46678 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46679 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
46680 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46681 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
46682 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
46683 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
46684 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
46685 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
46686 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
46687 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46688 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
46689 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
46690 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46691 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
46692 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
46693 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
46694 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
46695 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46696 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
46697 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
46698 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
46699 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
46700 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46701 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
46702 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46703 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
46704 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
46705 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
46706 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
46707 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46708 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
46709 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46710 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
46711 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
46712 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
46713 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46714 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
46715 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
46716 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46717 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
46718 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
46719 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
46720 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46721 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46722 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
46723 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46724 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
46725 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
46726 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
46727 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
46728 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
46729 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
46730 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
46731 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
46732 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
46733 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46734 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
46735 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
46736 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
46737 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
46738 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46739 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46740 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
46741 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46742 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
46743 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
46744 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46745 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46746 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46747 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46748 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46749 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46750 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46751 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46752 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46753 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46754 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46755 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46756 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46757 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46758 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46759 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46760 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46761 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46762 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46763 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46764 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46765 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46766 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46767 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46768 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46769 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46770 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46771 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46772 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46773 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46774 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46775 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46776 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46777 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46778 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46779 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46780 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46781 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46782 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46783 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46784 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46785 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46786 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46787 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46788 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46789 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46790 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46791 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46792 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46793 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46794 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46795 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46796 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46797 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46798 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46799 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46800 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46801 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46802 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46803 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46804 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46805 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46806 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46807 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46808 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46809 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46810 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46811 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46812 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
46813 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46814 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46815 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46816 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46817 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46818 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46819 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46820 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46821 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46822 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46823 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46824 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46825 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46826 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46827 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46828 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46829 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46830 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46831 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46832 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46833 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46834 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46835 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46836 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46837 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46838 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46839 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46840 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46841 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46842 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46843 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46844 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46845 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46846 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46847 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46848 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46849 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46850 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46851 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46852 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46853 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46854 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
46855 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46856 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46857 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46858 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46859 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46860 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46861 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
46862 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
46863 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
46864 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
46865 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
46866 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46867 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46868 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
46869 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
46870 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
46871 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
46872 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
46873 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
46874 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
46875 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
46876 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
46877 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46878 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46879 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46880 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
46881 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46882 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
46883 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46884 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46885 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
46886 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
46887 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
46888 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
46889 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
46890 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
46891 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
46892 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
46893 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
46894 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
46895 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
46896 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46897 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
46898 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
46899 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
46900 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46901 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
46902 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46903 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
46904 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
46905 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
46906 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46907 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46908 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
46909 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
46910 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46911 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
46912 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
46913 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
46914 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
46915 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
46916 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
46917 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
46918 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46919 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
46920 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
46921 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
46922 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
46923 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
46924 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46925 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46926 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
46927 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
46928 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
46929 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
46930 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46931 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
46932 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
46933 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
46934 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46935 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46936 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46937 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46938 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
46939 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46940 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
46941 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
46942 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46943 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
46944 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46945 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
46946 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46947 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
46948 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46949 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
46950 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
46951 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46952 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46953 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
46954 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
46955 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46956 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
46957 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46958 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
46959 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
46960 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
46961 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
46962 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46963 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46964 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
46965 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
46966 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46967 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
46968 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
46969 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46970 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46971 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
46972 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
46973 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46974 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
46975 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
46976 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
46977 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46978 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46979 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46980 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46981 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46982 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46983 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
46984 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
46985 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
46986 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
46987 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46988 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
46989 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46990 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46991 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
46992 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
46993 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
46994 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
46995 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46996 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
46997 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46998 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46999 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
47000 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
47001 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47002 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47003 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
47004 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47005 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
47006 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
47007 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
47008 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
47009 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
47010 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
47011 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
47012 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
47013 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
47014 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
47015 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
47016 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47017 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47018 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
47019 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
47020 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
47021 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
47022 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47023 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47024 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
47025 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47026 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
47027 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
47028 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
47029 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
47030 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
47031 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
47032 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47033 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47034 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47035 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47036 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
47037 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47038 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47039 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47040 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
47041 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
47042 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
47043 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
47044 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47045 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
47046 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
47047 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
47048 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
47049 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
47050 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
47051 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
47052 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
47053 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
47054 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47055 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47056 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47057 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47058 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47059 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
47060 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47061 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
47062 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47063 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
47064 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47065 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
47066 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
47067 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
47068 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
47069 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47070 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
47071 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
47072 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
47073 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
47074 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47075 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47076 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47077 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47078 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47079 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47080 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47081 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47082 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47083 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47084 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47085 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47086 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47087 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47088 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47089 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47090 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47091 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47092 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47093 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47094 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47095 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47096 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47097 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47098 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47099 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47100 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47101 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47102 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47103 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47104 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47105 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47106 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47107 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47108 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47109 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47110 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47111 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47112 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47113 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47114 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47115 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47116 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47117 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47118 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47119 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47120 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47121 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47122 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47123 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47124 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47125 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47126 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47127 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47128 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47129 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47130 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47131 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47132 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47133 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47134 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47135 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47136 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47137 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47138 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47139 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47140 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47141 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47142 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47143 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47144 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47145 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47146 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47147 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47148 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47149 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47150 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47151 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47152 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47153 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47154 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47155 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47156 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47157 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47158 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47159 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47160 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47161 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47162 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47163 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47164 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47165 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47166 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47167 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47168 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47169 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47170 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47171 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47172 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47173 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47174 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47175 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47176 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47177 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47178 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47179 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47180 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47181 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47182 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47183 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47184 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47185 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47186 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47187 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47188 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47189 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47190 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47191 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47192 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47193 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47194 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47195 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47196 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47197 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47198 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47199 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47200 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47201 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47202 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47203 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47204 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47205 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47206 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47207 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47208 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47209 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47210 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47211 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47212 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47213 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47214 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47215 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47216 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47217 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47218 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47219 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47220 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47221 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47222 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47223 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47224 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47225 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47226 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47227 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47228 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47229 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47230 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47231 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47232 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47233 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47234 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47235 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47236 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47237 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47238 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47239 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47240 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47241 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47242 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47243 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47244 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47245 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47246 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47247 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47248 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47249 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47250 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47251 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47252 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47253 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47254 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47255 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47256 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47257 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47258 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47259 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47260 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47261 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47262 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47263 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47264 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47265 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47266 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47267 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47268 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47269 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47270 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47271 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47272 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47273 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47274 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47275 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47276 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47277 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47278 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47279 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47280 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47281 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47282 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47283 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47284 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47285 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47286 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47287 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47288 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47289 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47290 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47291 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47292 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47293 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47294 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47295 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47296 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47297 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47298 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47299 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47300 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47301 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47302 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47303 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47304 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47305 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47306 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47307 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47308 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47309 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47310 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47311 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47312 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47313 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47314 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47315 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47316 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47317 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47318 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47319 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47320 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47321 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47322 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47323 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47324 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47325 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47326 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47327 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47328 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47329 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47330 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47331 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47332 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47333 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47334 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47335 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47336 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47337 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47338 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47339 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47340 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47341 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47342 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47343 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47344 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47345 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47346 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47347 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47348 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47349 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47350 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47351 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47352 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47353 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47354 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47355 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47356 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47357 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
47358 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47359 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47360 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47361 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47362 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47363 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47364 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47365 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47366 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47367 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47368 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47369 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47370 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47371 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47372 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47373 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47374 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47375 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47376 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47377 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47378 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47379 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47380 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47381 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47382 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47383 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47384 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47385 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47386 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47387 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47388 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47389 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47390 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47391 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47392 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47393 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47394 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47395 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47396 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47397 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47398 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47399 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47400 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47401 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47402 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47403 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47404 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47405 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47406 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47407 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
47408 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
47409 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47410 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47411 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47412 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47413 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47414 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47415 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47416 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47417 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47418 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47419 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47420 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47421 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47422 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47423 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47424 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47425 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47426 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47427 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47428 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47429 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47430 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47431 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47432 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47433 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47434 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47435 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47436 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47437 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47438 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47439 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47440 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47441 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47442 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47443 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47444 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47445 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47446 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47447 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47448 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47449 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47450 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47451 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47452 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47453 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47454 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47455 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47456 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47457 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47458 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47459 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47461 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47462 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47463 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47464 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47465 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47466 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47467 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47468 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47469 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47470 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47471 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47472 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47473 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47474 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47475 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47476 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47477 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47478 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47479 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47480 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47481 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47482 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47483 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47484 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
47485 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47486 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
47487 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47488 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47489 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47490 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47491 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47492 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47493 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47494 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47495 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47496 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47497 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47498 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47499 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47500 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47501 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47502 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47503 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47504 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
47505 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47506 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47507 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47508 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47509 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47510 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
47511 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
47512 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47513 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47514 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47515 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47516 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47517 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
47518 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
47519 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
47520 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
47521 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
47522 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
47523 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
47524 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
47525 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
47526 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
47527 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
47528 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
47529 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
47530 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
47531 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47532 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
47533 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47534 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
47535 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
47536 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
47537 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
47538 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
47539 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47540 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
47541 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47542 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
47543 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
47544 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
47545 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
47546 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
47547 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
47548 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
47549 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
47550 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
47551 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
47552 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
47553 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
47554 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47555 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
47556 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47557 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
47558 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
47559 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
47560 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
47561 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
47562 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
47563 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
47564 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
47565 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47566 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
47567 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47568 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
47569 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
47570 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
47571 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
47572 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
47573 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
47574 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
47575 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47576 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
47577 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47578 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47579 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47580 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47581 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
47582 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47583 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
47584 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
47585 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
47586 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
47587 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
47588 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
47589 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47590 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
47591 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
47592 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
47593 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
47594 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47595 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
47596 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
47597 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
47598 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
47599 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
47600 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
47601 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
47602 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47603 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47604 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47605 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
47606 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
47607 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47608 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
47609 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47610 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47611 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
47612 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47613 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
47614 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
47615 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
47616 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
47617 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47618 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
47619 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47620 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
47621 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
47622 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
47623 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
47624 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
47625 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
47626 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
47627 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47628 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
47629 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
47630 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
47631 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
47632 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47633 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
47634 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47635 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
47636 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
47637 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
47638 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47639 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
47640 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47641 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
47642 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47643 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
47644 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
47645 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47646 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
47647 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47648 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
47649 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
47650 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
47651 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
47652 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47653 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
47654 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47655 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
47656 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47657 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
47658 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
47659 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47660 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
47661 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47662 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
47663 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
47664 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47665 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
47666 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47667 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
47668 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47669 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47670 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
47671 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
47672 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
47673 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47674 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
47675 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47676 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
47677 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47678 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47679 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
47680 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
47681 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
47682 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47683 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
47684 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47685 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
47686 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
47687 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47688 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
47689 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47690 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
47691 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
47692 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
47693 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
47694 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
47695 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
47696 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47697 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
47698 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47699 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
47700 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
47701 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
47702 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
47703 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47704 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47705 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
47706 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
47707 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
47708 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
47709 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
47710 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
47711 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47712 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
47713 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
47714 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
47715 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
47716 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47717 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
47718 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47719 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
47720 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
47721 { (char *)"SearchCtrl_SetSearchButtonVisible", (PyCFunction) _wrap_SearchCtrl_SetSearchButtonVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47722 { (char *)"SearchCtrl_GetSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_GetSearchButtonVisible, METH_O, NULL},
47723 { (char *)"SearchCtrl_SetCancelButtonVisible", (PyCFunction) _wrap_SearchCtrl_SetCancelButtonVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47724 { (char *)"SearchCtrl_GetCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_GetCancelButtonVisible, METH_O, NULL},
47725 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47726 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47727 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47728 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
47729 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
47730 { NULL, NULL, 0, NULL }
47731 };
47732
47733
47734 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
47735
47736 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
47737 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
47738 }
47739 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
47740 return (void *)((wxEvent *) ((wxMenuEvent *) x));
47741 }
47742 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
47743 return (void *)((wxEvent *) ((wxCloseEvent *) x));
47744 }
47745 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
47746 return (void *)((wxEvent *) ((wxMouseEvent *) x));
47747 }
47748 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
47749 return (void *)((wxEvent *) ((wxEraseEvent *) x));
47750 }
47751 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
47752 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47753 }
47754 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
47755 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47756 }
47757 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47758 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47759 }
47760 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47761 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47762 }
47763 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47764 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47765 }
47766 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47767 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47768 }
47769 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47770 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47771 }
47772 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47773 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47774 }
47775 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47776 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47777 }
47778 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47779 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47780 }
47781 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47782 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47783 }
47784 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47785 return (void *)((wxEvent *) ((wxPyEvent *) x));
47786 }
47787 static void *_p_wxListEventTo_p_wxEvent(void *x) {
47788 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47789 }
47790 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47791 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47792 }
47793 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47794 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47795 }
47796 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47797 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47798 }
47799 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47800 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47801 }
47802 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47803 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47804 }
47805 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47806 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47807 }
47808 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47809 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47810 }
47811 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47812 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47813 }
47814 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47815 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47816 }
47817 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47818 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47819 }
47820 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47821 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47822 }
47823 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47824 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47825 }
47826 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47827 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47828 }
47829 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47830 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47831 }
47832 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47833 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47834 }
47835 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47836 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47837 }
47838 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47839 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47840 }
47841 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47842 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47843 }
47844 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47845 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47846 }
47847 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47848 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47849 }
47850 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47851 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47852 }
47853 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47854 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47855 }
47856 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47857 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47858 }
47859 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
47860 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
47861 }
47862 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
47863 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
47864 }
47865 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
47866 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
47867 }
47868 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
47869 return (void *)((wxEvent *) ((wxFocusEvent *) x));
47870 }
47871 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
47872 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
47873 }
47874 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
47875 return (void *)((wxEvent *) ((wxShowEvent *) x));
47876 }
47877 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
47878 return (void *)((wxEvent *) ((wxCommandEvent *) x));
47879 }
47880 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
47881 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
47882 }
47883 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
47884 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47885 }
47886 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
47887 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
47888 }
47889 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
47890 return (void *)((wxEvent *) ((wxKeyEvent *) x));
47891 }
47892 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
47893 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
47894 }
47895 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
47896 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47897 }
47898 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
47899 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
47900 }
47901 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
47902 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
47903 }
47904 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
47905 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
47906 }
47907 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
47908 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
47909 }
47910 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
47911 return (void *)((wxItemContainer *) ((wxComboBox *) x));
47912 }
47913 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
47914 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47915 }
47916 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
47917 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
47918 }
47919 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
47920 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
47921 }
47922 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
47923 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
47924 }
47925 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
47926 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47927 }
47928 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
47929 return (void *)((wxPyListCtrl *) ((wxListView *) x));
47930 }
47931 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
47932 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
47933 }
47934 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
47935 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
47936 }
47937 static void *_p_wxToolBarTo_p_wxControl(void *x) {
47938 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
47939 }
47940 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
47941 return (void *)((wxControl *) ((wxPickerBase *) x));
47942 }
47943 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
47944 return (void *)((wxControl *) ((wxToggleButton *) x));
47945 }
47946 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
47947 return (void *)((wxControl *) ((wxRadioButton *) x));
47948 }
47949 static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
47950 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
47951 }
47952 static void *_p_wxToolbookTo_p_wxControl(void *x) {
47953 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
47954 }
47955 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
47956 return (void *)((wxControl *) ((wxToolBarBase *) x));
47957 }
47958 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
47959 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47960 }
47961 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
47962 return (void *)((wxControl *) ((wxPyListCtrl *) x));
47963 }
47964 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
47965 return (void *)((wxControl *) ((wxComboBox *) x));
47966 }
47967 static void *_p_wxPyControlTo_p_wxControl(void *x) {
47968 return (void *)((wxControl *) ((wxPyControl *) x));
47969 }
47970 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
47971 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
47972 }
47973 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
47974 return (void *)((wxControl *) ((wxScrollBar *) x));
47975 }
47976 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
47977 return (void *)((wxControl *) ((wxControlWithItems *) x));
47978 }
47979 static void *_p_wxGaugeTo_p_wxControl(void *x) {
47980 return (void *)((wxControl *) ((wxGauge *) x));
47981 }
47982 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
47983 return (void *)((wxControl *) ((wxStaticLine *) x));
47984 }
47985 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
47986 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
47987 }
47988 static void *_p_wxListbookTo_p_wxControl(void *x) {
47989 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
47990 }
47991 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
47992 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
47993 }
47994 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
47995 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
47996 }
47997 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
47998 return (void *)((wxControl *) ((wxCheckBox *) x));
47999 }
48000 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
48001 return (void *)((wxControl *) ((wxRadioBox *) x));
48002 }
48003 static void *_p_wxChoiceTo_p_wxControl(void *x) {
48004 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
48005 }
48006 static void *_p_wxListBoxTo_p_wxControl(void *x) {
48007 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
48008 }
48009 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
48010 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48011 }
48012 static void *_p_wxListViewTo_p_wxControl(void *x) {
48013 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
48014 }
48015 static void *_p_wxNotebookTo_p_wxControl(void *x) {
48016 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
48017 }
48018 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
48019 return (void *)((wxControl *) ((wxStaticBitmap *) x));
48020 }
48021 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
48022 return (void *)((wxControl *) ((wxSpinCtrl *) x));
48023 }
48024 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
48025 return (void *)((wxControl *) ((wxStaticText *) x));
48026 }
48027 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
48028 return (void *)((wxControl *) ((wxStaticBox *) x));
48029 }
48030 static void *_p_wxSliderTo_p_wxControl(void *x) {
48031 return (void *)((wxControl *) ((wxSlider *) x));
48032 }
48033 static void *_p_wxTreebookTo_p_wxControl(void *x) {
48034 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
48035 }
48036 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
48037 return (void *)((wxControl *) ((wxSpinButton *) x));
48038 }
48039 static void *_p_wxButtonTo_p_wxControl(void *x) {
48040 return (void *)((wxControl *) ((wxButton *) x));
48041 }
48042 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
48043 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
48044 }
48045 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
48046 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48047 }
48048 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
48049 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
48050 }
48051 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
48052 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
48053 }
48054 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
48055 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
48056 }
48057 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
48058 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
48059 }
48060 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
48061 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
48062 }
48063 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
48064 return (void *)((wxControl *) ((wxTextCtrl *) x));
48065 }
48066 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
48067 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
48068 }
48069 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
48070 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
48071 }
48072 static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
48073 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
48074 }
48075 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48076 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48077 }
48078 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48079 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48080 }
48081 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48082 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48083 }
48084 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48085 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48086 }
48087 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48088 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48089 }
48090 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48091 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48092 }
48093 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48094 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48095 }
48096 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48097 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48098 }
48099 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48100 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48101 }
48102 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48103 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48104 }
48105 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48106 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48107 }
48108 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48109 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48110 }
48111 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48112 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48113 }
48114 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48115 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48116 }
48117 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48118 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48119 }
48120 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48121 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48122 }
48123 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48124 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48125 }
48126 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48127 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48128 }
48129 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48130 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48131 }
48132 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48133 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48134 }
48135 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48136 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48137 }
48138 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48139 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48140 }
48141 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48142 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48143 }
48144 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48145 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48146 }
48147 static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48148 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48149 }
48150 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48151 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48152 }
48153 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48154 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48155 }
48156 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48157 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48158 }
48159 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48160 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
48161 }
48162 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48163 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48164 }
48165 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48166 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48167 }
48168 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48169 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48170 }
48171 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48172 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48173 }
48174 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48175 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48176 }
48177 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48178 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48179 }
48180 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48181 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48182 }
48183 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48184 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48185 }
48186 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48187 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48188 }
48189 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48190 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48191 }
48192 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48193 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48194 }
48195 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48196 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48197 }
48198 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48199 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48200 }
48201 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48202 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48203 }
48204 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48205 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48206 }
48207 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48208 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48209 }
48210 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48211 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48212 }
48213 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48214 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48215 }
48216 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48217 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48218 }
48219 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48220 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48221 }
48222 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48223 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48224 }
48225 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48226 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48227 }
48228 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48229 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48230 }
48231 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48232 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48233 }
48234 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48235 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48236 }
48237 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48238 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48239 }
48240 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48241 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48242 }
48243 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48244 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48245 }
48246 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48247 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48248 }
48249 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48250 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48251 }
48252 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48253 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48254 }
48255 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48256 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48257 }
48258 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48259 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48260 }
48261 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48262 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48263 }
48264 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48265 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48266 }
48267 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48268 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48269 }
48270 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48271 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48272 }
48273 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48274 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48275 }
48276 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48277 return (void *)((wxButton *) ((wxBitmapButton *) x));
48278 }
48279 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48280 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48281 }
48282 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48283 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48284 }
48285 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48286 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48287 }
48288 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48289 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48290 }
48291 static void *_p_wxToolbookTo_p_wxObject(void *x) {
48292 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48293 }
48294 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48295 return (void *)((wxObject *) ((wxSizerItem *) x));
48296 }
48297 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48298 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48299 }
48300 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48301 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48302 }
48303 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48304 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48305 }
48306 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48307 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48308 }
48309 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48310 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48311 }
48312 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48313 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48314 }
48315 static void *_p_wxSizerTo_p_wxObject(void *x) {
48316 return (void *)((wxObject *) ((wxSizer *) x));
48317 }
48318 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48319 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48320 }
48321 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48322 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48323 }
48324 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48325 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48326 }
48327 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48328 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48329 }
48330 static void *_p_wxEventTo_p_wxObject(void *x) {
48331 return (void *)((wxObject *) ((wxEvent *) x));
48332 }
48333 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48334 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48335 }
48336 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48337 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48338 }
48339 static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48340 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48341 }
48342 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48343 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48344 }
48345 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48346 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48347 }
48348 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48349 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48350 }
48351 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48352 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48353 }
48354 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48355 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48356 }
48357 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48358 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48359 }
48360 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48361 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48362 }
48363 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48364 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48365 }
48366 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48367 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48368 }
48369 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48370 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48371 }
48372 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48373 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48374 }
48375 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48376 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48377 }
48378 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48379 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48380 }
48381 static void *_p_wxControlTo_p_wxObject(void *x) {
48382 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48383 }
48384 static void *_p_wxPyControlTo_p_wxObject(void *x) {
48385 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48386 }
48387 static void *_p_wxGaugeTo_p_wxObject(void *x) {
48388 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48389 }
48390 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48391 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48392 }
48393 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48394 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48395 }
48396 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48397 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48398 }
48399 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48400 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48401 }
48402 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48403 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48404 }
48405 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48406 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48407 }
48408 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48409 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48410 }
48411 static void *_p_wxChoiceTo_p_wxObject(void *x) {
48412 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48413 }
48414 static void *_p_wxFSFileTo_p_wxObject(void *x) {
48415 return (void *)((wxObject *) ((wxFSFile *) x));
48416 }
48417 static void *_p_wxPySizerTo_p_wxObject(void *x) {
48418 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48419 }
48420 static void *_p_wxTreebookTo_p_wxObject(void *x) {
48421 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48422 }
48423 static void *_p_wxListViewTo_p_wxObject(void *x) {
48424 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48425 }
48426 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48427 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48428 }
48429 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48430 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48431 }
48432 static void *_p_wxNotebookTo_p_wxObject(void *x) {
48433 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48434 }
48435 static void *_p_wxPyEventTo_p_wxObject(void *x) {
48436 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48437 }
48438 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48439 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48440 }
48441 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48442 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48443 }
48444 static void *_p_wxListbookTo_p_wxObject(void *x) {
48445 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48446 }
48447 static void *_p_wxShowEventTo_p_wxObject(void *x) {
48448 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
48449 }
48450 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
48451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48452 }
48453 static void *_p_wxSliderTo_p_wxObject(void *x) {
48454 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48455 }
48456 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48457 return (void *)((wxObject *) ((wxMenuItem *) x));
48458 }
48459 static void *_p_wxDateEventTo_p_wxObject(void *x) {
48460 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48461 }
48462 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48463 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48464 }
48465 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48466 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48467 }
48468 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48469 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48470 }
48471 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48472 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48473 }
48474 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48475 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48476 }
48477 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48478 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48479 }
48480 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48481 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48482 }
48483 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48484 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48485 }
48486 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48487 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48488 }
48489 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48490 return (void *)((wxObject *) ((wxContextHelp *) x));
48491 }
48492 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48493 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48494 }
48495 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48496 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48497 }
48498 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48499 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48500 }
48501 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48502 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48503 }
48504 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48505 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48506 }
48507 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48508 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
48509 }
48510 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
48511 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
48512 }
48513 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
48514 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
48515 }
48516 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
48517 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
48518 }
48519 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
48520 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
48521 }
48522 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
48523 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
48524 }
48525 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
48526 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
48527 }
48528 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
48529 return (void *)((wxObject *) ((wxImageHandler *) x));
48530 }
48531 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
48532 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
48533 }
48534 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
48535 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
48536 }
48537 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
48538 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
48539 }
48540 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
48541 return (void *)((wxObject *) ((wxEvtHandler *) x));
48542 }
48543 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
48544 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
48545 }
48546 static void *_p_wxListEventTo_p_wxObject(void *x) {
48547 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48548 }
48549 static void *_p_wxListBoxTo_p_wxObject(void *x) {
48550 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48551 }
48552 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
48553 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48554 }
48555 static void *_p_wxButtonTo_p_wxObject(void *x) {
48556 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
48557 }
48558 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
48559 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48560 }
48561 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
48562 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
48563 }
48564 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
48565 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48566 }
48567 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
48568 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
48569 }
48570 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
48571 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
48572 }
48573 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
48574 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
48575 }
48576 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
48577 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
48578 }
48579 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
48580 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
48581 }
48582 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
48583 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
48584 }
48585 static void *_p_wxListItemTo_p_wxObject(void *x) {
48586 return (void *)((wxObject *) ((wxListItem *) x));
48587 }
48588 static void *_p_wxImageTo_p_wxObject(void *x) {
48589 return (void *)((wxObject *) ((wxImage *) x));
48590 }
48591 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
48592 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
48593 }
48594 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
48595 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48596 }
48597 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
48598 return (void *)((wxObject *) ((wxGenericDragImage *) x));
48599 }
48600 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
48601 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48602 }
48603 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
48604 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48605 }
48606 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
48607 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48608 }
48609 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
48610 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48611 }
48612 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
48613 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48614 }
48615 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
48616 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48617 }
48618 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
48619 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48620 }
48621 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
48622 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
48623 }
48624 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
48625 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
48626 }
48627 static void *_p_wxWindowTo_p_wxObject(void *x) {
48628 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
48629 }
48630 static void *_p_wxMenuTo_p_wxObject(void *x) {
48631 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
48632 }
48633 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
48634 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
48635 }
48636 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
48637 return (void *)((wxObject *) ((wxFileSystem *) x));
48638 }
48639 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
48640 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48641 }
48642 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
48643 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
48644 }
48645 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
48646 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
48647 }
48648 static void *_p_wxPyAppTo_p_wxObject(void *x) {
48649 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
48650 }
48651 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
48652 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
48653 }
48654 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
48655 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
48656 }
48657 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
48658 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
48659 }
48660 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
48661 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48662 }
48663 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
48664 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48665 }
48666 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
48667 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
48668 }
48669 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
48670 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
48671 }
48672 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
48673 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
48674 }
48675 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
48676 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
48677 }
48678 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
48679 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
48680 }
48681 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
48682 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
48683 }
48684 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
48685 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48686 }
48687 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
48688 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48689 }
48690 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
48691 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48692 }
48693 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
48694 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48695 }
48696 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
48697 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48698 }
48699 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
48700 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48701 }
48702 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
48703 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48704 }
48705 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
48706 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
48707 }
48708 static void *_p_wxToolBarTo_p_wxObject(void *x) {
48709 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48710 }
48711 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
48712 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
48713 }
48714 static void *_p_wxValidatorTo_p_wxObject(void *x) {
48715 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
48716 }
48717 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
48718 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
48719 }
48720 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
48721 return (void *)((wxWindow *) ((wxMenuBar *) x));
48722 }
48723 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
48724 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
48725 }
48726 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
48727 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48728 }
48729 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
48730 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
48731 }
48732 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
48733 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
48734 }
48735 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
48736 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
48737 }
48738 static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
48739 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48740 }
48741 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
48742 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48743 }
48744 static void *_p_wxControlTo_p_wxWindow(void *x) {
48745 return (void *)((wxWindow *) ((wxControl *) x));
48746 }
48747 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
48748 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
48749 }
48750 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
48751 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
48752 }
48753 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
48754 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
48755 }
48756 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
48757 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48758 }
48759 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
48760 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
48761 }
48762 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
48763 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
48764 }
48765 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
48766 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
48767 }
48768 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
48769 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
48770 }
48771 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48772 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48773 }
48774 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48775 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48776 }
48777 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48778 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48779 }
48780 static void *_p_wxListbookTo_p_wxWindow(void *x) {
48781 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48782 }
48783 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48784 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48785 }
48786 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48787 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48788 }
48789 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48790 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48791 }
48792 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48793 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48794 }
48795 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48796 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48797 }
48798 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48799 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48800 }
48801 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48802 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48803 }
48804 static void *_p_wxListViewTo_p_wxWindow(void *x) {
48805 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48806 }
48807 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48808 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48809 }
48810 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48811 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48812 }
48813 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48814 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48815 }
48816 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48817 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48818 }
48819 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48820 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48821 }
48822 static void *_p_wxSliderTo_p_wxWindow(void *x) {
48823 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48824 }
48825 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48826 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48827 }
48828 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48829 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48830 }
48831 static void *_p_wxButtonTo_p_wxWindow(void *x) {
48832 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48833 }
48834 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48835 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48836 }
48837 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48838 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48839 }
48840 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48841 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48842 }
48843 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48844 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48845 }
48846 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48847 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48848 }
48849 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48850 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48851 }
48852 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48853 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48854 }
48855 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48856 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48857 }
48858 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48859 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48860 }
48861 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48862 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48863 }
48864 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48865 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48866 }
48867 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48868 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48869 }
48870 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48871 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48872 }
48873 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
48874 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48875 }
48876 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
48877 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
48878 }
48879 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
48880 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
48881 }
48882 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
48883 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
48884 }
48885 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
48886 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48887 }
48888 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
48889 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
48890 }
48891 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
48892 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
48893 }
48894 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
48895 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
48896 }
48897 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
48898 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
48899 }
48900 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
48901 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
48902 }
48903 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
48904 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
48905 }
48906 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
48907 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48908 }
48909 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
48910 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48911 }
48912 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
48913 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48914 }
48915 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
48916 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48917 }
48918 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
48919 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48920 }
48921 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
48922 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
48923 }
48924 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
48925 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
48926 }
48927 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
48928 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
48929 }
48930 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
48931 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48932 }
48933 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
48934 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48935 }
48936 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
48937 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
48938 }
48939 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
48940 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
48941 }
48942 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
48943 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
48944 }
48945 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
48946 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
48947 }
48948 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
48949 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
48950 }
48951 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
48952 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
48953 }
48954 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
48955 return (void *)((wxControlWithItems *) ((wxChoice *) x));
48956 }
48957 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
48958 return (void *)((wxControlWithItems *) ((wxListBox *) x));
48959 }
48960 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
48961 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
48962 }
48963 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
48964 return (void *)((wxValidator *) ((wxPyValidator *) x));
48965 }
48966 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
48967 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
48968 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};
48969 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
48970 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
48971 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
48972 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
48973 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
48974 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
48975 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
48976 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
48977 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
48978 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
48979 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
48980 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
48981 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
48982 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
48983 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
48984 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
48985 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
48986 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
48987 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
48988 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
48989 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
48990 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
48991 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
48992 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
48993 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
48994 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
48995 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
48996 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
48997 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
48998 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
48999 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
49000 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
49001 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
49002 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
49003 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
49004 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
49005 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
49006 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
49007 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
49008 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
49009 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
49010 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
49011 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
49012 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
49013 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
49014 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
49015 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
49016 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
49017 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
49018 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
49019 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
49020 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
49021 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
49022 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
49023 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
49024 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
49025 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
49026 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
49027 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
49028 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
49029 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
49030 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
49031 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
49032 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
49033 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
49034 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
49035 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
49036 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
49037 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
49038 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
49039 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
49040 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
49041 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
49042 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
49043 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
49044 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
49045 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
49046 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
49047 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
49048 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
49049 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
49050 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
49051 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
49052 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
49053 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
49054 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
49055 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
49056 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
49057 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
49058 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
49059 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
49060 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
49061 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
49062 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
49063 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
49064 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
49065 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
49066 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
49067 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
49068 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
49069 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
49070 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
49071 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
49072 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
49073 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
49074 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
49075 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
49076 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
49077 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49078 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49079 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49080 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49081 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49082 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49083 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49084 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49085 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49086 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
49087 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49088 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49089 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
49090 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
49091 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
49092 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49093 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49094 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49095 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
49096 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
49097 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
49098 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49099 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
49100 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
49101 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
49102 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
49103 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49104 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49105 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
49106 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
49107 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49108 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49109 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49110 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49111 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49112 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49113 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49114 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49115 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
49116 static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
49117 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49118 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49119 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49120 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49121 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49122 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49123 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49124 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49125 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49126 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49127 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49128 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49129 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49130 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49131 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49132 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49133 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49134 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49135 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49136 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
49137 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49138 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49139 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49140 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49141 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49142 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49143 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
49144 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
49145
49146 static swig_type_info *swig_type_initial[] = {
49147 &_swigt__p_bool,
49148 &_swigt__p_char,
49149 &_swigt__p_form_ops_t,
49150 &_swigt__p_int,
49151 &_swigt__p_long,
49152 &_swigt__p_unsigned_char,
49153 &_swigt__p_unsigned_int,
49154 &_swigt__p_unsigned_long,
49155 &_swigt__p_void,
49156 &_swigt__p_wxANIHandler,
49157 &_swigt__p_wxAcceleratorTable,
49158 &_swigt__p_wxActivateEvent,
49159 &_swigt__p_wxArrayInt,
49160 &_swigt__p_wxArrayString,
49161 &_swigt__p_wxBMPHandler,
49162 &_swigt__p_wxBitmap,
49163 &_swigt__p_wxBitmapButton,
49164 &_swigt__p_wxBookCtrlBase,
49165 &_swigt__p_wxBookCtrlBaseEvent,
49166 &_swigt__p_wxBoxSizer,
49167 &_swigt__p_wxButton,
49168 &_swigt__p_wxCURHandler,
49169 &_swigt__p_wxCheckBox,
49170 &_swigt__p_wxCheckListBox,
49171 &_swigt__p_wxChildFocusEvent,
49172 &_swigt__p_wxChoice,
49173 &_swigt__p_wxChoicebook,
49174 &_swigt__p_wxChoicebookEvent,
49175 &_swigt__p_wxClipboardTextEvent,
49176 &_swigt__p_wxCloseEvent,
49177 &_swigt__p_wxCollapsiblePane,
49178 &_swigt__p_wxCollapsiblePaneEvent,
49179 &_swigt__p_wxColour,
49180 &_swigt__p_wxColourPickerCtrl,
49181 &_swigt__p_wxColourPickerEvent,
49182 &_swigt__p_wxComboBox,
49183 &_swigt__p_wxCommandEvent,
49184 &_swigt__p_wxContextHelp,
49185 &_swigt__p_wxContextHelpButton,
49186 &_swigt__p_wxContextMenuEvent,
49187 &_swigt__p_wxControl,
49188 &_swigt__p_wxControlWithItems,
49189 &_swigt__p_wxCursor,
49190 &_swigt__p_wxDC,
49191 &_swigt__p_wxDateEvent,
49192 &_swigt__p_wxDatePickerCtrl,
49193 &_swigt__p_wxDateTime,
49194 &_swigt__p_wxDirFilterListCtrl,
49195 &_swigt__p_wxDirPickerCtrl,
49196 &_swigt__p_wxDisplayChangedEvent,
49197 &_swigt__p_wxDropFilesEvent,
49198 &_swigt__p_wxDuplexMode,
49199 &_swigt__p_wxEraseEvent,
49200 &_swigt__p_wxEvent,
49201 &_swigt__p_wxEvtHandler,
49202 &_swigt__p_wxFSFile,
49203 &_swigt__p_wxFileDirPickerEvent,
49204 &_swigt__p_wxFilePickerCtrl,
49205 &_swigt__p_wxFileSystem,
49206 &_swigt__p_wxFlexGridSizer,
49207 &_swigt__p_wxFocusEvent,
49208 &_swigt__p_wxFont,
49209 &_swigt__p_wxFontPickerCtrl,
49210 &_swigt__p_wxFontPickerEvent,
49211 &_swigt__p_wxGBSizerItem,
49212 &_swigt__p_wxGIFHandler,
49213 &_swigt__p_wxGauge,
49214 &_swigt__p_wxGenericDirCtrl,
49215 &_swigt__p_wxGenericDragImage,
49216 &_swigt__p_wxGridBagSizer,
49217 &_swigt__p_wxGridSizer,
49218 &_swigt__p_wxHelpEvent,
49219 &_swigt__p_wxHelpProvider,
49220 &_swigt__p_wxHyperlinkCtrl,
49221 &_swigt__p_wxHyperlinkEvent,
49222 &_swigt__p_wxICOHandler,
49223 &_swigt__p_wxIcon,
49224 &_swigt__p_wxIconizeEvent,
49225 &_swigt__p_wxIdleEvent,
49226 &_swigt__p_wxImage,
49227 &_swigt__p_wxImageHandler,
49228 &_swigt__p_wxImageList,
49229 &_swigt__p_wxIndividualLayoutConstraint,
49230 &_swigt__p_wxInitDialogEvent,
49231 &_swigt__p_wxItemContainer,
49232 &_swigt__p_wxJPEGHandler,
49233 &_swigt__p_wxKeyEvent,
49234 &_swigt__p_wxLayoutConstraints,
49235 &_swigt__p_wxListBox,
49236 &_swigt__p_wxListEvent,
49237 &_swigt__p_wxListItem,
49238 &_swigt__p_wxListItemAttr,
49239 &_swigt__p_wxListView,
49240 &_swigt__p_wxListbook,
49241 &_swigt__p_wxListbookEvent,
49242 &_swigt__p_wxMaximizeEvent,
49243 &_swigt__p_wxMemoryDC,
49244 &_swigt__p_wxMenu,
49245 &_swigt__p_wxMenuBar,
49246 &_swigt__p_wxMenuEvent,
49247 &_swigt__p_wxMenuItem,
49248 &_swigt__p_wxMouseCaptureChangedEvent,
49249 &_swigt__p_wxMouseCaptureLostEvent,
49250 &_swigt__p_wxMouseEvent,
49251 &_swigt__p_wxMoveEvent,
49252 &_swigt__p_wxNavigationKeyEvent,
49253 &_swigt__p_wxNcPaintEvent,
49254 &_swigt__p_wxNotebook,
49255 &_swigt__p_wxNotebookEvent,
49256 &_swigt__p_wxNotifyEvent,
49257 &_swigt__p_wxObject,
49258 &_swigt__p_wxPCXHandler,
49259 &_swigt__p_wxPNGHandler,
49260 &_swigt__p_wxPNMHandler,
49261 &_swigt__p_wxPaintEvent,
49262 &_swigt__p_wxPaletteChangedEvent,
49263 &_swigt__p_wxPaperSize,
49264 &_swigt__p_wxPickerBase,
49265 &_swigt__p_wxPoint,
49266 &_swigt__p_wxPyApp,
49267 &_swigt__p_wxPyCommandEvent,
49268 &_swigt__p_wxPyControl,
49269 &_swigt__p_wxPyEvent,
49270 &_swigt__p_wxPyImageHandler,
49271 &_swigt__p_wxPyListCtrl,
49272 &_swigt__p_wxPySizer,
49273 &_swigt__p_wxPyTreeCtrl,
49274 &_swigt__p_wxPyTreeItemData,
49275 &_swigt__p_wxPyValidator,
49276 &_swigt__p_wxQueryNewPaletteEvent,
49277 &_swigt__p_wxRadioBox,
49278 &_swigt__p_wxRadioButton,
49279 &_swigt__p_wxRect,
49280 &_swigt__p_wxScrollBar,
49281 &_swigt__p_wxScrollEvent,
49282 &_swigt__p_wxScrollWinEvent,
49283 &_swigt__p_wxSearchCtrl,
49284 &_swigt__p_wxSetCursorEvent,
49285 &_swigt__p_wxShowEvent,
49286 &_swigt__p_wxSimpleHelpProvider,
49287 &_swigt__p_wxSize,
49288 &_swigt__p_wxSizeEvent,
49289 &_swigt__p_wxSizer,
49290 &_swigt__p_wxSizerItem,
49291 &_swigt__p_wxSlider,
49292 &_swigt__p_wxSpinButton,
49293 &_swigt__p_wxSpinCtrl,
49294 &_swigt__p_wxSpinEvent,
49295 &_swigt__p_wxStaticBitmap,
49296 &_swigt__p_wxStaticBox,
49297 &_swigt__p_wxStaticBoxSizer,
49298 &_swigt__p_wxStaticLine,
49299 &_swigt__p_wxStaticText,
49300 &_swigt__p_wxStdDialogButtonSizer,
49301 &_swigt__p_wxString,
49302 &_swigt__p_wxSysColourChangedEvent,
49303 &_swigt__p_wxTGAHandler,
49304 &_swigt__p_wxTIFFHandler,
49305 &_swigt__p_wxTextAttr,
49306 &_swigt__p_wxTextCtrl,
49307 &_swigt__p_wxTextUrlEvent,
49308 &_swigt__p_wxToggleButton,
49309 &_swigt__p_wxToolBar,
49310 &_swigt__p_wxToolBarBase,
49311 &_swigt__p_wxToolBarToolBase,
49312 &_swigt__p_wxToolbook,
49313 &_swigt__p_wxToolbookEvent,
49314 &_swigt__p_wxTreeEvent,
49315 &_swigt__p_wxTreeItemId,
49316 &_swigt__p_wxTreebook,
49317 &_swigt__p_wxTreebookEvent,
49318 &_swigt__p_wxUpdateUIEvent,
49319 &_swigt__p_wxValidator,
49320 &_swigt__p_wxVisualAttributes,
49321 &_swigt__p_wxWindow,
49322 &_swigt__p_wxWindowBase,
49323 &_swigt__p_wxWindowCreateEvent,
49324 &_swigt__p_wxWindowDestroyEvent,
49325 &_swigt__p_wxXPMHandler,
49326 };
49327
49328 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49329 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49330 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49331 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49332 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49333 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49334 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49335 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49336 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49337 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49338 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49339 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49340 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}};
49341 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}};
49342 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}};
49343 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}};
49344 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49345 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49346 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}};
49347 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49348 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49349 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49350 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
49351 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
49352 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49353 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49354 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49355 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
49356 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
49357 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49358 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49359 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49360 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49361 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49362 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49363 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
49364 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}};
49365 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49366 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
49367 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}};
49368 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}};
49369 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49370 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49371 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49372 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49373 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
49374 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49375 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49376 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49377 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49378 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49379 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49380 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49381 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
49382 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
49383 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49384 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49385 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49386 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49387 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49388 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
49389 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
49390 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49391 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49392 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49393 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49394 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49395 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49396 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49397 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49398 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49399 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49400 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
49401 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}};
49402 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49403 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49404 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
49405 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}};
49406 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49407 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49408 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
49409 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49410 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49411 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49412 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49413 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49414 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49415 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}};
49416 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49417 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
49418 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49419 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49420 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}};
49421 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49422 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}};
49423 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49424 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49425 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49426 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49427 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49428 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49429 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
49430 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
49431 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49432 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49433 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49434 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}};
49435 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
49436 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49437 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49438 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49439 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49440 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49441 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
49442 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
49443 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49444 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49445 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
49446 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
49447 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
49448 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
49449 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
49450 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
49451 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
49452 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
49453 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
49454 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49455 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49456 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
49457 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49458 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49459 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49460 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
49461 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
49462 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
49463 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
49464 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49465 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
49466 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}};
49467 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
49468 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}};
49469 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49470 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49471 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}};
49472 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49473 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49474 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49475 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49476 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49477 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
49478 static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
49479 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49480 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49481 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49482 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49483 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49484 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49485 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49486 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49487 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49488 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49489 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49490 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
49491 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}};
49492 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49493 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49494 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49495 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}};
49496 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49497 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49498 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49499 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49500 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49501 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49502 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49503 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}};
49504 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
49505 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}};
49506 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
49507
49508 static swig_cast_info *swig_cast_initial[] = {
49509 _swigc__p_bool,
49510 _swigc__p_char,
49511 _swigc__p_form_ops_t,
49512 _swigc__p_int,
49513 _swigc__p_long,
49514 _swigc__p_unsigned_char,
49515 _swigc__p_unsigned_int,
49516 _swigc__p_unsigned_long,
49517 _swigc__p_void,
49518 _swigc__p_wxANIHandler,
49519 _swigc__p_wxAcceleratorTable,
49520 _swigc__p_wxActivateEvent,
49521 _swigc__p_wxArrayInt,
49522 _swigc__p_wxArrayString,
49523 _swigc__p_wxBMPHandler,
49524 _swigc__p_wxBitmap,
49525 _swigc__p_wxBitmapButton,
49526 _swigc__p_wxBookCtrlBase,
49527 _swigc__p_wxBookCtrlBaseEvent,
49528 _swigc__p_wxBoxSizer,
49529 _swigc__p_wxButton,
49530 _swigc__p_wxCURHandler,
49531 _swigc__p_wxCheckBox,
49532 _swigc__p_wxCheckListBox,
49533 _swigc__p_wxChildFocusEvent,
49534 _swigc__p_wxChoice,
49535 _swigc__p_wxChoicebook,
49536 _swigc__p_wxChoicebookEvent,
49537 _swigc__p_wxClipboardTextEvent,
49538 _swigc__p_wxCloseEvent,
49539 _swigc__p_wxCollapsiblePane,
49540 _swigc__p_wxCollapsiblePaneEvent,
49541 _swigc__p_wxColour,
49542 _swigc__p_wxColourPickerCtrl,
49543 _swigc__p_wxColourPickerEvent,
49544 _swigc__p_wxComboBox,
49545 _swigc__p_wxCommandEvent,
49546 _swigc__p_wxContextHelp,
49547 _swigc__p_wxContextHelpButton,
49548 _swigc__p_wxContextMenuEvent,
49549 _swigc__p_wxControl,
49550 _swigc__p_wxControlWithItems,
49551 _swigc__p_wxCursor,
49552 _swigc__p_wxDC,
49553 _swigc__p_wxDateEvent,
49554 _swigc__p_wxDatePickerCtrl,
49555 _swigc__p_wxDateTime,
49556 _swigc__p_wxDirFilterListCtrl,
49557 _swigc__p_wxDirPickerCtrl,
49558 _swigc__p_wxDisplayChangedEvent,
49559 _swigc__p_wxDropFilesEvent,
49560 _swigc__p_wxDuplexMode,
49561 _swigc__p_wxEraseEvent,
49562 _swigc__p_wxEvent,
49563 _swigc__p_wxEvtHandler,
49564 _swigc__p_wxFSFile,
49565 _swigc__p_wxFileDirPickerEvent,
49566 _swigc__p_wxFilePickerCtrl,
49567 _swigc__p_wxFileSystem,
49568 _swigc__p_wxFlexGridSizer,
49569 _swigc__p_wxFocusEvent,
49570 _swigc__p_wxFont,
49571 _swigc__p_wxFontPickerCtrl,
49572 _swigc__p_wxFontPickerEvent,
49573 _swigc__p_wxGBSizerItem,
49574 _swigc__p_wxGIFHandler,
49575 _swigc__p_wxGauge,
49576 _swigc__p_wxGenericDirCtrl,
49577 _swigc__p_wxGenericDragImage,
49578 _swigc__p_wxGridBagSizer,
49579 _swigc__p_wxGridSizer,
49580 _swigc__p_wxHelpEvent,
49581 _swigc__p_wxHelpProvider,
49582 _swigc__p_wxHyperlinkCtrl,
49583 _swigc__p_wxHyperlinkEvent,
49584 _swigc__p_wxICOHandler,
49585 _swigc__p_wxIcon,
49586 _swigc__p_wxIconizeEvent,
49587 _swigc__p_wxIdleEvent,
49588 _swigc__p_wxImage,
49589 _swigc__p_wxImageHandler,
49590 _swigc__p_wxImageList,
49591 _swigc__p_wxIndividualLayoutConstraint,
49592 _swigc__p_wxInitDialogEvent,
49593 _swigc__p_wxItemContainer,
49594 _swigc__p_wxJPEGHandler,
49595 _swigc__p_wxKeyEvent,
49596 _swigc__p_wxLayoutConstraints,
49597 _swigc__p_wxListBox,
49598 _swigc__p_wxListEvent,
49599 _swigc__p_wxListItem,
49600 _swigc__p_wxListItemAttr,
49601 _swigc__p_wxListView,
49602 _swigc__p_wxListbook,
49603 _swigc__p_wxListbookEvent,
49604 _swigc__p_wxMaximizeEvent,
49605 _swigc__p_wxMemoryDC,
49606 _swigc__p_wxMenu,
49607 _swigc__p_wxMenuBar,
49608 _swigc__p_wxMenuEvent,
49609 _swigc__p_wxMenuItem,
49610 _swigc__p_wxMouseCaptureChangedEvent,
49611 _swigc__p_wxMouseCaptureLostEvent,
49612 _swigc__p_wxMouseEvent,
49613 _swigc__p_wxMoveEvent,
49614 _swigc__p_wxNavigationKeyEvent,
49615 _swigc__p_wxNcPaintEvent,
49616 _swigc__p_wxNotebook,
49617 _swigc__p_wxNotebookEvent,
49618 _swigc__p_wxNotifyEvent,
49619 _swigc__p_wxObject,
49620 _swigc__p_wxPCXHandler,
49621 _swigc__p_wxPNGHandler,
49622 _swigc__p_wxPNMHandler,
49623 _swigc__p_wxPaintEvent,
49624 _swigc__p_wxPaletteChangedEvent,
49625 _swigc__p_wxPaperSize,
49626 _swigc__p_wxPickerBase,
49627 _swigc__p_wxPoint,
49628 _swigc__p_wxPyApp,
49629 _swigc__p_wxPyCommandEvent,
49630 _swigc__p_wxPyControl,
49631 _swigc__p_wxPyEvent,
49632 _swigc__p_wxPyImageHandler,
49633 _swigc__p_wxPyListCtrl,
49634 _swigc__p_wxPySizer,
49635 _swigc__p_wxPyTreeCtrl,
49636 _swigc__p_wxPyTreeItemData,
49637 _swigc__p_wxPyValidator,
49638 _swigc__p_wxQueryNewPaletteEvent,
49639 _swigc__p_wxRadioBox,
49640 _swigc__p_wxRadioButton,
49641 _swigc__p_wxRect,
49642 _swigc__p_wxScrollBar,
49643 _swigc__p_wxScrollEvent,
49644 _swigc__p_wxScrollWinEvent,
49645 _swigc__p_wxSearchCtrl,
49646 _swigc__p_wxSetCursorEvent,
49647 _swigc__p_wxShowEvent,
49648 _swigc__p_wxSimpleHelpProvider,
49649 _swigc__p_wxSize,
49650 _swigc__p_wxSizeEvent,
49651 _swigc__p_wxSizer,
49652 _swigc__p_wxSizerItem,
49653 _swigc__p_wxSlider,
49654 _swigc__p_wxSpinButton,
49655 _swigc__p_wxSpinCtrl,
49656 _swigc__p_wxSpinEvent,
49657 _swigc__p_wxStaticBitmap,
49658 _swigc__p_wxStaticBox,
49659 _swigc__p_wxStaticBoxSizer,
49660 _swigc__p_wxStaticLine,
49661 _swigc__p_wxStaticText,
49662 _swigc__p_wxStdDialogButtonSizer,
49663 _swigc__p_wxString,
49664 _swigc__p_wxSysColourChangedEvent,
49665 _swigc__p_wxTGAHandler,
49666 _swigc__p_wxTIFFHandler,
49667 _swigc__p_wxTextAttr,
49668 _swigc__p_wxTextCtrl,
49669 _swigc__p_wxTextUrlEvent,
49670 _swigc__p_wxToggleButton,
49671 _swigc__p_wxToolBar,
49672 _swigc__p_wxToolBarBase,
49673 _swigc__p_wxToolBarToolBase,
49674 _swigc__p_wxToolbook,
49675 _swigc__p_wxToolbookEvent,
49676 _swigc__p_wxTreeEvent,
49677 _swigc__p_wxTreeItemId,
49678 _swigc__p_wxTreebook,
49679 _swigc__p_wxTreebookEvent,
49680 _swigc__p_wxUpdateUIEvent,
49681 _swigc__p_wxValidator,
49682 _swigc__p_wxVisualAttributes,
49683 _swigc__p_wxWindow,
49684 _swigc__p_wxWindowBase,
49685 _swigc__p_wxWindowCreateEvent,
49686 _swigc__p_wxWindowDestroyEvent,
49687 _swigc__p_wxXPMHandler,
49688 };
49689
49690
49691 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
49692
49693 static swig_const_info swig_const_table[] = {
49694 {0, 0, 0, 0.0, 0, 0}};
49695
49696 #ifdef __cplusplus
49697 }
49698 #endif
49699 /* -----------------------------------------------------------------------------
49700 * Type initialization:
49701 * This problem is tough by the requirement that no dynamic
49702 * memory is used. Also, since swig_type_info structures store pointers to
49703 * swig_cast_info structures and swig_cast_info structures store pointers back
49704 * to swig_type_info structures, we need some lookup code at initialization.
49705 * The idea is that swig generates all the structures that are needed.
49706 * The runtime then collects these partially filled structures.
49707 * The SWIG_InitializeModule function takes these initial arrays out of
49708 * swig_module, and does all the lookup, filling in the swig_module.types
49709 * array with the correct data and linking the correct swig_cast_info
49710 * structures together.
49711 *
49712 * The generated swig_type_info structures are assigned staticly to an initial
49713 * array. We just loop though that array, and handle each type individually.
49714 * First we lookup if this type has been already loaded, and if so, use the
49715 * loaded structure instead of the generated one. Then we have to fill in the
49716 * cast linked list. The cast data is initially stored in something like a
49717 * two-dimensional array. Each row corresponds to a type (there are the same
49718 * number of rows as there are in the swig_type_initial array). Each entry in
49719 * a column is one of the swig_cast_info structures for that type.
49720 * The cast_initial array is actually an array of arrays, because each row has
49721 * a variable number of columns. So to actually build the cast linked list,
49722 * we find the array of casts associated with the type, and loop through it
49723 * adding the casts to the list. The one last trick we need to do is making
49724 * sure the type pointer in the swig_cast_info struct is correct.
49725 *
49726 * First off, we lookup the cast->type name to see if it is already loaded.
49727 * There are three cases to handle:
49728 * 1) If the cast->type has already been loaded AND the type we are adding
49729 * casting info to has not been loaded (it is in this module), THEN we
49730 * replace the cast->type pointer with the type pointer that has already
49731 * been loaded.
49732 * 2) If BOTH types (the one we are adding casting info to, and the
49733 * cast->type) are loaded, THEN the cast info has already been loaded by
49734 * the previous module so we just ignore it.
49735 * 3) Finally, if cast->type has not already been loaded, then we add that
49736 * swig_cast_info to the linked list (because the cast->type) pointer will
49737 * be correct.
49738 * ----------------------------------------------------------------------------- */
49739
49740 #ifdef __cplusplus
49741 extern "C" {
49742 #if 0
49743 } /* c-mode */
49744 #endif
49745 #endif
49746
49747 #if 0
49748 #define SWIGRUNTIME_DEBUG
49749 #endif
49750
49751 SWIGRUNTIME void
49752 SWIG_InitializeModule(void *clientdata) {
49753 size_t i;
49754 swig_module_info *module_head;
49755 static int init_run = 0;
49756
49757 clientdata = clientdata;
49758
49759 if (init_run) return;
49760 init_run = 1;
49761
49762 /* Initialize the swig_module */
49763 swig_module.type_initial = swig_type_initial;
49764 swig_module.cast_initial = swig_cast_initial;
49765
49766 /* Try and load any already created modules */
49767 module_head = SWIG_GetModule(clientdata);
49768 if (module_head) {
49769 swig_module.next = module_head->next;
49770 module_head->next = &swig_module;
49771 } else {
49772 /* This is the first module loaded */
49773 swig_module.next = &swig_module;
49774 SWIG_SetModule(clientdata, &swig_module);
49775 }
49776
49777 /* Now work on filling in swig_module.types */
49778 #ifdef SWIGRUNTIME_DEBUG
49779 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49780 #endif
49781 for (i = 0; i < swig_module.size; ++i) {
49782 swig_type_info *type = 0;
49783 swig_type_info *ret;
49784 swig_cast_info *cast;
49785
49786 #ifdef SWIGRUNTIME_DEBUG
49787 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49788 #endif
49789
49790 /* if there is another module already loaded */
49791 if (swig_module.next != &swig_module) {
49792 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
49793 }
49794 if (type) {
49795 /* Overwrite clientdata field */
49796 #ifdef SWIGRUNTIME_DEBUG
49797 printf("SWIG_InitializeModule: found type %s\n", type->name);
49798 #endif
49799 if (swig_module.type_initial[i]->clientdata) {
49800 type->clientdata = swig_module.type_initial[i]->clientdata;
49801 #ifdef SWIGRUNTIME_DEBUG
49802 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49803 #endif
49804 }
49805 } else {
49806 type = swig_module.type_initial[i];
49807 }
49808
49809 /* Insert casting types */
49810 cast = swig_module.cast_initial[i];
49811 while (cast->type) {
49812 /* Don't need to add information already in the list */
49813 ret = 0;
49814 #ifdef SWIGRUNTIME_DEBUG
49815 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49816 #endif
49817 if (swig_module.next != &swig_module) {
49818 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49819 #ifdef SWIGRUNTIME_DEBUG
49820 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49821 #endif
49822 }
49823 if (ret) {
49824 if (type == swig_module.type_initial[i]) {
49825 #ifdef SWIGRUNTIME_DEBUG
49826 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49827 #endif
49828 cast->type = ret;
49829 ret = 0;
49830 } else {
49831 /* Check for casting already in the list */
49832 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49833 #ifdef SWIGRUNTIME_DEBUG
49834 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49835 #endif
49836 if (!ocast) ret = 0;
49837 }
49838 }
49839
49840 if (!ret) {
49841 #ifdef SWIGRUNTIME_DEBUG
49842 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49843 #endif
49844 if (type->cast) {
49845 type->cast->prev = cast;
49846 cast->next = type->cast;
49847 }
49848 type->cast = cast;
49849 }
49850 cast++;
49851 }
49852 /* Set entry in modules->types array equal to the type */
49853 swig_module.types[i] = type;
49854 }
49855 swig_module.types[i] = 0;
49856
49857 #ifdef SWIGRUNTIME_DEBUG
49858 printf("**** SWIG_InitializeModule: Cast List ******\n");
49859 for (i = 0; i < swig_module.size; ++i) {
49860 int j = 0;
49861 swig_cast_info *cast = swig_module.cast_initial[i];
49862 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49863 while (cast->type) {
49864 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
49865 cast++;
49866 ++j;
49867 }
49868 printf("---- Total casts: %d\n",j);
49869 }
49870 printf("**** SWIG_InitializeModule: Cast List ******\n");
49871 #endif
49872 }
49873
49874 /* This function will propagate the clientdata field of type to
49875 * any new swig_type_info structures that have been added into the list
49876 * of equivalent types. It is like calling
49877 * SWIG_TypeClientData(type, clientdata) a second time.
49878 */
49879 SWIGRUNTIME void
49880 SWIG_PropagateClientData(void) {
49881 size_t i;
49882 swig_cast_info *equiv;
49883 static int init_run = 0;
49884
49885 if (init_run) return;
49886 init_run = 1;
49887
49888 for (i = 0; i < swig_module.size; i++) {
49889 if (swig_module.types[i]->clientdata) {
49890 equiv = swig_module.types[i]->cast;
49891 while (equiv) {
49892 if (!equiv->converter) {
49893 if (equiv->type && !equiv->type->clientdata)
49894 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
49895 }
49896 equiv = equiv->next;
49897 }
49898 }
49899 }
49900 }
49901
49902 #ifdef __cplusplus
49903 #if 0
49904 {
49905 /* c-mode */
49906 #endif
49907 }
49908 #endif
49909
49910
49911
49912 #ifdef __cplusplus
49913 extern "C" {
49914 #endif
49915
49916 /* Python-specific SWIG API */
49917 #define SWIG_newvarlink() SWIG_Python_newvarlink()
49918 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
49919 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
49920
49921 /* -----------------------------------------------------------------------------
49922 * global variable support code.
49923 * ----------------------------------------------------------------------------- */
49924
49925 typedef struct swig_globalvar {
49926 char *name; /* Name of global variable */
49927 PyObject *(*get_attr)(void); /* Return the current value */
49928 int (*set_attr)(PyObject *); /* Set the value */
49929 struct swig_globalvar *next;
49930 } swig_globalvar;
49931
49932 typedef struct swig_varlinkobject {
49933 PyObject_HEAD
49934 swig_globalvar *vars;
49935 } swig_varlinkobject;
49936
49937 SWIGINTERN PyObject *
49938 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
49939 return PyString_FromString("<Swig global variables>");
49940 }
49941
49942 SWIGINTERN PyObject *
49943 swig_varlink_str(swig_varlinkobject *v) {
49944 PyObject *str = PyString_FromString("(");
49945 swig_globalvar *var;
49946 for (var = v->vars; var; var=var->next) {
49947 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
49948 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
49949 }
49950 PyString_ConcatAndDel(&str,PyString_FromString(")"));
49951 return str;
49952 }
49953
49954 SWIGINTERN int
49955 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
49956 PyObject *str = swig_varlink_str(v);
49957 fprintf(fp,"Swig global variables ");
49958 fprintf(fp,"%s\n", PyString_AsString(str));
49959 Py_DECREF(str);
49960 return 0;
49961 }
49962
49963 SWIGINTERN void
49964 swig_varlink_dealloc(swig_varlinkobject *v) {
49965 swig_globalvar *var = v->vars;
49966 while (var) {
49967 swig_globalvar *n = var->next;
49968 free(var->name);
49969 free(var);
49970 var = n;
49971 }
49972 }
49973
49974 SWIGINTERN PyObject *
49975 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
49976 PyObject *res = NULL;
49977 swig_globalvar *var = v->vars;
49978 while (var) {
49979 if (strcmp(var->name,n) == 0) {
49980 res = (*var->get_attr)();
49981 break;
49982 }
49983 var = var->next;
49984 }
49985 if (res == NULL && !PyErr_Occurred()) {
49986 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
49987 }
49988 return res;
49989 }
49990
49991 SWIGINTERN int
49992 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
49993 int res = 1;
49994 swig_globalvar *var = v->vars;
49995 while (var) {
49996 if (strcmp(var->name,n) == 0) {
49997 res = (*var->set_attr)(p);
49998 break;
49999 }
50000 var = var->next;
50001 }
50002 if (res == 1 && !PyErr_Occurred()) {
50003 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50004 }
50005 return res;
50006 }
50007
50008 SWIGINTERN PyTypeObject*
50009 swig_varlink_type(void) {
50010 static char varlink__doc__[] = "Swig var link object";
50011 static PyTypeObject varlink_type;
50012 static int type_init = 0;
50013 if (!type_init) {
50014 const PyTypeObject tmp
50015 = {
50016 PyObject_HEAD_INIT(NULL)
50017 0, /* Number of items in variable part (ob_size) */
50018 (char *)"swigvarlink", /* Type name (tp_name) */
50019 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
50020 0, /* Itemsize (tp_itemsize) */
50021 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
50022 (printfunc) swig_varlink_print, /* Print (tp_print) */
50023 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
50024 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
50025 0, /* tp_compare */
50026 (reprfunc) swig_varlink_repr, /* tp_repr */
50027 0, /* tp_as_number */
50028 0, /* tp_as_sequence */
50029 0, /* tp_as_mapping */
50030 0, /* tp_hash */
50031 0, /* tp_call */
50032 (reprfunc)swig_varlink_str, /* tp_str */
50033 0, /* tp_getattro */
50034 0, /* tp_setattro */
50035 0, /* tp_as_buffer */
50036 0, /* tp_flags */
50037 varlink__doc__, /* tp_doc */
50038 0, /* tp_traverse */
50039 0, /* tp_clear */
50040 0, /* tp_richcompare */
50041 0, /* tp_weaklistoffset */
50042 #if PY_VERSION_HEX >= 0x02020000
50043 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
50044 #endif
50045 #if PY_VERSION_HEX >= 0x02030000
50046 0, /* tp_del */
50047 #endif
50048 #ifdef COUNT_ALLOCS
50049 0,0,0,0 /* tp_alloc -> tp_next */
50050 #endif
50051 };
50052 varlink_type = tmp;
50053 varlink_type.ob_type = &PyType_Type;
50054 type_init = 1;
50055 }
50056 return &varlink_type;
50057 }
50058
50059 /* Create a variable linking object for use later */
50060 SWIGINTERN PyObject *
50061 SWIG_Python_newvarlink(void) {
50062 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
50063 if (result) {
50064 result->vars = 0;
50065 }
50066 return ((PyObject*) result);
50067 }
50068
50069 SWIGINTERN void
50070 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
50071 swig_varlinkobject *v = (swig_varlinkobject *) p;
50072 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
50073 if (gv) {
50074 size_t size = strlen(name)+1;
50075 gv->name = (char *)malloc(size);
50076 if (gv->name) {
50077 strncpy(gv->name,name,size);
50078 gv->get_attr = get_attr;
50079 gv->set_attr = set_attr;
50080 gv->next = v->vars;
50081 }
50082 }
50083 v->vars = gv;
50084 }
50085
50086 SWIGINTERN PyObject *
50087 SWIG_globals() {
50088 static PyObject *_SWIG_globals = 0;
50089 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50090 return _SWIG_globals;
50091 }
50092
50093 /* -----------------------------------------------------------------------------
50094 * constants/methods manipulation
50095 * ----------------------------------------------------------------------------- */
50096
50097 /* Install Constants */
50098 SWIGINTERN void
50099 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50100 PyObject *obj = 0;
50101 size_t i;
50102 for (i = 0; constants[i].type; ++i) {
50103 switch(constants[i].type) {
50104 case SWIG_PY_POINTER:
50105 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50106 break;
50107 case SWIG_PY_BINARY:
50108 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50109 break;
50110 default:
50111 obj = 0;
50112 break;
50113 }
50114 if (obj) {
50115 PyDict_SetItemString(d, constants[i].name, obj);
50116 Py_DECREF(obj);
50117 }
50118 }
50119 }
50120
50121 /* -----------------------------------------------------------------------------*/
50122 /* Fix SwigMethods to carry the callback ptrs when needed */
50123 /* -----------------------------------------------------------------------------*/
50124
50125 SWIGINTERN void
50126 SWIG_Python_FixMethods(PyMethodDef *methods,
50127 swig_const_info *const_table,
50128 swig_type_info **types,
50129 swig_type_info **types_initial) {
50130 size_t i;
50131 for (i = 0; methods[i].ml_name; ++i) {
50132 const char *c = methods[i].ml_doc;
50133 if (c && (c = strstr(c, "swig_ptr: "))) {
50134 int j;
50135 swig_const_info *ci = 0;
50136 const char *name = c + 10;
50137 for (j = 0; const_table[j].type; ++j) {
50138 if (strncmp(const_table[j].name, name,
50139 strlen(const_table[j].name)) == 0) {
50140 ci = &(const_table[j]);
50141 break;
50142 }
50143 }
50144 if (ci) {
50145 size_t shift = (ci->ptype) - types;
50146 swig_type_info *ty = types_initial[shift];
50147 size_t ldoc = (c - methods[i].ml_doc);
50148 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50149 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50150 if (ndoc) {
50151 char *buff = ndoc;
50152 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50153 if (ptr) {
50154 strncpy(buff, methods[i].ml_doc, ldoc);
50155 buff += ldoc;
50156 strncpy(buff, "swig_ptr: ", 10);
50157 buff += 10;
50158 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50159 methods[i].ml_doc = ndoc;
50160 }
50161 }
50162 }
50163 }
50164 }
50165 }
50166
50167 #ifdef __cplusplus
50168 }
50169 #endif
50170
50171 /* -----------------------------------------------------------------------------*
50172 * Partial Init method
50173 * -----------------------------------------------------------------------------*/
50174
50175 #ifdef __cplusplus
50176 extern "C"
50177 #endif
50178 SWIGEXPORT void SWIG_init(void) {
50179 PyObject *m, *d;
50180
50181 /* Fix SwigMethods to carry the callback ptrs when needed */
50182 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50183
50184 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50185 d = PyModule_GetDict(m);
50186
50187 SWIG_InitializeModule(0);
50188 SWIG_InstallConstants(d,swig_const_table);
50189
50190
50191 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50192 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50193 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50194 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50195 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50196 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50197 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50198 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50199 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50200 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50201 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50202 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50203 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50204 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50205 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50206 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50207 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50208 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50209 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50210 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50211 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50212 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
50213 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50214 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50215 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
50216 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
50217 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50218 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50219 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50220 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50221 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50222 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50223 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50224 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50225 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50226 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50227 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50228 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50229 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50230 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50231 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50232 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50233 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50234 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50235 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50236 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
50237 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50238 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50239 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50240 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50241 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50242 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50243 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50244 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50245 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50246 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50247 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50248 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50249 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50250 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50251 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50252 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50253 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50254 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50255 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50256 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50257 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50258 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50259 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50260 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50261 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50262 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50263 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
50264 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
50265 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50266 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50267 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50268 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50269 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50270 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50271 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50272 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50273 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50274 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50275 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50276 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50277 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50278 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50279 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50280 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50281 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50282 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50283 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50284 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50285 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50286 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50287 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50288 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50289 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50290 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50291 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50292 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50293 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50294 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50295 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50296 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50297 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50298 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50299 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50300 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
50301 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
50302 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50303 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50304 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50305 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50306 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
50307 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50308 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50309 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50310 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50311 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50312 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50313 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50314 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50315 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50316 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50317 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
50318 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
50319 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50320 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50321 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50322 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50323 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50324 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50325 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50326 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50327 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50328 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50329 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50330 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50331 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50332 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50333 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50334 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50335 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50336 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50337 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50338 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50339 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50340 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50341 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50342 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50343 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50344 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50345 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50346 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50347 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
50348 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50349 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50350 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50351 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
50352 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50353 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50354 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50355 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50356 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50357 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50358 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50359 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50360 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
50361 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
50362 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50363 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50364 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50365 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50366 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50367 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50368 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50369 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50370 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50371 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50372 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50373 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50374 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50375 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50376 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50377 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50378 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50379 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50380 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50381 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50382 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50383 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50384 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50385 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50386 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50387 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50388 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50389 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50390 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50391 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50392 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50393 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50394 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50395 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50396 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50397 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50398 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50399 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50400 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50401 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50402 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50403 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50404 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50405 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50406 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50407 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50408 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
50409 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
50410 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50411 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50412 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50413 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50414 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50415 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50416 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50417 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50418 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50419 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50420 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50421 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50422 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50423 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50424 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50425 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50426 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50427 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50428 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50429 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50430 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50431 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50432 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50433 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50434 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50435 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50436 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50437 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50438 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
50439 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
50440 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
50441 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
50442 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
50443 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
50444 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
50445 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
50446 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
50447 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
50448 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
50449 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
50450 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
50451 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
50452
50453 // Map renamed classes back to their common name for OOR
50454 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
50455
50456 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
50457 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50458 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50459 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50460 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50461 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50462 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50463 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50464 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50465 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50466 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50467 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50468 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50469 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50470 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
50471 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50472 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50473 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50474 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50475 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50476 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50477 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50478 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50479 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50480 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50481 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50482 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50483 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50484 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50485 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50486 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50487 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50488 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50489 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50490 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50491 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50492 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50493 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50494 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50495 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50496 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50497 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50498 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50499 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
50500 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
50501 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
50502 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
50503 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
50504 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
50505 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
50506 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
50507 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
50508 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
50509 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
50510 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
50511 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
50512
50513 // Map renamed classes back to their common name for OOR
50514 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
50515 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
50516
50517 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
50518 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
50519 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
50520 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
50521 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
50522 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
50523 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
50524 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
50525 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
50526 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
50527 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
50528
50529 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
50530
50531 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
50532 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
50533 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
50534 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
50535 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
50536 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
50537 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
50538 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
50539 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
50540 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
50541 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
50542 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
50543 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
50544 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
50545 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
50546 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
50547 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
50548 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
50549 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
50550 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
50551 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
50552 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
50553 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
50554 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
50555 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
50556 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
50557 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
50558 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
50559 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
50560 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
50561 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
50562 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
50563 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
50564 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
50565 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
50566 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
50567 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
50568 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
50569 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
50570 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
50571 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
50572 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
50573 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
50574 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
50575 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
50576 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
50577 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
50578 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
50579 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL));
50580 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH));
50581 }
50582